public class PdfCompliance
Example:
Document doc = new Document(getMyDir() + "Images.docx");
// Create a "PdfSaveOptions" object that we can pass to the document's "Save" method
// to modify how that method converts the document to .PDF.
PdfSaveOptions saveOptions = new PdfSaveOptions();
// Set the "Compliance" property to "PdfCompliance.PdfA1b" to comply with the "PDF/A-1b" standard,
// which aims to preserve the visual appearance of the document as Aspose.Words convert it to PDF.
// Set the "Compliance" property to "PdfCompliance.Pdf17" to comply with the "1.7" standard.
// Set the "Compliance" property to "PdfCompliance.PdfA1a" to comply with the "PDF/A-1a" standard,
// which complies with "PDF/A-1b" as well as preserving the document structure of the original document.
// This helps with making documents searchable, but may significantly increase the size of already large documents.
saveOptions.setCompliance(pdfCompliance);
doc.save(getArtifactsDir() + "PdfSaveOptions.Compliance.pdf", saveOptions);
Field Summary | ||
---|---|---|
static final int | PDF_17 | |
The output file will comply with the PDF 1.7 standard.
|
||
static final int | PDF_15 | |
The output file will comply with the PDF 1.5 standard.
|
||
static final int | 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.
|
||
static final int | 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.
|
public static final int PDF_17
public static final int PDF_15
public static final int PDF_A_1_A
public static final int PDF_A_1_B