Hi Ronny,

Does this problem appear with the latest PoDoFO trunk?
I checked in some fixes lately (after 0.8.1) that should address this problem.
If the problem still persists with trunk, I will see if your code is 
necessary. 

Regards,
        Dominik

Am Donnerstag 19 August 2010 schrieb [email protected]:
> Hi,
> 
> in my case i have a pdf with incremental updates.
> Serval objects are read from stream.
> In my pdf file there are same objects (same obj number) in different
>  streams. The result is that the m_vecObjects contains also double obj with
>  the same number. The result pdf file cannot be read by the Adobe Acrobat
>  9, but by the Adobe Acrobat 8. Adobe 8 is automatically correct the pdf
>  file.
> 
> Ich have change the code of the ReadObjectFromStream function in
>  PdfParser.cpp and it worked for my case:
>  if(m_vecObjects->GetObject(PdfReference( static_cast<int>(lObj), 0LL ))) {
>           std::cout << "Object: " << lObj << " is double." << std::endl;
>           delete m_vecObjects->RemoveObject(PdfReference(
>  static_cast<int>(lObj), 0LL ),false); }
> m_vecObjects->push_back( new PdfObject( PdfReference(
>  static_cast<int>(lObj), 0LL ), var ) );
> 
> Important: Do not RemoveObject with bMarkAsFree=true cause the xref table
>  will written wrong.
> 
> The PDF Spec says that every object has an unique number. Is the source pdf
>  wrong or parse PoDoFo the file in a wrong way ?
> 
> Thanks.
> Best Regards
> 


-- 
**********************************************************************
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
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to