Is there a way to find out if the loaded pdf is a PDF/X?

Q:
Is there a way to find out if the loaded pdf is a PDF/X?

A:

If you use pdfdraw.SetOverprint(PDFRasterizer.OverprintPreviewMode.e_op_pdfx_on), PDFNet will check PDF/X itself to decide whether to enable/disable overprint.

Alternatively you can also use PDFNet to check for PDF/X flag as follows:

Obj info = doc.GetTrailer().FindObj(“Info”);
Obj pdfx = info.FindObj(“GTS_PDFXConformance”);
if (pdfx!=null && pdfx.IsString()) {
… this file is tagged as pdf/x
}