1 Feb 18:32
pdfseparate PDF/X conform
Thomas Freitag <Thomas.Freitag <at> kabelmail.de>
2012-02-01 17:32:45 GMT
2012-02-01 17:32:45 GMT
Hi! I was surprised that some guys are really using my small tools pdfseparate and pdfunite. So here a small patch which is hopefully also useful for them: patch for psdseparate: Produce PDF/X conform pdf pages if the originally PDF was PDF/X conform. Cheers, Thomas
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index 1c85385..08c7145 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -603,22 +603,38 @@ int PDFDoc::savePageAs(GooString *name, int pageNo) } outStr = new FileOutStream(f,0); - yRef = new XRef(); + yRef = new XRef(getXRef()->getTrailerDict()); countRef = new XRef(); yRef->add(0, 65535, 0, gFalse); writeHeader(outStr, getPDFMajorVersion(), getPDFMinorVersion()); - // get and mark optional content groups - OCGs *ocgs = getCatalog()->getOptContentConfig();(Continue reading)
RSS Feed