Hi Dominik,

I'm not so sure - my problem were errors reading some errors in other 
PDF files generated from Libharu. So I wasn't sure if reading or writing 
wasn't ok...

Best regards,

Patrik

Dominik Seichter schrieb:
> 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
>>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> 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


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