Convert PDF to PDF/A in batch


We’ve just bought the licence for PDF NET SDK, but I can’t find at the documentation how to convert documents in PDF/A in batch.

I’ve found that PDFTron PDFA_MANAGER is able to do this, but I thought this add-on was included in PDFNet. If not, how can I use pdfnet sdk to do that in batch?


The conversion (i.e. PDF to PDF/A) functionality is the same (in PDFNet and PDF/A Manager), however the API-s are different. In case of PDFNet, you would need to write the code to iterate through a given folder. Fortunately .NET API makes this fairly simple:

To be more specific:

public static void ProcessDir(string sourceDir)


string [] fileEntries = Directory.GetFiles(sourceDir);

foreach(string fileName in fileEntries) {

… use pdftron.PDF.PDFA.PDFACompliance to convert PDF to PDF/A


// Recurse into subdirectories of this directory.

string [] subdirEntries = Directory.GetDirectories(sourceDir);

foreach(string subdir in subdirEntries)

// Do not iterate through reparse points

if ((File.GetAttributes(subdir) & FileAttributes.ReparsePoint)!= FileAttributes.ReparsePoint)

ProcessDir(subdir, doc, w, b);