pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkuehler <andr...@lehmi.de>
Subject Re: Type1C font Error
Date Sun, 23 Jan 2011 11:17:09 GMT
Hi,

Am 20.01.2011 22:21, schrieb Yogesh:
> Hi,
>
> I am still getting the error
>
> org.apache.pdfbox.pdmodel.font.PDFontFactory createFont
> WARNING: Failed to create Type1C font. Falling back to Type1 font
> java.io.IOException: The handle is invalid
Did you update your local PDFbox copy and recompile it?

BR
Andreas Lehmkühler

> On 2 January 2011 13:50, Andreas Lehmkuehler<andreas@lehmi.de>  wrote:
>
>> Hi,
>>
>>
>> Am 05.12.2010 07:31, schrieb Yogesh:
>>
>>   I am getting an IOException, but the StackTrace looks similar.
>>> This does not seem to be resolved yet, or is it?
>>>
>> PDFBOX-708 is resolved in the current trunk (revision 1054449)
>>
>>
>> BR
>> Andreas Lehmkühler
>>
>>
>>   On 5 December 2010 01:05, Hesham G.<heshamgneady@gmail.com>   wrote:
>>>
>>>   Is your problem related to this :
>>>> https://issues.apache.org/jira/browse/PDFBOX-708
>>>>
>>>> Best regards ,
>>>> Hesham
>>>>
>>>>
>>>> ---------------------------------------------
>>>> Included message :
>>>>
>>>>
>>>>   Hello,
>>>>
>>>>>
>>>>> I am trying to extract text from a set of PDF files. I keep getting the
>>>>> following error for some of the files.
>>>>>
>>>>> Dec 4, 2010 7:50:19 PM org.apache.pdfbox.pdmodel.font.PDFontFactory
>>>>> createFont
>>>>> WARNING: Failed to create Type1C font. Falling back to Type1 font
>>>>> java.io.IOException: The handle is invalid
>>>>> at java.io.RandomAccessFile.seek(Native Method)
>>>>> at org.apache.pdfbox.io.RandomAccessFile.seek(RandomAccessFile.java:59)
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96)
>>>>> at java.io.BufferedInputStream.fill(Unknown Source)
>>>>> at java.io.BufferedInputStream.read1(Unknown Source)
>>>>> at java.io.BufferedInputStream.read(Unknown Source)
>>>>> at java.io.FilterInputStream.read(Unknown Source)
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.pdfbox.pdmodel.font.PDType1CFont.loadBytes(PDType1CFont.java:429)
>>>>> at
>>>>> org.apache.pdfbox.pdmodel.font.PDType1CFont.load(PDType1CFont.java:318)
>>>>> at
>>>>>
>>>>> org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:123)
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:124)
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:76)
>>>>> at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:115)
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:243)
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:441)
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:365)
>>>>> at
>>>>>
>>>>> org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:321)
>>>>> at
>>>>> org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:241)
>>>>> at litexpr.text.PDFReader.readPage(PDFReader.java:96)
>>>>> at litexpr.Main2.main(Main2.java:51)
>>>>>
>>>>> How can I add these fonts, whatever they are? Please help.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> -Yogesh
>>>>>
>>>>>
>>>>>
>>>
>>
>


Mime
View raw message