Welcome Guest Search | Active Topics | Sign In | Register

different page margins for every page inside a document? Options
Kristian
Posted: Monday, June 30, 2014 8:05:31 AM
Rank: Newbie
Groups: Member

Joined: 6/30/2014
Posts: 1
Hi,

I am using the HtmlToPdf converter and I'm trying to set different margins for every single page inside a pdf document. I tried the BeforeRenderPage - PdfPageEventHandler, but I cannot redefine the OutputArea of the HtmlToPdf. The converter just ignores my settings. Is there another way?


All the best,
Kristian
eo_support
Posted: Monday, June 30, 2014 11:10:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

No. You won't be able to do that unless you do multiple conversions. Within each conversion, the page width has to be the same. This is similar to a browser window on screen won't have different sections with different width. Another reason is When BeforeRenderPage is called, the conversion are already done in memory. So you won't be able to change anything at that point. You can only add additional output at this point.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.