mvc return pdf file : Convert pdf to html Library software class asp.net windows winforms ajax m005_escapee2-part1554

RedTitanEscapeE
Transformingfiles
63
5. Tologonlysomeofthedatafields,click‘Selectedfields’ ’ andclick‘Select...’.
IntheFieldDefinitionswindow,rightclickonafieldnameinthelistand
choose‘Selectfor export’. Rightclick andchoose‘Unselectforexport’to
canceltheselection (see
Viewing andeditingdatafields
in
Chapter5
).
Repeatforallthefieldsyouwishtoexport.Click‘OK’toreturntotheExport
window.
6. Check'Pagenumbers'toinsertapagenumberforeachpageinanXMLlog
file,ortowritethetotalnumberofpagestotheendofaPlaintextlogfile.
7. ToaddBatespagenumberstotheLOGfileaswellasthepages,select
‘BatesPageNumbers’(see
Creatingpage numbers
).
8. Tologthedatafilenames,click‘Filenames’.
9. Toavoidcreatingalog g file,click‘None’.
10.Youcanalsooptto:
'Renamelogfilewhenfinished'.Duringprocessing,thelogfilebearsa
temporaryname(indicatingthatitisstillbeingcreated);itisnotgivenits
finalnameuntilthelogfileiscomplete.
'Createanewlogfileforeachoutputfile'.Theoutputfilecanbesplitwhen-
everaspecifiedfield(ortag)isencounteredorwhenafieldchanges.
‘CreateXSL,CSSandHTMfiles’whenoutputtinginXMLformat.
11.Clickthe'Save'buttontoretainthesesettingsafteryouclosetheprogram.
OR
Click'Shortcut...'tocreateaShortcuticonwhichusesallthe optionsyou
Convert pdf to html - application control tool: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
Convert pdf to html - application control tool: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
64
haveset (see
Creating aspecialshortcut icon
).
OR
Click'OK'tousethesesettingsforthecurrentsession.
Naminglogfiles
Theextensionnameforthelogfileis.CSV,.XMLor.LOGdependingonthelog
formatthatyouhaveselected.If'Renamelogfilewhenfinished'hasbeen
checked,thetemporarynamewillbe.CS~,.XM~or.LO~forthedurationof
processingonly.
Theoutputfileandlogfilenamesareconstructedbyusingtheoutputspecifica-
tion;ifyouexportseveralsubsetsofthefile,numbersareappendedsothatthe
defaultoutputfilenamesarexxxx1,xxxx2etc.andthelogfileswillhavethe
correspondingnames.
Ifyouselect'Createanewlogfileforeachoutputfile',eachlogfilehasaname
correspondingtoitsoutputfile.Thisappliesevenifonlyonefileiscreated.For
exampleifthefileiscalledTEST.PCL,thefieldcontainsABCDandtheoutput
specificationis*=.PDFthentheoutputfilenamewillbeTESTABCD.PDFandthe
LOGfilewillbeTESTABCDfollowedbytheappropriateextension.
ThisdoesnotapplyiftheinputwasfromTCP/IP,inwhichcaseithasaname
basedonthefirstoutputfilename.
Seealso:
Using wildcards s infile e specifications
Creatingpagenumbers
Pagenumberscanbeaddedtoeachpageofadocumentwhenexporting.This
featureallows'Bates'numberstobecreated;thesearedesignedtobeuniqueover
acompletesetofdocumentsandarenormallymadeupofaprefix,perhapsthe
filenamestem,andaserialnumber.
Thesyntaxforspecifyingtheformatofthenumberissimilartothatforfile
names:
*
representstheoriginalfilestem
?
representsasinglecharacterfromtheoriginalfilestem
"
representsadigitoftheserialnumber
application control tool:Online Convert PDF to HTML5 files. Best free online PDF html
PDF to HTML converter library control is a 100% clean .NET document image solution, which is designed to help .NET developers convert PDF to HTML webpage using
www.rasteredge.com
application control tool:VB.NET PDF Convert to Jpeg SDK: Convert PDF to JPEG images in vb.
PDF from RTF. Create PDF from Text. PDF Export. Convert PDF to Word (.docx). Convert PDF to Tiff. Convert PDF to HTML. Convert PDF to
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
65
Forexample:
Template
Creates numbers
""
01,02,03,etc
Page"
Page1,Page2..Page10etc.
ForaPCLfilecalled'SALES.PRN'withtheuser-addedprefixofAPRIL:
Template
Creates numbers
APRIL*""""
APRILSALES001,APRILSALES002,etc
Youcanalsospecifyastartingpagenumber;thatis,thenumberthatwouldbe
assignedtopage1ofthedocument.Ifforexampleitis12345thenifyoustart
outputatpage10thatpagewillbenumbered12354,sothatthenumberingis
consistentforanysubset.Ifyouselect'Remembernumberfornexttime'thenon
closingthefilethepagenumberissaved(ifitislargerthantheprevioushighest
number).Onexportingafileyouhaveanotherwaytochangethepage1number,
byenteringthevalueintheboxmarked'Page1number'.
Ifyouwanttohavetwodifferentprojectseachwithitsownrangeofpage
numbersthenyouwillneedtousedifferentconfigurationfiles.Theconfiguration
filenamecanbespecifiedonthecommandlineorinashortcut.Usethe'Save
As'buttonontheConfigurationdialoguetocreatesuchafile,andashortcuttoit
(see
Creating aspecialshortcut icon
).
Youcanoptto'Savenumbernow'whichresetsthestoredpagenumbertothe
valueintheboxnexttoit.Notethatotherwisethelast-usedpagenumberisonly
savedifgreaterthanthehighestpreviouslyused.
Pagenumberscanbeincorporatedintothetheoutputfilenamebyincludinga
'plus'signintheoutputfilespecificationinthe‘Export’dialogue(see
Using
wildcardsin file specifications
).
Tooutputthefilewithoutprintingthenumberoneachpage,selectanullfontor
clearthefontpointsizeorthehorizontalorverticalpositionfields.
Tocreatepagenumbers
1. Choose'Configuration...'fromtheOptionsmenu.
2. Selectthe'Layout'tab.
3. SetuptheTemplate.Typeinthepagenumberprefix,ifrequired,inthebox.If
youtype*then
EscapeE
willusethefilenamestemastheprefix.Leaveit
blankfornoprefix.
application control tool:VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
VB.NET PDF - Convert PDF to MS Office Word in VB.NET. VB.NET Tutorial for How to Convert PDF to Word (.docx) Document in VB.NET. Best
www.rasteredge.com
application control tool:C# PDF Convert to Jpeg SDK: Convert PDF to JPEG images in C#.net
C# PDF - Convert PDF to JPEG in C#.NET. C#.NET PDF to JPEG Converting & Conversion Control. Convert PDF to JPEG Using C#.NET. Add necessary references:
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
66
4. Setthe'Numberofdigits'forthepagenumbers.Thiswilladdaseriesof"to
theTemplate.Thetemplatetextcanbe edited.
ToproduceastandardBatesNumber format,setthetemplatetoABCwhere
theABCisthearbitraryprefix,followedbythefilestemanda4-digitpage
number:ABC*"""" (seeNotebelow).
5. SettheHorizontalandVerticalpositionforthepagenumbers(seeNote
below).
6. Setthepointsizeandfontfamilyforthepagenumbertext.
7. Ifrequired,setthe'Numberfornextpage'andwhetherto'Remembernumber
fornexttime'toensurethepagesofsuccessivedocumentsareconsecutive.
Click'Savenumbernow'toresetthestoredpagenumbertothevalueinthe
boxnexttoit.Notethatotherwisethelast-usedpagenumberisonlysavedif
greater thanthehighestpreviouslyused.
8. Clickthe'Save'buttontoretainthesesettingsafteryouclosetheprogram.
OR
Click 'Shortcut...'tocreate aShortcuticonwhichusesalltheoptionsyou
haveset (see
Creating aspecialshortcut icon
).
OR
Click'OK'tousethesesettingsforthecurrentsession.
Notes:
Ifthenumberofdigitsexceedsthenumberofdouble-quotecharactersthepage
numberfieldisextended:thenumbersarenevertruncated.
application control tool:VB.NET PDF Convert to Tiff SDK: Convert PDF to tiff images in vb.
VB.NET PDF - Convert PDF to TIFF Using VB in VB.NET. Free VB.NET Guide to Render and Convert PDF Document to TIFF in Visual Basic Class.
www.rasteredge.com
application control tool:C# PDF Convert to SVG SDK: Convert PDF to SVG files in C#.net, ASP
PDFDocument pdf = new PDFDocument(@"C:\input.pdf"); pdf.ConvertToVectorImages( ContextType.SVG, @"C:\demoOutput Description: Convert to html/svg files and
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
67
Theverticalpositioncanbesetbyreferencetoeither thetoporbottomofthe
physicalpageandthehorizontalpositionrelativetotheleftorrightedge.This
copeswithpagenumbersthatneedtobeneartherightorthebottomofdifferent
sizesofpaper.
Ifthefont,fontpointsize,horizontalpositionorverticalpositionboxesareleft
blank,pagenumberingissuppressed.
Toavoidtruncationthedistancefromthebottomismeasuredtothebottomof
thenominalcharacter cell,includingthedescenders.
IfusingaWindowsprinterdriverthereisanunprintableregionofabout0.3"at
theedgeofthepage:anytextwhichextendedevenpartlyinthisregionis
omittedbythedriver.
Theoffsetsaredefinedinwhateverunitsyouhavechosenforviewingthemouse
coordinates.Tochangethesegotothe‘Options,Configuration...’dialogueand
selectthe ‘Viewing’tab.
Seealso:
Using wildcardsin n file specifications
Settinggeneralexportoptions
TheGeneralsectionoftheConfigurationoptionsiswhereyoucansetpreferences
foralltypesoffileexport.
YoucanspecifythesourcetypeofthePCLfilesothat
EscapeE
canoptimize
other configurationsettings,e.g.symbolset(see
Changingthesymbolset
in
Chapter 3
).
Youcanchoosetoignoreimagesorshadingtoprocessfilesfasteror makethem
smaller.Youcanalsochoosetoignoredownloadfontstogetbetterresultswhen
convertingtoPDFs.
SomePCLprinterdriversputthewrongvaluesforpointsize, weight,styleetc.in
downloadfonts.
EscapeE
cancalculatedownloadfontcharacteristicsifyouwish
tocorrectfortheeffectsofyourprinterdriver.
Tosetgeneralexportoptions
1. Choose'Configuration...'fromtheOptionsmenu.
2. Select t the 'General'tab.
application control tool:C# PDF Convert to Tiff SDK: Convert PDF to tiff images in C#.net
C#.NET PDF SDK - Convert PDF to TIFF in C#.NET. Online C# Tutorial for How to Convert PDF File to Tiff Image File with .NET XDoc.PDF Control in C#.NET Class.
www.rasteredge.com
application control tool:C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
C#.NET PDF SDK - Convert PDF to Word in C#.NET. C#.NET DLLs and Demo Code: Convert PDF to Word Document in C#.NET Project. Add necessary references:
www.rasteredge.com
RedTitanEscapeE
Transformingfiles
68
3. Inthe'INIfile'section:
Select'RT.INI'tousethedefaultconfiguration
OR
Select'*.INI' touseaconfigurationfilewiththesamenameasthedatafile
butwithextension.INI.
4. Under'SourceType',specifytheoriginofthePCLfile.IfyouusedtheWin-
dowsDriver,the RedTitan
DynamicDocumentFormatter
(the PrePrinter)or
the
DataStreamConverter
tocreateit,
EscapeE
canoptimizeother configura-
tionsettings,e.g.symbolset.
5. Rarely,youmaywish
EscapeE
toconvertthecharactersetinthe fonts(see
Changingthesymbolset
in
Chapter3
).Toggledownthe listat'Symbolset'
toselectasuitablesymbolset.
6. Inthe'Ignore'section:
Select'Images'toprocessfilesfasterand,ifimagesareoverlaidonthetext,
easiertoread.
Select'Shading'ifyouwantsmallerfilesizesandyoucantoleratetheabsence
ofshading(shadingdoesnotcompresswell).
Select 'Downloadfonts'togetbetterresultswhenconvertingtoPDFs(the
symbolsetneedstobesetcorrectly,see
Changingthesymbolset
in
Chapter
3
).Youmaychoosetoignorealldownloadedfontsorjustthoseforwhich
substituteshavebeengiven.(Ignoredfontsarenotstored.)
7. Select‘Calculatedownloadfontcharacteristics’ifyouwishtocorrect t forthe
effectsofyourPCLprinterdriver.
EscapeE
willattempttoworkoutthe
RedTitanEscapeE
Transformingfiles
69
correctvaluesforpointsize, weight,styleetc.basedonexaminingthe
downloadedcharacters.Itisnecessarytoknowthecharacteristicswhen
substitutingstandardfontsinaPDForinHTMLwheretheactualdownload
fontsarenotused.
8. Toviewsubstitute e fonts,click ‘View...’ (see
Setting up substitute fonts
in
Chapter 3
).
9. ToedittheEEfile e containing thefielddefinitions,click'Edit...'(see
Reusing
datafields
in
Chapter5
).
10.Selecttheoutputformat.Someformatshavefurtheroptionswhichcanbeset
byclickingthe 'Advanced...'button.
8. Clickthe'Save'buttontoretainthesesettingsafteryouclosetheprogram.
OR
Click'Shortcut...'tocreateaShortcuticonwhichusesallthe optionsyou
have set(see
Creating aspecialshortcut icon
).
OR
Click'OK'tousethesesettingsforthecurrentsession.
Alternatively,expertuserscanclickthe'SaveAs'buttontosavethesesettingsto
afile.Thereisashorthandforuseonthecommandlineforusingtheconfigura-
tion'filename.ini'(ifitexists)anddatafile'filename.pcl':
ESCAPEE ^^* filename.pcl
ToaskforaspecificINIfileonthecommandline,useacommandsuchas:
ESCAPEE ^^c:\temp\newdefs.ini
Notes:
Itisessentialthatthecorrectsymbolsetisspecified.
EscapeE
translatescharac-
tersfromthespecifiedsymbolsetintothestandardWindowsset(19U).
Changingthesymbolset,eitherdirectlyorbychangingthe‘source’setup,may
affectanyfieldsandtagssetuppreviously(see
FieldProblems
in
Chapter5
).
Seealso:
Exporting pages s manually
Setting up automatic c file e export
RedTitanEscapeE
Transformingfiles
70
Settingoptionsforimageexport
Whenexportingpagesasimagesyoucansetthevariousoptionssuchasthetype
ofcompressionandtheresolutionofthefileandyoucanrotatetheimagetothe
orientationofthepage.
Youcanexportonlypartoftheprintedregionbysweepingoutanareaofthepage
withthecursorandchoosing'Selectedarea'fromthe'Images'options.Ifyou
choose'Selectedarea'andnoareahasbeenmarkedout(e.g.whenconvertingin
batchmode)theareawheredatafieldsaremarkedisexported.
Youcanalsosetthesmoothingoptionsforcolourandmonochromeimagesthat
EscapeE
willusewhenimagesneedtobescaleddowninsize.
Tosetimageoptions
1. Choose‘Configuration’fromtheOptionsmenuandclickthe‘Images’tab
OR
Click‘Imageoptions...’fromtheExportwindow.
2. Torotate e theimagetotheorientationofthepage,selectaRotationoption;
theanglesaremeasuredanticlockwise,so270degreesisequivalenttoa
rotationofoneright-angle clockwise.
3. Selectanappropriateresolution:300x300,200x200,150x150or100x100.
Iftheresolutionyourequireisnotoneofthese,selectthelastoptionand
entertherequiredX-resolutionandY-resolutionintheboxes.Valuescanbe
from25to600.NotethatiftheY-resolutionisleftblank,
EscapeE
willuse
thesamevaluespecifiedfortheX-resolution.
RedTitanEscapeE
Transformingfiles
71
ToexportaTIFFfileintendedforfaxing,setuptheappropriatecustom
resolutionasfollows:
Standard
204x98
Fine
204x196
SuperFine
204x392
4. Normallythewhole e pageisexported.Tochangethis,select‘Printedregion
only’orsweepoutanareaofthepageandselect‘Selectedareaonly’.Ifyou
choose'Selectedarea'andnoareahasbeenmarkedout(e.g.whenconvert-
inginbatchmode)theareawheredatafieldsaremarkedisexported.A
bordermaybeaddedbyenteringtherequiredborderwidth(normallysetto0
dots).
5. Selectacompressionmethod:
CCITTgroup3
Asimple1-dimensional(horizontal)compressionfor
blackandwhiteimages.
CCITTgroup4
A2-dimensionalschemewhichusuallygivesmore
compactfilesthanCCITT3.Alsoforblackand
white images.
DocuprintCCITTGroup4 Encodedasasinglemonolithicpieceofdataas
requiredforXeroxDocuprint.
LZW
Forcolourimages.
Packbits
Foraquickercompressionwhichisnotascompact
asLZWorCCITT4.
Default
Tolet
EscapeE
selectthemost suitable
compresionmethodfor theimage.
Uncompressed
Toturnoffcompression.
6. Specifythe‘Finalsize’oftheimageininchesorinpixels.Bycheckingthe
appropriateboxthesizecanbeacheivedeitherbyscalingtothatsizeorby
scalingtothespecifiedresolutionandtrimming.
7. Select‘Forcemonchrome’tooutput t ablackandwhiteimage.
8. Selectthesmoothingoptionsforcolourandmonochromeimagesthatyou
wouldlike
EscapeE
tousewhenimagesneedtobescaleddowninsize.
Choosing'Grayscale'usuallygivesthebesteffect,butonolder,slower
systems,spaceandspeedmaydictatethat'two-bit',oreven'Simple'scaling
maybepreferable.Thesimpleroptionsarealsousefulwhentheimage
RedTitanEscapeE
Transformingfiles
72
containsverysmallcharactersoftext,astheycanbedifficulttoreadwhen
theyarerenderedinshadesofgray.
9. SelecttheshadingoptionsforthePCLshadingpatterns
Standard
Fairlycoursepatternofdots
Fine
Finepatternofdots
Gray-scale
Solidgray.Notethiswillnotbetransparent,unlike
thedot patterns.
10.Clickthe‘Save’buttontoretainthesesettingsafteryouclosetheprogram.
OR
Click ‘Shortcut...’tocreate aShortcuticonwhichusesalltheoptionsyou
haveset (see
Creating aspecialshortcut icon
).
OR
Click‘OK’tousethesesettingsforthecurrentsession.
Tips:
Foroptimumviewingofimagefileswithresolutionsotherthan300dpiusersmay
wishtocreateprescaledfontsatthecorrectresolutionusingRedTitan’s
Font
Rasteriser
.
Youcanrotatetheimagetotheorientationofthepage.Itcanbeusefultoload
TIFFsdirectlyonaXeroxDocuPrintandthencallthemupinPostscript.For
example,foraportraitpageusethe270degreeoption.
SettingoptionsforAFPexport
AFPsystemsusea‘FormDef’resourcetoprocessthedatastreamwhich
EscapeE
cangenerateautomatically.Thedefaultset-upisaone-to-onemappingfromthe
PCLtraynumbertotheAFPtraynumber.Alternatively,Usersmaychooseto
constructtheFormDefmanuallyusingMediumMapnamesandcorrelatingthem
withtheappropriatetraysand'plexing'.Notethatmediummapshavenamesof
uptoeightcharacters.
TosetoptionsforAFPexport
1. Choose‘Configuration...’fromtheOptionsmenu,select'AFP'astheformat
andclick'Advanced...'
Documents you may be interested
Documents you may be interested