java.lang.Object
com.aspose.words.PdfCompliance
public class PdfCompliance
- extends java.lang.Object
Utility class containing constants.
Specifies the PDF standards compliance level.
Example:
Shows how to set the PDF standards compliance level of saved PDF documents.
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 = 0 | |
The output file will comply with the PDF 1.7 standard.
|
static final int | PDF_15 = 1 | |
The output file will comply with the PDF 1.5 standard.
|
static final int | PDF_A_1_A = 2 | |
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 = 3 | |
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.
|
PDF_17 = 0 | |
public static final int PDF_17 |
-
The output file will comply with the PDF 1.7 standard.
PDF_15 = 1 | |
public static final int PDF_15 |
-
The output file will comply with the PDF 1.5 standard.
PDF_A_1_A = 2 | |
public 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.
Note that exporting the document structure significantly increases the memory consumption, especially
for the large documents.
PDF_A_1_B = 3 | |
public 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.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.