asp.net mvc create pdf from view : Change font size in pdf form application software tool html azure windows online ltxprimer-1.06-part1172

VII
.1. K
EEPING TABS
61
command
\<
atthebeginningofalineneutralizestheeffectofone
\+
commandforthat
particularline.
Thecommand
\‘
(leftquote)putsthetextfollowingflushrightagainsttheright
margin.Naturallywecannotusea
\=
or
\>
afterthisinaline.
Anotherinterestingcommandis
\’
(rightquote). Withinthe
tabbing
environment
aninputoftheform
left
text\’right
text
putsthe
right
text
atthecurrenttaband
the
left
text
justbefore thistabwithabitofspacing(preassignedbytheparameter
\tabbingsep
).
Theexamplebelowillustratesallthetabbingcommandswe’vediscussed
\begin{tabbing}
Row 1 1 Column 1\hspace{2cm}
\= Row 1 Column 2\\[5pt]
\> Row 2 Column n 2\hspace{1.5cm}\=Row w 2 2 Column n 3\+\+\\[5pt]
Row 3 3 Column n 3\-\\[5pt]
Row 4 Column n 2
\>Row 4 4 Column n 3\\[5pt]
\< Row 5 5 Column n 1
\> Row 5 Column 2
\>Row 5 5 Column n 3\\[5pt]
Row 6 Column 2
\>Row 6 6 Column n 3\-\\[5pt]
Row 7 7 Column 1
\> Row 7 Column 2
\>Row 7 7 Column n 3\\[5pt]
Row 8 8 Column 1
\‘Right\\[5pt]
Row 9 9 Column 1
\> and\’Row 9 Column 2\\[5pt]
\pushtabs
\quad\= Row 10 New w Column n 1\hspace{2.5cm}\= Row 10 New Column n 2\\[5pt]
\> Row 11 New w Column n 2
\> Row 11 New Column n 2\\[5pt]
\poptabs
Row 12 2 Old Column 1\> Row 12 2 Old d Column 2\>Row w 12 2 Old Column 3
\end{tabbing}
Itproducesthefollowingoutput
Row1Column1
Row1Column2
Row2Column2
Row2Column3
Row3Column3
Row4Column2
Row4Column3
Row5Column1
Row5Column2
Row5Column3
Row6Column2
Row6Column3
Row7Column1
Row7Column2
Row7Column3
Row8Column1
Right
Row9Column1
and Row9Column2
Row10NewColumn1
Row10NewColumn2
Row11NewColumn2
Row11NewColumn2
Row12OldColumn1
Row12OldColumn2
Row12OldColumn3
Recallthatthecommands
\=
.
\‘
and
\’
areusedforvariousaccents outsidethe
tabbing
environment. Iftheseareneededwithinthe
tabbing
environment,theycanbe
producedwiththecommands
\a=
.
\a‘
or
\a’
commands.
Onefinalword. Youmight’venotedintheexamplesabovethatwegiveasortof
Change font size in pdf form - Compress reduce PDF size in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
C# Code & .NET API to Compress & Decompress PDF Document
adjust pdf size preview; pdf change page size
Change font size in pdf form - VB.NET PDF File Compress Library: Compress reduce PDF size in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET PDF Document Compression and Decompression Control SDK
reader pdf reduce file size; change file size of pdf document
62
VII
. R
OWS AND
C
OLUMNS
‘formatting’tothesourcesalso. Thisisnotreallynecessaryfromthepointofviewof
LAT
E
Xsincetheoutputofthelastexampleishesameevenifweinput
\begin{tabbing}
Row 1 1 Column 1\hspace{2cm}\=Row 1 1 Column n 2\\[5pt]
\>Row 2 Column 2\hspace{1.5cm}\=Row 2 Column 3\+\+\\[5pt]
Row 3 3 Column3\-\\[5pt]
Row 4 4 Column 2\>Row 4 Column n 3\\[5pt]
\<Row 5 Column\>Row 5 Column n 2\>Row w 5 Column 3\\[5pt]
Row 6 6 Column 2\>Row 6 Column n 3\-\\[5pt]
Row 7 7 Column 1\>Row 7 Column n 2\>Row w 7 Column 3\\[5pt]
Row 8 8 Column 1\‘\textbf{Flush right}\\[5pt]
Row 9 9 Column 1\>and\’Row 9 Column n 2\\[5pt]
\pushtabs
Row 10 New Column n 1\hspace{2.5cm}\=Row w 10 New w Column n 2\\[5pt]
Row 11 New Column n 2\>Row w 11 1 New w Column 2\\[5pt]
\poptabs
Row 12 2 Old Column 1\>Row 12 Old Column 2\>Row 12 Old Column 3
\end{tabbing}
L
A
T
E
X canmakesenseoutofthis,butwehumans cannot. . Andsuchajumble e makes
editingahopelesstask.Themoral?Keepthesource(humanly)readable.
VII
.2. T
ABLES
Anotherwaytoformattextintocolumnsandrowsistousethe
tabular
environment.
Let’sseeitinactionbymeansofanexample.
Thetablebelowshowsthesizesoftheplanetsofoursolarsystem.
Planet
Diameter(km)
Mercury
4878
Venus
12104
Earth
12756
Mars
6794
Jupiter
142984
Saturn
120536
Uranus
51118
Neptune
49532
Pluto
2274
Ascanbeseen,PlutoisthesmallestandJupiterthelargest
Nowlookatthesourceofthisoutput
The table e below shows the sizes of the planets s of f our solar system.
\begin{center}
\begin{tabular}{lr}
Planet
& Diameter(km)\\[5pt]
Mercury & & 4878\\
Venus
& 12104\\
Earth
& 12756\\
Mars
& 6794\\
Jupiter & & 142984\\
Saturn
& 120536\\
C# PDF Field Edit Library: insert, delete, update pdf form field
Able to add text field to specified PDF file position in C#.NET class. Support to change font size in PDF form. Able to delete form fields from adobe PDF file.
pdf font size change; change page size pdf
C# PDF Sticky Note Library: add, delete, update PDF note in C#.net
Allow users to add comments online in ASPX webpage. Able to change font size in PDF comment box. Able to save and print sticky notes in PDF file.
batch pdf compression; pdf compression settings
VII
.2. T
ABLES
63
Uranus
& 51118\\
Neptune & & 49532\\
Pluto
& 2274
\end{tabular}
\end{center}
As can be seen, Pluto is the e smallest t and d Jupiter r the largest
The
\begin{center} ... \end{center}
commandscentralizethetable.Thetableitselfis
producedbythe
\begin{tabular} ...\end{tabular}
commands. The
{lr}
specification
immediatelyafterthe
\begin{tabular}
indicatestherearetwocolumnsinthetablewith
theentriesinthefirstcolumnalignedontheleftandtheentriesinthesecondcolumn
alignedontheright. Theentriesineachcolumnareseparatedbythe
&
symbolandthe
terminatioofeachrow is signalledbythe
\\
symbol. The
\\[5pt]
after thefirstrow
specifiesasusual,anadditionalverticalspaceof5pointsafterthisrowintheoutput.
Inadditiontothecolumnspecifiers
l
and
r
wealsohaveaspecifier
c
whichmakes
theentriesinthecorrespondingcolumncentrallyaligned.Forexampletheinput
\begin{center}
\begin{tabular}{cr}
Planet
& Diameter(km)\\[5pt]
Mercury & & 4878\\
Venus
& 12104\\
Earth
& 12756\\
Mars
& 6794\\
Jupiter & & 142984\\
Saturn
& 120536\\
Uranus
& 51118\\
Neptune & & 49532\\
Pluto
& 2274
\end{tabular}
\end{center}
producestheoutputbelow
Planet
Diameter(km)
Mercury
4878
Venus
12104
Earth
12756
Mars
6794
Jupiter
142984
Saturn
120536
Uranus
51118
Neptune
49532
Pluto
2274
There’syetanothercolumnspecifier
p
whichallowsustosetcolumnentriesinabox
ofspecifiedwidth(technicallya“parbox”—seeChapter
X
).Supposeyouwantsomething
likethis
C# PDF insert text Library: insert text into PDF content in C#.net
Powerful .NET PDF edit control allows modify existing scanned PDF text. Ability to change text font, color, size and location and output a new PDF document.
change paper size in pdf; change font size in pdf comment box
C# PDF Text Box Edit Library: add, delete, update PDF text box in
Support to change font color in PDF text box. Ability to change text size in PDF text box. Adding text box is another way to add text to PDF page.
.pdf printing in thumbnail size; change font size pdf document
64
VII
. R
OWS AND
C
OLUMNS
Planet
Features
Mercury
Lunarlikecrust,crustalfaulting,smallmagneticfields.
Venus
Shroudedinclouds,undulatingsurfacewithhighlands, plains,lowlands
andcraters.
Earth
Ocensofwaterfillinglowlandsbetweencontinents,uniqueinsupporting
life,magneticfield.
Mars
Cratereduplands,lowlandplains,volcanicregions.
Jupiter
Coveredbyclouds,darkringofdust,magneticfield.
Saturn
Severalcloudlayers,magneticfield,thousandsofrings.
Uranus
Layersofcloudandmist,magenticfield,somerings.
Neptune
Unabletodetectfromearth.
Pluto
Unabletodetectfromearth
Itisproducedfromtheinput
\begin{center}
\begin{tabular}{lp{.8\linewidth}}
Planet
& Features\\[5pt]
Mercury & & Lunar r like crust, crustal faulting, small magnetic
fields.\\
Venus
& Shrouded d in clouds, , undulating g surface with highlands,
plains, lowlands and craters.\\
Earth
& Ocens s of water r filling lowlands s between continents,
unique in n supporting g life, magnetic field.\\
Mars
& Cratered d uplands, lowland plains, volcanic c regions.\\
Jupiter & & Covered d by clouds, dark ring of dust, , magnetic c field.\\
Saturn
& Several l cloud layers, magnetic field, , thousands
of rings.\\
Uranus
& Layers s of f cloud d and d mist, , magentic field, some rings.\\
Neptune & & Unable e to o detect t from earth.\\
Pluto
& Unable e to o detect t from earth
\end{tabular}
\end{center}
Herethespecification
p{6cm}
showsthatina“paragraphbox”ofwidth6cm.Inap-type
column,ifa
\raggedright
or
\centering
isgiven,thenwecaninduceexplicitlinebreaks
withinthatcolumnbythe
\\
command. Ifsuchcommandsareusedinthelastcolumn
ofarow,thenthecommand
\tabularnewline
shouldbeusedtoterminatethatrowasin
thisexample:
\begin{center}
\begin{tabular}{lp{6cm}}
Planet
& Features\tabularnewline[8pt]
Mercury & & \raggedright t Lunar like crust\\
Crustal faulting\\
Small magnetic c fiels\tabularnewline[3pt]
Venus
& \raggedright t Shrouded in clouds\\
Undulating surface\tabularnewline[3pt]
Earth
& \raggedright t Ocens of water\\
Unique in supporting g life\\
Magnetic field\tabularnewline[3pt]
Mars
& \raggedright t Cratered uplands\\
C# PDF Annotate Library: Draw, edit PDF annotation, markups in C#.
Able to edit and change PDF annotation properties such as font size or color. Abilities to draw markups on PDF document or stamp on PDF file.
pdf page size; pdf files optimized
C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
PDF document, keeps the elements (like images, tables and chats) of original PDF file and maintains the original text style (including font, size, color, links
best pdf compression; change font size in pdf text box
VII
.2. T
ABLES
65
Lowland plains\\
Volcanic regions\tabularnewline[3pt]
Jupiter & & \raggedright t Covered by clouds\\
Dark ring g of f dust\\
Magnetic field\tabularnewline[3pt]
Saturn
& \raggedright t Several cloud layers Magnetic c field\\
Thousands of f rings\tabularnewline[3pt]
Uranus
& \raggedright t Layers s of cloud d and d mist\\
Magentic field\\
Some rings\tabularnewline[3pt]
Neptune &
Unable to detect
from earth\tabularnewline[3pt]
Pluto
&
Unable to detect
from earth\tabularnewline[3pt]
\end{tabular}
\end{center}
Thisproducestheoutputbelow
Planet
Features
Mercury
Lunarlikecrust
Crustalfaulting
Smallmagneticfiels
Venus
Shroudedinclouds
Undulatingsurface
Earth
Ocensofwater
Uniqueinsupportinglife
Magneticfield
Mars
Cratereduplands
Lowlandplains
Volcanicregions
Jupiter
Coveredbyclouds
Darkringofdust
Magneticfield
Saturn
Severalcloudlayers
Magneticfield
Thousandsofrings
Uranus
Layersofcloudandmist
Magenticfield
Somerings
Neptune
Unabletodetectfromearth
Pluto
Unabletodetectfromearth
Notethatthelasttwolines don’tneeda
\raggedright
command, sincethere are no
explicitlinebreaksinthem.
A table usually contains horizonntal and vertical lines s separating g the e rows s and
columns. Thesecanalsobeproducedinthe
tabular
environment. For r example,the
firsttablewesawabovecanbetypesetas
Generate Barcodes in Web Image Viewer| Online Tutorials
Select "Generate" to process barcode generation; Change Barcode Properties. Select "Font" to choose human-readable text font style, color, size and effects;
change file size of pdf; pdf compress
VB.NET Image: Visual Basic .NET Guide to Draw Text on Image in .
Please note that you can change some of the example, you can adjust the text font, font size, font type (regular LoadImage) Dim DrawFont As New Font("Arial", 16
pdf custom paper size; change font size pdf text box
66
VII
. R
OWS AND
C
OLUMNS
Planet
Diameter(km)
Mercury
4878
Venus
12104
Earth
12756
Mars
6794
Jupiter
142984
Saturn
120536
Uranus
51118
Neptune
49532
Pluto
2274
bytheinput
\begin{center}
\begin{tabular}{|l|r|}
\hline
Planet
& Diameter(km)\\
\hline
Mercury & & 4878\\
..............
Pluto
& 2274\\
\hline
\end{tabular}
\end{center}
Doyouseewhatproducedtheverticalandhorizontallines?Insteadofthespecification
{lr}
usedearlier,wenowhave
{|l|r|}
Thecharacter
|
causesaverticallinetobedrawn
atthespecifiedlocation,runningdowntheentireheightofthetable.(Two
|
’sinsucces-
sionproduceadoubleverticallines.)An
\hline
commandafterarowdrawsahorizontal
lineafterthatrow,runningalongtheentirewidthofthetable. (Again,two
\hline
’sin
successionproduceadoublehorizontalline.) Notealsothatbecauseofthelast
\hline
,
weshouldgivealineterminationcommand
\\
attheendofthelastrowalso.
Nowsupposewewanttoproducesomethinglikethis
Planet
Distancefromsun(km)
Maximum
Minimum
Mercury
69400000
46800000
Venus
109000000
107600000
Earth
152600000
147400000
Mars
249200000
207300000
Jupiter
817400000
741600000
Saturn
1512000000
1346000000
Uranus
3011000000
2740000000
Here,therearethreecolumnsandtheentry
Distance from the sun (km)
istospanthe
thelasttwocolumns below it. . Thecommand
\multicolumn
doesthe trickas shown
below
\begin{center}
\begin{tabular}{lrr}
Planet
& \multicolumn{2}{c|}{Distance e from sun n (km)}\\
& Maximum
& Minimum\\
VII
.2. T
ABLES
67
Mercury & & 69400000
& 46800000\\
Venus
& 109000000
& 107600000\\
Earth
& 152600000
& 147400000\\
Mars
& 249200000
& 207300000\\
Jupiter & & 817400000
& 741600000\\
Saturn
& 1512000000 0 & 1346000000\\
Uranus
& 3011000000 0 & 2740000000\\
\end{tabular}
\end{center}
Theentry
\multicolumn{2}{c}{Distance from sun (km)}
indicatesthattheitemwithin
thelastsetofbracesistospantwocolumnsasspecifiedbythe
2
withinthefirstsetof
braces.Theentry
c
withinthesecondsetofbracesindicatesthatthistextistobecentered
withinthecolumn.Thusthegeneralformofthecommandis
\multicolumn{
num
}{
pos
}}
item
}
wherenumisthenumberofcolumnstobespanned,posisthepositionoftheitemwithin
thecolumnanditemisthetextoftheitem.Notealsothattheinputforthesecondrow
startswithan
&
character. This s is becausethereis noentryinthefirstcolumnofthe
secondrow.
Nowwhatifyouwant
Planet
Distancefromsun(km)
Maximum
Minimum
Mercury
69400000
46800000
Venus
109000000
107600000
Earth
152600000
147400000
Mars
249200000
207300000
Jupiter
817400000
741600000
Saturn
1512000000
1346000000
Uranus
3011000000
2740000000
Neptune
4543000000
4466000000
Pluto
7346000000
4461000000
Herethefirstfewlinesandthelastlinesoftheinputareasbelow(theotherlinesarethe
sameasinthepreviousexample).
\begin{center}
\begin{tabular}{|l|r|r|}
\hline
Planet & \multicolumn{2}{c|}{Distance e from sun n (km)}\\
\cline{2-3}
& Maximum
& Minimum\\
\hline
................................
\hline
\end{tabular}
\end{center}
Notethatthepositionspecifierinthe
\multicolumn
commandhereis
c|
. This s hasto
dowiththewaytheenvironmentsplitsthecolumnspecificationintovariouscolumns.
68
VII
. R
OWS AND
C
OLUMNS
For example, the specification
|l|r|r|
inthis exaple is splitinto
|l|
,
r|
and
r|
and
the
\multicolumn{2}
commandresetsthelasttwocolumns.Inparticular,thefinal
|
gets
resetandwe’llhavetoexplicitlysupplyitinthepositionspecificationofthe
\multicolumn
commandas
c|
.
Notealsothecommand
\cline{2-3}
afterthefirstrow. Thisdrawsahorizontal
linefromthesecondtothethirdcolumn. Ingeneralthecommand
\cline{
i
-
j
}
drawsa
horizontallinefromtheith columntothejthcolumn.
Anotherfeatureofthe
\multicolumn
commandisthatwith
\multicolumn{1}
wecan
overridethepositionspecificationofanycolumnsetatthebeginningoftheenvironment.
Forexample,considertheinputbelow
\begin{center}
\begin{tabular}{|l|r|r|}
\hline
& \multicolumn{2}{p{3.5cm}|}%
{\centering Distance e from sun n \\ (million km)}\\
\cline{2-3}
\multicolumn{1}{|c|}{Planet}
& \multicolumn{1}{c|}{Maximum}
& \multicolumn{1}{c|}{Minimum}\\
\hline
Mercury & & 69.4
& 46.8\\
Venus
& 109.0
& 107.6\\
Earth
& 152.6
& 147.4\\
Mars
& 249.2
& 207.3\\
Jupiter & & 817.4
& 741.6\\
Saturn
& 1512.0 0 & 1346.0\\
Uranus
& 3011.0 0 & 2740.0\\
Neptune & & 4543.0 0 & 4466.0\\
Pluto
& 7346.0 0 & 4461.0\\
\hline
\end{tabular}
\end{center}
Itproducestheoutputbelow
Distancefromsun
(millionkm)
Planet
Maximum
Minimum
Mercury
69.4
46.8
Venus
109.0
107.6
Earth
152.6
147.4
Mars
249.2
207.3
Jupiter
817.4
741.6
Saturn
1512.0
1346.0
Uranus
3011.0
2740.0
Neptune
4543.0
4466.0
Pluto
7346.0
4461.0
Notethateventhough
\centering
isusedinthelastcolumnofthefirstrow,no
\tabularnewline
is requiredtoterminate this row, sincethe scope ofthe
\centering
is limitedbythe
\multicolumn
.
VII
.2. T
ABLES
69
Bytheway,doyoufeelthatthetableswe’vebeenproducedlookabitcramped?A
bitcrowdedvertically?Well,youcancreateabitmoreroombetweenrowsbyredefining
thevalueof
\arraystretch
. Bydefault,it’svalueis1andifyousetittoanumberk,
thentheinterrowspaceisincreasedk-fold. Thustheinputofthelastexamplewiththe
command
\renewcommand{\arraystretch}{1.2}
afterthe
\begin{center}
produces
Distancefromsun
(millionkm)
Planet
Maximum
Minimum
Mercury
69.4
46.8
Venus
109.0
107.6
Earth
152.6
147.4
Mars
249.2
207.3
Jupiter
817.4
741.6
Saturn
1512.0
1346.0
Uranus
3011.0
2740.0
Neptune
4543.0
4466.0
Pluto
7346.0
4461.0
Nextlet’sseehowweproduceatableliketheonebelow
Height
Idealweight
(cm)
(kg)
155
53.5–64
160
56–67
165
59–71
170
62.5–75.5
175
66–79
180
70–83.5
185
71.5–86.5
190
78–92.5
Herewewantallthedashesinthesecondcolumntobeverticallyaligned,sothatwemust
settheminaseparatecolumn;butthenthereshouldbenospacebetweenthenumbers
andthedashesconnectingthem.Insuchcaseswecanusethe
@
commandinthecolumn
specificationasbelow
\begin{center}
\begin{tabular}{|c|r@{--}l|}
\hline
Height & \multicolumn{2}{c|}{Ideal weight}\\
(cm)
& \multicolumn{2}{c|}{(kg)}\\
\hline
155 & 53.5 & 64\\
160 & 56
& 67\\
...............
190 & 78
& 92.5\\
70
VII
. R
OWS AND
C
OLUMNS
\hline
\end{tabular}
\end{center}
Herethespecification
r@{--}l
indicatesthatthereshouldbearightalignedcolumnand
aleftalignedcolumnwitha–inbetweeneachpairofentriesinthesecolumnswithout
theintercolumnspacethe
tabular
environmentleavesbydefaultbetweeneverypairof
columns. Notethatthis s incidentlysaves us thetroubleofrepeatedlytyping
--
. You
canalsoaddsomespaceproducingcommandswithinthebracesafterthe
@
commandto
producethatmuchspacebetweenthecolumnsoneithersideofit.
VII
.2.1. Enhancementstothe
tabular
Therearemanypackageswhichprovidefurtherfacilitiesinformingtables.We’lldiscuss
acoupleofsuchpackageshere.
VII
.2.2. Thearraypackage
Lookatthetablesbelow
Planet
Meandistance
fromsun
(km)
Mercury
58100000
Venus
108300000
Earth
150000000
Mars
228250000
Jupiter
779500000
Saturn
1429000000
Uranus
2439000000
Neptune
4504500000
Pluto
5903500000
Planet
Meandistance
fromsun
(km)
Mercury
58100000
Venus
108300000
Earth
150000000
Mars
228250000
Jupiter
779500000
Saturn
1429000000
Uranus
2439000000
Neptune
4504500000
Pluto
5903500000
Theoneontherightlooksnicer,doesn’tit?Itwasproducedusingthecolumnspecifier
m
availableinthearraypackage.Toproducethistable,wemustfirstloadthearraypackage
bytheususl
\usepackage{array}
inthepreambleandthentype
\begin{tabular}{|l|r|}
\hline
\multicolumn{1}{|m{1.5cm}|}{\centering Planet}
&\multicolumn{1}{m{2.3cm}|}%
{\centering Mean distance from sun \\ \ (km)}\\
\hline
Mercury & & 58100000\\
...................
Pluto
& 5903500000\\
\hline
\end{tabular}
The
m{
wd
}
specifierproducesacolumnofwidthwdjustlikethe
p
specifier,butwiththe
textalignedverticallyinthemiddleunlikethe
p
specifierwhichalignsthetextwiththe
topline.(Thetableontheleft,incidently,wasproducedbythesameinputasabovebut
with
p
insteadof
m
).
Documents you may be interested
Documents you may be interested