You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Matthew Self <ma...@mself.com> on 2017/11/25 14:59:10 UTC

Fwd: Exception when extracting text on one Mac, but not on another

Hi,

    When I try to extract text from this PDF
<https://mself.box.com/s/o8ye6vli9jcua0i08dswgdqg723eyrgx> with 2.0.7 on my
Mac, I get the following exception:

java.lang.UnsupportedOperationException: TTF fonts do not have a CFF table

When I run it on my other Mac, I do get the extracted text, although I see
this warning:

WARNING: Using fallback KozMinPr6N-Light for CID-keyed font Ryumin-Light"


I checked, and the second Mac has Ryumin-Light installed, but the first Mac
does not.

Is this expected behavior?  Could it be that the font mapper is selecting
an OTF font as the fallback on the first Mac?

Thank you for any info...

        --Matthew

Re: Exception when extracting text on one Mac, but not on another

Posted by Matthew Self <ms...@gmail.com>.
Correction: I meant to say that the Mac where text extraction works has KozMinPr6N-Light installed.  Neither computer has Ryumin-Light installed. 


Sent from my iPhone

> On Nov 25, 2017, at 9:59 AM, Matthew Self <ma...@mself.com> wrote:
> 
> Hi,
> 
>     When I try to extract text from this PDF with 2.0.7 on my Mac, I get the following exception: 
> java.lang.UnsupportedOperationException: TTF fonts do not have a CFF table
> 
> When I run it on my other Mac, I do get the extracted text, although I see this warning:
> 
> WARNING: Using fallback KozMinPr6N-Light for CID-keyed font Ryumin-Light"
> 
> I checked, and the second Mac has Ryumin-Light installed, but the first Mac does not.
> 
> Is this expected behavior?  Could it be that the font mapper is selecting an OTF font as the fallback on the first Mac?
> 
> Thank you for any info...
> 
>         --Matthew
> 

Re: Fwd: Exception when extracting text on one Mac, but not on another

Posted by Tilman Hausherr <TH...@t-online.de>.
Please retry with 2.0.8 and post the stack trace.

If possible, work with the source and set a breakpoint in OpenTypeFont 
where the exception comes. Then find out the name of that font. This way 
I could try to reproduce the effect, if I have that font.

On windows, I get "Using fallback MS-Mincho for CID-keyed font 
Ryumin-Light" and rendering is blank.

Tilman

Am 25.11.2017 um 15:59 schrieb Matthew Self:
> Hi,
>
>      When I try to extract text from this PDF
> <https://mself.box.com/s/o8ye6vli9jcua0i08dswgdqg723eyrgx> with 2.0.7 on my
> Mac, I get the following exception:
>
> java.lang.UnsupportedOperationException: TTF fonts do not have a CFF table
>
> When I run it on my other Mac, I do get the extracted text, although I see
> this warning:
>
> WARNING: Using fallback KozMinPr6N-Light for CID-keyed font Ryumin-Light"
>
>
> I checked, and the second Mac has Ryumin-Light installed, but the first Mac
> does not.
>
> Is this expected behavior?  Could it be that the font mapper is selecting
> an OTF font as the fallback on the first Mac?
>
> Thank you for any info...
>
>          --Matthew
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org