PDF page margins and repeaters

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

eddparsons
Ebase User
Posts: 53
Joined: Wed Jan 02, 2013 4:23 pm
Location: Lyndhurst, Hampshire
Contact:

PDF page margins and repeaters

#1

Postby eddparsons » Mon Oct 22, 2018 1:25 pm

Hi,

I have a repeater with fields that contain large amounts of text. When converting the page to a PDF, if the text within a field overflows onto the next page, the PDF top and bottom margins I have set are ignored. Any suggestions on how to get the page margins respected? This is on Ebase v 4.5.4

Regards,
Edd
Image
0 x

Steve
Moderator
Moderator
Posts: 414
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

Re: PDF page margins and repeaters

#2

Postby Steve » Mon Oct 22, 2018 3:16 pm

Hi Edd,

You should be able to specify the margin using CSS3, you can put this in your HTML++ or in the stylesheet:


Code: Select all

<style>
	@page { 
			 margin-top : 60px; 
			 margin-bottom : 60px;
		}
</style>

You can also wrap this in a @media wrapper to make sure if it is specific to print pages:

Code: Select all

<style>
	@media print
	{
		@page { 
			 margin-top : 60px; 
			 margin-bottom : 60px;
		}
	}
</style>
I hope this helps

Steve
0 x

eddparsons
Ebase User
Posts: 53
Joined: Wed Jan 02, 2013 4:23 pm
Location: Lyndhurst, Hampshire
Contact:

Re: PDF page margins and repeaters

#3

Postby eddparsons » Mon Oct 22, 2018 3:22 pm

Perfect, thanks very much Steve. :D

Regards,
Edd
0 x


Who is online

Users browsing this forum: No registered users and 7 guests