125
©Nitro
Importandexportformdata
YouuseNitroPro10toexportformdataasaseparateFDFfile(formdataformat).AnexportedFDFfileis
muchsmallerthantheoriginalPDFformfile,makingitmuchmoreconvenientfordistributingtoothers.
YoucanemailanFDFfiletoanotheruserwhocanthenimportthedataintoaPDFfile,oryoucanuseFDF
filestosaveformdatalocally,aswellastoimportdataintoyourforms.
WhenyouimportdataintoaPDFform,theformmustcontainfieldshavingtheexactsamenamesasthe
fieldsfromwhichthedatawasexported.Fieldnamesarecase-sensitive.NitroPro10ignoresallimported
fielddatawherethefieldnamesdonotmatchthenamesfromtheexportedfile.
ToexportdatafromaPDFdocument:
1. OpenthePDFinNitroPro10
2. OntheFormsribbontab,intheFormDatagroup,clickExport
3. Typeanameforthefile
4. ClickSave
ToimportdataintoaPDFdocument:
1. OpenthePDFinNitroPro10
2. OntheFormsribbontab,intheFormDatagroup,clickImport
3. Selectthefiletoimport
4. ClickOpen
NitroPro10-UserGuide
Break pdf password - 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 a pdf into multiple files; break a pdf into smaller files
Break pdf password - 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
pdf link to specific page; break a pdf into parts
126
©Nitro
Resetformdata
OneofthemosthelpfulbuttonsyoucancreateonyourPDFformsisonethatpermitstheusertoclear
populatedfields,alsoreferredtoasaResetbutton.Ifyouareworkingwithaformthatdoesn'tcontaina
Resetbutton,NitroPro10includesaResettoolthatallowsyoutoquicklycleardatafromallofthefieldsin
theform.
Toresetformdata:
1. OpentheforminNitroPro10
2. OntheFormsribbontab,intheFormDatagroup,clickReset
Tocreatearesetbutton:
1. OpenthePDFinNitroPro10
2. OntheFormsribbontab,clickPushButton
3. Onthepage,dragthepointerwhereyouwantthebuttontoappear
4. NamethefieldresetFormandsetGeneralandAppearanceproperties
5. SelectLayoutintheOptionspropertiesandselectLabelonly.ClicktheLabelfieldandenterReset
Form
6. ClickSelectActionandselectResetaformfromthedropdownmenu
7. ClickAddActiontoList...anddooneofthefollowing:
l
ClickDeselectAll.PressControlandclickeachfieldyouwanttoclear,ifthenumberoffields
tocleararefewerthanthetotalnumberoffieldsinthelist
l
ClickSelectAll.PressControlandclickeachfieldyouwanttoeliminatefromclearingdata,if
thenumberoffieldstocleararegreaterthanthetotalnumberoffieldsyoudon'twantto
clear
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
add page break to pdf; break pdf file into parts
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 password on pdf; split pdf
127
©Nitro
Submitformdata
CreatingaSubmitbuttonwithinaPDFformallowsuserstoautomaticallysubmittheirentereddatatoa
specifiedURLoremailaddress.YoucaneasilycreateaSubmitbuttononyourformstohelpusersin
submittingformdata.IfyouchoosetosubmitdatatoaURL,youshouldbeawarethatyouwillneedto
setupserver-sideprogramminginordertocollectandroutetheformdata.Ifyouchoosetosubmitdata
toanemailaddress,theemailbodywillcontaintheformdata,andyouhaveseveraloptionsforspecifying
whichdataisincludedorexcluded.
Tocreateasubmitbutton:
1. OpenthePDFinNitroPro10
2. OntheFormsribbontab,clickPushButton
3. Onthepage,dragthepointerwhereyouwantthebuttontoappear
4. NamethefieldsubmitForm,andthensetGeneralandAppearanceproperties
5. SelectLayoutintheOptionspropertiesandselectLabelonly.ClicktheLabelfieldandenterSub-
mitForm
6. IntheActionstab,clickSelectActionandselectSubmitaformfromthedropdownmenu
7. ClickAddActiontoList...andthenchoosethesubmissionmethodintheSubmitformtogroup
8. Selectthefields.ClickSubmitallfieldsorSubmitonlythesefields,andclickSelect...toselectthe
fieldsyouwanttosubmit.ChecktheboxesforIncludeemptyvaluesand/orConvertdatevalues
tostandardformatifdesired
9. ClickOK
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
pdf split and merge; break pdf into multiple documents
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+.
break apart pdf pages; break pdf into smaller files
128
©Nitro
Showorhidefields
TheremaybecaseswhenyouwishtoshoworhidecertainfieldsinyourPDFform;forexample,iftheuser
clicksabutton,anewgroupoffieldsisdisplayed.Youhaveseveraloptionstoselectfromwhenshowing
orhidingfields:youcanelecttoshoworhideanindividualfieldbysettingthefield'sGeneralproperties,
oryoucanwriteyourowncustomJavaScripttoshowandhidefieldsbasedonuseraction(forexample,if
auserhoversoverabuttonoranother).Asanotheroption,youcancreateabuttonthatwillshowor
hidespecificfieldswhenpressed.
Toshow/hidefields:
1. OpenthePDFinNitroPro10
2. OntheFormsribbontab,clickPushButton
3. Onthepage,dragthepointerwhereyouwantthebuttontoappear
4. NamethefieldandthensetGeneralandAppearanceproperties
5. IntheOptionstab,selectLayoutandselectLabelonly.ClicktheLabelfieldandenterShow/Hide
Fields
6. IntheActionstab,clickSelectActionandselectShow/HideFieldsfromthedropdownmenu
7. ClickAddActiontoList...andthendooneofthefollowing:
l
ClickShow
l
ClickHide
8. ClickOK
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 pdf into pages; pdf split file
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
c# print pdf to specific printer; can't cut and paste from pdf
129
©Nitro
Calculatefielddata
NitroPro10supportsfieldcalculationsusingseveralmethods.Thebuilt-incalculationformulasarean
easymeansforcreatingsimple,andquiterestricted,fieldcalculations.YoucanalsouseSimplifiedField
NotationandJavaScripts,althoughthesemethodsaremuchmoresophisticatedandrequiresome
programmingknowledge.Ifyourcalculationneedsarelimitedtosummingoraveragingdata,youcanuse
thebuilt-informulaswithouthavingtoworryaboutprogramming.
Calculationsinvolve,inonewayoranother,theuseoftextfields.Youcanperformacalculationusingany
fieldtype,butifyouwanttheresultsofyourcalculationsreportedonaform,youneedtohaveatextfield
thateithercalculatesthedataandplacestheresultinthefieldperformingthecalculation,orcalculates
datainanotherfieldtypeandsendsthedatatoatextfield.
Tocreateacalculation:
1. OpenthePDFinNitroPro10
2. OntheFormsribbontab,clickTextField
3. Onthepage,dragthepointerwhereyouwantthetextfieldtoappear
4. NamethefieldandsetGeneralandAppearanceproperties
5. SelectOptionsandclickAlignment.SelectRightfromthepull-downmenutoalignthevalues
right
6. OpentheFormatproperties,clickSelectformatcategory,andthenselectNumberfromthedrop
downmenu
7. ClickDecimalplacesandtypethenumberofdecimalplacesyouwanttoreportinthecalculated
field
8. OpentheCalculateproperties,andselectValuetypeanddooneofthefollowing:
l
ClickSum(+)tosumagroupofdata
l
ClickProduct(x)tomultiplyvalues
l
Clickaveragetoaverageagroupoffieldvalues
l
Clickminimumtoreporttheminimumvalueamongagroupoffields
l
Clickmaximumtoreportthemaximumvalueamongagroupoffields
9. ClicktheSelect...buttontoopentheFieldSelectiondialogbox.HolddowntheControlorShift
keyandclickeachfieldyouwanttocalculate
10. ClickOK
NitroPro10-UserGuide
C# TWAIN - Specify Size and Location to Scan
foreach (TwainStaticFrameSizeType frame in frames) { if (frame == TwainStaticFrameSizeType.LetterUS) { this.device.FrameSize = frame; break; } } }.
pdf split pages; combine pages of pdf documents into one
C# TWAIN - Acquire or Save Image to File
RasterEdge.XDoc.PDF.dll. if (device.Compression != TwainCompressionMode.Group4) device.Compression = TwainCompressionMode.Group3; break; } } acq.FileTranfer
pdf insert page break; break pdf into single pages
130
©Nitro
JavaScript
ToprovideacompletedescriptionofhowyoucanuseJavaScriptwithNitroPro10iswellbeyondthe
scopeofthisusermanual.IfyouwishtogainprogrammingknowledgeinJavaScript,werecommendyou
reviewsourcesyoucanfindontheInternet,aswellasinbooksonJavaScriptthatcanbeobtainedfrom
yourlocallibraryorbookseller.
YoucanalsofindmanyexamplesofPDFdocumentscontainingJavaScriptontheInternet.Themost
commonuseofJavaScriptwithPDFistobefoundinPDFforms.Youcanlocatethesetypesofdocuments
ontheInternet,thenopentheJavaScriptintheJavaScriptConsole,andcopy/pastetheroutinesinyour
ownfiles.Byexamination,andtrialanderror,youcanquicklylearntheprogrammingcodenecessaryfor
thetasksyouwishtoperform.
NitroPro10-UserGuide
131
©Nitro
LocateJavaScripts
Whetheryouwritescriptsinyourowndocuments,orbrowsefilesforscriptstoexamine,youfirstneedto
knowwheretolookforJavaScripts.InNitroPro10youcanfindJavaScriptsinthefollowinglocations:
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.WhenNitroPro10isopenedthescriptsarerun.
NitroPro10-UserGuide
132
©Nitro
CopyandpasteJavaScripts
JavaScriptscanbecopiedandpastedfromonefieldorotherlocationinaPDFdocumentorbetweentwo
documents.IfyouexaminePDFfilesforlearningJavaScriptprogramming,youcanbrowsePDFfiles
containingscripts,copyascriptfromadocumentyoudownloadfromtheInternet,andpastethecode
intotheJavaScriptEditorinyourdocument.Withalittlecodemodification,youcanquicklyaddscriptsto
yourownfiles.
TocopycodebetweenPDFfilesjustopenthembothinNitroPro10.
NitroPro10-UserGuide
133
©Nitro
AddoreditfolderlevelJavaScript
FolderlevelJavaScriptsareJavaScriptfiles(.JS)thatarerunduringapplicationstartup.Thesecanbe
usefulforloadingreusableJavaScriptfunctionsintotheapplication,oraccessingmethods/properties
whosesecurityrestrictionsonlyallowthemtoberunintheapp/initevent.
Simpleexamplesincludeloadingtheuser'sWindowsloginintoaglobalJavaScriptvariableatstartup,or
loadingalistofemployeenamesfromyourcompanyintoaJSarrayatstartupwhichcanbeusedbythe
formsthatareopenedinNitroPro10.
ToaddoreditafolderlevelJavaScript
1. OpenNitroPro10
2. OntheFormsribbontab,intheJavaScriptgroup,clickFolderLevel
3. AddJSfilestothefolderoreditexistingones
NitroPro10-UserGuide
134
©Nitro
DocumentlevelJavaScript
YoucanuseJavaScripttoaddanalmostinfinitenumberofinteractivefeatures,createcomplexcalculation
formulas,andaddmoredynamicfunctionalitytoyourPDFs.
Documentlevelscriptsareusedtoaddfunctionsfromwhichotherscriptscanreuseroutinesthroughout
aPDFfile.YoucanalsousedocumentlevelJavaScriptstoinvokeactionswhenafileopens.
TowriteadocumentlevelJavaScript
1. OpenthePDFinNitroPro10
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
NitroPro10-UserGuide
Documents you may be interested
Documents you may be interested