Bugs item #2606598, was opened at 2009-02-16 20:13
Message generated for change (Comment added) made by domseichter
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: Closed
>Resolution: Out of Date
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");
                                                
                                        } 



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

>Comment By: Dominik Seichter (domseichter)
Date: 2010-10-21 18:05

Message:
This is over a year old ... sorry, we did not take care of this earlier.
If the problem still persists, please send a test case to the mailing list
or reopen the bug.

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

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

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to