Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Jun 12, 2024 9:28 am

Hi,

How do you set the Conformance level in Spire.PDF?
You cannot do the following:
Code: Select all
var pdfDocument = new PdfDocument()
{
       Conformance = PdfConformanceLevel.Pdf_A1B
};


Because Conformance property is get only.
I don't want to convert the PDF afterwards, I want to set it by default.

PaulDictu2
 
Posts: 6
Joined: Mon Mar 11, 2024 7:27 am

Wed Jun 12, 2024 10:10 am

Hello,

Thanks for your inquiry.
Sorry, our current code does not support setting the Conformance property of PDF files directly. It can only be achieved by converting PDF files to PDF/A files(C#/VB.NET: Convert PDF to PDF/A). If you have other questions, please feel free to write back.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.PDF