You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2025/07/15 17:37:00 UTC
[jira] [Resolved] (PDFBOX-6032) Issues encountered while customizing "PDImageXObject"
[ https://issues.apache.org/jira/browse/PDFBOX-6032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-6032.
-------------------------------------
Fix Version/s: 3.0.6 PDFBox
4.0.0
Assignee: Tilman Hausherr
Resolution: Fixed
Thanks everybody!
> Issues encountered while customizing "PDImageXObject"
> ------------------------------------------------------
>
> Key: PDFBOX-6032
> URL: https://issues.apache.org/jira/browse/PDFBOX-6032
> Project: PDFBox
> Issue Type: Wish
> Components: PDModel
> Affects Versions: 3.0.5 PDFBox
> Reporter: Ilgoo Kim
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 3.0.6 PDFBox, 4.0.0
>
>
> In my team, we are using PDFBox to add an PDF-export feature to our editor service.
> Unfortunately the performance does not meet our expectations, especially when LosslessFactory is invoked within the "createFromByteArray" function of PDImageXObject.
> Therefore we customized the "createFromByteArray" function to favor JPEGFactory over LosslessFactory in order to improve performance, even at the cost of some image quality loss. (based on the criteria through a pixel-by-pixel alpha check)
> However, bringing the "createFromByteArray" function into our project introduces a problem: since "PNGConverter" is not public, we are forced to copy the entire "PNGConverter" class into our codebase as well.
> I was wondering if it would be possible to make the "PNGConverter" class public, or alternatively, if there is a recommended way to better customize the "createFromByteArray" function.
> Thank you.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org