[ 
https://issues.apache.org/jira/browse/PDFBOX-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15546189#comment-15546189
 ] 

Tilman Hausherr commented on PDFBOX-3000:
-----------------------------------------

This one
{code}
-            int maxX = (int) Math.floor(bounds.getMaxX()) + 1;
-            int maxY = (int) Math.floor(bounds.getMaxY()) + 1;
+            int maxX = (int) Math.floor(bounds.getMaxX()) - 1; // FIXME: The 
-1 here does not feel right, 
+            int maxY = (int) Math.floor(bounds.getMaxY()) - 1; // but I get 
white lines in the PDF attached to PDFBOX-2104 without this
 
-            width = maxX - minX;
-            height = maxY - minY;
+            width = Math.max(1, maxX - minX);
+            height = Math.max(1, maxY - minY);
{code}
is not helpful at this time, because it makes every rendering different, even 
files where that didn't know had transparency groups.

> 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-3400-RGB.pdf, 
> PDFBOX-3494_reduced.pdf, PDFBox3359PanelTestEnhanced.java, 
> PDFJS-5811-2-p4_reduced-rotations.pdf, 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]

Reply via email to