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

Tilman Hausherr edited comment on PDFBOX-6249 at 9/1/26 10:00 AM:
------------------------------------------------------------------

This will take a bit longer. First I noticced that it was still using the Droid 
font with the changes. I have then been testing with a font subset that is a 
bit like the one in the docker container by modifiying FontMapperImpl so that 
only Noto and Deja fonts are considered. Then run the rendering tests to see 
which files really fail:

PDFBOX-2309-PDFBOX-147.pdf
PDFBOX-2950.pdf
PDFBOX-5228.pdf

The first one fails because of an incorrectly set "Japan" bit in the NotoSansHK 
font. This is a Chinese font although it does have some CJK Unified Ideographs. 
I'll investigate what happens with the others.


was (Author: tilman):
This will take a bit longer. First I noticced that it was still using the Droid 
font with the changes. I have then been testing with a font subset that is a 
bit like the one in the docker container by modifiying FontMapperImpl so that 
only Noto and Deja fonts are considered. Then run the rendering tests to see 
which files really fail:

PDFBOX-2309-PDFBOX-147.pdf
PDFBOX-2950.pdf
PDFBOX-5228.pdf

The first one fails because of an incorrectly set "Japan" bit in the NotoSansHK 
font. I'll investigate what happens with the others.

> Non-embedded Adobe-GB1/CNS1/Japan1 fonts render as .notdef even when Noto CJK 
> / Source Han fonts are installed
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-6249
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6249
>             Project: PDFBox
>          Issue Type: Task
>          Components: Rendering
>            Reporter: Tim Allison
>            Priority: Minor
>         Attachments: cjk-cid-repro.pdf, image-2026-08-31-18-22-38-997.png, 
> image-2026-08-31-20-35-16-505.png
>
>
> I ran a rendering bake-off with pdftoppm vs PDFBox on the 1k pdfs in [digital 
> corpora 
> 0000.zip|https://digitalcorpora.s3.amazonaws.com/corpora/files/CC-MAIN-2021-31-PDF-UNTRUNCATED/zipfiles/0000-0999/0000.zip]
>  
> There was a small handful of files where pdftoppm and pdfium were handling 
> missing cjk fonts a bit better than PDFBox.
>  
> Specifically: 
> ||file||non-embedded CID font||collection||
> |0000000.pdf|MSungStd-Light-Acro|Adobe-CNS1|
> |0000063.pdf|STSongStd-Light-Acro|Adobe-GB1|
> |0000750.pdf|MSungStd-Light-Acro|Adobe-CNS1|
> |0000877.pdf|KozGoPro-Medium-Acro|Adobe-Japan1|
> |0000908.pdf|MSungStd-Light-Acro|Adobe-CNS1|
>  
> I had Claude generate a small repro file (attached).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to