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

33 views
Skip to first unread message

Support

unread,
Jan 9, 2013, 8:00:53 PM1/9/13
to pdfne...@googlegroups.com
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
}

Reply all
Reply to author
Forward
0 new messages