Enum PdfCompliance

PdfCompliance enumeration

Allowing user to set PDF conversion’s Compatibility

public enum PdfCompliance

Values

NameValueDescription
None0Pdf format compatible with PDF 1.4
Pdf140Pdf format compatible with PDF 1.4
Pdf153Pdf format compatible with PDF 1.5
Pdf164Pdf format compatible with PDF 1.6
Pdf175Pdf format compatible with PDF 1.7
PdfA1b1Pdf format compatible with PDF/A-1b(ISO 19005-1)
PdfA1a2Pdf format compatible with PDF/A-1a(ISO 19005-1)
PdfA2b6Pdf format compatible with PDF/A-2b(ISO 19005-2)
PdfA2u7Pdf format compatible with PDF/A-2u(ISO 19005-2)
PdfA2a8Pdf format compatible with PDF/A-2a(ISO 19005-2)
PdfA3b9Pdf format compatible with PDF/A-3b(ISO 19005-3)
PdfA3u10Pdf format compatible with PDF/A-3u(ISO 19005-3)
PdfA3a11Pdf format compatible with PDF/A-3a(ISO 19005-3)

Examples

[C#]

namespace Demos
{
    using Aspose.Cells;
    using Aspose.Cells.Rendering;
    using System;

    public class PdfComplianceDemo
    {
        public static void PdfComplianceExample()
        {
            // Creating a workbook
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];
            worksheet.Cells["A1"].PutValue("Aspose.Cells PDF Compliance Example");

            // Setting PDF save options
            PdfSaveOptions saveOptions = new PdfSaveOptions();

            // Setting the compliance level to PDF/A-1b
            saveOptions.Compliance = PdfCompliance.PdfA1b;

            // Saving the workbook to PDF with the specified compliance level
            workbook.Save("PdfComplianceExample.pdf", saveOptions);

            Console.WriteLine("PDF generated with compliance level PDF/A-1b");
        }
    }
}

See Also