how to use abcpdf in c# : Batch pdf metadata control software platform web page windows html web browser tlgc2extra18-part278

22.6 PDFmanipulationtools
heading
textfortheheadingtobeinsertedinthetableofcontents;
label
keyforthe
\label
commandthatLAT
E
Xwillassociatewiththeentry,sothatLAT
E
X’s
standard
\ref
and
\pageref
commandscanrefertothem.
addtolist={page,type,heading,label}
Anentryis added intothe list of figures, tables, etc. e four arguments, which must be
specifiedintheordershown,arethefollowing:
page
pagenumberoftheinsertedpageintheoutputdocument;
type
LAT
E
Xnameofthe“floating”environment(e.g.,
figure
,
table
);
heading
textfortheentrytobeinsertedinthetableoffigures,etc.
label
keyforthe
\label
commandthatL
A
T
E
Xwillassociatewiththeentry,sothatL
A
T
E
X’s
standard
\ref
and
\pageref
commandscanrefertothem.
OurfirstexampleextractsthefirstpageofthePDFfile
infile.pdf
andputsitonanA4output
page. Ingeneralit is convenient touse
pdfpages
together with the
geometry
package, whichlets you
preciselycontroltheformatoftheoutputpage,whichinthiscaseleavesthefullareatobecoveredby
thePDFinputfile.Wegenerateamirrorimageoftheimage,magnifyitupby9%andoffsetittowards
thelowerlecornerby5mminbothdirections.
\documentclass[a4paper]{report}
\usepackage{geometry}
\geometry{paperwidth=210mm,paperheight=297mm,
width=210mm,height=297mm,
right=0mm,bottom=0mm,left=0mm,top=0mm}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=1,reflect,
noautoscale,
scale=1.09,
offset=-5mm -5mm]
{myfile.pdf}
\end{document}
Oursecond examplerotatespage27of thePDF file
infile.pdf
by90degreesand leaves the
otherpagesuntouched.Notetheuseofthepagerangesforthe
pages
key,aswellasthe
noautoscale
keytoensurethatthesizeoftheoutputpagesisidenticaltothatoftheinputpages.
\documentclass[a4paper]{report}
\usepackage{geometry}
\geometry{paperwidth=210mm,paperheight=297mm,
width=210mm,height=297mm,
right=0mm,bottom=0mm,left=0mm,top=0mm}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-26,noautoscale]{infile.pdf}
\includepdf[pages=27,noautoscale,angle=90]{infile.pdf}
\includepdf[pages=28-,noautoscale]{infile.pdf}
\end{document}
Nextwewanttotrimthetop48mm(theheader)ofthefirstpage,sincethefirstpageoftheoutput
file willbe printed onpaper that contains alreadya pre-printed color variant of the header. We use
thefunctionsofthe
graphicx
packagetotrimthematerial.¹Noticealsohowwehad tooffsetthepage
¹e
pdfpages
packageloadsthe
graphicx
package.
ch-psextra2.tex,v:2.27
2007/08/13
171
Batch pdf metadata - add, remove, update PDF metadata in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Allow C# Developers to Read, Add, Edit, Update and Delete PDF Metadata
remove metadata from pdf; read pdf metadata online
Batch pdf metadata - VB.NET PDF metadata library: add, remove, update PDF metadata in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Enable VB.NET Users to Read, Write, Edit, Delete and Update PDF Document Metadata
edit pdf metadata online; view pdf metadata
22
POSTSCRIPTANDPDFTOOLS
towards the bottom (byhalf the amount cut off at thetop), since the
pdfpages
package centers the
materialitinputsontotheoutputframe.
\documentclass[a4paper]{report}
\usepackage{geometry}
\geometry{paperwidth=210mm,paperheight=297mm,
width=210mm,height=297mm,
right=0mm,bottom=0mm,left=0mm,top=0mm}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=1,
trim=0mm 0mm 0mm 48mm,clip,
noautoscale,offset=0mm -24mm]{infile.pdf}
\includepdf[pages=2-,noautoscale]{infile.pdf}
\end{document}
If we want to savetrees we can combineseveral input pages onto a singleoutput sheet, as the
followingexampleshows.Weputfourpagesinlandscapemodeonalandscapeoutputsheet,andadjust
thespacingbetweenthe logicalpages by4 mm and 6mm inthehorizontaland vertical directions,
respectively(somewhatsimilartowhat the
pstops
and
psnup
toolsdescribedinSection22.4.1cando
withPostScriptfiles).
\documentclass[a4paper]{report}
\usepackage{geometry}
\geometry{paperwidth=210mm,paperheight=297mm,
width=210mm,height=297mm,
right=0mm,bottom=0mm,left=0mm,top=0mm}
\usepackage{pdfpages}
\begin{document}
\includepdf[nup=2x2,landscape,pages=-,delta=4mm 6mm]{infile.pdf}
\end{document}
Ifyouwantsomewhatmorecontrolovertheplacementofthelogicalpages,e.g.,youwanttomake
abookletofA6pages,thenyoucanusesomethinglikethefollowingsetup.
\documentclass[a4paper]{report}
\usepackage{geometry}
\geometry{paperwidth=210mm,paperheight=297mm,
width=210mm,height=297mm,
right=0mm,bottom=0mm,left=0mm,top=0mm}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages={1,3,5,7},landscape,nup=2x2,viewport=10 10 560
410,clip,offset=2mm -3mm]{infile.pdf}
\includepdf[pages={4,2,8,6},landscape,nup=2x2,viewport=10 10 560
410,clip,offset=-2mm -3mm]{infile.pdf}
Aviewport is specifiedforthe inputpagesfor clippingpurposes.e resultingA6pages are further
positionedoptimallybyoffsettingtheirlowerlecorner.eselectedpagesaredrawnletoright,top
tobottomonthefirsttwoframesoftheoutputdocument.
172
ch-psextra2.tex,v:2.27
2007/08/13
VB.NET Create PDF from Excel Library to convert xlsx, xls to PDF
C#.NET search text in PDF, C#.NET edit PDF bookmark, C#.NET edit PDF metadata, C#.NET Professional .NET PDF converter component for batch conversion.
analyze pdf metadata; add metadata to pdf
VB.NET PDF Convert to Jpeg SDK: Convert PDF to JPEG images in vb.
PDF pages, C#.NET search text in PDF, C#.NET edit PDF bookmark, C#.NET edit PDF metadata, C#.NET NET components to batch convert adobe PDF files to
get pdf metadata; acrobat pdf additional metadata
22.6 PDFmanipulationtools
22.6.4.1 Ascriptinterfacetopdfpages
Auser-friendlyinterfaceto
pdfpages
,whicheliminatestheneedfortheusertorun
pdfltex
explicitly,is
providedbythreePDFjam scriptswrittenbyDavidFirthandwhichareavailablefrom
http://www.
warwick.ac.uk/go/pdfjam
.
pdoin
concatenatespagesofmultiplePDFfilesintoasinglefile;
pdfnup
combinesseverallogicalPDFpagesontoasingleoutputpage;
pdf90
rotatespagesofoneormorePDFfilescounterclockwisethrough90degrees.
ese Unix scripts gather the information the user provides as parameters and runs
pdflatex
with
pdfpages
inthebackground.e
–help
optiondisplaysforeachofthemtheavailableoptions.Afew
examplesfollow.
> pdfjoin infile1.pdf infile2.pdf infile3.pdf --fitpaper true
Concatenates the three input files, keeping the original sizes and orientation into the single file
infile3-joined.pdf
.
> pdfjoin infile1.pdf infile2.pdf infile3.pdf --fitpaper false \
>
--paper a4paper --outfile ~/newfiles/biga4file.pdf
Concatenatesthethreeinputfiles,scalethemtofitonA4,ifneeded,andstoretheminthesingleoutput
filespecifiedasargumentofthe
--outfile
option.
> pdfnup --pages 1,3,5,7 --orient landscape --nup 2x2 \
>
--offset ’2mm -3mm’ --outfile new.pdf infile.pdf
Selectspages1,3,5and7oftheinput file
infile.pdf
tobeoutputontooneoutputpageinthefile
new.pdf
inlandscapeorientationandoffsetwiththespecifiedamount.
> pdf90 infile1.pdf infile2.pdf
Createstwo new files,
infile1-rotated.pdf
and
infile2-rotated.pdf
inthecurrentdirec-
tory,retainingoriginalpagesizesintheoutputfile.
22.6.4.2 UsingL
A
T
E
Xandpdfpagesfortypesetting
We end this sectionwitha morecomplexexample, where wecombineL
A
T
E
X’s typesettingenginefor
preparingtitlepages,frontandbackmatter,formanagingthetableofcontentsviaitsstructuralcross-
referencetools,andforoutputtingrunningheadersandfooters.eexternalPDFpagesthatarecol-
lectedintotheoutputfilecanbeproducedbyvarioustools,suchasMicroso
Word
,Adobe
FrameMaker
,
or
latex
itself. WhenpreparingthesePDFfiles,oneshould,ofcourse,tryand guaranteesomeunifor-
mityoffontsandlayout(bodytext,sectiontitles,figureandtablecaptions,etc.).
1
\documentclass[11pt,twoside]{report}
2
\usepackage{ifthen}
3
\newcommand{\BLKP}{% add blank page when on even page
4
\ifthenelse{\isodd{\value{page}}}{\relax}{\mbox{}\thispagestyle{empty}\newpage}}
5
\usepackage{geometry}
6
\geometry{paperwidth=210mm,paperheight=297mm,
7
right=18mm,bottom=24mm,left=22mm,top=24mm,
8
height=249mm,width=170mm,headsep=4mm,footskip=10mm,
9
headheight=14pt}
10
\usepackage{fancyhdr}
11
\pagestyle{fancy}
12
\fancyhf{}
ch-psextra2.tex,v:2.27
2007/08/13
173
VB.NET PDF Convert to Tiff SDK: Convert PDF to tiff images in vb.
NET control to batch convert PDF documents to Tiff format in Visual Basic. Qualified Tiff files are exported with high resolution in VB.NET.
search pdf metadata; remove pdf metadata
VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
project. Professional .NET library supports batch conversion in VB.NET. .NET control to export Word from multiple PDF files in VB.
adding metadata to pdf files; edit pdf metadata online
22
POSTSCRIPTANDPDFTOOLS
13
\renewcommand\headrulewidth{0pt}
14
\fancyfoot[C]{\thepage}
15
\fancyhead[RE]{\textsc{\ARTauthor}\hspace*{3mm}}
16
\fancyhead[LO]{\hspace*{3mm}\textsc{\ARTtitle}}
17
\newcommand{\ARTauthor}{~}
18
\newcommand{\ARTtitle}{~}
19
\usepackage{pdfpages}
20
\begin{document}
21
\thispagestyle{empty}
22
\begin{center}
23
\Huge Text on title page\\
24
\includegraphics[width=15cm]{image.pdf}\\[10mm]
25
\includegraphics[width=15cm]{image.jpg}
26
\end{center}
27
\clearpage
28
\BKLP
29
\pagestyle{plain}
30
\pagenumbering{roman}
31
\setcounter{page}{3}
32
\begin{center}
33
\bfseries\Large Preface\\[1cm]
34
\end{center}
35
36
Text of preface
37
38
... OTHER FRONT MATTER ...
39
\clearpage
40
\BKLP
41
\providecommand{\Tita}{Title of first contribution}
42
\providecommand{\Auta}{A. Auth1}
43
\providecommand{\Refa}{aut1}
44
\providecommand{\Titb}{Title of second contribution}
45
\providecommand{\Autb}{A. Auth2}
46
\providecommand{\Refb}{aut2}
47
...
48
\begin{center}
49
\bfseries\Large Contents\\[5mm]
50
\end{center}
51
\begin{flushleft}
52
\Tita\\
53
\quad\emph{\Auta}
54
\dotfill~\pageref{S\Refa}\\[3mm]
55
\Titb\\
56
\quad\emph{\Autb}
57
\dotfill~\pageref{S\Refb}\\[3mm]
58
...
59
\end{flushleft}
60
\newpage
61
\BLKP
62
\pagestyle{fancy}
63
\setcounter{page}{1}
64
\pagenumbering{arabic}
65
\newcommand{\Includeart}[3]{%
66
\renewcommand{\ARTauthor}{~}
67
\renewcommand{\ARTtitle}{~}
68
\includepdf[pages=1,noautoscale,offset=0mm 0mm,
69
pagecommand={\pagestyle{fancy}},
70
addtotoc={1, section, 0, dummy,
S#3},
71
trim=19mm 21mm 19mm 27mm, clip]
72
{pdf/#3.pdf}
73
\renewcommand{\ARTauthor}{#2}
74
\renewcommand{\ARTtitle}{#1}
75
\includepdf[pages=2-,noautoscale,offset=0mm 0mm,
76
pagecommand={\pagestyle{fancy}},
77
trim=19mm 21mm 19mm 27mm, clip]
78
{pdf/#3.pdf}
79
\BLKP}
80
\Includeart{\Tita}{\Auta}{\Refa}
81
\Includeart{\Titb}{\Autb}{\Refb}
82
...
83
... BACK MATTER ...
84
\end{document}
174
ch-psextra2.tex,v:2.27
2007/08/13
VB.NET PDF File Merge Library: Merge, append PDF files in vb.net
Batch merge PDF documents in Visual Basic .NET class program. Merge two or several separate PDF files together and into one PDF document in VB.NET.
pdf metadata reader; pdf metadata viewer online
C# PDF Convert to Tiff SDK: Convert PDF to tiff images in C#.net
Studio .NET project. Powerful .NET control to batch convert PDF documents to tiff format in Visual C# .NET program. Free library are
read pdf metadata java; preview edit pdf metadata
22.6 PDFmanipulationtools
Aer loadingthe
ifthen
package (line 2), we define a command
\BKLP
that willeliminate the
runningtitlesonaemptyle-handoutputpage(lines3–4).With the
geometry
packagewedefinethe
visuallayoutofthepage(lines5–9),whiletherunningheadersandfootersaredefinedwiththe
fancyhdr
package(lines10–16).Inparticular,wewantthepagenumbercenteredatthebottomofeachpage(line
14),theauthorofthearticleatthetopofeven(le-hand)pages(line15),andthetitleofthearticleof
thetopofodd(right-hand)pages(line16);bothauthorandtitleareinitializedto“blank”(lines17–18).
Finallyweloadthe
pdfpages
package(line19).
etitlepageis typesetbyL
A
T
E
Xandisfollowed byablankpage (lines21–28).Weinitialize the
pagenumbertoromanlowercasenumbersstartingat3,andcontinuewithtypesettingthefrontmatter
(Abstract,Preface, etc.,lines29–40).Aswedonot useLAT
E
Xtotypesetthebodyofthedocument, we
have to specifythemetadata (title, authors, reference key)for each contribution (article) to typeset
thetableofcontentsandcontroltheoutput generatedfortherunningtitles(lines41–47).Withthese
definitionsandthereferencekeysweconstructthetableofcontents(lines48–61).
Nowweenterthemainbodyofthedocument,forwhichweadoptthe
fancy
stylefortherunning
titlesandreset thepagenumberandstyle(lines62–64).ereferencestringsfor author and titleare
putequaltoablank(line66–67).Tohandleeachcontribution,wedefinethecommand
\Includeart
(lines 65–79), which starts byreadingthe first pageof thePDF file (lines68–72), which defines the
referenceforthepagenumberinthetableofcontents(viathefinalargumentofthe
addtotoc
keyon
line70)andoutputsthepagewithanemptyrunningheader(lines66–67). entheremainingpages
ofthePDFfileareread(lines75–78).esettingsforauthorandtitleareloaded(lines73–74)sothat
theycanbe used for the runningheaders. Startingfrom line 80we treat each contribution inturn,
specifyingitstitle(
\Tita
,etc.),author(
\Autha
,etc.),andfilename(
\Refa
,etc.)¹isinformation
wasdefinedpreviously(lines41–47).
Finally(line83), ifdesired,wecanconcludethedocument withsomebackmatter(acknowledg-
ments,photos,etc.).
22.6.5 FlippingPDFpages
InSection22.2.6weexplained how onecan“flip”(i.e., createamirrorimageof)PostScriptpages, as
issometimesrequiredbypublisherswhowant“camera-ready”documentsontransparentfilms.Inthe
caseofPDFfiles,Section22.6.4describesthe
reflect
optionofAndreasMatthias’s
pdfpages
package.
Buildingonhis
everypage
package,SergioCallegarideveloped the
pdfflip
packagewhich canmirror
oneor marepages ina PDF file. Bydefault, whenloadingthe package allpages will flipped. When
specifyingthe
off
option:
\usepackage[off]{pdfflip}
thepackageis loaded but remains inactive. To start pageflippingissuethe command
\FlipPDF
,to
turnflippingoff,issue
\UnFlipPDF
.
22.6.6 eGlyphandCogtools
eCompanyGlyph&Cog,LLC(
http://www.glyphandcog.com
)designsandimplementsso-
wareformanipulatingelectronicdocuments,includingsowarelibraries,components,andconsulting
servicesrelatedtoreading,viewing,andconvertingPDFfiles.
¹estringthatservesasakeytodefinethefirstpageofeachcontributionsothatitcanbeenteredinthetableofcontents
isalsousedasfilenametomakefilemanagementeasier.Forinstance,thevalueof\Refa,definedonline43,isusedwhen
executingthecommand\IncludeArtonline80,asafilename(lines72and78)andasthekeyfordefiningthepagereference
(line70).
ch-psextra2.tex,v:2.27
2007/08/13
175
C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
Powerful components for batch converting PDF documents in C#.NET program. Convert PDF to multiple MS Word formats such as .doc and .docx.
remove pdf metadata; batch pdf metadata
C# PDF File Merge Library: Merge, append PDF files in C#.net, ASP.
NET components for batch combining PDF documents in C#.NET class. Powerful library dlls for mering PDF in both C#.NET WinForms and ASP.NET WebForms.
batch update pdf metadata; pdf xmp metadata editor
22
POSTSCRIPTANDPDFTOOLS
Figure 22.9: Example of the use of
xpdf
.e PDF version of page 2of
thesamedocument thatisdisplayed
inFigures22.3and22.4onpage130
isshown.
Glyph&Cogalso ownsand maintainstheopensourceXpdfproject(
http://www.foolabs.
com/xpdf/
),whichprovides
xpdf
,afreePDFviewer(forXWindowsonUnix)andafewassociated
commandlineutilities.e
xpdf
viewer(Figure22.6.6)canusePostScriptType1andTrueTypefonts,
but,comparedtothe
evince
and
ghostview
viewersdescribedinSection22.3.4,onlyhandlesPDFfiles.
e
xpdf
distributiondoesnotcontainanyfontfiles.AsPDFfilescanrefertothe“Base-14”fonts(Times,
Helvetica, Courier,allthreeinregular,bold,italic,andbold-italicvariants,Symbol,and ZapfDingbats)
without embeddingthem,the usershouldtell
xpdf
wheretofindPostScriptType1versionsof these
fonts.Inprinciplethe
Ghostscript
free,high-qualityPostScriptType1fonts,canbeused.elocationof
thesefontsonyoursystemshouldbespecifiedinthe
.xpdfrc
fileintheuser’shomedirectory(typing
man xpdfrc
willgiveyouthenecessarydetails).Inthisfileyoucanalsospecifytheprint command
andoutputpagesizeifyouwanttoprintdirectlyfrom
xpdf
.
e
xpdf
distributioncomeswith aseries ofcommandlineprograms thatperformvarioustasks
onPDFfiles.Allthesecommandsrecognizethefollowingcommonoptions:
-f integer
firstpageofPDFfiletohandle.
-l integer
lastpageofPDFfiletohandle.
176
ch-psextra2.tex,v:2.27
2007/08/13
22.6 PDFmanipulationtools
-opw pwstring
ownerpassword(forencryptedPDFfile).
-upw pwstring
userpassword(forencryptedPDFfile).
-v
displaycopyrightandversioninformation.
-h
,
-help
,
–help
or
-?
displayusageinformation.
Ingeneralforunspecifiedoptionsthedefaultsin
.xpdfrc
willbeused.Analternativefileconfigura-
tionfilecanbespecifiedwiththe
-cfg filename
option.
22.6.6.1 epdopsprogram
e
pdftops
programgeneratesaPostScriptfilefromaPDFsource.esimplestusageinstanceis:
pdftops file.pdf
iswillgenerate
file.ps
.eoutputfilenamecanbecontrolledbyspecifyingasecondargument,
e.g.,
pdftops infile.pdf outfile.ps
willgenerate
outfile.ps
.AnEPSinstanceofpagetwoofthemulti-pagedocument
mangano.pdf
showninFigure22.6.6onthefacingpageiscreatedasfollows:
pdftops -eps -f 2 -l 2 mangano.pdf manganop2.eps
FurtheroptionsexistforcontrollingthelevelofPostScriptcodethatisgenerated,thefontembedding,
and thepaper size. Aone-linesummary of all available optionsis displayed by
pdftopdf –help
,
while
man pdftops
providesamoredetailedoverview.
22.6.6.2 epdotextprogram
Aplain text versionof a PDF filecanbegenerated bythe
pdftotext
program. Anexample with the
PDF file
exapdflatex.pdf
,discussed inSection22.5.3. Compare this output with the first page
displayedinFigure22.8,andwiththetextoutputgeneratedwiththe
multivalentjava
tooldiscussedin
Section22.6.3.e
-layout
optiontriestomaintaintheoriginalphysicallayout.
> pdftotext -layout -l 1 -f 1 exapdflatex.pdf p1.txt
econtentsoftheoutputfile
p1.txt
isafollows.
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
a
5
5.1 Fast simulation for n3
16 . . . . . . . . . . . . . . . . . . . . .
7
ch-psextra2.tex,v:2.27
2007/08/13
177
22
POSTSCRIPTANDPDFTOOLS
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
=
Emax
Emax is the maximum transferable energy in a single collision with an atomic
electron.
2me
2
2
Emax =
2,
1 + 2me /mx + (me /mx )
where
= E/mx , E is energy and mx the mass of the incident particle,
2 =
1 - 1/ 2 and me is the electron mass.
comes from the Rutherford scattering
cross section and is defined as:
2z 2 e4 NAv Zx
z2 Z
=
= 153.4 2 x keV,
me
2 c2 A
A
1
22.6.6.3 epdfinfoprogram
Informationabout aPDFfileis displayed with the
pdfinfo
command,which wealreadyencountered
whendescribing
mbtPDFasm
inSection22.6.2.Document-levelmetadataisdisplayedwhenspecifying
the
-meta
option, whilethe
-box
optionprintsthepage boundingboxes, asthefollowingexample
shows(comparethiswiththeoutputonpage165).
> pdfinfo -f 1 -l 1 -box 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
1 size: 595.276 x 841.89 pts (A4)
Page
1 MediaBox:
0.00
0.00
595.28
841.89
Page
1 CropBox:
0.00
0.00
595.28
841.89
Page
1 BleedBox:
0.00
0.00
595.28
841.89
Page
1 TrimBox:
0.00
0.00
595.28
841.89
Page
1 ArtBox:
0.00
0.00
595.28
841.89
File size:
181503 bytes
Optimized:
no
PDF version:
1.4
178
ch-psextra2.tex,v:2.27
2007/08/13
22.6 PDFmanipulationtools
22.6.6.4 epdffontsprogram
Informationabout each fontused ina PDF filecanbe obtained with the
pdfinfo
command. e in-
formationobtained forthefonts issomewhatsimilartowhatwegotwiththe
multivalent
toolandits
(Section22.6.3).
> pdffonts exapdflatex.pdf
name
type
emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
QRIQJA+CMR17
Type 1
yes yes no
7
0
TEGQEH+CMR12
Type 1
yes yes no
12
0
YHUMEK+CMBX12
Type 1
yes yes no
17
0
EYUMTP+CMBX10
Type 1
yes yes no
22
0
JNXCTC+CMR10
Type 1
yes yes no
27
0
OKRQCL+CMMI10
Type 1
yes yes no
32
0
NORONU+CMR7
Type 1
yes yes no
37
0
UWSHVF+CMSY10
Type 1
yes yes no
42
0
EBVKFV+CMMI7
Type 1
yes yes no
47
0
USWTGA+CMTT10
Type 1
yes yes no
63
0
HUDSBO+CMEX10
Type 1
yes yes no
74
0
WLAXES+CMSY7
Type 1
yes yes no
79
0
TQTJOW+Helvetica-Bold
Type 1C
yes yes no
89
0
KLKJDZ+Symbol
Type 1C
yes yes no
93
0
KLKJDZ+Symbol
Type 1C
yes yes no
97
0
EJCTEH+CMTI10
Type 1
yes yes no
110
0
STIZIF+CMR5
Type 1
yes yes no
115
0
EXQQQB+Helvetica-Bold
Type 1C
yes yes no
130
0
VRHQFE+Symbol
Type 1C
yes yes no
134
0
XXVQWO+CMMI5
Type 1
yes yes no
148
0
HUCCJV+CMMI12
Type 1
yes yes no
153
0
ORVDWN+CMR8
Type 1
yes yes no
158
0
isisidenticaltothefontinformationobtainedviathe
multivalent
tool(seealsopage166)
> java tool.pdf.Info -fonts exapdflatex.pdf
Filename: exapdflatex.pdf
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
CMR5
Type1
<custom>
Y
Y
N
115
CMR7
Type1
<custom>
Y
Y
N
37
CMR8
Type1
<custom>
Y
Y
N
158
CMR10
Type1
<custom>
Y
Y
N
27
CMR12
Type1
<custom>
Y
Y
N
12
CMR17
Type1
<custom>
Y
Y
N
7
CMSY7
Type1
<custom>
Y
Y
N
79
CMSY10
Type1
<custom>
Y
Y
N
42
CMTI10
Type1
<custom>
Y
Y
N
110
CMTT10
Type1
<custom>
Y
Y
N
63
Helvetica-Bold
Type1C
<intrinsic>
Y
Y
N
89
ch-psextra2.tex,v:2.27
2007/08/13
179
22
POSTSCRIPTANDPDFTOOLS
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
With
pdffonts
you canlimit your query to one page, e.g., page6, (see Figure22.6 onpage141
showingthefirstninepagesofthedocument),whichcontainsapicturewhichreferstonon-TeXfonts
(Helvetica-BoldandSymbol),.
> pdffonts -f 6 -l 6 exapdflatex.pdf
name
type
emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
JNXCTC+CMR10
Type 1
yes yes no
27
0
USWTGA+CMTT10
Type 1
yes yes no
63
0
OKRQCL+CMMI10
Type 1
yes yes no
32
0
NORONU+CMR7
Type 1
yes yes no
37
0
EBVKFV+CMMI7
Type 1
yes yes no
47
0
UWSHVF+CMSY10
Type 1
yes yes no
42
0
HUDSBO+CMEX10
Type 1
yes yes no
74
0
STIZIF+CMR5
Type 1
yes yes no
115
0
EXQQQB+Helvetica-Bold
Type 1C
yes yes no
130
0
VRHQFE+Symbol
Type 1C
yes yes no
134
0
22.6.6.5 epdosrcprogram
Basedonthe
xpdf
paradigmHànê
´
ànhwrotethe
pdftosrc
program,whichextractsasourcefile
orastreamfromaPDFfile.
pdftoscr PDFfile [ stream-object-number ]
Ifboth
PDFfile
and
stream-object-number
arepresent,
pdftosrc
extractsanduncompressesthe
PDFstreamoftheobjectspecifiedandwritesittoafilenamed
PDF-file.stream-object-number
strippingthefileextension(e.g.,
.pdf
)fromtheoriginalfilename.Existingfileswillbeoverwritten.
Ifonly
PDFfile
isspecified,
pdftosrc
extractstheembeddedsourcefilefromthefirstfoundstream
object with
/Type /SourceFile
andwritesittoafilewith thename
/SourceName
asdefinedin
thatPDFstreamobject.Asanexampleofthiscaseconsiderthefollowingfile,
pdftosrctest.tex
.
\documentclass{article}
\begin{document}
This small text file shows how to include
the source of the file inside the PDF output.
\immediate\pdfobj
stream attr {/Type /SourceFile /SourceName (\jobname.tex)}
file{\jobname.tex}
\pdfcatalog{/SourceObject \the\pdflastobj\space 0 R}
\end{document}
ecommandsyntaxusedaboveissuitedforincludingthePDFsourcefilewith
pdftex
,asshown
next.
> cp pdftoscrtext.tex save.tex
> ls -l pdftoscrtext.tex save.tex
-rw-rw-r-- 1 goossens goossens 293 Nov
4 15:35 pdftoscrtext.tex
-rw-rw-r-- 1 goossens goossens 293 Nov
4 15:51 save.tex
180
ch-psextra2.tex,v:2.27
2007/08/13
Documents you may be interested
Documents you may be interested