java - Setting the view of PDf file by 75% -


i want pdf file creating using itext-java open 75% view. mean magnification percent should preset 75%. how can done?

you have several options influence viewer preferences,

writer.setviewerpreferences(pdfwriter.fitwindow); 

however may see in jdoc there no option directly set zoom level. options have:

  1. use open parameter:

    commandline: acrord32.exe /a "page=8=zoom=75=openactions" "c:\your_document.pdf"

    url: http://partners.adobe.com/public/developer/en/acrobat/pdfopenparameters.pdf#page=5&zoom=75

  2. set openaction javascript:

    pdfaction action = pdfaction.javascript("", writer); writer.setopenaction(action);

please note 2nd option e.g pdf/a files javascript forbidden and/or may disabled/unsupported viewers.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -