Converting Word/Excel/PowerPoint files to PDF in PDF/A format

Greetings,

I’m currently doing some research to find out if I can use your products to convert Word/Excel/PowerPoint files to PDF. It’s a must that these PDF files are in PDF/A format. I’m using the trial versions atm.

When I try something like this:

string savePath = Path.Combine(path, “Output_” + fi.Name + “.pdf”);
Document doc = new Document(fi.FullName);
doc.Save(savePath, Aspose.Words.SaveFormat.Pdf);

//Convert to PDF/A
using (FileStream str = File.Open(savePath, FileMode.Open))
{
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf(str);
pdf.Conformance = Aspose.Pdf.PdfConformance.PdfA1B;
pdf.Close();
}

It’s doesn’t work. I get a blank PDF and Adobe Reader says there was an error while reading the document.

Is there a way I can use your products in the manner I stated above? If so, how can I do this, can you provide me with some code examples?

Thanks in advance,
Steven


This message was posted using Page2Forum from How to create PDF/A-1 with Aspose.Pdf - Aspose.Pdf for .NET

After posting the above question I noticed that a similar thread has been posten in the same forum: https://forum.aspose.com/t/111394

This thread is now obsolete.


Hi Steven,

Thanks for using our products.

You can use the following Aspose products to convert Word/Excel/PowerPoint files to PDF

You are trying to use Aspose.Pdf to convert resultant PDF into PDF format. But, this product offers the capability to generate PDF documents from scratch and you can also generate PDF/A compliant document with it. But this product is not suitable in your scenario because you are trying to pass an already generated PDF document as an argument to Aspose.Pdf object.

However, in order to edit/manipulate existing PDF documents, you need to try using Aspose.Pdf.Kit which provides the feature of working with existing PDF files. As per your requirement on converting existing PDF file into PDF/A compliant format, I am afraid this feature is currently not supported. However, for the sake of correction, this requirement has already been logged in our issue tracking system as PDFKIENET-10208. Our development team is working over this requirement and once we have some definite news regarding its resolution, we would be pleased to update you with the status of correction.

We apologize for your inconvenience.

Hello,

We have a Aspose Total License and we need the PDF/A conversion feature. Can you inform me on the status of this issue PDFKIENET-10208?

We need this feature very soon (within a week), so if this feature is not available yet, maybe there is a beta version we can test?

Thanks in advance.

Hi Vincent,

I have answered this question in detail in reply of your other query at this link.

If you find any other questions, please do let us know.
Regards,

The issues you have found earlier (filed as PDFNEWNET-10208;PDFNEWNET-10208;PDFNEWNET-10208) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(9)