[
https://issues.apache.org/jira/browse/PDFBOX-3100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004437#comment-15004437
]
John Hewson commented on PDFBOX-3100:
-------------------------------------
You can't, but the idea behind that line is that its clearing the crop box
prior to painting. Are we doing this incorrectly? Or is there some other use
case which you're trying to satisfy - if so what?
> Allow flexible calling of PageDrawer
> ------------------------------------
>
> Key: PDFBOX-3100
> URL: https://issues.apache.org/jira/browse/PDFBOX-3100
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: simon steiner
> Attachments: newpdfbox.patch
>
>
> You used to be able to do:
> PageDrawer drawer = new PageDrawer(null);
> drawer.drawPage(g2d, page, mediaBox);
> Now you have to do:
> new PDFRenderer(doc).renderPageToGraphics(1, g2d);
> I don't want to use pdfbox PDFRenderer.renderPage impl, due to my custom
> renderer.
> I cant do as PageDrawerParameters has private constructor:
> PageDrawerParameters parameters = new
> PageDrawerParameters(new PDFRenderer(pdDocument), page);
> PageDrawer drawer = new PageDrawer(parameters);
> drawer.drawPage(g2d, mediaBox);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]