Page 1 of 1

margin problem PurePdf

Posted: Wed May 08, 2013 3:46 pm
by malo
Hello

(sorry for English: google translation)

I use PurePdf library to create a document, but I have a problem when I want
make information, test here as part of the bottom page.

If I go beyond 276 pdf_SetXY (20.276), the information is found
on the next page.

I can not raise the frame and the document must be on a single sheet.
I know this is possible because I have a document on which there is the presentation.

Are there a way around this low margin or add an option in pdf_SetMargin?

Thank you in advance for your answers

Code: Select all


pdf_Create("P","mm",#PDF_PAGE_FORMAT_A4)
pdf_SetFont("Arial","",8)
pdf_AddPage()
pdf_SetMargins(0,0,0)
pdf_Rect(1,1,208,295)

pdf_Rect(10,280,190,10)
pdf_SetXY(20,276)
pdf_Write(0,"test")

pdf_Save("Test.pdf")
RunProgram("Test.pdf")



Re: margin problem PurePdf

Posted: Wed May 08, 2013 11:41 pm
by IdeasVacuum
There is an issue with margins, for example you cannot set an A4 sized image in an A4 sized document with the lib - I never had the time to figure out why, just scaled/cropped the images a little.

Everyone hates double posting but your post needs to go here:
http://www.purebasic.fr/english/viewtop ... 55#p409255

Re: margin problem PurePdf

Posted: Thu May 09, 2013 7:29 am
by malo
Ok thank you, I think I'll be stuck with these stories margin.
I have to repost the link you gave me?

Re: margin problem PurePdf

Posted: Thu May 09, 2013 2:39 pm
by Num3
You have to disable autopagebreak or lower it's value ...

Code: Select all

pdf_SetAutoPageBreak(0,0)

Re: margin problem PurePdf

Posted: Fri May 10, 2013 9:00 am
by malo
Ok thank you this is what I wanted