Hi Ulrich, Thanks for reporting this issue. I started today with refactoring parts of the relevant code, which will help me to solve the problem. I will still need some time to fix this completely, but I'll let you know, once I am done.
Best regards, Dom Am Montag 31 Mai 2010 schrieb Ulrich Simon: > Hello! > > I discovered an issue in the PdfContents class: > > PdfContents::PdfContents( PdfPage* pParent ) > > : PdfElement( NULL, pParent->GetObject()->GetOwner() ) > > { > // TODO: Maybe create this only on demand > *pParent->GetObject()->GetDictionary().AddKey( "Contents", > m_pObject->Reference() );* > mContObj = m_pObject; > } > > The "TODO" is right. Otherwise the current code produces incorrect PDFs. > > My example document does not have an "Content" on its pages. There are > only annotations. > When an empty "Contents" Object is created, Ghostscripts fails on > generation of an preview > (an ugly postscript dump is made). > > In addition I ran a syntactical preflight check with Adobe Professional. > I added the report > as an attachment (german). > > The bottom line is, I can not use ghostscript as long as this object is > created. The best way > is as the "TODO" suggests. For now I only removed that "...AddKey..." > line. And everything > is fine :-) . > > Ulrich > -- ********************************************************************** Dominik Seichter - domseich...@web.de KRename - http://www.krename.net - Powerful batch renamer for KDE KBarcode - http://www.kbarcode.net - Barcode and label printing PoDoFo - http://podofo.sf.net - PDF generation and parsing library SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE Alan - http://alan.sf.net - A Turing Machine in Java **********************************************************************
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users