Click or drag to resize
PdfCompliance Enumeration
Specifies the PDF standards compliance level.

Namespace: Aspose.Words.Saving
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 20.1
Syntax
public enum PdfCompliance
Members
  Member nameValueDescription
Pdf170 The output file will comply with the PDF 1.7 standard.
Pdf151 The output file will comply with the PDF 1.5 standard.
PdfA1a2 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.
PdfA1b3 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.
Examples
Shows how to save images to PDF using JPEG encoding to decrease file size.
Document doc = new Document(MyDir + "SaveOptions.PdfImageCompression.rtf");

PdfSaveOptions options = new PdfSaveOptions
{
    ImageCompression = PdfImageCompression.Jpeg,
    PreserveFormFields = true
};
doc.Save(ArtifactsDir + "SaveOptions.PdfImageCompression.pdf", options);

PdfSaveOptions optionsA1B = new PdfSaveOptions
{
    Compliance = PdfCompliance.PdfA1b,
    ImageCompression = PdfImageCompression.Jpeg,
    JpegQuality = 100, // Use JPEG compression at 50% quality to reduce file size
    ImageColorSpaceExportMode = PdfImageColorSpaceExportMode.SimpleCmyk
};

doc.Save(ArtifactsDir + "SaveOptions.PdfImageComppression PDF_A_1_B.pdf", optionsA1B);
See Also