Hi, I commited a fix for this problem to SVN. A PdfContents object is only created when the contents of a PdfPage are accessed for the first time.
Regards,
Dom
Am Dienstag 01 Juni 2010 schrieben Sie:
> 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 - [email protected]
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.
------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
