Free Support Forum - aspose.com

Aspose.Words to PDF/A-1a


#1

Hi,

I can’t find an appropriate example of converting Word document to PDF/A-1a
Can you please help?

(I also need for PP and Excel :slight_smile: )

Thank you ,
Yaron


#2

@yaronz,

Thanks for contacting support.

In order to convert MS word file to PDF/A-1a format, please try using following code snippet.

[C#]

Document doc = new Document(MyDir + "in.docx");
PdfSaveOptions opts = new PdfSaveOptions();
opts.Compliance = PdfCompliance.PdfA1a;
doc.Save(MyDir + "17.10.pdf", opts); 

Please follow the instructions specified over following link for information on converting Excel file to PDF/A-1a format.
Currently Aspose.Slides offers the feature to convert PPT/PPTX files to PDF/A-1b format but I am afraid currently it does not support the feature to save output in PDF/A-1a format.

[C#]

Aspose.Slides.Presentation presentation = new Aspose.Slides.Presentation("c:/pdftest/PowerPoint.pptx", new Aspose.Slides.LoadOptions( Aspose.Slides.LoadFormat.Pptx));
Aspose.Slides.Export.PdfOptions pdfOpt= new Aspose.Slides.Export.PdfOptions();
pdfOpt.Compliance = Aspose.Slides.Export.PdfCompliance.PdfA1b;
presentation.Save("c:/pdftest/PowerPoint.pdf", Aspose.Slides.Export.SaveFormat.Pdf, pdfOpt);

#3

@yaronz,

As shared earlier, Aspose.Slides for .NET do not support the feature to convert PPT/PPTX files to PDF/A-1a format and we have logged a feature request as SLIDESNET-37623 in our issue tracking system. We will further look into the details of this requirement and will keep you updated on the status of correction.

However as a workaround, you may consider converting PowerPoint files to PDF format using Aspose.Slides for .NET and then convert PDF file to PDF/A-1a format using Aspose.Pdf for .NET.


#4

Hi,

Any updates on this? We would also need PDF/A-1 on PDFs from PowerPoint.

Thanks


#5

@ServerSide527,

I have verified from our issue tracking system and regret to share that requested support is unavailable in API and we will share the good news with you as soon as support will be available in API.