We're having some troubles when converting a PDF file to Pdf_A1B.
- Code: Select all
private PdfNewDocument ConvertPdfToDifferentStandard(PdfDocument originalDocument, PdfConformanceLevel level, string convertedFilePath, string convertedFileName)
{
var document = new PdfNewDocument(level);
foreach (PdfPageBase pdfPage in originalDocument.Pages)
{
var size = pdfPage.Size;
var convertedPage = document.Pages.Add(size, new PdfMargins(0));
pdfPage.CreateTemplate().Draw(convertedPage, 0, 0);
}
document.Save(Path.Combine(convertedFilePath, convertedFileName));
return document;
}
After saving the pdf, the property document.Conformance is equal to PdfConformanceLevel.None
Even if I set the property to PdfConformanceLevel.Pdf_A1B, after
- Code: Select all
document.Save(Path.Combine(convertedFilePath, convertedFileName));
When we tried to convert to Pdf_A1A, the document is saved but it is not recognized as PDF/ A document
I enclosed the PDF we are using (original: PDF Test avec une signature.pdf), the Pdf_A1A (PdfTestAvecUneSignature - A1A) and Pdf_A1B (PdfTestAvecUneSignature - A1B) versions
Thanks in advance.