RedTitanEscapeE
Transformingfiles
83
Thereisanoptiontousedatacompression:thisusuallyreducesthesizeofthe
outputfiles,thoughitmakesthemslowertogenerate.
TosetoptionsforPCLexport
1. Select'Configuration...’fromtheOptionsmenu,select'HPPCL'astheformat
andclick the'Advanced...'button.
OR
Click‘PCLoptions...’fromtheExportwindow.
2. Ifyouwouldliketoreducethedocumentsizeselect'Usedatacompression'.
3. Ifyouwouldliketostoretextaslongerphrases(toimprovesearching)select
'Combinetext stringstogether'.
4. Select‘Renderasgraphic’toexportasinglegraphicimageperpage.
OR
Select'Renderallbuttextasgraphic'tocombinethenon-textelementsintoa
singlegraphicimageofeachpage whileretaining thetextelements.
5. Select'IncludeTrueTypefonts'unlessyouareusingaprinterthatdoesnot
supportTrueType.
6. Ifyouhavesetupsubstitutefontsinthe‘Fonts,SubstituteFonts...’dialogue,
select'Usestandardfontsifsubstitutefontgiven'.
7. Select'Keeporiginalelementorder'ifthedocumenthasorderedopaque
elements(e.g.shading)tooverwritetextorlines.
Converting pdf into html - control SDK system: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 into html - control SDK system: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
84
8. Settheresolutionforlinedrawingandimagesandfortextpositioning:600dpi
or300dpi.
9. Clickthe'Save'buttontoretainthesesettingsafteryouclosetheprogram.
OR
Click 'Shortcut...'tocreate aShortcuticonwhichusesalltheoptionsyou
haveset (see
Creating aspecialshortcut icon
).
OR
Click'Apply'tousethesesettingsforthecurrentsession.
Note:
PCLfilesthathavebeenrepeatedlyeditedandupdatedoftenaccumulateredun-
dantcodeandunnecessaryfontdownloads.ByrunningsuchaPCLsourcefile
throughHPPCL'Export'youcanreprocessthefileandproducetidy,efficientcode
again.IfyouneedtocopythePCLcodewithoutreprocessing,choose'subset'as
theexportformat(see
Copyingandsaving pages
in
Chapter 2
).
SettingoptionsforPDFexport
PDFexporthasanumberofspecialoptionsforfilecompression,securityand
indexing.
APDFfilemayberenderedasagraphiconlyorasagraphicwithtext.The
'graphiconly'optionwillproduceanaccurateimagefromthefile,includingan
imageofthetext,butcannotbeusedforextractingtextforfurtherprocessing.
Exportingthe fileas'graphic withtext'retainsthetextfeatures(e.g.search)and
consumeslessmemory,butnotethat
EscapeE
willalwaysplacetextanddrawn
linesontopofanyopaqueelements,e.g.shading.Youmayoverridethisfeature
byselectingthe'Keeporiginalelementorder'option.Double-bytefonts,e.g.
currencysymbols,Chinesecharacters,arerenderedasgraphics,asarebox-
drawing characters.
Textphrasescanbestoredaslongerphrasestoimprovesearching.Asthisentails
decidingwhetherindividuallypositionedwordsformpartofacontinuousstringthe
resultsmaysometimesbeunsatisfactory.
Bydefault,
EscapeE
willusesubstitutefontsforanyprinter-residentfonts(e.g.
Courier,CGTimesandUnivers)andanydownloadedfontswillbeconvertedto
bitmapfontsandincludedinthePDF.Thesedefaultscanbechanged.
YoucangeneratePDFswhichhaverestrictedaccess.There aretwopasswords:
control SDK system:VB.NET PDF Converter Library SDK to convert PDF to other file
You may directly copy and paste it into your vb.net testing Conversion of MS Office to PDF. give a series of demo code directly for converting MicroSoft Office
www.rasteredge.com
control SDK system:C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
a C# programming example for converting PDF to Word String inputFilePath = Program.RootPath + "\\" 1.pdf"; PDFDocument doc DOCX/TIFF and save it into stream
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
85
onetoallowfullownershipaccessincludingchangingthesecurityoptions,the
otherforgeneralusers.Iftheuserpasswordisspecifiedandtheownerpassword
isomittedthentherewilleffectivelyonlyberestrictedaccesstothefile.Ifthe
ownerpasswordisspecifiedbutnouserpasswordisgiventhentheonlywayof
accessingthefileiswiththeownerpassword.Ifneitherpasswordisgiventhen
thefileisnotencryptedandisavailabletoanyone.Thepasswordcanbe
encryptedinthePDFtoallowRedTitantorecoveritifitislost.
Thecapabilitiesforgeneralusersmayberestrictedtopreventprinting,selection
oftextandgraphicsforcopyingtotheclipboard,changingthedocument,and/or
addingorchangingnotesandformfields.
YoucanopttocreateaTableofContentsfromselectedfields,orfromtags,for
example,specialfontdefinitions.
TosetoptionsforPDFexport
1. Choose‘Configuration...’fromtheOptionsmenu,select'PDF'astheformat
andclick'Advanced...'
OR
Click‘PDFoptions...’fromtheExportwindow.
2. Select'Usedatacompression'touseFlatecompressiontoreducethedocu-
mentsize.
3. Select'Combinetextstringstogether'tostoretextaslonger r phrasesto
improvesearching.
4. Select‘Renderasgraphic’toexportasinglegraphicimageperpage.
control SDK system:C# PDF Converter Library SDK to convert PDF to other file formats
This PDF document converting library component offers reliable C#.NET PDF You may directly copy and paste it into your C# testing C#.NET PDF to HTML Conversion.
www.rasteredge.com
control SDK system:C# PDF Convert to Tiff SDK: Convert PDF to tiff images in C#.net
programming sample for PDF to Tiff image converting. String inputFilePath = Program.RootPath + "\\" 1.pdf"; PDFDocument doc DOCX/TIFF and save it into stream
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
86
OR
Select'Renderallbuttextasgraphic'tocombinethenon-textelementsintoa
singlegraphicimageofeachpagewhileretainingthetextelements.
5. Select'IncludeTrueTypefonts'toincludeanyTrueTypefont,downloadedinthe
originalPCLfile,intheexportedPDFfile.UsingTrueType(i.e.scaleable
outline)fontsusuallyresultsinbetterappearancethanbitmappedfonts,but
mayhaveadverseeffectsonthefilesizeifonlyafewcharactersfromafont
areused.Ifthisboxisnotcheckedthenbydefaultsuchfontsareconvertedto
bitmapfonts.
6. Select‘Omitblankpages’tostopblankpagesbeingincludedinthePDFfile.
7. ToreducethesizeoftheexportedPDFfile,youmayspecifywhentosubsti-
tutefontsintheoriginaldocumentwithStandardAdobefonts.Ifyouchoose
toreplacebitmapfonts,TrueTypefontsor‘always’,ensurethatsuchfontsin
thedocumentareusing the Windowscharacter set, otherwisecharacters
maybewronglyattributed.The‘Ifsubstitutefontgiven’optionwillonlyomit
thedownloadfontifitisrecognisedashavingaknownsubstitute,soismore
reliable(see also
Setting up substitutefonts
in
Chapter 3
).
8. Torestrictthecapabilitiesforgeneralusersselectoneofthe'Donotallow'
options:
a)Printing
b)Selectionoftextandgraphicsforcopyingtotheclipboard
c)Changingthedocument
d)Addingorchangingnotesandformfields
9. TogeneratePDFswithrestrictedaccess,typeinthepasswordtheuser r will
usetoopenthedocumentortochangesecurityoptions.
Warning: curlybrackets,{and},willbeinterpretedasintroducingafield
name(see
Definingcomposite fields
in
Chapter5
), sotoincorporatethese
charactersinthepasswordyoumustsubstitutethetwocharactersequences
_{and_}respectively.
10.Select'SaveencryptedpasswordinthePDF'toallowthe passwordtobe
recoveredbyRedTitanifitislost.
11.Selectthe encryptionmethod:40-bitor128-bit.
12.Settheresolutionforlinedrawingandimagesandfortextpositioning:300dpi
or600dpi.
control SDK system:C# PDF Convert to Images SDK: Convert PDF to png, gif images in C#
Free .NET DLLs for converting PDF to images in both .NET WinForms and ASP.NET application. Turn multipage PDF file into single image files respectively in
www.rasteredge.com
control SDK system:C# PDF Convert to SVG SDK: Convert PDF to SVG files in C#.net, ASP
Support converting PDF document to SVG image within C# to convert PDF document into SVG image PDFDocument(@"C:\input.pdf"); pdf.ConvertToVectorImages(ContextType
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
87
13.Tomakeatableofcontents,clickthe 'Contents...'button(see
Creating
specialfieldsforPDFexport
in
Chapter5
).
14.Select'Keeporiginalelementorder'ifthedocumenthasorderedopaque
elements(e.g.shading)tooverwritetextorlines.
15.Clickthe'Save'buttontoretainthesesettingsafteryouclosetheprogram.
OR
Click'Shortcut...'tocreateaShortcuticonwhichusesallthe optionsyou
have set(see
Creating aspecialshortcut icon
).
OR
Click'Apply'tousethesesettingsforthecurrentsession.
Tip:
WhenviewingthePDFoutputinAdobeAcrobat,youmayneedtoturnoff'Smooth
textandmonochromeimages' fromthe'File,Preferences'menu.
Notes:
FieldsmaybedefinedtoenabletheexportofunfilledPDFformsusinganumberof
specialoptions:buttons,borders,checkboxes,editableboxes,lists(see
Creating
specialfieldsfor PDFexport
in
Chapter 5
).
TherearecommandlineoptionswhichenablethePDFdocumentsummary
elementsTitle,Description,Author,andKeywordstobedefined(see
Command
linesyntax:otheroptions
in
Chapter6
).Intheabsenceofanysuchoptionsthen
ifthereisafieldwiththeappropriatenameitisusedforthatitem.Forexample
afieldcalledPDF-Tcouldbeusedtoextractthefirstlineofthedocumentand
useitasthetitle.AnysuchfieldwillonlybeusedatthestartofeachPDF,so
musteitherbealiteralfieldoroccuronthefirstpageoftheinputfile(orofthe
sectionifmultiplePDFsarecreated).
Thecommandlineoption/PDFPREFallowsyoutosetuppreferencesregarding
thedisplayofaPDFdocument(see
Commandlinesyntax:otheroptions
in
Chapter 6
)..
AdobeAcrobathasamechanismformimickingfontsinPDFfiles.Ifyouarenot
happywiththeappearanceoffontsintheoutputfile,pleasecontactRedTitanfor
morehelpwithfonts.
SeeAlso:
Creating specialfieldsforPDFexport
in
Chapter 5
control SDK system:VB.NET PDF Convert to Text SDK: Convert PDF to txt files in vb.net
using RasterEdge.XDoc.Converter; Displayed in the code tab below is the Visual Basic .NET method for converting a PDF document into a text file.
www.rasteredge.com
control SDK system:VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
Converting DLLs for PDF-to-Word. In order to convert PDF document to Word file using VB.NET programming code, you have to integrate following assemblies into
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
88
SettingoptionsforPostScriptexport
EscapeE
directlygeneratesoutputforPostScriptlevel2or3printerswithout
usinganyWindowsprinterdriver.
APostScriptfilemayberenderedasagraphiconlyorasagraphicwithtext.The
'graphiconly'optionwillproduceanaccurateimagefromthefile,includingan
imageofthetext,butcannotbeusedforextractingtextforfurtherprocessing.
Exportingthe fileas'graphic withtext'retainsthetextfeatures(e.g.search)and
consumeslessmemory.
Notethat
EscapeE
willalwaysplacetextanddrawnlinesontopofanyopaque
elements,e.g.shading.Youmayoverridethisfeaturebyselectingthe'Keep
originalelementorder'option.
Textphrasescanbestoredaslongerphrasestoimprovesearching.Asthisentails
decidingwhetherindividuallypositionedwordsformpartofacontinuousstringthe
resultsmaysometimesbeunsatisfactory.
For eachnumberedPCLinputtrayandoutputbinusedbythedocumentyoucan
assignaPostScriptname.Youmayselectastandardpapersizefromthedrop-
downboxorleavethisblankandfillinthepaperheightandwidth(ininches)
yourself.Whenexportingtoa'production'printer,youcanspecifytheweight,
colourandmedia-typeattributesaswell.
Thereisanoptiontousedatacompression:thisusuallyreducesthesizeofthe
output files,thoughitmakesthemslowertogenerate.
TosetoptionsforPostScriptexport
1. Select'Configuration...’fromtheOptionsmenu,select'PostScriptlevel2'or
'PostScriptlevel3'astheformatandclick'Advanced...'
OR
Click‘Postscriptoptions...’fromtheExportwindow.
2. Ifyouwouldliketoreducethedocumentsizeselect'Usedatacompression'.
3. Ifyouwouldliketostoretextaslongerphrases(toimprovesearching)select
'Combine text stringstogether'.
4. Select‘Renderasgraphic’toexportasingle e graphicimageper page.
OR
Select'Renderallbuttextasgraphic'tocombinethenon-textelementsintoa
singlegraphicimageofeachpage whileretaining thetextelements.
RedTitanEscapeE
Transformingfiles
89
5. Select'IncludeTrueTypefonts'toincludeanyTrueTypefont,downloadedinthe
originalPCLfile,intheexportedPostScriptfile.UsingTrueType(i.e.scaleable
outline)fontsusuallyresultsinbetterappearancethanbitmappedfonts,but
mayhaveadverseeffectsonthefilesizeifonlyafewcharactersfromafont
areused.Ifthisboxisnotcheckedthenbydefaultsuchfontsareconvertedto
bitmapfonts.
6. Settheresolutionforlinedrawingandimagesandfortextpositioning:300dpi
or600dpi.
7. AssigneachnumberedPCLoutputbinusedbythedocumentaPostScript
name.PostScriptnamesmaybeletters,numbersoramixtureofboth.Note
thatthenamesmaybelongerthaneightcharacters,maycontainspacesand
arecase-sensitive.
8. AssigneachnumberedPCLinputtrayusedbythedocumentaPostScript
name.Youmayselectastandardpapersizefromthedrop-downboxorleave
thisblankandfillinthepaperheightandwidth(ininches)yourself.When
exportingtoa'production'printer,itisusefultospecifytheweight,colourand
media-typeattributesaswell.
9. Select'Keeporiginalelementorder'ifthedocumenthasorderedopaque
elements(e.g.shading)tooverwritetextorlines.
10.Clickthe'Save'buttontoretainthesesettingsafteryouclosetheprogram.
OR
Click'Shortcut...'tocreateaShortcuticonwhichusesallthe optionsyou
have set,(see
Creating aspecialshortcut icon
).
RedTitanEscapeE
Transformingfiles
90
OR
Click'Apply'tousethesesettingsforthecurrentsession.
Notes:
CompressedfilesgeneratedforoldPostScriptprinters(‘level2’)willworkonthe
newPostScriptprinters(‘level3’).PSlevel3printersacceptmoreefficient
methodsofcompression(e.g.Flate)thanPS2andsoevensmallerfilesmaybe
generated,butthesefilesmaynotbeusablebyPS2printers.
PostScriptprintersarefedtheirmedia(paper)fromnumberedtrays.Thenumbers
maynotcorrespondtothephysicallayoutoftrayssochecktheprinter's.PPDfile
(or use'TRAYS.PS',obtainable fromRedTitan)toensurethatthecorrecttrayis
selectedinthe‘Options,Configuration’dialogue.Thiswillalsoshowyouthe
MediaType(name)ofthetrayifithasone.
ForproductionprinterstheoutputdocumentmustbecreatedwithaPostScript
DSCheader thatliststheattributesofthepaperstockbeing selected,sothe
size,weight,colourandtypeofthepaperassociatedwiththisPCLtraymustbe
specified. Adocumentwillnotnormallybeprinteduntilallitsspecifiedmedia
requirementsaremet-becarefulnottosetupalonglistoftraysthatresultina
medialistthatcannotbeactuallyconfiguredontheprinter.Ifdifferentdocuments
requiredifferenttrayconfigurationsthenyoushouldsaveeachseparatelyandonly
applythemtotheappropriateone.
Thetray/binselectionspecifiedinthePCLdatacanbeoverriddenusing/TRAY
and/BIN (see
Commandlinesyntax: printer configuration
in
Chapter 6
).Note
thatthisisstillthePCLtray/binnumbersoitmaybenecessarytodefinethe
equivalentPostscripttray/binusingthe‘Options,Configuration’dialogue.Select
the'Printer' tabtosetupthedefaulttrayandbin(see
Settingtheprinter defaults
in
Chapter 2
).
Settingoptionsfortextexport
Youcanexportthewholedocumenttoplaintext,allowingyoutocreatedocu-
mentswhichcanbeeasilyeditedwithanytexteditor.Alternativelyyoucanexport
justthedatafieldstoplaintext,commaseparatedvalues[CSV]orextensible
markuplanguage[XML]format(see
Chapter5. ExtractingdatafromPCLfiles
).
Ifyouareexportingtoanimageorotherformat,thefieldscanbeextracted
simultaneouslyintoCSV,XMLortextformat.Inthiscasea.LOGfileiscreated
instead(see
Settingoptionsfor the LOGfile
).
RedTitanEscapeE
Transformingfiles
91
Ifyouareexportingproportionallyspacedtextintofixedpitchplaintext,
EscapeE
canstriporaddspacessothatyoucancontrolthewaytextisaligned.
Someprinterdriversusearbitrarycharactercodeswhendownloadingfonts,so
thatanytextextracteddirectlyfromthePCLfileisnotreadable. Youcanusea
character recognitiondatabasetoconvertthetextbacktoausefulform,either in
Windowscharacter setor Unicode (see
Setting upacharacterrecognition
database
in
Chapter3
).
Tosetoptionsfortextexport
1 Select‘Configuration...’fromtheOptionsmenuandclick k the'Textoptions...'
button.
OR
Click‘Textoptions...’fromtheExportwindow.
2. Tofillthetextwithspaceswhenexportingintofixedpitchtext,selectoptions
inthe'SpaceFillforTextExport' section:
'Left'
Alignstheleftsideoftextfields
'Right'
Alignstherightsideoftextfields
‘Trim’
Removesleadingandtrailingspaces
'Spacing'
Typeinthewidth(inthecurrentunits)ofthe
columntobefilled
3. Todelimitthe e pages(e.g.toprintthemseparatelyorreprocessthemlater
with
EscapeE
)thenclick'Insertaformfeedforeachpage'.Ifyouwant
continuoustextwithnoindicationofpagebreaksthenleavethisboxclear.
RedTitanEscapeE
Transformingfiles
92
4. Select‘Treatnullsasspaces’tointerpret00(null)charactersasiftheywere
spaces.Thisisforusebyplaintextfileswhichwouldhavebeensenttoa
non-PCLprinter(PCLprintersignorenulls).
5. Todefinetheminimumverticaldifferencebetweenthebaselinesoftwowords
forthemtobedeemedondifferentlines,enteravalueinthe'Minimumline
height'box.Tochangethe unitsofmeasurement,clickonthe‘Viewing’tab
(see
Customisingtheview
in
Chapter 2
).
6. Ensureasuitablesymbolsetischosentooutputthetext(see
Changingthe
symbolset
in
Chapter3
).ChoosefromWindows(19U),16-bitUnicode,
UTF8unicode,orUnchanged(i.e.sameastheinputfile).
7. Tousethecharacterrecognitiondatabasetoconvertthetextbacktoa
readableformfromfileswherearbitrarycharacterencodingshavebeenused,
select‘Assigncharacter codesusing theTTLIBdatabase’(see
Settingupa
character recognition database
in
Chapter 3
).
8. Clickthe'Save'buttontoretainthesesettingsafteryouclosetheprogram.
OR
Click 'Shortcut...'tocreate aShortcuticonwhichusesalltheoptionsyou
haveset (see
Creating aspecialshortcut icon
).
OR
Click'Apply'tousethesesettingsforthecurrentsession.
Note:
Ifyouwanttoexportallthetextofthejob,ensurethat'Alltext'isselectedunder
'Fieldstobeoutput'onthe‘Export’window.Ifyoujustwanttoextractthedata
fields,selectanother option(see
Exportingdatafields
in
Chapter 5
).
Seealso:
Setting options s for r the LOGfile
Setting up acharacter recognition database
in
Chapter 3
Settingupautomaticfileexport
Insteadofexportingfilesmanuallyyoucansetup
EscapeE
toconvertPCLfiles
automaticallywheneveranewfilearrivesinagivenfolder.
Youcanspecifywhichfileextension(s)toprocess,e.g.*.PRNprocessesallPRN
filesinsteadofLSH.Theinputfileiseitherrenamedas*.BAKordeleted.
Documents you may be interested
Documents you may be interested