[
https://issues.apache.org/jira/browse/PDFBOX-6249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18109939#comment-18109939
]
Tim Allison commented on PDFBOX-6249:
-------------------------------------
Y, that makes sense. I don't think we can package ArialUnicode... in our Docker
image.
If you try this with Docker, you'll see the issue (run in a directory
containing the attached PDF):
{noformat}
docker run --rm -v "$PWD":/w -w /w ubuntu:24.04 bash -c '\
apt-get update -q >/dev/null && \
apt-get install -y -q openjdk-17-jre-headless fonts-noto-cjk
fonts-droid-fallback curl >/dev/null && \
curl -sfLO
https://repo1.maven.org/maven2/org/apache/pdfbox/pdfbox-app/3.0.8/pdfbox-app-3.0.8.jar
&& \
java -jar pdfbox-app-3.0.8.jar render -format png -i cjk-cid-repro.pdf'
{noformat}
> 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
>
>
> 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]