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 save images to PDF using JPEG encoding to decrease file size.
Document doc = new Document(getMyDir() + "Rendering.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.setImageCompression(PdfImageCompression.JPEG);
options.setPreserveFormFields(true);
doc.save(getArtifactsDir() + "PdfSaveOptions.PdfImageCompression.pdf", options);
PdfSaveOptions optionsA1B = new PdfSaveOptions();
optionsA1B.setCompliance(PdfCompliance.PDF_A_1_B);
optionsA1B.setImageCompression(PdfImageCompression.JPEG);
optionsA1B.setJpegQuality(100);
optionsA1B.setImageColorSpaceExportMode(PdfImageColorSpaceExportMode.SIMPLE_CMYK);
doc.save(getArtifactsDir() + "PdfSaveOptions.ImageCompression.PDF_A_1_B.pdf", optionsA1B);
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.