asp net pdf viewer user control c# : Break a pdf software SDK dll windows wpf web page web forms nitro-pro-10-user-guide-en15-part188

135
©Nitro
AddoreditcustomcalculationJavaScript
Anyformyoucreatethatrequirescalculationsislikelytorequirecustomcalculationscripts.Theoptions
youhaveavailablewithpresetcalculationformulasarelimitedtosimplemultiplicationandaddition.
Otherkindofcalculationyouneedrequireswritingascript.
Towriteacalculationscript
1. OpenthePDFinNitroPro10
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
NitroPro10-UserGuide
Break a pdf - Split, seperate PDF into multiple files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Explain How to Split PDF Document in Visual C#.NET Application
break pdf into smaller files; a pdf page cut
Break a pdf - VB.NET PDF File Split Library: Split, seperate PDF into multiple files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET PDF Document Splitter Control to Disassemble PDF Document
break a pdf into smaller files; break apart pdf
136
©Nitro
Addasimplifiedfieldnotation
SimplifiedfieldnotationiswrittenmorelikeformulasyouaddinspreadsheetapplicationslikeMicrosoft
Excel.Writinganotationisoftenaneasiersolutionwhenaddingcalculationscripts.
ToaddaSimplifiedfieldnotation
1. OpenthePDFinNitroPro10
2. OntheFormsribbontab,intheFieldsgroup,clickTextField
3. Selectthetextfieldtoedit
4. Right-clickandselectProperties
5. ClicktheCalculatetab
6. ClicktheSimplifiedfieldnotationoption,andthenclicktheEditbutton
7. Typethecodeforyourscript.Inthisexample,thesamecalculationforcreatingsalestaxisadded.
ThecodeintheJavaScriptEditoriswrittenasfollows:
subtotal .0725;
8. ClickOK
NitroPro10-UserGuide
C# PDF Convert: How to Convert Jpeg, Png, Bmp, & Gif Raster Images
Success"); break; case ConvertResult.FILE_TYPE_UNSUPPORT: Console.WriteLine("Fail: can not convert to PDF, file type unsupport"); break; case ConvertResult
break a pdf into separate pages; pdf separate pages
C# Image Convert: How to Convert Word to Jpeg, Png, Bmp, and Gif
RasterEdge.XDoc.PDF.dll. FileType.IMG_JPEG); switch (result) { case ConvertResult. NO_ERROR: Console.WriteLine("Success"); break; case ConvertResult
break pdf into separate pages; break pdf into single pages
137
©Nitro
UsetheJavaScriptconsole
YoucanopentheJavaScriptConsoleandwriteascriptthatdoesn'tbelongtoanyfieldorelement.Scripts
writtenintheJavaScriptConsolecanbeusedtotestroutinesanddebugcode.
TousetheJavaScriptconsole:
l
OntheFormsribbontab,intheSetupgroup,clickthearrowbeneaththeJavaScriptbuttonand
thenclickConsole
NitroPro10-UserGuide
VB.NET PDF Page Insert Library: insert pages into PDF file in vb.
Forms. Support adding PDF page number. Offer PDF page break inserting function. Free SDK library for Visual Studio .NET. Independent
cannot print pdf file no pages selected; break apart a pdf file
C# PDF Page Insert Library: insert pages into PDF file in C#.net
Ability to add PDF page number in preview. Offer PDF page break inserting function. Free components and online source codes for .NET framework 2.0+.
split pdf by bookmark; acrobat separate pdf pages
138
©Nitro
ViewoutputandJavaScripterrors
TheOutputPaneallowsyoutoviewanyerrorsrelatedtoJavaScriptordocumentprocesses,andwillopen
automaticallytoalertyouofanyimportantoutputmessages.
ToopentheOutputpane:
l
Onthesidebar,clicktheOutputtab
NitroPro10-UserGuide
C# TWAIN - Query & Set Device Abilities in C#
device.TwainTransferMode = method; break; } if (method == TwainTransferMethod.TWSX_FILE) device.TransferMethod = method; } // If it's not supported tell stop.
break a pdf file into parts; reader split pdf
C# TWAIN - Install, Deploy and Distribute XImage.Twain Control
RasterEdge.XDoc.PDF.dll. device.TwainTransferMode = method; break; } if (method == TwainTransferMethod.TWSX_FILE) device.TransferMethod = method; } // If it's
break a pdf password; break up pdf file
139
©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
NitroPro10-UserGuide
C# TWAIN - Specify Size and Location to Scan
foreach (TwainStaticFrameSizeType frame in frames) { if (frame == TwainStaticFrameSizeType.LetterUS) { this.device.FrameSize = frame; break; } } }.
add page break to pdf; break pdf into pages
C# TWAIN - Acquire or Save Image to File
RasterEdge.XDoc.PDF.dll. if (device.Compression != TwainCompressionMode.Group4) device.Compression = TwainCompressionMode.Group3; break; } } acq.FileTranfer
split pdf into individual pages; pdf split pages
140
©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
NitroPro10-UserGuide
141
©Nitro
Colorobject
AnobjectthatcanbeusedwhensettingacolorinotherJavaScriptmethodsandproperties.
Example:Setsthetextcolorintheformfield“FirstName”tored.
this.getField("First Name").textColor = color.red;
Properties&Methods
ThecolorobjectsupportsallpropertiesandmethodsincludedintheAcrobatJavaScriptspecification.
NitroPro10-UserGuide
142
©Nitro
Consoleobject
AllJavaScriptscriptsareexecutedastheresultofaparticulareventoccurring.Foreachoftheseevents,
JavaScriptwillcreateaneventobjectthatcanbeusedtogetandupdateinformationaboutthecurrent
stateoftheevent.
Example:ExecutingthisJavaScriptonthekeystrokeeventwillchangeanyinputfromtheuserto
uppercase.
event.change = event.change.toUpperCase();
Properties&Methods
TheconsoleobjectsupportsallpropertiesandmethodsincludedintheAcrobatJavaScriptspecification.
NitroPro10-UserGuide
143
©Nitro
Eventobject
RepresentsaPDFformfield,andthisobjectcontainsmethodsandpropertiesthatprovideawayto
modifyformfields(likeyouwouldvisuallywiththeformfieldtools)viaJavaScriptcode.
Example:Changesahiddenfieldtobevisible.
var oField = this.getField("hiddenFieldName");
oField.display = display.visible;
Properties
change
changeEx
commitKey
fieldFull
keyDown
modifier
name
rc
selEnd
selStart
shift
source
target
targetName
type
value
willCommit
NitroPro10-UserGuide
144
©Nitro
Fieldobject
RepresentsaPDFformfield,andthisobjectcontainsmethodsandpropertiesthatprovideawayto
modifyformfields(likeyouwouldvisuallywiththeformfieldtools)viaJavaScriptcode.
Example:Changesahiddenfieldtobevisible.
var oField = this.getField("hiddenFieldName");
oField.display = display.visible;
Properties
alignment
borderStyle
buttonAlignX
buttonAlignY
buttonFitBounds
buttonPosition
buttonScaleHow
buttonScaleWhen
calcOrderIndex
charLimit
comb
commitOnSelChange
currentValueIndices
defaultStyle
defaultValue
doNotScroll
doNotSpellCheck
display
doc
editable
NitroPro10-UserGuide
Documents you may be interested
Documents you may be interested