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:
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
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
Post a Comment