margin problem PurePdf

Just starting out? Need help? Post your questions and find answers here.
malo
User
User
Posts: 22
Joined: Mon Sep 28, 2009 5:19 pm

margin problem PurePdf

Post 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")


IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: margin problem PurePdf

Post 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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
malo
User
User
Posts: 22
Joined: Mon Sep 28, 2009 5:19 pm

Re: margin problem PurePdf

Post by malo »

Ok thank you, I think I'll be stuck with these stories margin.
I have to repost the link you gave me?
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: margin problem PurePdf

Post by Num3 »

You have to disable autopagebreak or lower it's value ...

Code: Select all

pdf_SetAutoPageBreak(0,0)
malo
User
User
Posts: 22
Joined: Mon Sep 28, 2009 5:19 pm

Re: margin problem PurePdf

Post by malo »

Ok thank you this is what I wanted
Post Reply