apache / apache/camel-quarkus

camel-quarkus-pdf: register PDFBox's resource directory instead of a hand-listed constant

Open
#9,091 0 comments 0 reactions 1 assignee Claimed by @JiriOndrusek View on GitHub
area/native area/pdf native
Dominant language
Java
Stars
302
Forks
232
Avg merge
1d 20h
Merged PRs (30d)
113

Description

`camel-quarkus-pdf` registers PDFBox's native resources from a hand-listed constant, `PdfProcessor.RUNTIME_RESOURCES`. It has drifted: it names `icc/ISOcoated_v2_300_bas.icc`, which PDFBox 3.0.8 replaced with `icc/CGATS001Compat-v2-micro.icc` — so it registers a resource not in the jar and misses the real ICC profile (latent native failure for PDFs that load the default output-intent profile).

Fix: replace the list with `NativeImageResourceDirectoryBuildItem("org/apache/pdfbox/resources")`, so native image embeds whatever the jar ships and the set self-heals on upgrades. See #9078 for the same change in `langchain4j-ingest` as an example.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.