RedTitanEscapeE
Transformingfiles
103
Youcanexportmanuallyorautomatically(see
Exportingpagesmanually
and
Settingupautomatic file export
in
Chapter 4
).
Expertuserscansetthecommandlineoptionsforbatchoperationthemselves
(see
Chapter 6, Running EscapeE fromthe commandline
).
Definingdatafields
EscapeE
allowsyoutomarkoutanddefinedatafieldsonthepages.The'Ex-
port...'optionthenallowsyoutoextractthedataintoafileofCSV[comma
separatedvalues]withfieldnamesinthefirstrecordorintoanXML[extensible
markuplanguage]file.Thesefilescanbeimportedintoadatabaseorfedtothe
RedTitan
DynamicDocumentFormatter
.Youcanalsoopttoexportthefieldsas
plaintext.
Alternatively,whenusingtheimageexportformats,anadditional.LOGfilecanbe
createdwiththefieldsinCSV,XMLortextformat.
Datafieldscanbedefinedasbeinglocatedeitheratanabsolutepositionorat
some offsetrelativetoasearchtagi.e.atextstringthatismatchedagainst
itemsinaspecifiedareaofthe page(see
Definingsearchtags
).
Todefinedatafields
1. Clickanddragoverapieceoftextononeofthepagestomarkitout.
Converting pdf to html - control Library utility:C# PDF Convert to HTML SDK: Convert PDF to html files in C#.net, ASP.NET MVC, WinForms, WPF application
How to Convert PDF to HTML Webpage with C# PDF Conversion SDK
www.rasteredge.com
Converting pdf to html - control Library utility:VB.NET PDF Convert to HTML SDK: Convert PDF to html files in vb.net, ASP.NET MVC, WinForms, WPF application
PDF to HTML Webpage Converter SDK for VB.NET PDF to HTML Conversion
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
104
2. Select t 'NewField...' fromtheEdit menu(orright clickandselect'New
Field...').
3. The'Definitions'windowdisplaysthecoordinatesanddimensionsofthe
selectedareaonthepage.Toadjustthese,typeoverthecoordinatesordrag
theareaonthepagewiththemousewhenyouhavereturnedtothepage
(see
Viewing andediting datafields
).
4. Usethedefaultname(FIELD1,FIELD2,etc)ortypeinanewname.
Thefieldnamesarelistedontherightofthiswindow.Ifthe'Tree'optionis
selected,thislistshowsthe hierarchyoffieldsandtheir relatedtags,other-
wiseitisanalphabeticallistoffields.Thetreecanbeexpandedandcollapsed
byclickingonthefoldericonsorbyusingtheright-clickmenu.
5. Afield’spositionisautomaticallydefinedrelativetothetopleftofthepage
butyoucandefineitinrelationtoanotherfieldora'tag'instead.
Tomakeafieldrelativetoanotherfield,selecttheappropriatefieldfromthe
'ReferenceField'dropdownlist.Alternativelyyoucandragthefiieldnamein
thetreeviewandplaceitunderthenameofitsparentfield.
Ifyouhavedefinedatag(see
Definingsearchtags
)selecttheappropriatetag
fromthe'SearchTag' dropdownlist.
6. Tosetotheroptionsforthefield,click k the'Advanced'tab(see
Setting
advanced optionsinfield definitions
).
7. Click k 'OK'.
8. Repeatforotherfields.
Thefieldnamedefinitionsaresavedinafilewithextension.EEwhichusesthe
samenameasthejobfile.Youcanrenamethisfileinthe'File'section(see
Saving and reusing g datafields
).
control Library utility:Online Convert PDF to HTML5 files. Best free online PDF html
Creating a HTML from PDF has never been so easy! Easy converting! We try to make it as easy as possible to convert your doc files to PDF.
www.rasteredge.com
control Library utility:C# PDF Converter Library SDK to convert PDF to other file formats
Free C#.NET SDK library and components for converting PDF file in .NET Windows applications, ASP.NET web Able to export PDF document to HTML file.
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
105
Note:
EscapeE
hastheabilitytodefine‘composite’fieldswhichcancomprisea
combinationofotherfields,textorpredefineditems(suchasthefilename).A
compositefieldistreatedjustlikeanyotherfield,somaybeincludedinaCSVor
XMLfile,usedasafilename,ormanipulatedbyapluginsuchasBARCODE(see
Defining composite fields)
.
Tips:
Select'Fields'fromtheViewmenutoviewthepositionoffieldsandtagsonthe
page(see
Viewing andediting datafields
).
Configurethesymbolsetbeforedefiningdatafieldsandtags(see
Changingthe
symbolset
in
Chapter3
).
Fieldscanbere-orderedbydraggingthenamesinthetreeviewwindow.Ifyou
releasethefieldunderthenameofanotherfieldthenitbecomesasub-fieldof
thatotherfield.Releasingitundertheiconofanotherfieldmerelyre-ordersthe
fields.Thisaffectstheorderinwhichthefieldsareoutput.
Viewingandeditingdatafields
EscapeE
usescolourcodingtoshowthepositionoffieldsandtagsonthepage.
Fieldboundariescanbechangedonthescreenwiththemouseorthecoordinates
canbeeditedforprecisepositioning.Thehierarchyoffieldsandtheirrelatedtags
isshownintheFieldwindowasa‘tree’structure.
Toviewthepositionofdatafieldsonthepages
Select'Fields'fromtheViewmenutoviewtheareaoffieldsandtagsonthe
pages.Selectedfieldsareshowninblue,datafieldsingreenandsearchtagsin
yellow.
Note:Thecolouroptionsmaybeenteredmanuallyintotheconfigurationfile
(RT.INI)orsetonthecommandline (see
Commandlinesyntax:otheroptions
in
Chapter 6
).
Toselectafield
Placethecursorinitscolouredareaanddouble-clicktheleftmousebutton.To
de-selectthefieldclickitonce more,orclickadifferentfield.
control Library utility:VB.NET PDF Converter Library SDK to convert PDF to other file
For how to convert PDF to HTML document in VB a series of demo code directly for converting MicroSoft Office Word, Excel and PowerPoint document to PDF file in
www.rasteredge.com
control Library utility:C# PDF Convert to SVG SDK: Convert PDF to SVG files in C#.net, ASP
Support converting PDF document to SVG image within C# PDFDocument(@"C:\input.pdf"); pdf.ConvertToVectorImages(ContextType Description: Convert to html/svg files
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
106
Tomodifythepositionoffieldswiththemouse
1. Double-clickonafieldonthepage
OR
Rightclickonafieldandselect'EditFieldxxx'andthen'Selectforresizing'.If
themouseisoverafieldthenxxxisthenameofthatfield,otherwisexxxis
thenameofthecurrentlychosenfieldifthereisone.Ifthereareoverlapping
fieldsandthemouseisovermorethanonefieldthentheselectedfieldisthe
onenearestthemouseposition.
2. Thefieldareaisnowselectedinlightblue.Youcanusethemousetodrag
thesidesoftherectangletochangethepositionandshapevisually.
Toredefinefieldcoordinates
1. Selectthefieldasabove.
2. Sweepoutthenewareaforthefieldthenrightclicktodisplaythepop-up
menu.
3. Select'EditFieldxxx'andthenclickon'Setnewbounds'.
4. Click‘OK’tomakethefieldbethenewlydesignatedarea.
Toresettotheoldbounds,select'UndoBoundsChanges'fromtheEditmenu.
Toeditfieldproperties
1. Rightclickonafieldonthepage.
2. Select'EditFieldxxx'andthen'Properties...'.
control Library utility:C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
Word in C#.NET. Online C#.NET Tutorial for Converting PDF to Word (.doc/ .docx) Document with .NET XDoc.PDF Library in C#.NET Class.
www.rasteredge.com
control Library utility:C# PDF Convert to Tiff SDK: Convert PDF to tiff images in C#.net
Best C#.NET PDF converter SDK for converting PDF to Tiff in Visual Studio .NET project. C# programming sample for PDF to Tiff image converting.
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
107
3. IntheFieldwindowyoucaneditthepropertiesofthefield:renameit,set
advancedoptions(see
Setting advancedoptionsinfielddefinitions
)and tag
options(see
Setting tagoptionsinfielddefinitions
). Youcan alsoeditthe
coordinatesofthefieldforprecisepositioning.
4. Click k 'OK'.
Toundoanyfieldchanges,select'UndoFieldChanges'fromtheEditmenu.You
willbepromptedtoreloadthepreviousfielddefinitionsfile.
Toviewfieldnames
1. Select'FieldDefinitions...'fromtheEditmenu.Fieldnamesarelistedonthe
rightoftheFieldwindow.
2. Toviewthefieldnamesasahierarchyoffieldsandtheirrelatedtags,check
the'Tree'box.Thetreecanbeexpandedandcollapsedbyclickingonthe
foldericons.Fieldscanbemovedandreordered(forexample,forCSVexport)
bydraggingthemtoanewpositioninthetree.
3. Toviewasortedlistofnames,uncheck'Tree'.Thismakesnamedfieldseasier
tofindandrename.
4. Tolocatenamedfieldsonthepage,clickonafieldnameinthelist.Thefield
isshownhighlightedinblueonthepage.Tagsaredisplayedwithared
marker.Thefieldnameisalsoshowninthewindowtitlebar.
Toselectfieldsforexport
1. Rightclickonthefieldnameinthelisttodisplaythepop-upmenu.
2. Choose e 'Select for export'.
Tocancelthe selection,rightclickandchoose 'Unselectfor export'.See also
Settingoptionsfor the LOGfile
in
Chapter4
.
Todeletedatafields
1. Clickonafieldnameinthefieldnamelist.
2. Click k the'Delete' button.
Tip:
Ifthefieldname'tree'isnotvisible,checkthe'Tree'boxontheFieldDefinitions
window.
control Library utility:VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
VB.NET PDF Converting DLLs for PDF-to-Word. This is an example for converting PDF to Word (.docx) file in VB.NET program. ' Load a PDF document.
www.rasteredge.com
control Library utility:VB.NET PDF- HTML5 PDF Viewer for VB.NET Project
PDF in VB.NET, VB.NET convert PDF to HTML, VB.NET convert PDF to Word Online Guide for Viewing, Annotating And Converting PDF Document with HTML5 PDF Viewer in VB
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
108
Definingsearchtags
Fieldscanbedefinedasbeinglocatedatsomeoffsetrelativetoasearchtagthat
ismatchedagainstitemsinaspecifiedareaofthepage.Asearchtagcanbea
textstringorafontcharacteristicsuchasaparticularstyle,pointsize,typeface,
weight etc.
Searchtagsaresetupbyright-clickingonapieceoftextandchoosing'Newtag'.
Youmayneedtoeditthetextofthetagtoexcludevariabledata:e.g.itmightbe
'Total:123.45'whenyouwanttosearchfor 'Total:'alone.
Havingsetupatagyoucandefineafieldrelativetoatag.Fieldscanalsobe
movedtobe'children'ofdifferenttags.IntheFieldswindowthehierarchyof
fieldsandtheirrelatedtagscanbeeasilyviewedasa'tree'.Notethatafieldwill
onlybeoutputifallitsparenttagsarerecognised.
Todefinesearchtags
1. Right-clickonapiece e oftext.
2. Choose e 'New Tag...'
3. Inthe'Definitions'windowthetextisenteredinthe‘SearchTag’boxandthe
coordinatesoftheoriginaredisplayed.Thewholeofthetextblock,asdefined
bythePCLfile,isdisplayedhere.Ifnecessary,clickinthe'SearchTag'box
andeditthetexttoexcludevariabledata.
4. TypeinanameforthetagintheFieldnamebox.
5. Click k the'Searching' tabtosetmoreoptions(see
Setting tagoptionsinfield
definitions
).
6. Clickthe‘OK’whenyouhavefinished.
RedTitanEscapeE
Transformingfiles
109
Example:
Recoveringsummaryinformationfromaninvoiceprintrunforindexingorweb
publicationisatypicalapplicationfor
EscapeE’s
dataextractionfeatures.Inthis
example,someofthedatawewanttorecover,likethe‘nameandaddressblock’,
isinthesameplaceoneverypage.Thepositionofotherdataelementsmight,
forexample,dependonthenumberoflineitemsontheinvoice.
1. Sweepthemousethroughthenameandaddressfield.Thisblockisalwaysin
thesamepositiononeverypage.
2. Thelocationofthe‘Nettotal’dependsonthenumberoflineitemsonthe
invoice.Itspositionisalwaysmarkedbythecaption‘InvoiceNettotal:’.
Sweepoutanareawherethecaptioncouldoccuranddefinethisasa‘Search
Tag’called ‘NETTAG’ withtheparameter ‘Invoice Net total:’.The red bracket
indicatesthatthesearchtagparameter wasfound.
3. Lastlymark-upthe‘NET’fieldandmakethereferencefield‘NETTAG’.This
meansthefieldisalwayslocatedinafixedpositionrelativetothecaption
‘Invoice Net total:’.
4. RepeattheSEARCHandREFERENCEprocessforotherimportantfieldslike
‘Accountreference’,‘Invoicenumber’and‘Invoicedate’.
Tip:
Select'Fields'fromtheViewmenutoviewthepositionoffieldsandtagsonthe
page(see
Viewing andediting datafields
).
RedTitanEscapeE
Transformingfiles
110
Settingadvancedoptionsinfielddefinitions
The'Advanced'optionsletyourefinehowthefieldsaredetectedandused.Ifyou
areexportingproportionallyspacedtextintofixedpitchplaintext,
EscapeE
can
striporaddspacessothatyoucancontrolthewaytextisaligned.
Fieldscanbedefinedonmulti-pagesetsofrecordsbyspecifyingthestartingpage
andthenumberofpagesinthecycle.
‘Actions’canbedefinedwhichwillbecarriedoutwhenaspecifiedactioncondi-
tionismete.gwhenafieldortagisrecognisedorwhenthecontentsofthefield
change.Specialpluginsareavailablewhichallowyou,forexample,tochangea
fieldtoabarcode,changethefontofafield,etc.
Tosetadvancedoptionsinfielddefinitions
1. Select'FieldDefinitions..'fromtheEditmenuandclickonthefieldyouwish
toeditonthefieldnamelist.
OR
Right-clickonafieldandselect'EditFieldxxx’andthen‘Properties...'
2. Clickthe'Advanced'tab.
3. Selectfromthe e options:
'Omitfromoutput'
Toomitthedataforthisfieldfromtheoutput.Any
otheractions(suchasprocessingsub-fieldor
causinganewfiletobestarted)willstilloccur.
'ThisfieldstartsanewXMLlevel'
Ifthistagistheparentofanysub-fieldsthenthese
RedTitanEscapeE
Transformingfiles
111
sub-fieldsarecontainedwithinthisfieldinthe
resultant XML,otherwise theyare onthesame
levelastheirparent.
'Usethisfieldinthefilename'
Ifyouopttosplitthefileintosections,thefield
nameisusedaspartofthefilename,e.g.ifthe
fileiscalledTEST.PCL,thefieldcontainsABCD
andtheoutputspecificationis*=.PDFthenthe
outputfilenamewillbeTESTABCD.PDF
'Usethisfieldinthepagename'
Tousethefieldnamewhencreatingmulti-page
TIFFimagefiles(i.e.when'Multi-pageTIFFs'is
selectedintheExportoptions, see
Exporting pages
manually
in
Chapter4
).
4. Setupthe'Action'condition:
‘Eachtimefieldfound’
The'Action'occurs
every
timethefieldisfound.
OR
‘Whenfieldchanges’
The 'Action' occursonlywhenthe
contents
ofthe
fieldchange(notmeaningfulfortags,astheyare
setuptosearchforoccurrencesofthesametext
string).Thesub-fieldsofCompositefieldswillonly
beexportedifthecontentsoftheirparentfield
have changed (see
Defining composite fields
).
OR
‘Whenfieldabsent’
The'Action'occursonlywhenthefieldisnot
detected.Thisisonlyusefulifasearchcriterion
suchasatagorfontcharacteristicisspecified,or
thefieldisasub-fieldofafieldwithsucha
criterion.
5. Choosewhethertheactionrelatestothepagewherethefieldisfound
(‘before’)or tothenextpage(‘after’).
6. SetuptheAction(s):
‘Tray’
Enteraninputtraynumbertoforcetheuseofthat
traywhentheActionconditionismet.
Thisisusefulforcaseswherecolouredpaperis
requiredforaheaderortrailerpage.
RedTitanEscapeE
Transformingfiles
112
‘Bin’
Enteranoutputbinnumbertoforcetheuseofthat
binwhentheActionconditionismet.
‘Overlaynumber’
Atagcanbelinkedtoanoverlay.Typethemacro
numberintheboxandselectwhetherthatoverlay
istobeturnedonoroffwhenitrecognizesthe
selected tag.
‘Startanewfile’
CreatesanewoutputfileeachtimeanAction
conditionismet.Seealso
Usingwildcardsinfile
specifications
in
Chapter 4
.
‘CallPlugin’
SelectoneofthePluginoptionsfromthedrop
downlist.Thislistwilldependonwhichplugins
areinstalledonyoursystem(see
Usingplugins
in
Chapter 4)
.
7. Click k 'OK'.
Tosetfixed-pitchtextexportoptions
1-2.asabove.
3. Setupaspace-fillingoption:
Align-Left
Usesspacestofillouttheextractedfielddatato
thecolumnwidthsothatthetext isalignedtothe
left.
Align-Right
Usesspacestofillouttheextractedfielddatato
thecolumnwidthsothatthetext isalignedtothe
right.
Trim
Removesleadingortrailingspacesfromthe
extractedfielddata.
Spacing
Typeinthewidthofthecolumntobefilledby
alignedtext,measuredintheunitssetupinthe
‘Configuration’dialogue(defaultunitis1/300inch).
4. Click k 'OK'.
Tosetoptionsformulti-pagesets
1-2.Asabove.
3. Todefineafieldonmulti-pagesetsofrecords,selectfromoptionsinthe
'Multi-pagesets'section:
Documents you may be interested
Documents you may be interested