Rank: Member Groups: Member
Joined: 5/22/2012 Posts: 11
|
Hi, I am using HtmlToPdf.ConvertHtml to create my pdf and storing it. The problem occurs when I go and open that pdf, it automatically open at 204% SO is there any way I can set the default zoom to 100% . SO that whenever I open that pdf zoom should be 100%.
Another thing I wanted to know was that what is the formula by which i can decide the length and width of the page in pixels . Since while generating a pdf from html , i wanted to avoid white spaces and knowing the exact pixels will be of great help.
Thanks in advance Naman
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, You will need to use this property to set the viewer preference: http://www.essentialobjects.com/doc/4/eo.pdf.pdfdocument.viewerpreference.aspxBut I do not believe you can set the zoom level. The default width is inch * your screen DPI (usually is 96). However the PDF converter may automatically zooms your HTML page to fit into the PDF page. You can turn this behavior off by setting these two properties to None: http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfoptions.autofitx.aspxhttp://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfoptions.autofity.aspxThanks!
|