adobe pdf reader c# : How to combine pdf files Library control class asp.net web page winforms ajax kile8-part71

TheKileHandbook
Chapter13
DocumentEncoding
TheKileeditorallowsyoutoread,convertandsavetextinthecharacterencodingyourdocu-
mentneeds. Withthisitispossible,forexample,touseaccentedcharacters,suchasarecom-
monlyusedinItalianorFrench,directlyinL
A
T
E
Xdocuments. Selectingtheencodingforyour
documentcanbedoneintwoways:
• OnewaytosetthedocumentencodingisbyusingthesubmenuSettings!ConfigureKile...
!Editor,whereyoucansetthedefaultcharacterencodingforallfiles.
• Asecondwaytosettheencodingforadocumentistochoosethedesiredencodingwithinthe
wizardtocreateanewdocument.
LAT
E
XitselfonlyunderstandsASCII,whichrepresentsaverylimitedsetofcharacters. Hence,
itisnotpossibletouseaccentedcharactersdirectly. Tousethemnevertheless,aspecialsyntax
wasinvented: suchasforexample\´´eforë. . Theinputencpackageisavailabletohelpyou
withthis.Itisincludedinthepreambleusing\usepackage[latin1]{inputenc},wherethe
optionalargumentspecifiestheencodingyouwouldliketouse(nowadaysinmostcasesutf8).
ThistellsL
A
T
E
Xtotranslatealloftheë’syouwroteto\´´e’sbeforecompiling. Pleasereferto
theinputencdocumentationdirectlyformoreinformation.Lastbutnotleast:remembertomake
surethatyourfileisactuallysavedinthesameencodingyouspecifiedfortheinputencpackage!
81
How to combine pdf files - Merge, append PDF files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Provide C# Demo Codes for Merging and Appending PDF Document
add pdf files together online; all jpg to one pdf converter
How to combine pdf files - VB.NET PDF File Merge Library: Merge, append PDF files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET Guide and Sample Codes to Merge PDF Documents in .NET Project
reader combine pdf pages; best pdf merger
TheKileHandbook
Thismultitudeofdifferentcharactercodingtableshascreatednumerousproblems:forexample,
youcannotwriteacourseofTurkishinFrenchwithoutlosingonelanguage’sspecialcharacters.
Thereisgeneralagreementthat,soonerorlater,everybodywillswitchtoUnicode. Thereare
manyimplementationsofUnicode,andUTF-8isthemostsuccessfulinLinux
®
;Windows
®
(R)
reliesinsteadonthemorecumbersomeandlessflexibleUCS-2.Mostdistributionshavealready
begunsettingtheirdefaultencodingtoUTF-8,andthereforeyoumaybeveryinterestedinusing
theutf8argumenttotheinputencpackage.
13.1 TheucsPackage
Ifyoudon’thavetheucspackageinstalled,youcanproceedasfollows:
• GettheucspackagefromCTAN.
• Toinstallit,unpackthedownloadedfileandplaceitinafolderlistedinyour$TEXINPUTS
environmentvariable.ThiscanalsobesetinsideKile.
\usepackage{ucs}
\usepackage[utf8]{inputenc}
13.2 XeLaTeX
IfyouareusingXeLaTeX,youcansimplyloadthexltxtrapackage. Itwilladditionallyload
alltherequiredpackages.
\usepackage{xltxtra}
13.3 CJKSupport
Addingsupportforideographiclanguagesisquitetricky. However,onceyouaredonewithit,
itwillworkquitewell.Otherthaninstallingpackages,thereissomeextraconfigurationworkto
do.
T
IP
YourLinux
®
distributionmightalreadyhaveaCJK(Chinese,Japanese,Korean)packagereadyforyou,
soyoumightbesavedthehassleofmanuallyinstallingeverything.Docheckbeforegoingforward!
ThereisthepossibilityofusingtheucspackageinordertowriteshortsnippetsofCJKtext,but
thatoptionisseriouslylimitedasitdoesnothandle,amongotherthings,newlines.Instead,we
willinstallthecompleteCJK-LAT
E
XpackageandmakeitworkforbothLAT
E
XandPDFLAT
E
X.
AlotofthismaterialhasbeeninspiredbyPaiH.Chou’spageabouthowtosetupPDFLATEX.
1. DownloadtheCJKpackage.Copyitsunpackedfilestoanappropriatesubfolderof$TEXMF,
justasyoudidwiththeucspackagebefore(seeSection13.1).Thefileswillbeunpackedin
aCJK/X_Y.Zfolder;itisnotimportantthatyoutakethemout,thoughitwillprobablybe
tidierandeasierforyoutomaintain.
82
Online Merge PDF files. Best free online merge PDF tool.
RasterEdge C#.NET PDF document merging toolkit (XDoc.PDF) is designed to help .NET developers combine PDF document files created by different users to one PDF
pdf combine; scan multiple pages into one pdf
C# Word - Merge Word Documents in C#.NET
RasterEdge C#.NET Word document merging toolkit (XDoc.Word) is designed to help .NET developers combine Word document files created by different users to one
pdf merge comments; pdf combine pages
TheKileHandbook
2. Now w youhave todownloadafont thatsupportsalltheCJKcharactersyouneed. . You
canchooseany*.ttffilethatcoversthem,butinthiswalkthroughwewilluseCyberbit.
UnzipthefileandrenameCyberbit.ttftocyberbit.ttf,sinceuppercasemightconfuse
yoursystem.
Placecyberbit.ttfinafoldertogetherwithUnicode.sfd,andgeneratethe*.tfmand*.e
ncfileswiththecommand$ ttf2tfm cyberbit.ttf f -w w cyberbit@Unicode@.For
somereason,sometimesthisdoesnotproducethehundredsoffilesitshould.Shouldthat
happeninyourcase,youcandownloadboth*.tfmand*.encfiles.
Placethe*.tfmfilesinanappropriatefolder,say$TEXMF /fonts/tfm/bitstream/cyberbi
t/ ;the*.encfilesmaybeinstalledin$TEXMF /pdftex/enc/cyberbit/ .
3. Nowweneedamapfiletoconnectthe*.encfilestothefont.Downloadcyberbit.mapand
installitin$TEXMF /pdftex/config/ / .
4. Download d another file, c70cyberbit.fd, and d place it inan appropriatefolder. . Youmay
choose,forexample,$TEXMF /tex/misc/ / .
5. ThelastfilewehavetogenerateisaPostScript® Type1font,necessarytoreadDVIfiles
generatedwithL
A
T
E
X.Runthecommand$ ttf2pfb cyberbit.ttf -o cyberbit.
pfb,andcopytheresultingcyberbit.pfbtoafoldersuchas$TEXMF /fonts/type1/cyber
bit/ .
6. Let’snowplacecyberbit.ttfamongthefontswhereL
A
T
E
Xcanfindit.Youcouldplaceit
inafoldernamed$TEXMF /fonts/truetype/ / .
7. Checktheconfigurationfileyoufindat$TEXMF /web2c/texmf.cnf,andmakesurethatthe
linementioningTTFONTSisuncommentedandpointstothefolderwhereyousavedcyber
bit.ttf.
8. TomakeitpossibleforPDFLAT
E
XtouseyourCJKfonts,itisnecessarythatyouaddaline
intheconfigurationfile$TEXMF /pdftex/config/pdftex.cfg.Addmap +cyberbit.map
inthefiletocompletetheconfigurationforPDFL
A
T
E
X.
9. ToconfigureL
A
T
E
XsothatyoucanproduceDVIfileswithCJKcharacters,youhavetoadd
alineinfilettfonts.map.Thefilemightbeinafoldernamed$TEXMF /ttf2pk/ ,butyou
willprobablyhavetolookforit.Appendthelinecyberbit@Unicode@ cyberbit.ttf
toit.
10. Now,youonlyhavetoruntexhashandthesystemshouldbeready.
Totestwhetheryourconfigurationiscorrect,youcantrytocompilethistestfile.
13.3.1 CJKTroubleshooting
There aremanythingsthatcangowrongwhenaddingCJKsupport manually. . Ifsomething
seemsnottowork,thefollowingchecklistmighthelpyou.
• Obviously,sinceyourunL
A
T
E
Xasauserandnotasroot,youmustallowordinaryusersto
accessthenewfiles.Makesureallfoldersandfilesareaccessibleusingthechmodcommand.
• IfL
A
T
E
XwritesaDVIwithoutproblems,butyoucannotviewit,itisalmostcertainlybecause
ofsomeproblemsintheautomaticgenerationof*.pkfonts.Theyaresupposedtobegenerated
ontheflywhenviewingaDVIfile,butthismightfailforanumberofreasons:double-check
ttfonts.mapforyourcustomlinefirst.However,itmighthappenthatyourttf2pkcommand,
whichisusuallyinvokedbytheDVIviewer,hasbeencompiledwithoutsupportforthekpath-
sealibraries. Ifthisisthecase,ttf2pk --versionwillmakenomentionofkpathsea. . As
supportfortheselibrariesisnecessary,youmighthavetofindanewpackage,orrecompile
FreeType1yourself.
83
C# PowerPoint - Merge PowerPoint Documents in C#.NET
RasterEdge C#.NET PowerPoint document merging toolkit (XDoc.PowerPoint) is designed to help .NET developers combine PowerPoint document files created by
pdf mail merge; pdf merge documents
C# PDF: C#.NET PDF Document Merging & Splitting Control SDK
C#.NET PDF Merger to Combine PDF Files. Using following C#.NET PDF document merging APIs, you can easily merge two or more independent PDF files to create a
break pdf into multiple files; c# merge pdf
TheKileHandbook
13.3.2 HowdoIinputCJKinUnicode?
Thereareanumberofdifferentinputengines,andthechoicecandependalsoonpersonalpref-
erence. TheauthorusesSkim,aporttoKDEoftheScimengine. . Refertoyourdistribution’s
documentationtolearnhowtoinstalltheseprograms. Configurationofsuchprogramscanbe
trickytoo,inthecaseofSkimyouwillhavetodefineanenvironmentvariableXMODIFIERS=´´
@im=SCIM´´beforestartingX.
84
C# PDF File Split Library: Split, seperate PDF into multiple files
Split PDF document by PDF bookmark and outlines. Also able to combine generated split PDF document files with other PDF files to form a new PDF file.
reader create pdf multiple files; pdf combine two pages into one
VB.NET Word: Merge Multiple Word Files & Split Word Document
As List(Of DOCXDocument), destnPath As [String]) DOCXDocument.Combine(docList, destnPath) End imaging controls, PDF document, image to pdf files and components
best pdf combiner; reader merge pdf
TheKileHandbook
Chapter14
Scripting
14.1 ScriptinginKile
Kile’sscriptingfeatureallowstheexecutionofECMAScriptcode,widelyknownasJavaScript.
Youwillfindalotoftutorials,whichprovideinformationaboutobjects(variables),functionsand
propertiessupportedbyJavaScript.
ScriptingsupportcanbeenabledintheconfigurationdialogofKile:Settings!ConfigureKile...
!Kile+Scripting.
Ifscriptingisenabled,anadditionalscriptingpanelisvisibleinthesidebar,wherescriptscanbe
managed:
85
VB.NET TIFF: Merge and Split TIFF Documents with RasterEdge .NET
String], docList As [String]()) TIFFDocument.Combine(filePath, docList powerful & profession imaging controls, PDF document, tiff files and components
split pdf into multiple files; add pdf pages together
VB.NET TIFF: .NET TIFF Merger SDK to Combine TIFF Files
VB.NET TIFF merging API only allows developers to combine two source powerful & profession imaging controls, PDF document, image to pdf files and components
combine pdf files; c# pdf merge
TheKileHandbook
Thiswidgetcontainssixicons,whichofferdifferenttasks:
• Runtheselectedscript.
• Createanewscript.
• Opentheselectedscriptintheeditor.
• Configureakeysequencefortheselectedscript.
• Removeanassignedkeysequence.
• Refreshthelistofavailablescripts,whichareallfoundin$KDEDIR R /share/apps/kile/script
s/ .
14.2 ExecutingaScript
Youcanexecuteascriptinthreedifferentways:
1. SelectthedesiredscriptandclickontheExecutebuttonontheleftsideofthescriptman-
agementwidget.
2. Useakeyboardshortcut.
86
TheKileHandbook
Youcanassignakeyboard shortcutto ascriptusingtheConfigurebuttoninthescript
managementwidget.
3. Useaneditorkeysequence. Thescriptwillbeexecuted,ifyoutypetheassignedkeyse-
quenceintheeditor.
Thismethodcanbeextendedtoarathersophisticatedkindofcodecompletion. Letus
assumethatyouhaveawrittenascript,whichsimplyinsertstheL
A
T
E
Xcommand\text
bf{}intothecurrentdocument.
document.insertText("\\textbf{%C}");
Ifyounowtypetheassignedkeysequencebfxinyourtextdocument,thiskeysequence
willberemovedandthescriptwillbeexecuted.Itwillinsert\textbf{}andthecursoris
placedbetweenthebraces.
Whatacomfortableandpowerfulmethodofcodecompletion.
14.3 APIReference
ThescriptingAPIpresented hereisavailable inallscripts. . Before e thecontentsofascript is
loaded,Kilefirstaddsseveralprototypesandfunctionstothescriptingcontext.Thisconvenience
87
TheKileHandbook
APIcontainsprototypesliketextcursorsandtextrangesandislocatedinthefolderKILE_APP_D
IR/script-plugins/ .
KilescriptsdifferslightlyfromKatescripts,whichuseanotherdesign,astheyalsocanbestarted
fromthecommandline. ButallfunctionsoftheKatescriptingAPIarealsoavailableinKile’s
scriptingAPI,soportingJavaScriptcodefromKatetoKileshouldbeveryeasy. ButasKileisa
veryrichfeaturedL
A
T
E
Xeditor,itsownscriptingAPIoffersmanymorepossibilitiesthanKate’s
one.
Remark:DescriptionofAPIcalls,whicharealsoavailableinKatescripting,havebeentakenfrom
Kate’sdocumentation.
14.3.1 GlobalFunctions
Thissectionlistsglobalfunctions.
void debug(
String text
);
Prints
text
tostdoutintheconsole.Theprintedtextiscoloredtodistinguishitfromother
debugoutput.
14.3.2 TheCursorPrototype
AsKileisatexteditor,allthescriptingAPIisbasedoncursorsandrangeswheneverpossible.A
Cursorisasimple(line, column)tuplerepresentingatextpositioninthedocument.
Cursor();
Constructor:ReturnsaCursoratposition(0,0).
Example:var cursor r = = new Cursor();
Cursor(
int line
,
int column
);
Constructor:ReturnsaCursoratposition(line,column).
Example:var cursor r = = new Cursor(3,42);
Cursor(
Cursor other
);
Copyconstructor:Returnsacopyofthecursor
other
.
Example:var copy = = new Cursor(other);
Cursor Cursor.clone();
Returnsacloneofthecursor.
Example:var clone e = = cursor.clone();
bool Cursor.isValid();
Checkwhetherthecursorisvalid.Thecursorisinvalidiflineand/orcolumnaresetto-1.
Example:var valid d = = cursor.isValid();
88
TheKileHandbook
Cursor Cursor.invalid();
Returnsanewinvalidcursorlocatedat(-1,-1).
Example:var invalidCursor = = cursor.invalid();
int Cursor.compareTo(
Cursor other
);
Comparesthiscursortothecursor
other
.Returns
• -1,ifthiscursorislocatedbeforethecursor
other
,
• 0,ifbothcursorsequaland
• +1,ifthiscursorislocatedafterthecursor
other
.
bool Cursor.equals(
Cursor other
);
Returnstrue,ifthiscursorandthecursor
other
areequal,otherwisefalse.
String Cursor.toString();
ReturnsthecursorasastringoftheformCursor(line,column).
14.3.3 TheRangePrototype
AsKileisatexteditor,allthescriptingAPIisbasedoncursorsandrangeswheneverpossible.As
Cursorisasimple(line, column)tuplerepresentingatextpositioninthedocument,aRange
spanstextfromastartingcursorpositiontoanendingcursorposition.
Range();
Constructor:Callingnew Range()returnsaRangeat(0,0) ) - - (0,0).
Range(
Cursor start
,
Cursor end
);
Constructor:Callingnew Range(start, end)returnstherangefromcursor
start
tocursor
end
.
Range(
int startLine
,
int startColumn
,
int endLine
,
int endColumn
);
Constructor: Calling g new Range(startLine,startColumn,endLine, endColumn) returns
theRangefrom(startLine,startColumn)to(endLine,endColumn).
Range(
Range other
);
Copyconstructor:ReturnsacopyofRangeother.
Range Range.clone();
Returnsacloneoftherange.
Example:var clone e = = range.clone();
89
TheKileHandbook
bool Range.isValid();
Returnstrue,ifbothstartandendcursorarevalid,otherwisefalse.
Example:var valid d = = range.isValid();
bool Range.invalid();
ReturnstheRangefrom(-1,-1)to(-1,-1).
bool Range.contains(
Cursor cursor
);
Returnstrue,ifthisrangecontainsthecursorposition,otherwisefalse.
bool Range.contains(
Range other
);
Returnstrue,ifthisrangecontainstheRange
other
,otherwisefalse.
bool Range.containsColumn(
int column
);
Returnstrue,if
column
isinthehalfopeninterval[start.column, end.column],otherwise
false.
bool Range.containsLine(
int line
);
Returnstrue,if
line
isinthehalfopeninterval[start.line, end.line],otherwisefalse.
bool Range.overlaps(
Range other
);
Returnstrue,ifthisrangeandtherange
other
shareacommonregion,otherwisefalse.
bool Range.overlapsLine(
int line
);
Returnstrue,if
line
isintheinterval[start.line, end.line],otherwisefalse.
bool Range.overlapsColumn(
int column
);
Returnstrue,if
column
isintheinterval[start.column, end.column],otherwisefalse.
bool Range.equals(
Range other
);
Returnstrue,ifthisrangeandtheRange
other
areequal,otherwisefalse.
String Range.toString();
ReturnstherangeasastringoftheformRange(Cursor(line,column) - - Cursor(line,col
umn)).
90
Documents you may be interested
Documents you may be interested