Welcome Guest Search | Active Topics | Sign In | Register

default zoom to 100% Options
naman
Posted: Thursday, February 28, 2013 4:07:51 PM
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
eo_support
Posted: Thursday, February 28, 2013 4:47:39 PM
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.aspx

But 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.aspx
http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfoptions.autofity.aspx

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.