|
Rank: Advanced Member Groups: Member
Joined: 9/20/2011 Posts: 32
|
How do I change the margins, to say, 0.75" left and right, as default when printing aspx to PDF?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You would set this property: http://doc.essentialobjects.com/library/4/eo.pdf.htmltopdfoptions.outputarea.aspxIt would be something like this: HtmlToPdf.Options.OutputArea = new RectangleF(0.75f, 0.75f, 7f, 9.5f); Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 9/20/2011 Posts: 32
|
Wow - that was easy! Thanks...
Is there also a quick way to: 1) Add Headers & Footers 2) Add Page numbers at bottom right 3) Cause a NEW PAGE (to be placed in underlying html)
If not quick, just point me in the right direction... Thanks much!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can do all those. I would recommend to take a look of the "Using Html to PDF" section in the help file to get a brief idea of what features are there and how they are organized. The sample application also has a lot of samples demonstrating various features. Those should help you greatly while using our product.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 9/20/2011 Posts: 32
|
Thank you!
|
|