c# open pdf file in adobe reader : Cut pages from pdf software Library cloud windows asp.net wpf class tlgc2extra17-part1457

22.6 PDFmanipulationtools
update_info <info data filename | - | PROMPT>
Changesthe metadata storedinasingle PDF’s Infodictionaryto match the inputdatafile.
einputdatafileusesthesamesyntaxastheoutputfrom
dump_data
.
[output <output filename | - | PROMPT>]
Specifies the output PDF filename, which must be different from anyinput filename. Use
-
to
outputtostdout.
# Wildcards to concatenate all pdf files in the current directory
pdftk *.pdf cat output all.pdf
[encrypt_40bit | encrypt_128bit]
eencryptionstrengthforauseror ownerpasswordtobeassigned toanoutput documentde-
faultsto128bits.iscanbeoverriddenbyspecifying
encrypt_40bit
.
[allow <permissions>]
PermissionsareappliedtotheoutputPDFonlyifanencryptionstrengthisspecifiedoranowner
oruserpasswordisgiven.Ifpermissionsarenotspecified,theydefaultto“
none
,”andallfeatures
aredisabled(seetheprogramdocumentationformoredetails).
[owner_pw <owner password | PROMPT>]
[user_pw <user password | PROMPT>]
If anencryptionstrength is givenbutno passwordsaresupplied, thentheowner and user pass-
wordsremainempty,whichmeansthattheresultingPDFmaybeopenedanditssecurityparam-
etersalteredbyanybody.
# encrypt PDF using 128-bit strength (default)
#
and withhold all permissions (default)
pdftk in.pdf output out128.pdf owner_pw Opass
# as above, but user needs password to open the PDF
pdftk in.pdf output out128.pdf owner_pw Opass user_pw Upass
# as above, but after the PDF file is open only printing is allowed
pdftk in.pdf output out128.pdf owner_pw Opass user_pw Upass allow printing
[compress | uncompress]
RemovePDF pagestream compressionbyapplyingtheuncompress filterso that thefilecanbe
changed or inspected inaneditor, such as
emacs
.Aer editing thecompress filter will restore
compression.
# uncompress PDF file for editing the PDF code in a text editor
pdftk in.pdf output editable.pdf uncompress
[flatten]
ch-psextra2.tex,v:2.27
2007/08/13
161
Cut pages from pdf - remove PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Provides Users with Mature Document Manipulating Function for Deleting PDF Pages
delete pages from pdf preview; delete page from pdf
Cut pages from pdf - VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Visual Basic Sample Codes to Delete PDF Document Page in .NET
delete pdf pages in preview; delete pages from a pdf online
22
POSTSCRIPTANDPDFTOOLS
isoptionmergesinteractiveformfields(andtheirdata)associatedwithaninputPDFfilewith
thepagesofthatfile.
[verbose]
Bydefault,
pdftk
runsquietly.e
verbose
optionwillprovidemoreinformationabouttherun.
[dont_ask | do_ask]
pdftk
maypromptforfurtherinputwhenitencountersaproblem,suchasabadpassword.Youcan
controlthedefaultbehaviorbyspecifying
do_ask
(
pdftk
willaskyouwhattodo)or
dont_ask
(
pdftk
willnotask you what to do). In
dont_ask
mode,
pdftk
overwrites files with its output
withoutprompting.
Aninterestingexampleoftheuseofthe
background
optioniscoloringthebackgroundoneach
pageofaPDFdocument,asfollows:
echo ”%%BoundingBox: 0 0 595 842
0.9 0.9 0.8 setrgbcolor
% set color
% start drawing the rectangle
0 0 moveto 595 0 rlineto 0 842 rlineto -595 0 rlineto
% close it and fill it with the chosen color
closepath fill
showpage ” |
ps2pdf - |
pdftk article.pdf background - output article_color1.pdf
Forchangingthecolor you canadjust thethreevalues precedingthe
setrgbcolor
command. You
canalsostoretheEPSpartoftheaboveinafileanduse:
more co.eps | ps2pdf - | \
pdftk article.pdf background - output article_color2.pdf
Whenoperatingona singlePDF file,
pdftk
preservesits bookmarks. Onthe other hand, when
combiningPDFfilesorwhenextractingpagesintoanewPDF,theresultingPDFfilehasnobookmarks.
22.6.2 mbtPDFasm
ierrySchmitt developed the program
mbtPDFasm
,¹ which can assemble or merge PDF files, and
extract informationfrom or update themetadata associated with PDF files. Compared to
pdftk
this
program is veryfastif you wish tosimplyassemblePDF filesresultingfrom ascanner, or output by
othersoware,etc.Italsooffersasimpleandconvenientwaytoupdatetheglobalmetadataassociated
toaPDFfile.
eprogramfeaturesthefollowingoptions.
mbtPdfAsm -[mM]Mask -dDest [-a] [-as] [-b] [-z] [-r]
[-oFilename] [-pPagelist] [-sFilename]
[-c[RUOL]Param] [-g[HACFKNST]] [-u[PK]] [-lPx] [-S]
[-tText] [-T[cfosxy]Value] [-n] [-N[0cfsxy]Value] [-RValue]
¹Available fromhttp://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html,whereyou can also
findaJava-basedGraphicInterfacefor
mbtPdfAsm
.
162
ch-psextra2.tex,v:2.27
2007/08/13
C# PDF Page Extract Library: copy, paste, cut PDF pages in C#.net
C#.NET PDF Library - Copy and Paste PDF Pages in C#.NET. Easy to C#.NET Sample Code: Copy and Paste PDF Pages Using C#.NET. C# programming
delete page on pdf reader; reader extract pages from pdf
VB.NET PDF Page Extract Library: copy, paste, cut PDF pages in vb.
C:\test1.pdf") Dim pdf2 As PDFDocument = New PDFDocument("C:\test2.pdf") Dim pageindexes = New Integer() {1, 2, 4} Dim pages = pdf.DuplicatePage(pageindexes
delete pages on pdf; delete pages from pdf file online
22.6 PDFmanipulationtools
Mask
Perl-likeregular expressionidentifyingthefilestobeassembled. Severalmasks canbecom-
binedbyseparatingthemwithasemicolon(
;
)orwithacomma(
,
)onLinux.Whenusing
-M
insteadof
-m
theinterpretationofthemaskwillbe“regularized”,i.e.,
*
standsforanynumber
ofarbitrarycharacters, and
?
foranysinglecharacter.Bydefault,filesaresorted inalphabetic
orderbeforeassembling.
Dest
Nameof theassembled result. If
Dest
comprises a directory“path”, the latter must already
exits. Whenthedestinationfilematches amask, thedestinationfilewillbeoverwritten, but
notassembled.
Onpage159weused
pdftk
’s
burst
optiontoseparateafileintoone-pagesegments.Wecanre-
assemblethemintoasinglePDFfile
all.pdf
asfollows:
> mbtPdfAsm -Mpg*pdf -dall.pdf
mbtPdfAsm version 1.0.25
./pg_0001.pdf inserted (1 page(s)).
./pg_0002.pdf inserted (1 page(s)).
./pg_0003.pdf inserted (1 page(s)).
./pg_0004.pdf inserted (1 page(s)).
./pg_0005.pdf inserted (1 page(s)).
./pg_0006.pdf inserted (1 page(s)).
./pg_0007.pdf inserted (1 page(s)).
./pg_0008.pdf inserted (1 page(s)).
./pg_0009.pdf inserted (1 page(s)).
./pg_0010.pdf inserted (1 page(s)).
./pg_0011.pdf inserted (1 page(s)).
end of process, 11 page(s) assembled
22.6.2.1 Programoptions
-a
Assemblefileswithoutsortingthem.
-as
Assembledfilesintheorderspecifiedbythemask.
-b
Basedirectoryfromwhichtheselectionmaskisapplied.
-c
Accesrestrictions:
R
definerestrictions;
a
addannotationsorforms;
m
modify;
p
print;
s
selectandextract;
U
openingpassword;
O
modifiesrestrictionpassword;
L
lengthofencryptionkey(5means40bitsand16means128bits,theonlytwovaluessupported
byAdobe
Acrobat
).
Wecanassemblethefilesweconcatenatedinthepreviousexampleandimposeapassword
my-
pass
forreadingthecombinedfile
all1.pdf
,asfollows.
> mbtPdfAsm -mpg.*\.pdf -cRp -cOmypass -dall1.pdf
Whenspecifyingtheselections
-cRamps
alllistedrestrictionswillbeapplied.Whenmerging,if
therestrictions onaninputfilearemorerestrictivethanthose specifiedonthecommand line,
themorerestrictiverestrictionwilltakeeffect.
ch-psextra2.tex,v:2.27
2007/08/13
163
VB.NET PDF copy, paste image library: copy, paste, cut PDF images
VB.NET PDF - Copy, Paste, Cut PDF Image in VB.NET. Copy, paste and cut PDF image while preview without adobe reader component installed.
delete pages of pdf preview; delete page pdf file
C# PDF copy, paste image Library: copy, paste, cut PDF images in
C#.NET PDF SDK - Copy, Paste, Cut PDF Image in C#.NET. C#.NET Demo Code: Cut Image in PDF Page in C#.NET. PDF image cutting is similar to image deleting.
delete page from pdf acrobat; delete pages of pdf
22
POSTSCRIPTANDPDFTOOLS
-g
Getinformationfromthefile(s)matchingthemask(s):
A
author;
C
encryptioninformation(handler,keylength,userpassword);
H
headerlineforthedisplayedinformation;
F
filename;
K
keywords;
N
numberofpagesinthefile;
S
subject;
T
title.
einformationisprintedonstandard output andonseparatelines. Wecanlookwhat thefile
exapdflatex.pdf
containsasmetadata,andobtainthefollowing:
> mbtPdfAsm -Mexapdflatex.pdf -gACHFKNST
file name;number of pages;Author;keywords;Subject;Title;
security handler;key length;user password;
./exapdflatex.pdf;11;;;;;;0;0;134720045;
Weseethatnotmuchmetadataispresent.Belowweshalladdsomewiththe
-s
and
-u
options.
-l
LimitthenumberofpagesintheresultingPDFfile(s)(seetheprogramdocumentation).
-n
Insertanumberfrom0intheassembledpage.
-N
Formatofthenumberingdisplayedwiththe
-n
option(seetheprogramdocumentation).
-o
Nameofthefilecontainingthe descriptionofthe outlines (bookmarks,seetheprogramdocu-
mentationforthedescriptionoftheformatofthisfile).
-oO
Keepoutlines.
-p
Listofpagestobeextractedfromthefilesmatchingthemaskofthe
-m/M
option(seetheprogram
documentationforadescriptionofthesyntax).Forinstance,thefirstpageofall
.pdf
filesinthe
currentdirectoryisextractedintothefile
allpage1.pdf
withthecommand:
> mbtPdfAsm -M*.pdf -p1 -dallpage1.pdf
-r
Lookforfilesrecursively.
-R
Rotateallthepagesofthedestinationfile(possiblevaluesare90,180,and270).
-s
Nameofascript file,whosenamemust not beginby
A
,
K
,
S
,or
T
(theprogramdocumentation
containsa descriptionofitsformat). If the updatemodeis set,this optioncanalso beused to
specifythemetadatato be updatedwith thefollowingconvention:
-sA
identifiesthe “Author”,
-sK
the“Keywords”,
-sS
the“Subject”,and
-sT
the“Title”(inthespecificationspacesshouldbe
replacedbyunderscores).Anexampleisgivenbelow.
-S
Runtheapplicationinsilentmode,(noinformationisdiplayed).
-t
Texttobeaddedatthebottomoftheassembledpages.
-T
Formatthetextdisplayedwiththe
-t
option(seetheprogramdocumentation).
-u
Setupdatemode.
P
erasethemetadatadatawhennovalueisspecifiedonthecommandline;
K
erasetheoriginalfile,otherwisea
pdfbak
fileissaved.
-z
Invertthealphabeticorderofthefilestobeassembled.
Wecanintroducemetadataintothefile
exapdflatex.pdf
(whichcontainednone,seetheexample
164
ch-psextra2.tex,v:2.27
2007/08/13
VB.NET PDF Page Insert Library: insert pages into PDF file in vb.
Page: Insert PDF Pages. |. Home ›› XDoc.PDF ›› VB.NET PDF: Insert PDF Page. Add and Insert Multiple PDF Pages to PDF Document Using VB.
delete a page from a pdf file; delete pages pdf
C# PDF Page Insert Library: insert pages into PDF file in C#.net
doc2.Save(outPutFilePath); Add and Insert Multiple PDF Pages to PDF Document Using C#. Add and Insert Blank Pages to PDF File in C#.NET.
delete pages pdf online; delete page pdf acrobat reader
22.6 PDFmanipulationtools
of the
-g
optionabove) with the
-u
(update) and
-s
options, plus restrict the resultingfile toread
accessonly(
-c
option),asfollows:
> mbtPdfAsm -Mexapdflatex.pdf -u -cRp \
>
-sAMaria_Physicist -sKLaTeX_PDF_math \
>
-sSMaking_PDF -sTEnergy_loss_straggling
file ./exapdflatex.pdf updated
Usingthe
-g
optionwecancheckwhetherthemetadatahavebeenenteredcorrectly.
> mbtPdfAsm -Mexapdflatex.pdf -gACHFKNST
file name;number of pages;Author;keywords;Subject;
Title;security handler;key length;user password;
./exapdflatex.pdf;11;Maria Physicist;LaTeX PDF math;Making PDF;
Energy loss straggling;/Standard;40;0;134720045;
WecanalsoobtaininformationaboutaPDFfilewiththe
pdfinfo
program.Weoncemoreseethatthe
metadatahavebeenentered correctlyintothefile. Wealso notice theeffect ofthe
-cRp
option: the
Encrypted
”lineshows that onlythe“
print
”entryisnot encrypted (andhenceallowed), whileall
otheractionsaredisallowed.
> pdfinfo exapdflatex.pdf
Title:
Energy loss straggling
Subject:
Making PDF
Keywords:
LaTeX PDF math
Author:
Maria Physicist
Creator:
LaTeX with hyperref package
Producer:
mbt PDF assembleur version 1.0.25
CreationDate: Sun May
7 20:57:22 2006
Tagged:
no
Pages:
11
Encrypted:
yes (print:no copy:yes change:yes addNotes:yes)
Page size:
595.276 x 841.89 pts (A4)
File size:
181503 bytes
Optimized:
no
PDF version:
1.4
22.6.3 UsingjavaforhandlingPDFfiles
Multivalent
(
http://multivalent.sourceforge.net/Tools/index.html
)isa
java
libraryof
utilitiesformanipulatingPDFfiles.efollowingfunctionsareprovided.
Compress
ecompressionalgorithmremoves duplicated orunusedobjects, stripsoffregenerable
objects (ASCIIfilters, thumbnails), and replaces LZW compressionwith the superior Flate
(also oninlineimages), and performs other optimizations. Command line options make it
possibletoinitiatepossiblefurtherspacesavings.
Uncompress
eoutputfilewillcontainthecontentsoftheinputPDFfileinanpretty-printedun-
compressed format, that canbe easilyinspected and edited (e.g., fixingtypos, addingkey-
words,title,andannotations,etc.Note,however,thattextwillnotbereflowed).Aerediting,
thefileshouldbehandledwiththe
Compress
tooltorecompressthestreamsandrebuildthe
cross-referencetable.
ch-psextra2.tex,v:2.27
2007/08/13
165
How to C#: Basic SDK Concept of XDoc.PDF for .NET
example, you may easily create, load, combine, and split PDF file(s), and add, create, insert, delete, re-order, copy, paste, cut, rotate, and save PDF page(s
add and delete pages from pdf; delete pages from pdf document
VB.NET PDF: Basic SDK Concept of XDoc.PDF
example, you may easily create, load, combine, and split PDF file(s), and add, create, insert, delete, re-order, copy, paste, cut, rotate, and save PDF page(s
delete pages on pdf online; cut pages from pdf file
22
POSTSCRIPTANDPDFTOOLS
Impose
etoolarrangesoneormoreexistingpagesontoasingleoutputpage.Simple“n-up”(e.g.,
shrinking two or four pages onto one) as well as more complex layouts (booklets, rotated
pages, folded brochures, etc.)are possible (compare this with the
psutils
tools described in
Section22.4.1).
Info
DisplaysinformationaboutthePDFdocumentspecified,such asitstitle,author,pagecount,
pagesize,metadata,annotations,useoffonts.
Decrypt
Whensupplyingtheownerpassword thistoolsdecryptsPDFswithstandardsecurity,40-
bitor128-bitkeys.
Encrypt
EncryptsaPDFfileusingstandard40-bitor128-bitencryption.Moreover,restrictionscan
bespecifiedfordocumentuse,suchasdisallowingcopyandpasteorhighqualityprinting.
Split
SplitsonePDFfileintooneormorenewPDFdocuments.Subsetscanbespecified,pagescan
bedeleted,rearranged,duplicated,orblankpagescanbeinserted.
Merge
MergestwoormorePDFfilesintoone,preservingnameddestinations,outlines,andinterac-
tiveforms.Namingconflictsofdestinationsarehandledbyrenamingthesecondandfurther
occurrences.
Repair
Repairs PDF files that are not too severelydamaged. Whenrunning into hard problems
whereit cannot fixthedamage, thetooltriestoread thePDF data objects sequentially,and
willcollectallintactobjects.eusercanthentryandfixtheproblemusing
Uncompress
to
generateaneditablefile,followedby
Compress
.
Validate
ExaminesPDFfiles.edesiredlevelofdetailanderrorreportingcanbeselected.
Undo
UndoesthelastincrementalupdateinaPDFfile(e.g.,annotationsaddedbyAdobe
Acrobat
of
with
Multivalent
’s
Merge
toolandits
-append
optioncanbeundonethatway).
Extract
ExtracttextfromaPDFdocument.etextcanbenormalizedtoUnicode.Optionsallow
onetoalsoextractdocumentstructure,hyperlinks,layout(boundingboxes),andstyle(fonts).
Wecantestthistoolsetwiththefile
exapdflatex.pdf
mentionedinSection22.5.3.
> export CLASSPATH=path to Multivalent.jar
> java tool.pdf.Validate exapdflatex.pdf
> java tool.pdf.Uncompress -fonts exapdflatex.pdf
exapdflatex-u.pdf is UNCOMPRESSED and pretty-printed, and can be edited
> java tool.pdf.Info -all exapdflatex.pdf
Filename: exapdflatex.pdf
Title: Energy loss straggling
Author: Maria Physicist
Subject: Making PDF
Keywords: LaTeX PDF math
Creator: LaTeX with hyperref package
Producer: mbt PDF assembleur version 1.0.25
Created: Sun May 07 19:57:22 GMT+01:00 2006
Page count: 11
PDF version: 1.4
outline
Encrypted: filter Standard (revision 2), 40-bit key, null password
restrictions:
print
fill forms
accessibility
assemble
anno: page 1, object 52, Link, bounds 81.0x9.0@(123.0,547.0)
anno: page 1, object 53, Link, bounds 91.0x11.0@(123.0,524.0)
166
ch-psextra2.tex,v:2.27
2007/08/13
22.6 PDFmanipulationtools
anno: page 1, object 54, Link, bounds 77.0x9.0@(138.0,514.0)
anno: page 1, object 55, Link, bounds 91.0x11.0@(123.0,490.0)
anno: page 1, object 56, Link, bounds 102.0x11.0@(123.0,468.0)
anno: page 1, object 57, Link, bounds 83.0x9.0@(123.0,448.0)
anno: page 1, object 58, Link, bounds 145.0x11.0@(138.0,434.0)
anno: page 1, object 59, Link, bounds 233.0x11.0@(138.0,422.0)
Annotations on pages 2 to 11
FONT NAME
TYPE
ENCODING
EMB SUB UNI
OBJ#
CMBX10
Type1
<custom>
Y
Y
N
22
CMBX12
Type1
<custom>
Y
Y
N
17
CMEX10
Type1
<custom>
Y
Y
N
74
CMMI5
Type1
<custom>
Y
Y
N
148
CMMI7
Type1
<custom>
Y
Y
N
47
CMMI10
Type1
<custom>
Y
Y
N
32
CMMI12
Type1
<custom>
Y
Y
N
153
More font declarations
Helvetica-Bold
Type1C
<intrinsic>
Y
Y
N
130
Symbol
Type1C
<intrinsic>
Y
Y
N
93
Symbol
Type1C
<intrinsic>
Y
Y
N
97
Symbol
Type1C
<custom>
Y
Y
N
134
297 objects
22 fonts: 22 Type 1 4 embedded [QRIQJA+CMR17, TEGQEH+CMR12,
YHUMEK+CMBX12, EYUMTP+CMBX10, JNXCTC+CMR10, OKRQCL+CMMI10,
NORONU+CMR7, UWSHVF+CMSY10, EBVKFV+CMMI7, USWTGA+CMTT10,
HUDSBO+CMEX10, WLAXES+CMSY7, TQTJOW+Helvetica-Bold,
KLKJDZ+Symbol, KLKJDZ+Symbol, EJCTEH+CMTI10, STIZIF+CMR5,
EXQQQB+Helvetica-Bold, VRHQFE+Symbol, XXVQWO+CMMI5,
HUCCJV+CMMI12, ORVDWN+CMR8]
4 forms
54 annotations:
54 hyperlinks
(11 pages) Content streams command usage: w 49 J 49 d 49 q 53 Q 53 cm
106 m 49 l 49 S 49 BT 60 ET 60 Tf 1373 Td 1620 TJ 1620 Do 2
Wefirsthavetotell
java
wheretheclasslibraryresides (the
CLASSPATH
variable). Wecheckthat the
file is correct (the
Validate
tool does not complain, so it is). en we uncompress the PDF file
(
Uncompress
tool)and obtainapretty-printed
exapdflatex-u.pdf
,which wecanbrowse, edit,
etc. Nextwerunthe
Info
tool.Its (partial)outputshows thecharacteristicsoftheeight bookmarks
(hyperlinks)onpage1(seeFigure22.8onpage156).Wehaveomitted themanylinesofinformation
displayedbythe
Info
toolaboutthehyperlinkspresentontheotherpagesofthedocumentandhave
replaceditwiththesinglelineAnnotationsonpages2to11.Infact,ourPDFdocumentcontainsatotal
of54hyperlinks.eywereallcreatedautomaticallybythe
hyperref
package,whichwasloadedinthe
preambleoftheLAT
E
Xfile
exa.tex
(seeSection22.5.3),andwhichtransformsallreferencestofigures,
tables,equations,indexentriesandbibliographicentries,etc.intohyperlinks.Wealsohavealistofall
fonts used inthedocument(sometimes afont nameappearsseveraltimessincethe PDF generating
applicationscanembedseveralsubsetsofthesamefontasseparateobjects).etotalnumberoffonts
(22),annotations(54),hyperlinks(54),andpages(11)isdisplayed,aswellastheusagestatisticsofthe
PDFoperatorsinthecontentstreams.
> export CLASSPATH=path to Multivalent.jar
> java tool.doc.ExtractText
exapdflatex.pdf
ch-psextra2.tex,v:2.27
2007/08/13
167
22
POSTSCRIPTANDPDFTOOLS
URI: file:/pathtofile/exapdflatex.pdf
producer: pdfeTeX-1.304
creator: LaTeX with hyperref package
pages: 11
Simulation of Energy Loss Straggling
Maria Physicist
May 7, 2006
Contents
1 Introduction 1
2 Landau theory 2
2.1 Restrictions ................. 3
3 Vavilov theory 4
4 Gaussian Theory 5
5 Urbán model 5
5.1 Fast simulation for n
3
16 ................. 7
5.2 Special sampling for lower part of the spectrum....9
1 Introduction
Due to the statistical nature of ionisation energy loss, large
fluctuations can occur in the amount of energy deposited by a particle
traversing an absorber element. Continuous processes such as multiple
scattering and energy loss play a relevant role in the longitudinal
and lateral development of electromagnetic and hadronic showers, and
in the case of sampling calorimeters the measured resolution can be
significantly affected by such fluctuations in their active layers.
The description of ionisation fluctuations is characterised by the
significance parameter
κ
, which is proportional to the ratio
of mean energy loss to the maximum allowed energy transfer in a single
collision with an atomic electron
κ
=
ξ
E
max
E
max
is the maximum transferable energy in a single collision with
an atomic electron.
e
Extract
toolrunonthefirstpageofthefile
exapdflatex.pdf
(seeFigure22.8onpage156)
doesa fairlygood jobwhenextractingthetext. Intheoutputfileinput characters aresubstituted by
theirUnicodeequivalentasfaraspossible(e.g., weseethe Greeksymbolsintheformulaedisplayed
correctly).Ofcourse,theprogramcannotcorrectlyshowthemathematicallayoutoftheformulae.
WecaninvestigatethestructureofthePDFfilebyspecifyingmoreoptions:
> export CLASSPATH=path to Multivalent.jar
> java tool.doc.ExtractText -output xml exapdflatex.pdf
1 documents, length = 181008 => 63844, in 1.661 sec
<?xml version=’1.0’ encoding=’UTF-8’?>
<document>
<page>
168
ch-psextra2.tex,v:2.27
2007/08/13
22.6 PDFmanipulationtools
<pdf>
<mediabox>
<crop>
<text>
<qriqjacmr17>Simulation of Energy Loss Straggling</qriqjacmr17>
<tegqehcmr12>Maria Physicist May 7, 2006</tegqehcmr12>
<yhumekcmbx12>Contents</yhumekcmbx12>
<eyumtpcmbx10>1 Introduction 1
2 Landau theory 2</eyumtpcmbx10>
<jnxctccmr10>2.1 Restrictions .............. 3</jnxctccmr10>
<eyumtpcmbx10>3 Vavilov theory 4
4 Gaussian Theory 5
5 Urbán model 5</eyumtpcmbx10>
<jnxctccmr10>5.1 Fast simulation for</jnxctccmr10>
<okrqclcmmi10>n</okrqclcmmi10> <noronucmr7>3</noronucmr7>
<uwshvfcmsy10>
</uwshvfcmsy10> <jnxctccmr10>16....7
5.2 Special sampling for lower part of the spectrum ... 9</jnxctccmr10>
<yhumekcmbx12>1 Introduction</yhumekcmbx12>
<jnxctccmr10>Due to the statistical nature of ionisation energy loss,
large fluctuations can occur in the amount of energy deposited by a
particle traversing an absorber element. Continuous processes such as
multiple scattering and energy loss play a relevant role in the
longitudinal and lateral development of electromagnetic and hadronic
showers, and in the case of sampling calorimeters the measured
resolution can be significantly affected by such fluctuations in
their active layers.
The description of ionisation fluctuations is
characterised by the significance parameter</jnxctccmr10>
<okrqclcmmi10>
κ
</okrqclcmmi10> <jnxctccmr10>, which is
proportional to the ratio of mean energy loss to the maximum allowed
energy transfer in a single collision with an atomic
electron</jnxctccmr10>
<okrqclcmmi10>
κ
</okrqclcmmi10> <jnxctccmr10>=</jnxctccmr10>
<okrqclcmmi10>
ξ
</okrqclcmmi10></text>
<okrqclcmmi10><width><line />
</width> </okrqclcmmi10>
<text><okrqclcmmi10>E</okrqclcmmi10>
<noronucmr7>max</noronucmr7>
<okrqclcmmi10>E</okrqclcmmi10>
<noronucmr7>max</noronucmr7>
<jnxctccmr10>is the maximum transferable energy in a single collision
with an atomic electron.</jnxctccmr10>
WiththehelpofanXMLsyntax,wediscoverthehierarchicaltreestructureofthedocument,including
whereaparticularfontisused.ispresentationisveryusefultoinderstandthelayoutofaPDFfile.
22.6.4 HandlingPDFdocumentwithL
A
T
E
X
AndreasMatthiasdeveloped
pdfpages
,apackagethatletsyouinsertandmanipulatepagesofexternal
PDFdocumentswith
pdflatex
,sothatyoucancombinePDFdocumentsgeneratedbyvariousapplica-
tions,e.g.,
AdobeFrameMaker
,
MicrosoftOffice
,
OpenOffice
,
pdflatex
,andatthesametimeuseLAT
E
Xfor
generatingtitlepages,frontorbackmaterial,tablesofcontents,runningtitles,etc.
e
pdfpages
packagecancombineseverallogicalpagesonasingle“sheet”andthelayoutofeach
ch-psextra2.tex,v:2.27
2007/08/13
169
22
POSTSCRIPTANDPDFTOOLS
outputpagecanbespecifiedindividually.Alotofhypertextoperationsaresupported,likelinkstothe
insertedpages,linkstotheoriginalPDFdocument,threads,etc.
emaincommand of the
pdfpages
packagelets you include one or more PDF pages intothe
currentdocument,asfollows:
\includepdf[key/val-list]{file}
e
key/val-list
is a comma-separated list of
key=value
pairs for keys that take a value. For
Booleankeys,specifyingjustthekeyisequivalentto
key=true
;notspecifyingthekeyisequivalentto
key=false
.emoreimportantkeysarelistedbelow(seethepackagedocumentationforacomplete
list).
pages=page-specs
(default:
pages=1
)
eselectionofpagestoinsertisspecifiedasacomma-separatedlist,containingindividual
pagenumbers(
pages={3,6,7,9}
),pageranges(
pages={1-3,6-11}
)oracombination
ofthese.Anemptypageisinsertedbyspecifying
{}
,e.g.,
pages={1,3,{},6-9,13}
will
insertpages1,3,anemptypage,pages6to9,andfinallypage13.Specialcasesare
pages=-
9
,whichwillincludepages1to9,
pages=9-
,whichwillincludepagesfrom9untilthelast
pageofthedocument,
pages=-
includesallpagesintheinputdocument.
nup=nxxny
(default:
nup=1x1
)
Numberoflogicalpagestotypesetoneach output sheet;
nx
and
ny
specifythenumberof
logicalpagesinthehorizontalandverticaldirections,respectively.
landscape[=true|false]
(default:
landscape=false
)
eorientationoftheoutputsheetis“landscape”(i.e.,rotated90degrees).¹
delta=x-delta y-delta
(default:
delta=0 0
)
Horizontaland verticalspacetobeaddedbetweenlogicalpages (usedinconjuntionwith
nup
parameter).
offset=x-offset y-offset
(default:
offset=0 0
)
etwo-dimensionalshitobeappliedtotheoriginoftheinsertedpages.
frame[=true|false]
(default:
frame=false
)
Aframeshouldbedrawnaroundeachlogicalpage.ethicknessoftheframeiscontrolled
byLAT
E
X’slengthparameter
\fboxrule
.
pagecommand=L
A
T
E
X commands
(default:
pagecommand={\thispagestyle{empty}}
)List of
LAT
E
Xcommandstobeexecutedoneachoutputsheet.
noautoscale[=true|false]
(default:
noautoscale=false
)
Bydefaultthe
pdfpages
packagescalespagesautomatically.e
noautoscale
keywillsup-
pressthisbehavior,thusallowingfullcontrolofthesizeoftheoutputpagebytheuseofthe
scale
key,whichworksasdescribedforthe
graphicx
package.
reflect
Generatesmirrorimageofincludedpages.
signature=size
Generatesignatures for booklets. e
size
parameter specifies the size of the
signature,whichmustbeamultipleof4.e
signature
mustbecombinedwithadequate
settingsforthe
nup
key,e.g.,
nup=1x2
or
nup=2x1
.
addtotoc={page,section,level,heading,label}
Anentryisaddedintothetableofcontents.efivearguments,whichmustbespecifiedin
theordershown,arethefollowing:
page
pagenumberoftheinsertedpageintheoutputdocument;
section
LAT
E
Xsectioningcommandname(e.g.,
section
,
subsection
);
level
LAT
E
Xsectioningcommand(e.g.,1for
section
,2for
subsection
);
¹einput(logical)pagesthemselvesarenotrotated.Toachieverotationorscalingusetherotateorscaleparameters
ofthe\includegraphicscommand,whicharealsorecognizedby
pdfpages
.
170
ch-psextra2.tex,v:2.27
2007/08/13
Documents you may be interested
Documents you may be interested