Menu

#2 Problem to draw rectangles in LANDSCAPE-

open
nobody
None
5
2002-04-12
2002-04-12
Anonymous
No

Problem to draw rectangles in LANDSCAPE-Format.

gnujpdf-1.5 and retepPDF version 1.1.1, JDK 1.2

The left edges of a rectangle are at X.
If you create a PDF-Page in LANDSCAPE-Format, it is
not possible to draw a rectangle or a Line in the left
page-site :

-----------------------
I I
I XX I
I XX I
I XX I
I I
-----------------------

PDFjob.getCurrentPage().setMedia(pagesize);
if (LANDSCAPE)
PDFjob.getCurrentPage().setOrientation
(PDFPage.LANDSCAPE);
.
.
g.drawRect(x, y, width, height);

No problem, if the page is in PORTRAIT orientation.
No Workaround with drawLine().

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.