DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42136

           Summary: PDFDocumentGraphics2D.translate() does not work
                    correctly with multiple pages
           Product: Fop
           Version: 0.93
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I used the translate() method to move some custom graphics at the beginning of
every PDF page, using PDFDocumentGraphics2D, but if the FIRST call in the page
(after the nextpage()) is the translate(), the next translate() methods at other
pages dont work. 
To make it work correctly I had to place a dummy call after the nextpage(),
"drawline(0,0,0,0);", and then call the translate() method.

example:

THIS DOES NOT WORK:
g2d.translate(0,0);
g2d.drawLine(0,0,100,100)
g2d.nextPage();
g2d.translate(20,20);
g2d.drawLine(0,0,100,100)
g2d.nextPage();

THIS WORKS:
g2d.drawLine(0,0,0,0); //dummy
g2d.translate(0,0);
g2d.drawLine(0,0,100,100)
g2d.nextPage();
g2d.drawLine(0,0,0,0); //dummy
g2d.translate(20,20);
g2d.drawLine(0,0,100,100)
g2d.nextPage();

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to