asp.net mvc pdf viewer free : Adjust size of pdf file application Library tool html .net wpf online nitro-pro-9-user-guide-en14-part1901

125
©Nitro
LocateJavaScripts
Whetheryouwritescriptsinyourowndocuments,orbrowsefilesforscriptstoexamine,youfirstneedto
knowwheretolookforJavaScripts.InNitroPro9youcanfindJavaScriptsinthefollowinglocations:
Fieldscripts
JavaScriptscanbeusedwithallfieldtypes.InallfieldsyoucanaddscriptsintheSetActionsproperties.In
signaturefieldsyoucanaddJavaScriptsinboththeSetActionpropertiesandintheSignedproperties.By
farthemostopportunityyouhaveforaddingscriptsinfieldpropertiesiswithtextfields.Intextfieldsyou
canaddscriptsto:
l
Formatproperties.OpentheFormatpropertiesandselectCustomfromtheSelectformatcat-
egorydropdownmenu.JavaScriptsareaddedtocreateaCustomFormatScriptandCustomKey-
strokeScript.
l
Validate.OpentheValidatepropertiesandselectUsecustomvalidationscripttoadda
JavaScripttovalidatefielddata.
l
Calculate.TheCalculatepropertiesarelikelytobethemostfrequentareawhereJavaScriptsare
created.Youcanwritescriptsintwoareas.ClicktheSimplifiedfieldnotationbuttonandyoucan
writescriptsusingsyntaxsimilartospreadsheetformulas.ClicktheCustomcalculationscriptand
youcanwriteJavaScriptstocalculatefielddata.
l
AddAction.Liketheotherfields,textfieldssupporttheRunJavaScriptactiontype.
JavaScriptconsole
YoucanopentheJavaScriptConsoleandwriteascriptthatdoesn’tbelongtoanyfieldorelement.Scripts
writtenintheJavaScriptConsolecanbeusedtotestroutinesanddebugcode.
DocumentActions
Opening,savingandprintingPDFsarealldocumentactions.JavaScriptscanbewrittenwhenthese
actionsoccur.ToaddaDocumentAction,gototheFormsribbontab,intheJavaScriptgroup,click
DocumentActions.
DocumentlevelJavaScripts
AdocumentlevelJavaScriptcanbeafunctionthatotherscriptscallinsubroutines.Thesescriptsare
containedatthedocumentlevelandcanbeexecutedbyanotherscriptorwhenopeningafile.
FolderlevelJavaScripts
AfolderlevelJavaScriptislocatedoutsideofthePDFfile(ina.jsfile)andcanbeusedbymorethanone
PDF.WhenNitroPro9isopenedthescriptsarerun.
NitroPro9-UserGuide
Adjust size of pdf file - Compress reduce PDF size in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
C# Code & .NET API to Compress & Decompress PDF Document
adjust pdf size preview; change file size of pdf
Adjust size of pdf file - VB.NET PDF File Compress Library: Compress reduce PDF size in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET PDF Document Compression and Decompression Control SDK
adjusting page size in pdf; change font size in pdf file
126
©Nitro
CopyandpasteJavaScripts
JavaScriptscanbecopiedandpastedfromonefieldorotherlocationinaPDFdocumentorbetweentwo
documents.IfyouexaminePDFfilesforlearningJavaScriptprogramming,youcanbrowsePDFfiles
containingscripts,copyascriptfromadocumentyoudownloadfromtheInternet,andpastethecode
intotheJavaScriptEditorinyourdocument.Withalittlecodemodification,youcanquicklyaddscriptsto
yourownfiles.
TocopycodebetweenPDFfilesjustopenthembothinNitroPro9.
NitroPro9-UserGuide
VB.NET Image: How to Draw Annotation on Doc Images with Image SDK
like multi-page TIFF, Microsoft Office Word and PDF file). that, you are also able to adjust various image the annotation shapes, the outline size (width and
pdf text box font size; advanced pdf compressor
C# Image: Zoom Image and Document Page in C#.NET Web Viewer
jpeg), gif, bmp (bitmap), tiff / multi-page tiff, PDF, etc. APIs for Visual C# .NET developers to adjust the image & document page viewing size with this
change file size of pdf document; pdf change page size
127
©Nitro
AddoreditfolderlevelJavaScript
FolderlevelJavaScriptsareJavaScriptfiles(.JS)thatarerunduringapplicationstartup.Thesecanbe
usefulforloadingreusableJavaScriptfunctionsintotheapplication,oraccessingmethods/properties
whosesecurityrestrictionsonlyallowthemtoberunintheapp/initevent.
Simpleexamplesincludeloadingtheuser'sWindowsloginintoaglobalJavaScriptvariableatstartup,or
loadingalistofemployeenamesfromyourcompanyintoaJSarrayatstartupwhichcanbeusedbythe
formsthatareopenedinNitroPro9.
ToaddoreditafolderlevelJavaScript
1. OpenNitroPro9
2. OntheFormsribbontab,intheJavaScriptgroup,clickFolderLevel
3. AddJSfilestothefolderoreditexistingones
NitroPro9-UserGuide
VB.NET Image: VB.NET Code to Create Watermark on Images in .NET
font type "Times New Roman", size "16", and style "Bold"), and then adjust brush color provide powerful & profession imaging controls, PDF document, tiff
change font size on pdf text box; change font size fillable pdf
C# PDF Convert: How to Convert Word, Excel, PowerPoint, Tiff
for image size. Able to adjust and customize image resolution to meet various C# PDF conversion requirements. Conversion from other files to PDF file can be
batch pdf compression; best pdf compression tool
128
©Nitro
DocumentlevelJavaScript
YoucanuseJavaScripttoaddanalmostinfinitenumberofinteractivefeatures,createcomplexcalculation
formulas,andaddmoredynamicfunctionalitytoyourPDFs.
Documentlevelscriptsareusedtoaddfunctionsfromwhichotherscriptscanreuseroutinesthroughout
aPDFfile.YoucanalsousedocumentlevelJavaScriptstoinvokeactionswhenafileopens.
TowriteadocumentlevelJavaScript
1. OpenthePDFinNitroPro9
2. OntheFormsribbontab,intheSetupgroup,clickthearrowbeneaththeJavaScriptbuttonand
thenclickDocumentLevel
3. ClickNew,andtypeanamefortheJavaScript
4. IntheJavaScriptEditordialog,enteryourcode.Intheexamplebelow,asimpleroutineiscreated
thatopensanalertdialogboxeachtimethefileopensThecodeusedis:
var msg = “Created in Nitro Pro”;
app.alert(msg);
5. ClickOK.Ifyourscriptwaswrittenproperly,adialogboxshoulddisplayeachtimethefileisopened
NitroPro9-UserGuide
C# PDF: Use C# APIs to Control Fully on PDF Rendering Process
0, 0, originalWidth, originalHeight), size); // adjust with a 0, originalWidth / 2, originalHeight), new Size(originalWidth / 2 tool to convert PDF document to
change font size in fillable pdf form; change font size pdf comment box
C# PowerPoint: How to Set PowerPoint Rendering Parameters in C#
this SDK to render PowerPoint (2007 or above) slide into PDF document or Generally, you are allowed to set image resolution, image size, batch conversion and
pdf file size limit; best online pdf compressor
129
©Nitro
AddoreditcustomcalculationJavaScript
Anyformyoucreatethatrequirescalculationsislikelytorequirecustomcalculationscripts.Theoptions
youhaveavailablewithpresetcalculationformulasarelimitedtosimplemultiplicationandaddition.
Otherkindofcalculationyouneedrequireswritingascript.
Towriteacalculationscript
1. OpenthePDFinNitroPro9
2. OntheFormsribbontab,intheFieldsgroup,clickTextField
3. Selectthetextfieldtoedit
4. Right-clickandselectProperties
5. ClicktheCalculatetab
6. ClicktheCustomcalculationscriptoption,andthenclicktheEditbutton
7. Typethecodeforyourscript.Intheexamplebelow,asimpleroutineiscreatedtocalculatesales
taxata7.25%rate.Thecodeusedis:
var f = this.getField(“subtotal”);
event.value = Math.round(f.value 7.25)/100;
8. ClickOK
NitroPro9-UserGuide
View Images & Documents in Web Image Viewer | Online Tutorials
page document or image file, like Word, PDF or TIFF three different APIs for adjusting image viewing size. btnFitWidth API allows developers to adjust the width
change font size pdf document; acrobat compress pdf
VB.NET Image: Image Resizer Control SDK to Resize Picture & Photo
VB.NET Code for Adjusting Image Size. In order to resizer control add-on, can I adjust the sizes of powerful & profession imaging controls, PDF document, image
change font size pdf; change font size pdf form reader
130
©Nitro
Addasimplifiedfieldnotation
SimplifiedfieldnotationiswrittenmorelikeformulasyouaddinspreadsheetapplicationslikeMicrosoft
Excel.Writinganotationisoftenaneasiersolutionwhenaddingcalculationscripts.
ToaddaSimplifiedfieldnotation
1. OpenthePDFinNitroPro9
2. OntheFormsribbontab,intheFieldsgroup,clickTextField
3. Selectthetextfieldtoedit
4. Right-clickandselectProperties
5. ClicktheCalculatetab
6. ClicktheSimplifiedfieldnotationoption,andthenclicktheEditbutton
7. Typethecodeforyourscript.Inthisexample,thesamecalculationforcreatingsalestaxisadded.
ThecodeintheJavaScriptEditoriswrittenasfollows:
subtotal .0725;
8. ClickOK
NitroPro9-UserGuide
C# Word: How to Draw Text, Line & Image in C#.NET Word Project
copy the sample codes below to adjust text properties such as image color, picture size, location of powerful & profession imaging controls, PDF document, image
pdf compression; can pdf files be compressed
VB.NET Excel: VB Methods to Set and Customize Excel Rendering
on the fixed image size ration that the size is limited by Adjust Image Scaling Factor. supports converting Excel to other document files, like PDF with online
adjust pdf page size; can a pdf file be compressed
131
©Nitro
UsetheJavaScriptconsole
YoucanopentheJavaScriptConsoleandwriteascriptthatdoesn’tbelongtoanyfieldorelement.Scripts
writtenintheJavaScriptConsolecanbeusedtotestroutinesanddebugcode.
TousetheJavaScriptconsole:
l
OntheFormsribbontab,intheSetupgroup,clickthearrowbeneaththeJavaScriptbuttonand
thenclickConsole
NitroPro9-UserGuide
132
©Nitro
ViewoutputandJavaScripterrors
TheOutputPaneallowsyoutoviewanyerrorsrelatedtoJavaScriptordocumentprocesses,andwillopen
automaticallytoalertyouofanyimportantoutputmessages.
ToopentheOutputpane:
l
Onthesidebar,clicktheOutputtab
NitroPro9-UserGuide
133
©Nitro
SupportedJavaScriptObjects
l
App
object
l
Color
object
l
Console
object
l
Event
object
l
Field
object
l
Global
object
l
Identity
object
l
Link
object
l
This
object
l
Util
object
l
OCG
object
NitroPro9-UserGuide
134
©Nitro
Appobject
AstaticobjectthatrepresentsthePDFviewerapplication.
Containsmethodsandpropertiesforinterfacingwiththeapplicationaswellassomeforworkingwith
activedocuments.
Example:Getsthenumberofdocumentsopenanddisplaysitinanalertmessage.
var nDocs = app.activeDocs.length;
app.alert("You have " + nDocs + " documents open.");
Properties
activeDocs
formsVersion
platform
viewerType
viewerVersion
Methods
alert
browseForDoc
goBack
goForward
launchURL
mailMsg
newDoc
openDoc
response
NitroPro9-UserGuide
Documents you may be interested
Documents you may be interested