135
©Nitro
Add or edit custom calculation JavaScript
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
Pdf select text - search text inside PDF file in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Learn how to search text in PDF document and obtain text content and location information
search multiple pdf files for text; search text in multiple pdf
Pdf select text - VB.NET PDF Text Search Library: search text inside PDF file in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Learn How to Search Text in PDF Document and Obtain Text Content and Location Information in VB.NET application
pdf searchable text converter; pdf find text
136
©Nitro
Add a simplified field notation
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 Image Extract Library: Select, copy, paste PDF images in C#
C#: Select All Images from One PDF Page. C# programming sample for extracting all images from a specific PDF page. C#: Select An Image from PDF Page by Position.
how to select text in a pdf; select text in pdf file
VB.NET PDF Image Extract Library: Select, copy, paste PDF images
VB.NET : Select An Image from PDF Page by Position. Sample for extracting an image from a specific position on PDF in VB.NET program.
how to search text in pdf document; how to make pdf text searchable
137
©Nitro
Use the JavaScript console
YoucanopentheJavaScriptConsoleandwriteascriptthatdoesn'tbelongtoanyfieldorelement.Scripts
writtenintheJavaScriptConsolecanbeusedtotestroutinesanddebugcode.
TousetheJavaScriptconsole:
l
OntheFormsribbontab,intheSetupgroup,clickthearrowbeneaththeJavaScriptbuttonand
thenclickConsole
NitroPro10-UserGuide
VB.NET PDF Text Redact Library: select, redact text content from
VB.NET PDF - Redact PDF Text. Help Users to Redact PDF Text to Protect PDF Document in VB.NET. Overview. Redact PDF Text using VB.NET. Add necessary references:
pdf find and replace text; converting pdf to searchable text format
C# PDF Text Redact Library: select, redact text content from PDF
C#.NET PDF SDK - Redact PDF Text in C#.NET. C# Demo Code for Redacting PDF Text to Protect Your PDF Document in C#.NET Project. Best
how to select text in pdf reader; how to search pdf files for text
138
©Nitro
View output and JavaScript errors
TheOutputPaneallowsyoutoviewanyerrorsrelatedtoJavaScriptordocumentprocesses,andwillopen
automaticallytoalertyouofanyimportantoutputmessages.
ToopentheOutputpane:
l
Onthesidebar,clicktheOutputtab
NitroPro10-UserGuide
C# HTML5 PDF Viewer SDK to view PDF document online in C#.NET
Tools Tab. Item. Name. Description. 1. Select tool. Select text and image on PDF document. 2. Hand tool. Pan around the document. Go To Tab. Item. Name. Description
pdf select text; convert a scanned pdf to searchable text
VB.NET PDF- View PDF Online with VB.NET HTML5 PDF Viewer
Tools Tab. Item. Name. Description. 1. Select tool. Select text and image on PDF document. 2. Hand tool. Pan around the document. Go To Tab. Item. Name. Description
how to select all text in pdf; search pdf files for text programmatically
139
©Nitro
Supported JavaScript Objects
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
VB.NET PDF - View PDF with WPF PDF Viewer for VB.NET
Tools Tab. Item. Name. Description. Ⅰ. Hand. Pan around the PDF document. Ⅱ. Select. Select text and image to copy and paste using Ctrl+C and Ctrl+V.
cannot select text in pdf file; select text in pdf
C# WPF PDF Viewer SDK to view PDF document in C#.NET
Tools Tab. Item. Name. Description. Ⅰ. Hand. Pan around the PDF document. Ⅱ. Select. Select text and image to copy and paste using Ctrl+C and Ctrl+V.
pdf text search; text searchable pdf
140
©Nitro
App object
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
C# WPF PDF Viewer SDK to annotate PDF document in C#.NET
Line color. Select the line color when drawing annotations on PDF document. Default create. Click to select drawing annotation with default properties. Text box.
how to search a pdf document for text; pdf searchable text
VB.NET PDF - Annotate PDF with WPF PDF Viewer for VB.NET
Line color. Select the line color when drawing annotations on PDF document. Default create. Click to select drawing annotation with default properties. Text box.
search text in pdf image; how to make a pdf file text searchable
141
©Nitro
Color object
AnobjectthatcanbeusedwhensettingacolorinotherJavaScriptmethodsandproperties.
Example:Setsthetextcolorintheformfield“FirstName”tored.
this.getField("First Name").textColor = color.red;
Properties&Methods
ThecolorobjectsupportsallpropertiesandmethodsincludedintheAcrobatJavaScriptspecification.
NitroPro10-UserGuide
142
©Nitro
Console object
AllJavaScriptscriptsareexecutedastheresultofaparticulareventoccurring.Foreachoftheseevents,
JavaScriptwillcreateaneventobjectthatcanbeusedtogetandupdateinformationaboutthecurrent
stateoftheevent.
Example:ExecutingthisJavaScriptonthekeystrokeeventwillchangeanyinputfromtheuserto
uppercase.
event.change = event.change.toUpperCase();
Properties&Methods
TheconsoleobjectsupportsallpropertiesandmethodsincludedintheAcrobatJavaScriptspecification.
NitroPro10-UserGuide
143
©Nitro
Event object
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
Field object
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