Aspose.Words converting to PDF/A compliance

Hello, I’ve noticed a similar question being asked before here
Word to PDFA-1a I was wondering if there’s any update to this? Does Aspose.Words support checking for PDF/A compliance now?

@teriteri

Cause

Aspose.Words does support PDF/A compliance, including PDF/A-1, PDF/A-2, and PDF/A-4 formats. However, the ability to check for compliance directly is not explicitly mentioned in the current documentation.

Solution

To ensure your documents are compliant with PDF/A standards, you can use the PdfSaveOptions class to set the compliance level when saving your document to PDF. You can specify the compliance level using the setCompliance method.

Code Example

Here’s a basic example of how to set the compliance level while saving a document to PDF:

Document doc = new Document("input.docx");
PdfSaveOptions options = new PdfSaveOptions();

// Set compliance level to PDF/A-1b
options.setCompliance(PdfCompliance.PDF_A_1_B);

// Save the document as PDF
doc.save("output.pdf", options);

Next Steps

  1. Review your document structure and ensure it meets the requirements for PDF/A compliance.
  2. Test the output PDF to verify compliance using a PDF/A validation tool.
  3. If you encounter issues, consider adjusting the document content or structure as needed.

If you have any further questions or need additional assistance, please feel free to ask!

1 Like

@teriteri Yes, Aspose.Words supports PDF/A compliance. You can check PdfCompliance Enum | Aspose.Words for .NET

1 Like

Thank you, I saw this but is there a way to check if the word document structure is of a certain pdf/a standard compliant before saving/converting to the pdf?

@teriteri Unfortunately, we do not have such an API. If you need to check compliance with the standard, you can use, for example, Download - PAC or other tools.