21.7 release notes: WORDSNET-20505 Add support for PDF/A-2u, PDF/A-2a, PDF/A-3u, PDF/A-3a compliance
How to save doc to pdf/a-3a with aspose.word 24.10?
available formats in enum PdfCompilance is
Pdf20,
PdfA1a,
PdfA1b,
PdfA2a,
PdfA2u,
PdfA4,
PdfA4Ua2,
PdfUa1,
PdfUa2,
@qquark518 The only difference between PDF/A-2 and PDF/A-3 is that PDF/A-3 allows to embed non-compliant files into PDF. So if you do not need attachments in the output PDF, the document saved with PDF/A-2 compliance will also be compliant with PDF/A-3 standard.
@qquark518
To save a document as PDF/A-3a using Aspose.Words version 24.10, you can utilize the PdfSaveOptions
class and set the Compliance
property to PdfCompliance.PdfA3a
. Here’s a code example demonstrating how to achieve this:
using Aspose.Words;
using Aspose.Words.Saving;
class Program
{
static void Main()
{
// Load the document
Document doc = new Document("input.docx");
// Create PdfSaveOptions and set compliance to PDF/A-3a
PdfSaveOptions saveOptions = new PdfSaveOptions
{
Compliance = PdfCompliance.PdfA3a
};
// Save the document as PDF/A-3a
doc.Save("output.pdf", saveOptions);
}
}
In this example, replace "input.docx"
with the path to your source document and "output.pdf"
with the desired output file path. This will ensure that the saved PDF complies with the PDF/A-3a standard, which is suitable for archiving and long-term preservation of documents.
Make sure you have the necessary Aspose.Words library referenced in your project to use these classes and methods.
@qquark518
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-27454
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.