Tilman Hausherr created PDFBOX-5450:
---------------------------------------
Summary: Create Opaque PDFRenderer example
Key: PDFBOX-5450
URL: https://issues.apache.org/jira/browse/PDFBOX-5450
Project: PDFBox
Issue Type: Improvement
Affects Versions: 2.0.26
Reporter: Tilman Hausherr
Assignee: Tilman Hausherr
Fix For: 2.0.27, 3.0.0 PDFBox
To solve the troubles from PDFBOX-4123 (low print quality of PDFs with unneeded
transparency groups)
As mentioned in the mailing list in [this
thread|https://lists.apache.org/[email protected]:2022-3]
{quote}
Both options are related to transparency groups. These are an extension of
XObject forms. I thought about ignoring them, i.e. treat them like ordinary
forms.
So I looked at PDXobject.createXObject(); this one is called by
PDResources.getXObject(), which is called by DrawObject.process(). That one
class can officially be replaced if you extend PageDrawer and call
"addOperator(new DrawObject());" in the constructor; that class should have a
slightly modified code that does NOT call showTransparencyGroup(), but only
showForm() (there are 3 DrawObject classes, copy the one in
org.apache.pdfbox.contentstream.operator.graphics). You can extend PageDrawer,
but you'll have to extend PDFRenderer as well, see class comment of PageDrawer.
{quote}
and implemented by [~tresf] in [this
commit|https://github.com/qzind/tray/blob/2a275bb729a3cf4b909fd683fbe23f7c1f8d4c2b/src/qz/printer/action/pdf/OpaquePDFRenderer.java].
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]