Hi Paddi,

I think, I found out what the issue is. PoDoFo behaves correctly (also with 
your change, which does not make any difference for me).

PoDoFo seems to read different values from mono_orig.pdf, because object 34 0 
R, which contains Frm6 and the BBox which is different for you, was updated. So 
the object appears twice in the file and PoDoFo uses only the new one and also 
writes only the newone to the new file.


Best regards,
        Dom

Am Dienstag 01 Dezember 2009 schrieben Sie:
> Hi Dominik,
> 
> I've done the foolowing patch inside PdfTokenizer.cpp. It works for me but
>  I haven't done a lot of tests:
> 
> EPdfDataType PdfTokenizer::DetermineDataType...
> 
> ...
>         if( eDataType == ePdfDataType_Real )
>         {
>             // DOM: strtod is locale dependend,
>             //      do not use it
>             //double dVal = strtod( pszToken, NULL );
>             double dVal;
> 
>                       std::stringstream buffer(pszToken);
>                       buffer >> dVal;
> 
> /*
>                       m_doubleParser.str( pszToken );
>             if( !(m_doubleParser >> dVal) )
>             {
>                 PODOFO_RAISE_ERROR_INFO( ePdfError_InvalidDataType,
>  pszToken ); }
> */
>             rVariant = PdfVariant( dVal );
>             return ePdfDataType_Real;
>         }
> ...
> 
> Means i replaced m_doubleParser with a imsple stringstream locally...
> 
> Perhaps this helps.
> 
> Best regards,
> 
> Patrik
> 


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

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to