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
|
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!
|