[ 
https://issues.apache.org/jira/browse/PDFBOX-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13899731#comment-13899731
 ] 

Pat Hickey commented on PDFBOX-1895:
------------------------------------

That's what gets me. Reader displays the file for me (did you load the Japanese 
Font extension?), despite the /CIDtoGIDMap /Identity and missing /FontFile.
 File > Properties > Fonts (or equivalently from the Document Properties menu) 
on the input document shows:
* HeiseiMin-W3
** Type: Type 1 (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: KozMinPr6N-Regular
** Actual Font Type: Type 1 (CID)
* MS-Gothic
** Type: TrueType (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: MSGothic
** Actual Font Type: TrueType
* MS-Mincho
** Type: TrueType (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: MSMincho
** Actual Font Type: TrueType
* MS-PGothic
** Type: TrueType (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: MSPGothic
** Actual Font Type: TrueType
* MS-PMincho
** Type: TrueType (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: MSPMincho
** Actual Font Type: TrueType

But the same reader, after complaining about that it cannot find or create the 
font 'MS-Mincho', has this mapping for the output file:
* HeiseiMin-W3
** Type: Type 1 (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: KozMinPr6N-Regular
** Actual Font Type: Type 1 (CID)
* MS-Gothic
** Type: TrueType (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: MSGothic
** Actual Font Type: Unknown
* MS-Mincho
** Type: TrueType (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: MSMincho
** Actual Font Type: Unknown
* MS-PGothic
** Type: TrueType (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: MSPGothic
** Actual Font Type: Unknown
* MS-PMincho
** Type: TrueType (CID)
** Encoding: UniJIS-UCS2-H
** Actual Font: MSPMincho
** Actual Font Type: Unknown

This is why I think that some hint to Reader has been lost in the translation, 
so to speak.
I'm trying to narrow down the differences between the input/output font 
details...

> Font definitions must precede font references
> ---------------------------------------------
>
>                 Key: PDFBOX-1895
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1895
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 1.8.3, 1.8.4
>            Reporter: Pat Hickey
>
> When re-writing a document with font descriptions, Adobe Reader is unable to 
> display the fonts in the document.  Reader can display the fonts in the 
> original document. The difference is that in the original document, the font 
> descriptions are in lower object numbers than the font references; in the 
> output document, the font descriptions are in higher object numbers than the 
> font references.  Is there a quick way to re-order them?



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to