PdfCompliance Enumeration |
Specifies the PDF standards compliance level.
Namespace:
Aspose.Words.Saving
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum PdfCompliance
Public Enumeration PdfCompliance
public enum class PdfCompliance
Members
| Member name | Value | Description |
---|
| Pdf17 | 0 |
The output file will comply with the PDF 1.7 standard.
|
| Pdf15 | 1 |
The output file will comply with the PDF 1.5 standard.
|
| PdfA1a | 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.
|
| PdfA1b | 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.
|
ExamplesShows how to save images to PDF using JPEG encoding to decrease file size.
Document doc = new Document(MyDir + "Rendering.docx");
PdfSaveOptions options = new PdfSaveOptions
{
ImageCompression = PdfImageCompression.Jpeg,
PreserveFormFields = true
};
doc.Save(ArtifactsDir + "PdfSaveOptions.PdfImageCompression.pdf", options);
PdfSaveOptions optionsA1B = new PdfSaveOptions
{
Compliance = PdfCompliance.PdfA1b,
ImageCompression = PdfImageCompression.Jpeg,
JpegQuality = 100,
ImageColorSpaceExportMode = PdfImageColorSpaceExportMode.SimpleCmyk
};
doc.Save(ArtifactsDir + "PdfSaveOptions.ImageCompression.PDF_A_1_B.pdf", optionsA1B);
See Also