You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "JiriOndrusek (via GitHub)" <gi...@apache.org> on 2026/10/13 08:42:30 UTC
[I] pdf: Identity-H text extraction fails in native mode, FontBox CMap resources missing [camel-quarkus]
JiriOndrusek opened a new issue, #9323:
URL: https://github.com/apache/camel-quarkus/issues/9323
Extracting text in native mode from a PDF using the `Identity-H` encoding fails with HTTP 500:
```
java.io.IOException: Could not find referenced cmap stream Identity-H
```
JVM mode works.
**Cause**
FontBox loads predefined CMaps from `org/apache/fontbox/cmap/` with names built at runtime, so GraalVM does not embed them automatically. No `org/apache/fontbox/cmap` resources are in the native image.
**Fix**
Register the directory in `PdfProcessor`:
```java
new NativeImageResourceDirectoryBuildItem("org/apache/fontbox/cmap")
```
Add a native test extracting text from an `Identity-H` PDF.
Related: #9091, #9087
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] pdf: Identity-H text extraction fails in native mode, FontBox CMap resources missing [camel-quarkus]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton closed issue #9323: pdf: Identity-H text extraction fails in native mode, FontBox CMap resources missing
URL: https://github.com/apache/camel-quarkus/issues/9323
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org