Claus Ibsen created CAMEL-27813:
-----------------------------------
Summary: camel-pdf: create ignores a PublicKeyProtectionPolicy,
and every IllegalArgumentException gets a font hint
Key: CAMEL-27813
URL: https://issues.apache.org/jira/browse/CAMEL-27813
Project: Camel
Issue Type: Bug
Components: camel-pdf
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-pdf for CAMEL-23832
(pull request https://github.com/apache/camel/pull/31139).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. create ignores a PublicKeyProtectionPolicy
The create operation reads CamelPdfProtectionPolicy only as a
StandardProtectionPolicy; a PublicKeyProtectionPolicy is ignored, and an
unencrypted PDF is written without an error.
Proposed change: accept any ProtectionPolicy, as PDFBox does.
h4. 2. A misleading font hint on every IllegalArgumentException
The producer adds a hint about the font to every IllegalArgumentException, also
when the cause is not the font.
Proposed change: add it only for the font errors.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)