c# parse pdf form : Get pdf metadata SDK software project wpf .net azure UWP zachary0-part953

Advanced Use of L
A
T
E
X
Stan Zachary
Heriot-Watt University
14 October 2009
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
1/26
Outline
Resources and documentation
Software
L
A
T
E
Xto PDF
Graphics
Mathematics
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
2/26
Get 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
metadata in pdf documents; pdf metadata extract
Get 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 acrobat; delete metadata from pdf
Resourcesanddocumentation
Resources and documentation: online
T
E
Xresources on the web
I
Everything,includingendlessdocumentation,isat
http://www.tug.org/interest.html
Online guides (also included in most T
E
Xdistributions)
I
The not so Short Introduction to LaTeX2e
http://www.ctan.org/tex-archive/info/lshort
I
User’s Guide for the amsmath Package
http://www.tug.org/texlive/Contents/live/texmf-
dist/doc/latex/amsmath/amsldoc.pdf
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
4/26
Resourcesanddocumentation
Resources and documentation: books
I
Seehttp://www.tug.org/books/ for a comprehensive list
We mention in particular
I
LaTeX: A Document Preparation System, 2nd Edition by Leslie
Lamport.
An excellent introduction
I
Guide to LaTeX, 4th Edition by Helmut Kopka and Patrick W. Daly.
Amore comprehensive reference
I
The LaTeX Companion, 2nd Edition by Frank Mittelbach, Michel
Goossens, Johannes Braams, David Carlisle, and Chris Rowley.
Aheavy introduction to some hundreds of useful packages:
particularly good for its coverage of the A
M
S-L
A
T
E
Xmathematics
packages (amsmath, etc).
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
5/26
C# TIFF: TIFF Metadata Editor, How to Write & Read TIFF Metadata
TIFFDocument doc = new TIFFDocument(@"c:\demo1.tif"); // Get Xmp metadata for string. TagCollection collection = doc.GetTagCollection(0); // Get Exif metadata.
add metadata to pdf file; batch pdf metadata
VB.NET PDF Annotate Library: Draw, edit PDF annotation, markups in
' Get PDF document. Dim fileInpath As String = "" Dim doc As PDFDocument = New PDFDocument(fileInpath) ' Get all annotations. ' Get PDF document.
remove metadata from pdf; change pdf metadata creation date
Software
Requirements
You need:
I
Arecent T
E
Xdistribution
I
Agood L
A
T
E
X-aware editor
I
Apreviewer with synchronisation
Possibilities:
I
Editor-previewer packages
I
Windows:TeXnicCenter, ...
I
Linux: Kile,TeXMaker, ...
I
Mac: TeXShop, ...
I
Emacs(with AucTeXand RefTeXplugins)
+(synchronising) previewer
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
7/26
Software
SyncTeX
I
Permitsreversesearch from previewer to editor
I
Included in T
E
Xas of Version 3.1415926 (Summer 2008)
I
Call with, e.g.
pdflatex -synctex=1 file.tex
or by placing
nsynctex=1
in the document preamble
I
Leaves output lefile.pdf unchanged and writes auxiliary le
file.synctex.gz.
I
Doesn’t work very well withBeamer
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
8/26
C# PDF Annotate Library: Draw, edit PDF annotation, markups in C#.
Get PDF document. String fileInpath = @""; PDFDocument doc = new PDFDocument(fileInpath); // Get all annotations. Get PDF document.
edit pdf metadata online; add metadata to pdf programmatically
How to C#: Modify Image Metadata (tag)
VB.NET How-to, VB.NET PDF, VB.NET Word, VB.NET Excel How to C#: Modify Image Metadata (tag). With XImage.Raster, you can get the image tags and modify them rapidly
pdf metadata reader; pdf xmp metadata viewer
LAT
E
XtoPDF
L
A
T
E
Xto PDF | possible routes
I
le.tex
pdflatex
    !
le.pdf
I
Graphics les for inclusion withgraphicx package should be.jpg,
.png, .pdf,or .eps(if epstopdfpackageloaded).
I
le.tex
latex
  !
