Bugs item #2606598, was opened at 2009-02-16 20:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=790130&aid=2606598&group_id=154028

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bram Vreugdenhil (bramvreugd)
Assigned to: Nobody/Anonymous (nobody)
Summary: GetFromResources fails when multiple keys in file

Initial Comment:
The call to the function GetFromResources fails when it is used to retrieve a 
font and there are multiple fonts in de PDF.

In my exampele the funtion is called with paramaters "font" and "f0101" but it 
return an error when the GetKey function gets the object of the first font 
which is in my case f0201

PdfObject* pType = m_pResources->GetDictionary().GetKey( rType );

The GetKey function is in the function GetFromResource in the file PDFPage.cpp.

The code I use is in the PDFTextextract example and generated the error below

PdfObject* pFont = pPage->GetFromResources( PdfName("Font"), fontName );
                    if( !pFont ) 
                    {
                        PODOFO_RAISE_ERROR_INFO( ePdfError_InvalidHandle, 
"Cannot create font!" );
                                                PdfError::LogMessage( 
eLogSeverity_Error, 
                                      "The font format is unknown or no 
multibyte encoding defined. \n");
                                                
                                        } 



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=790130&aid=2606598&group_id=154028

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to