Currently I am trying to create a PDF file with the conformance level A-1a with iText for C#. This is what I have so far:
var exportFolder = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
var exportFile = System.IO.Path.Combine(exportFolder, "Test.pdf");
var writer = new PdfWriter(exportFile);
var pdf = new PdfDocument(writer);
var document = new Document(pdf);
document.Add(new Paragraph("Hello World! Tom"));
document.Close();
How am I able to set the conformance level for this?
EDIT
I found this in their documentation: https://developers.itextpdf.com/content/itext-7-jump-start-tutorial-net/chapter-7-creating-pdfua-and-pdfa-documents
But I don't get what I have to replace INTENT with in the third line of code. Is someone able to give me a full example with only a single line of Hello World. It doesn't necessarily has to be iText. I am open for other tools.
.icmfile for you to download and use with the code example in the first link. INTENT holds the path to the .icm file for the stream. You could just as easily loaded it up into a memory stream rather than from disk. - Nkosi