le.dvi
dvipdfm
    !
le.pdf
I
Graphics les should be.eps.
I
le.tex
latex
  !
le.dvi
dvips -Ppdf
      !
le.ps
?
!
le.pdf
I
Necessary only if using Postscript within L
A
T
E
X(e.g. pstricks)
I
dvipsneedstobetoldtousePostscriptType1scalablefonts.
I
Graphics les should be.eps.
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
10/26
LAT
E
XtoPDF
PDF font issues
I
For good onscreen-readability of PDF les, embedded fonts should be
scalable,e.g. Type-1PostscriptorTruetype|asopposedtothe
originalbit-mapped fonts used by T
E
X.
I
Not all fonts distributed with T
E
X/L
A
T
E
Xincludescalable versions.
I
pdflatexand latexfollowedby dvipdfmautomaticallyusescalable
fonts where available.
I
dvipsneedstobeconguredtodoso.
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
11/26
VB.NET PDF: Get Started with PDF Library
rotate PDF pages, C#.NET search text in PDF, C#.NET edit PDF bookmark, C#.NET edit PDF metadata, C#.NET VB.NET PDF: Get Started with .NET PDF Library Using VB.
read pdf metadata; clean pdf metadata
C# PDF Image Extract Library: Select, copy, paste PDF images in C#
Scan image to PDF, tiff and various image formats. Get image information, such as its location, zonal information, metadata, and so on.
pdf metadata viewer online; modify pdf metadata
LAT
E
XtoPDF
The hyperref package
I
Addsdocumentinformation andlinks (both internal and external) to
aPDF document
I
Typical preamble:
\usepackage{hyperref}
\hypersetup{plainpages=false, colorlinks, urlcolor=blue,
pdftitle={Probability and Statistics},
pdfauthor={S Zachary},
pdfstartview={FitBH}
}
I
Internal linksmadeautomatically(usingnlabelandnref)
I
Makeexternallinks with, e.g.
\href{http://www.hw.ac.uk}{Heriot-Watt University}
This produces a link toHeriot-WattUniversity
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
12/26
Graphics
Graphics inclusion
I
Via thegraphicx package, i.e. place
\usepackage{graphicx}
in the preamble.
I
The guremyfig.pdf is then included in the appropriate place in the
body of the document with
\begin{center}
\includegraphics{myfig}
\end{center}
(note that the extension may in general be omitted). This gives
2
2
2
®
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
14/26
VB.NET PDF Image Extract Library: Select, copy, paste PDF images
Capture image from whole PDF based on special characteristics. Get image information, such as its location, zonal information, metadata, and so on.
batch edit pdf metadata; batch pdf metadata editor
C# PDF Page Extract Library: copy, paste, cut PDF pages in C#.net
You can easily get pages from a PDF file, and then use these pages to create and output a new PDF file. Pages order will be retained.
read pdf metadata online; pdf xmp metadata editor
Graphics
Graphics inclusion
I
Theincludegraphics command has many options toscale,
re-dimension, clip, rotatethegure. Forexample
\begin{center}
\includegraphics[scale=0.7,angle=30]{myfig}
\end{center}
gives
®2 +¯2=°2
I
The above code may be included within afigure environment for
numbering, captioning and  oating placement.
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
15/26
Graphics
Graphics inclusion { xg
I
xg(primarilyforUnix)isauseful,andverycapable,programfor
drawing and annotating gures and diagrams.
I
Home page: http://www.xg.org/
I
Can export gures as
I
.texcodeforinputintoL
A
T
E
X
I
.epsor.pdflesforgraphicsinclusioninL
A
T
E
X.
I
Useful to be able to use L
A
T
E
Xcode for annotation. This is quite
complicated in the case of export to.eps or.pdf les (asxg has
no TeX engine).
I
Details of how to do it, and also a workaround script (which directly
converts.fig les to.eps and.pdf les) are at
http://www.ma.hw.ac.uk/stan/computing/xglatexnotes.txt
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
16/26
C# PDF insert text Library: insert text into PDF content in C#.net
String inputFilePath = Program.RootPath + "\\" 1.pdf"; PDFDocument doc = new PDFDocument(inputFilePath); // get a text manager from the document object
rename pdf files from metadata; remove metadata from pdf file
Graphics
Graphics inclusion { jg
I
jgisasharewarecloneof xg.
I
Home page:
http://tams-www.informatik.uni-hamburg.de/applets/jfig/
I
Written as a Java applet and hence multiplatform.
I
Understands simple L
A
T
E
Xsyntax, and so is easier to use for
annotating gures for export to.pdf.
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
17/26
Graphics
Graphics inclusion { R
I
R{programmeformathematicalcomputationandstatisticalanalysis
I
Excellent plotting and other graphical capabilities
I
Supports mathematical notation
I
Can produce.eps,.pdf, and.png les
I
Available free for all platforms
I
Home page: http://www.r-project.org
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
18/26
Mathematics
Packages to load
Mandatory:
I
amsmath: greatlyenhancedcapabilitiesformathematicaltypesetting
I
amssymb: additionalfontsandsymbols,e.g.R,Z,F,G,...
I
amsthm: allowsthecreationofenvironmentsfortypesettinglemmas,
theorems, examples, remarks, etc, with  exible styles and numbering
systems; also provides a proof environment
Optional:
I
amscd: commutativediagrams
I
eucal: morereadablecalligraphicletters: A;B;C;D;:::
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
20/26
Mathematics
amsmath: align
align*
I
\begin{align}
x^2 + y^2 & = z^2 \nonumber \\
x^3 + y^3 & < z^3
\end{align}
x
2
+y
2
=z
2
x
3
+y
3
<z
3
(1)
I
Better spacing thaneqnarray
I
Usennonumber to suppress numbering of individual equations
I
Replacealign byalign* to suppress all numbering
I
Can be used forn-column alignment (using 2n  1 \&"s).
I
Variantalignat allows user-specication of horizontal spacing
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
21/26
Mathematics
amsmath: multline
multine*
I
\begin{multline}
\lim_{x\to\infty}\frac{P(M>x)}{\overline{F^s}(x)} \\
\le \limsup_{x\to\infty}
\frac{P(M>x,\,S_{\tau_1}>x-R+a-\epsilon)}%
{\overline{F^s}(x)} \\
+\gamma
\left(\frac{2-\gamma}{(a-\epsilon)(1-\gamma)^2}\right)
\end{multline}
lim
x!1
P(M > x)
F
s
(x)
limsup
x!1
P(M > x; S
1
>x  R +a  )
F
s
(x)
+
(a  )(1  )
2
(2)
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
22/26
Mathematics
amsmath: further display environments for maths
I
equation
equation*singleequationonsingleline
I
gather
gather*
several equations without alignment
I
flalign
flalign* horizontallyspreadversionofalign
I
split
split a single equation with alignment
\begin{equation}
\begin{split}
(a + b)^3 &= (a + b) (a + b)^2
\\
&= (a + b)(a^2 + 2ab + b^2) \\
&= a^3 + 3a^2b + 3ab^2 + b^3
\end{split}
\end{equation}
(a +b)
3
=(a +b)(a +b)
2
=(a +b)(a
2
+2ab +b
2
)
=a
3
+3a
2
b+3ab
2
+b
3
(3)
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
23/26
Mathematics
amsmath: further display environments for maths
I
thecases environment
\begin{equation*}
I_A =
\begin{cases}
1 & \text{if $x\in A$}\\
0 & \text{otherwise}
\end{cases}
\end{equation*}
I
A
=
(
1 if x 2 A
0 otherwise
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
24/26
Mathematics
amsmath: matrix environments
I
matrix
0 1
1 0
I
pmatrix
0 1
1 0
I
bmatrix
0 1
1 0
I
Bmatrix
0 1
1 0
I
vmatrix
0 1
1 0
I
Vmatrix
0 1
1 0
StanZachary (Heriot-WattUniversity)
AdvancedUseofLAT
E
X
14October2009
25/26
Documents you may be interested
Documents you may be interested