
That looks nice. So what is the problem?
What's wrong with scale factors? That's how you fit different size stuff onto graphs which go on the same size screen.
As far as 'upside downing'.... I just did this with the Haru PDF library. I am USED TO and PREFER to have the origin (0,0) at the upper left, working in inches.
Haru wants Origin at LOWER left, measuring in points . Two dinky little functions solved the whole thing:
Code:
FUNCTION TO_XPOINT ( inches AS SINGLE) PRIVATE AS HPDF_REAL FUNCTION = inches * 72! END FUNCTION ' convert Y in INCHES FROM TOP OF PAGE ' to PDF points FROM BOTTOM OF PAGE ' A page is %PAGE_HEIGHT_POINTS high FUNCTION TO_YPOINT (inches AS SINGLE) PRIVATE AS HPDF_REAL FUNCTION = %PAGE_HEIGHT_POINTS - (inches * 72!) END FUNCTION
Code:
' new page needed ' first print a $LIT_CONTINUED at designated place on THIS page x2 = %X_CONTINUED/100! + lMargin [COLOR="Red"] xPos = TO_XPOINT(X2)[/COLOR] Y2 = Y2 + %CY_LI_LINES/100 [COLOR="Red"]Ypos = TO_YPoint ( Y2)[/COLOR] szText = $LIT_CONTINUED
MCM
Leave a comment: