We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to set PDF version (1.4, 1.5, 1.6) using .NET


I’m converting a Word file into PDF. But during that conversion I need to select the PDF version (1.4, 1.5, 1.6). How can I do that?

Thanks in advance for any help,

Hi Mariusz,

Thanks for your inquiry. With Aspose.Words you can export the Word document to Pdf in Pdf15, PdfA1a and PdfA1b compliance level. Please use the PdfSaveOptions.setCompliance to set the PDF standards compliance level.

PdfCompliance.PDF_15 : The output file will comply with the PDF 1.5 standard.
PdfCompliance.PDF_A_1_A : The output file will comply with the PDF/A-1a standard. This level includes all the requirements of PDF/A-1b and additionally requires that document structure be included (also known as being “tagged”), with the objective of ensuring that document content can be searched and repurposed.
PdfCompliance.PDF_A_1_B : The output file will comply with the PDF/A-1b
standard. PDF/A-1b has the objective of ensuring reliable reproduction
of the visual appearance of the document.

Please check following code example for your reference.

Document doc = new
Document(MyDir + “in.docx”);

PdfSaveOptions option = new PdfSaveOptions();


doc.save(MyDir + "out.pdf", option);

Unfortunately, Aspose.Words does not export document to PDF version 1.4 at the moment. However, I have logged this feature request as WORDSNET-11179 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.


It is to inform you that we have closed the issue (WORDSNET-11179) with “Won’t Fix” resolution.