Hi ,

I have recently started looking at podofo for one of my project that need PDF 
support .

It look like a really great library !!

to get started and make sure all was working ,
I builded the library in my project and replicate the code from the code that 
extract the text from a PDF .

version downloaded from the website : 0.8.0 compiled on Mac .

on some PDF its working fine and I get what I expect but on some other it crash 
.

I have looked into it and fond the cause but I am missing a little bit of 
context to try to fix it :

int : PdfFontFactory.cpp

PdfFont* PdfFontFactory::CreateFont( FT_Library* pLibrary, PdfObject* pObject )
{
......

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

}

This create a PdfFontCID with a NULL pPdfEncoding.

This later leads to issue in the constructor when void PdfFontCID::Init( bool 
bEmbed ) is called and m_pEncoding is NULL .

        // The encoding is here usually a (Predefined) CMap from 
PdfIdentityEncoding:
        m_pEncoding->AddToDictionary( m_pObject->GetDictionary() );
        ^^^^^^^^^^^ is NULL 

I am not sure what to make of the comment , I have try to pass various encoding 
to PdfFontCID , but didn't managed to fix the problem .

Please let me know if there is anything ovious that I am missing .

Damien


------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to