Craig Ringer wrote:

> PoDoFo encounter an error. Error: 2 ePdfError_InvalidHandle
>          Error Description: A NULL handle was passed, but initialized 
> data was expected.
>          Callstack:
>          #0 Error Source: 
> ..\..\..\..\podofo\tools\podofotxtextract\TextExtractor.cpp:104
>                  Information: Cannot create font!
> 
> So as you can see, it's having trouble understanding the font. Not sure 
> why yet, I haven't looked into it.

OK, it looks like podofotxtextract expects to be able to instantiate a 
PdfFont from the embedded font. In the case of "chinese.pdf" there is no 
font embedded; the fonts are instead replaced by Acrobat.

I'll have a look and see what can be done about this. I'm not really 
much good with the contents and fonts side of PDF, though.

> I actually get a crash of podofotxtextract when reading sample3.pdf . 
> Unsure why yet, I'm looking into it now.

OK. The problem is that PdfFontFactory.cpp:163 calls:

     pFont       = new PdfFontCID( pMetrics, NULL, pObject, false );

which tries to construct a PdfFontCID without a PdfEncoding, resulting 
in a crash at /home/craig/build/podofo/src/PdfFontCID.cpp:78 in 
PdfFontCID::Init :

     m_pEncoding->AddToDictionary( m_pObject->GetDictionary() );
     ^^^^^^^^^^^
       is null


I don't know enough about PDF fonts to know what to do about this at 
present, and my fever has come back up so I need to go back to bed. Ideas?

--
Craig Ringer

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to