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

33 visualizações
Pular para a primeira mensagem não lida

Support

não lida,
9 de jan. de 2013, 20:00:5309/01/2013
para 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
}

Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem