[
https://issues.apache.org/jira/browse/PDFBOX-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15719983#comment-15719983
]
Andreas Lehmkühler edited comment on PDFBOX-3000 at 12/4/16 1:54 PM:
---------------------------------------------------------------------
It looks like your last commit (1772377) has a small typo w.r.t. the second
scaling factor:
{code}
- return new Rectangle2D.Double(minX, size.getY() - minY - height,
width, height);
+ return new Rectangle2D.Double(minX - pageSize.getLowerLeftX() *
m.getScalingFactorX(),
+ size.getY() - minY - height + pageSize.getLowerLeftY() *
m.getScalingFactorX(),
+ width, height);
{code}
It should be
{code}
- return new Rectangle2D.Double(minX, size.getY() - minY - height,
width, height);
+ return new Rectangle2D.Double(minX - pageSize.getLowerLeftX() *
m.getScalingFactorX(),
+ size.getY() - minY - height + pageSize.getLowerLeftY() *
m.getScalingFactorY(),
+ width, height);
{code}
Or did I miss something?
was (Author: lehmi):
It looks like your last commit (1772377) has a small typo w.r.t. the second
scaling factor:
{code}
- return new Rectangle2D.Double(minX, size.getY() - minY - height,
width, height);
+ return new Rectangle2D.Double(minX - pageSize.getLowerLeftX() *
m.getScalingFactorX(),
+ size.getY() - minY - height + pageSize.getLowerLeftY() *
m.getScalingFactorX(),
+ width, height);
{code}
It should be
{code}
- return new Rectangle2D.Double(minX, size.getY() - minY - height,
width, height);
+ return new Rectangle2D.Double(minX - pageSize.getLowerLeftX() *
m.getScalingFactorX(),
+ size.getY() - minY - height + pageSize.getLowerLeftY() *
m.getScalingFactorY(),
+ width, height);
{code}
> Transparency Group issues
> -------------------------
>
> Key: PDFBOX-3000
> URL: https://issues.apache.org/jira/browse/PDFBOX-3000
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: John Hewson
> Fix For: 2.1.0
>
> Attachments: 007087-payment-due-p58_reduced2.pdf,
> PDFBOX-1697-reduced-rotations.pdf, PDFBOX-2182_mod.pdf, PDFBOX-3400-RGB.pdf,
> PDFBOX-3494_reduced.pdf, PDFBOX-3494_reduced_cropX.pdf, PDFBOX-3564-Mask.pdf,
> PDFBox3359PanelTestEnhanced.java, PDFJS-2845-p1.pdf,
> PDFJS-5811-2-p3_reduced.pdf, PDFJS-5811-2-p3_reduced4.pdf,
> PDFJS-5811-2-p4_reduced-rotations.pdf, PDFJS-5811-2.pdf,
> PDFJS-5853_reduced.pdf, ds-firewall-enterprise-p1_reduced.pdf,
> gs-bugzilla691157.pdf, gs-bugzilla691157_mod_unc.pdf,
> gs-bugzilla691157_mod_unc.png, gs-bugzilla691348.pdf,
> gs-bugzilla693322_reduced.pdf, gs-bugzilla694556-3.pdf,
> gs-bugzilla695354.pdf, gs-bugzilla695582-transparency-fill-stroke.pdf,
> gs-bugzilla695582-transparency-fill-stroke.pdf-1.png,
> samsung_galaxy_s_4_um-p1_reduced.pdf, softmask-rewrite-alt1.patch,
> softmask-rewrite.patch
>
>
> This is a follow-up issue for transparency group issues from PDFBOX-2423.
> More details to come.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]