Hi,
I 've changed method of PageSize at line 829:
IF nSize == 0 .or. nSize > 2
with:
IF nSize == 0
I don´t know why this contition is placed there.
Now, works fine in portrait and landscape modes.
Thanks Maurilio and Jaroslaw
Best Regards
David Montaño.
----- Original Message -----
From: "David MS" <da...@gesintur.com>
To: "David MS" <da...@gesintur.com>
Sent: Monday, May 24, 2010 10:13 AM
Il 22/05/2010 13.32, Jaros³aw K¹dzio³a ha scritto:
Hi,
function main()
local oPdf
oPdf := tPdf():New( 'test.pdf' )
oPdf:NewPage( "A4", "P", 6 )
oPdf:Center("Test")
oPdf:Close()
return nil
The "test.pdf" file has always the same size: 8,5 in. x 11 in., althoug
replacing "A4" by "LETTER", "A3"...etc
I'm using :
HPDF_Page_SetHeight()
HPDF_Page_SetWidth()
Hi, the question is about hbvpdf, not hbhpdf.
AFAIR hbvpdf don't cover the change of the page size, also if ther'is an
array storing the paper dimensions. Any change to the page type don't
results in a true recalculation of the layout.
I suggest to David, as Viktor saw to me, to use hbhpdf.
Best regards.
Maurizio
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour