Greetings,

 

I am trying to figure out how to apply the PDF/X-1a PDF compliance using the
iTextSharp API for ASP.NET 4.0. I am using the Adobe Preflight tool to
verify the compliance of a PDF file
(http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109
794195ff-7b7f.w.html). The code below shows the steps I've taken in an
attempt to do so.

 

[BEGIN]

 

Document doc = new Document();

 

// Path to the existing PDF

string strFullDropPath = "C:\\test.pdf";

 

// Open existing non-PDF/X compliant pdf file

PdfWriter writer = PdfWriter.GetInstance(doc, new
FileStream(strFullDropPath, FileMode.Open));

 

// Apply the PDF/X-1a compliance

writer.PDFXConformance = PdfWriter.PDFX1A2001;

writer.Close();

 

[END]

 

Thanks in advance!

Paul

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to