Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
PDF is a fixed page format that is very popular among users and is widely supported by various applications, as a PDF document looks the same on any device. For this reason, converting to PDF is an important feature of Aspose.Words.
PDF is a complex format by itself, as it has a specific file structure, graphical model, font embedding, and some complex output functionality such as document structure tags, encryption, digital signatures, and editable forms. In addition, converting a document to PDF requires several calculation stages, which are complex and time-consuming.
In this section, we will consider the main problems that may arise when working with documents in various PDF standards and describe options for solving them.
Aspose.Words now allows users to work with PDF/A-1, PDF/A-2 and PDF/A-4 formats, as well as PDF/UA-1:
PDF/A is an ISO-standardized version of PDF intended for use in archiving and long-term storage of electronic documents. At the same time, PDF/UA is another ISO standardized version of PDF designed to ensure accessibility for people with disabilities who use assistive technology. To specify the level of compliance with PDF standards, use the Compliance property. Due to storage conditions, PDF/A document must embed all fonts and disable encryption, while PDF/UA must only embed all fonts.
In this section, we will take a closer look at working with PDF/A or PDF/UA-1 documents.
To learn more about the different PDF standards, check the following ISOs:
Q: How do I set the PDF/A or PDF/UA compliance level when saving a document with Aspose.Words for C++?
A: Create a PdfSaveOptions object, set its Compliance property to the desired enum value (PdfCompliance::PdfA1b, PdfCompliance::PdfA2b, PdfCompliance::PdfA4, or PdfCompliance::PdfUa1), and pass the options to the Document::Save method. Example:
Aspose::Words::Document doc(u"input.docx");
Aspose::Words::Saving::PdfSaveOptions options;
options.set_Compliance(Aspose::Words::Saving::PdfCompliance::PdfA2b);
doc.Save(u"output.pdf", options);
Q: Do I need to embed all fonts manually for PDF/A compliance?
A: No. When you set a PDF/A compliance level, Aspose.Words automatically embeds all fonts used in the document. You can control font substitution via FontSettings if required, but explicit embedding is not necessary.
Q: Can I encrypt a PDF/A document? What happens if I try?
A: PDF/A specifications prohibit encryption. If you set a PDF/A compliance level and also enable encryption (e.g., options.set_EncryptionDetails(...)), Aspose.Words will ignore the encryption settings and generate an unencrypted PDF/A file, ensuring the document remains compliant.
Q: How can I verify that the generated PDF meets the selected PDF/A or PDF/UA standard?
A: After saving, you can use a PDF validation tool (such as Adobe Acrobat Preflight or the open‑source VeraPDF) to check conformance. Aspose.Words does not perform post‑save validation, so an external validator is required for certification.
Q: What are the main differences between PDF/A‑1, PDF/A‑2, and PDF/A‑4 regarding transparency and font handling?
A:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.