open pdf file in new window asp.net c# : Remove text watermark from pdf software Library project winforms asp.net windows UWP graphics9-part154

A Very, Very Wide Graphic
Figure52: Thisisawidefigure
Whenmarginalnotesareused,itmaybedesiredtomakethewidefigureextend
exactlytotheedgeofthemarginalnotes(makingthefigurewidthbe\linewidth
+\marginparwidth+\marginparsep).Thiscanbedonebydefininganewlength
\marginwidthandsettingittobe\marginparwidth+\marginparsep.Forexam-
ple,
\newlength{\marginwidth}
\setlength{\marginwidth}{\marginparwidth}
\addtolength{\marginwidth}{\marginparsep}
thenuse{-\marginwidth}inthe\begin{narrow}argument.
23.2 WideFiguresinTwo-sidedDocuments
For two-sided documents, , it t may y be desired d to extend the e wide e figures s into o the
binding-sidemargin(i.e.,theleftmarginforoddpagesandtherightmarginforeven
pages). Inthesecases,theifthenpackage’s s \ifthenelsecommandcanbeusedto
choosebetweenodd-pagecodeandeven-pagecode. Forexample,
\usepackage{ifthen}
...
\begin{figure}
\ifthenelse{\isodd{\pageref{fig:wide}}}%
{% BEGIN ODD-PAGE E FIGURE
\begin{narrow}{0in}{-1in}
\includegraphics[width=\linewidth]{file}
\caption{Figure Caption}
\label{fig:wide}
\end{narrow}
}% END D ODD-PAGE E FIGURE
{% BEGIN EVEN-PAGE E FIGURE
\begin{narrow}{-1in}{0in}
\includegraphics[width=\linewidth]{file}
\caption{Figure Caption}
\label{fig:wide}
\end{narrow}
}% END D EVEN-PAGE E FIGURE
\end{figure}
Sincethe\pagerefcommandisusedasinputto\ifthenelse,thefiguremaynot
beproperlytypesetuntilLAT
E
Xisrunenoughtimestocausethecross-referencesto
converge.
24 LandscapeFigures
In a a document with portrait orientation, there e are e three e methods s for producing
figureswithlandscapeorientation.
1. Thelscapepackageprovides s alandscape environment, , whichtreats s theleft
edgeofthepaperasthetopofthepage,causinganytext,tables,orfiguresin
thelandscapeenvironmenttohavelandscapeorientation.
91
Remove text watermark from pdf - delete, remove text from PDF file in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Allow C# developers to use mature APIs to delete and remove text content from PDF document
delete text from pdf online; pdf editor delete text
Remove text watermark from pdf - VB.NET PDF delete text library: delete, remove text from PDF file in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET Programming Guide to Delete Text from PDF File
delete text from pdf; delete text from pdf file
2. Therotatingpackageprovidesasidewaysfigureenvironmentwhichissimilar
tothefigureenvironmentexceptthatthefigureshavelandscapeorientation.
3. Therotatingpackageprovidesa\rotcaptioncommandwhichissimilartothe
\captioncommandexceptthatcaptionhaslandscapeorientation.
Differencesbetweenmethods
• Bothoptions1and2placethelandscapefigureonaseparatepage. Option3
producesanindividualfloatwhichneednotbeonitsownpage.
• While e Option n 2 2 produces only y rotated d figures, the landscape e environment
inOption1is a general-purpose environment,whichcanproduce landscape
pagescontaininganycombinationoftext,tables,andfigures. Thelandscape
environmentcanpage-breakingcapability,somultiplelandscapepagescanbe
produced
34
.
• Thefull-pagefigureproducedbyOption2floatstoprovidebetterdocument
formatting,whilethefigureproducedbyOption1cannotfloat
35
.
• SinceOptions1and3usethefigureenvironment,theycanbeusedincon-
junctionwiththeendfloatpackage(seeSection19.6onPage68).
• Options1and2arebestsuitedforside-by-sidelandscapegraphics(forside-
by-sidemethodsseeSection28onPage104).
24.1 LandscapeEnvironment
The lscape e package e (which h is s part t of the standard “graphics bundle” ” distributed
withL
A
T
E
X)definesthelandscapeenvironment,whichprovidesamethodofplacing
landscapepagesinaportraitdocument.Thelandscapepagesarerotatedsuchthat
theleftedgeoftheportraitpageisthetopedgeofthelandscapepage.
Entering \begin{landscape} prints s all unprocessed portrait floats s and then
switchestolandscapeorientation.Likewise,\end{landscape}printsallunprocessed
landscapefloatsandthenswitchesbacktoportraitorientation.
Theentirecontentsofthelandscapeenvironmentistypesetwithlandscapeori-
entation.Thismayincludeanymixtureoftext,figures,andtables.Ifthelandscape
environmentcontainsonlyafigureenvironment
\begin{landscape}
\begin{figure}
\centering
\includegraphics[width=4in]{graphic}
\caption{Landscape Figure}
\end{figure}
\end{landscape}
thelandscapeenvironmentproducesalandscapefigure.Notethatsincethelandscape
environmentstartsanewpage,itmayresultinapartially-blankpage.
34
Thelandscapeenvironmentworksverywellwiththelongtablepackagetoproducemultiple-page
landscapetables.
35
Figuresissuedinthelandscapeenvironmentcanfloatwithinthelandscapepages
92
C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
console application. Able to remove a single page from PDF document. Ability to remove a range of pages from PDF file. Free trial package
pdf editor online delete text; delete text pdf files
C# PDF Password Library: add, remove, edit PDF file password in C#
String outputFilePath = Program.RootPath + "\\" Remove.pdf"; // Remove password in the input file and output to a new file. int
erase pdf text; pdf text remover
24.2 SidewaysfigureEnvironment
Therotatingpackageprovidesthesidewaysfigureenvironmentwhichproducesfig-
ureswithlandscapeorientation
36
.Forexample
\begin{sidewaysfigure}
\centering
\includegraphics[width=4in]{graphic}
\caption{Sidewaysfigure Figure}
\end{sidewaysfigure}
producesFigure53.
Unlikethelandscapeenvironment,thefigureproducedbysidewaysfigurecan
floatwithintheportraitpagestoavoidthepartially-blankpagethatthelandscape
environment may y produce. Note e that t the landscape environment t is s much h more
flexible,allowing the landscape pages toconsist of a mixture of text, tables, and
figures.
Thedefaultorientationofthefiguresproducedbysidewaysfiguredependson
whether the document is processed with the e oneside e or twoside e documentclass
option
• Whentheonesideoptionischosen,thebottomofgraphicistowardstheright
edgeoftheportraitpage.
• When the e twoside e option n is chosen, , the e bottom m of f graphic is s towards s the
outsideedgeoftheportraitpage.
Thisdefaultbehaviorcanbeoverriddenbyoptionstothe\usepackage{rotating}
command.
\usepackage[figuresleft]{rotating}
causesthe bottomof the sidewaysfiguregraphics tobe towards theleft edgeof
theportraitpage(regardlessofonesideortwosideoptions). Similarly,
\usepackage[figuresright]{rotating}
causesthebottomofthesidewaysfiguregraphicstobetowardstherightedgeof
theportraitpage.
24.3 RotcaptionCommand
The methods in Sections 24.1 and 24.2 bothproduce e full-page e landscape figures,
which maynot t be necessaryfor smallerlandscapefigures. Therotating g package’s
\rotcaption command can be e used d to o construct t smaller landscape figures. For
example
\begin{figure}
\centering
\begin{minipage}[c]{1in}
\hfill\includegraphics[width=2in,angle=90]{graphic}
\end{minipage}%
\hspace{0.2in}%
\begin{minipage}[c]{0.5in}
\captionsetup{width=2in}
\rotcaption{This is a caption created d by y the Rotcaption command}
\label{fig:rotcaption}
\end{minipage}
\end{figure}
93
C# PDF bookmark Library: add, remove, update PDF bookmarks in C#.
Ability to remove and delete bookmark and outline entry.GetLocation()); Console.WriteLine("Text: " + entry.GetText NET Sample Code: Update PDF Document Outline
remove text from pdf online; how to edit and delete text in pdf file online
C# PDF metadata Library: add, remove, update PDF metadata in C#.
Add metadata to PDF document in C# .NET framework program. Remove and delete metadata from PDF file. Also a PDF metadata extraction control.
how to delete text in pdf preview; delete text pdf acrobat
Graphic
Figure53:SidewaysfigureFigure
94
C# PDF url edit Library: insert, remove PDF links in C#.net, ASP.
Able to insert and delete PDF links. Able to embed link to specific PDF pages. Easy to put link into specified position of PDF text, image and PDF table.
delete text from pdf with acrobat; remove text from pdf
C# PDF File Compress Library: Compress reduce PDF size in C#.net
NET framework. Remove bookmarks, annotations, watermark, page labels and article threads from PDF while compressing. C# class demo
how to remove highlighted text in pdf; how to delete text in pdf file online
Graphic
Figure54:Thisisacaptioncreatedbythe
Rotcaptioncommand
producesFigure54.
The caption produced d by y \rotcaption is s always s rotated such that t its bot-
tomis towards the right edge of thepaper. Unlikethe e methods in Sections 24.1
and24.2,the\rotcaptioncommanddoesnotrotatethegraphics. Therefore,the
\includegraphicscommandintheaboveexamplerequirestheangle=90option.
25 CaptionsBesideFigures
Althoughthecaptionofafigureisgenerallyplacedaboveorbelowthegraphic,this
sectiondescribeshowtoplacethecaptionbesidethegraphic
37
.
25.1 TheSidecapPackage
Theeasiest way ofconstructingsidecaptionsistousethesidecappackage. . When
a\captioncommandisusedintheSCfigureandSCtableenvironmentsdefinedby
thesidecappackage,thecaptionsareautomaticallyplacedtothesideofthecontents
oftheenvironment. Forexample,
\usepackage{sidecap}
...
\begin{SCfigure}
\includegraphics[width=3in]{graphic}
\caption{This is a SCfigure}
\end{SCfigure}
producesFigure55.
Thefollowingfouroptionscanbespecifiedinthe\usepackagecommand
outercaption This optionplaces the captiontotheleft for left(even) pagesand
ontherightforright(odd)pages.(Thisisthedefault)
36
The rotating package also provides s a sidewaystable environment t for r producing tables with
landscapeorientation.
37
Since thefigureenvironment defined bythe float packageplaces the captionbelow thebody,
captions beside e figures s cannot t be e produced d with h the e float package’s s figure e environment. Other
aspectsofthefloatpackagecanbeusedaslongasthe\restylefloatcommandisnotissued.
95
C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
key. Quick to remove watermark and save PDF text, image, table, hyperlink and bookmark to Word without losing format. Powerful components
remove text from pdf acrobat; how to delete text from pdf document
C# PDF Text Redact Library: select, redact text content from PDF
Text: Delete Text from PDF. Text: Replace Text in PDF. Image: Remove Image from PDF Page. Image: Copy, Paste Edit, Delete Metadata. Watermark: Add Watermark to PDF
how to delete text in pdf using acrobat professional; delete text pdf document
Graphic
Figure55: ThisisaSCfigure
innercaption Thisoptionplacesthecaptiontotherightforleft(even)pagesand
ontheleftforright(odd)pages.
leftcaption Thisoptionplacesthecaptionontheleft.
rightcaption Thisoptionplacesthecaptionontheright.
TheSCfigureenvironmentincludestwooptionalarguments
• Thefirstoptionalargumentspecifiestherelativewidthofcaptioncomparedto
thefigure. Alargevalue(e.g.,100)reservesthemaximumpossiblewidth. The
defaultis1.
• Thesecondoptionalargumentspecifiesthefloatpositionparameter(e.g.[htp]
or[!ht](seeSection17.2onPage58).
25.2 SideCaptionswithoutSidecap
Ifthesidecappackagedoes notprovidesufficient flexibility,userscanproduceside
captions withthemethods inthis section. Section25.2.1showshow w toplacethe
captiontothe leftof thegraphic. Placing g the captiontothe right of the graphic
proceedssimilarly. Fortwosidedocuments,Section25.2.2showshowtoplacethe
captiontotheinsideofthegraphic(totheleftofthegraphicforoddpagesandto
therightofthegraphicforevenpages).
25.2.1 CaptiontoLeft t ofFigure
The \caption command d places the caption under the e figure e or r table. Minipage
environments can n be used to trick k the captioncommand d into placingthe caption
besidethefigure.Forexample,thecommands
\begin{figure}
\centering
\begin{minipage}[c]{.45\linewidth}
\centering
\caption{Caption on the Side}
\label{fig:side:caption}
\end{minipage}%
\begin{minipage}[c]{.45\linewidth}
\centering
\includegraphics[width=\linewidth]{graphic}
\end{minipage}
\end{figure}
producesFigure56.Itmaybedesirabletoplaceahorizontalspacingcommandsuch
as\hfillor\hspace{.05\linewidth}betweentheminipages.
The caption and graphic in Figure 56 are centered vertically. If f it is instead
desired to align the bottoms s or tops of graphics andcaption, , see Section11.4on
Page36.
96
C# PDF Text Highlight Library: add, delete, update PDF text
etc. Able to remove highlighted text in PDF document in C#.NET. Support to change PDF highlight color in Visual C# .NET class. Able
how to copy text out of a pdf; pull text out of pdf
Figure56: CaptionontheSide
Graphic
25.2.2 CaptiononBindingSideofGraphic
TheabovecodeforFigure56placesthecaptiontotheleftofthegraphic.Fortwo-
sideddocuments,itmaybedesiredtoplacethecaptiononthebindingsideofthe
graphics. Inthesecases,theifthenpackage’s\ifthenelsecommandcanbeusedto
choosebetweenodd-pagecodeandeven-pagecode. Forexample,
\usepackage{ifthen}
...
\begin{figure}
\centering
\ifthenelse{\isodd{\pageref{fig:side:caption}}}
{% BEGIN N ODD-PAGE E FIGURE
\begin{minipage}[c]{.45\linewidth}
\centering
\caption{Caption on the Side}
\label{fig:side:caption}
\end{minipage}%
\hspace{0.05\linewidth}%
\begin{minipage}[c]{.45\linewidth}
\includegraphics[width=\linewidth]{graphic}
\end{minipage}%
}% END ODD-PAGE E FIGURE
{% BEGIN N EVEN-PAGE FIGURE
\begin{minipage}[c]{.45\linewidth}
\includegraphics[width=\linewidth]{graphic}
\end{minipage}%
\hspace{0.05\linewidth}%
\begin{minipage}[c]{.45\linewidth}
\centering
\caption{Caption on the Side}
\label{fig:side:caption}
\end{minipage}%
}% END EVEN-PAGE FIGURE
\end{figure}
producesafigurewherethecaptionalwaysappearonthebindingsideofthegraphic.
26 FiguresonEvenorOddPages
Thefigureenvironmentfloat-placementalgorithmdoesnotcontrolwhetherafigure
appearsonanevenoroddpage. Thissectiondescribeshowtousethe\afterpage
command(partoftheafterpagepackage)andthe\ifthenelse command(partof
theifthenpackage)toplaceafigureontoanoddorevenpage.
Theconventionalmethodforcreatingfiguresis toputthegraphics inafigure
environment. However, , since figure environments s can n float,there is s no guarantee
thatafiguredesiredforaneven-pagewon’tenduponanoddpage(orviceversa).
Instead,the\captionofcommanddescribedinSection21canbeusedtocreate
afigure without usinga figure environment. The\ifthenelse e commandis then
usedtoplace the first graphiconthenextevenpage. . This s requiresrepeatingthe
graphicscommandstwice,onceforthecaseofthenextpagebeingoddandoncefor
thecase of the next page beingeven. Tosimplify y theresultingcode,a \leftfig
commandisdefined
97
\newcommand\leftfig{%
\vspace*{\fill}%
\centering
\includegraphics{graphic}
\captionof{figure}{This is on the left t (even) ) page.}
\vspace*{\fill}\newpage}
Theleft-pagefiguresarethencreatedusingthisnewly-defined\leftfigcommand
alongwiththe\afterpageand\ifthenelsecommands
\afterpage{\clearpage%
\ifthenelse{\isodd{\value{page}}}%
{\afterpage{\leftfig}}%
{\leftfig}}
Notesaboutodd/evenpageplacement:
• Toforcethefiguretoaright-hand(odd)page,reversetheorderofthe\ifthenelse
arguments.
\afterpage{\clearpage%
\ifthenelse{\isodd{\value{page}}}%
{\leftfig}}%
{\afterpage{\leftfig}}
• Because e these e are non-floating figures, the \value{page} } command can be
usedtodeterminethecurrentpage.(Thisisnotusefulforfloatingfiguressince
\value{page} isthecurrent page whenthe figureenvironment isprocessed,
notwhere it is placed.) Thus s using \value{page}is better than n \pageref
since\pagerefisonlycorrectoncetheL
A
T
E
Xreferenceshaveconverged).
• Whenusing large figures, it is possiblefor a pagebreak k to o occur withinthe
figure(e.g.,betweenthegraphicandthecaption). Thefigurecanbeforcedto
staytogetherbyenclosingitinaminipageenvironment
\newcommand\leftfig{%
\vspace*{\fill}%
\begin{minipage}{\linewidth}
\centering
\includegraphics{graphic}
\captionof{figure}{This is on the left (even) page.}
\end{minipage}
\vspace*{\fill}\newpage}
• The\afterpagecommandcansometimesbeflaky,inrarecasescausinga“lost
float”error.Removingthe\clearpagebeforethe\ifthenelsemayhelpthis
situation.
\afterpage{\ifthenelse{\isodd{\value{page}}}%
{\afterpage{\leftfig}}%
{\leftfig}}
• Intheaboveexample,thefigureusestheentireevenpage.Toplacethefigureat
thetopoftheevenpage,modifyorremovethe\vspace*{\fill}and\newpage
commands
\newcommand\leftfig{%
\centering
\includegraphics{graphic}
\captionof{figure}{This is at the top of the left (even) page.}
\vspace{\floatsep}}
98
26.1 FiguresonFacingPages
Toeasethecomparisonoftwofiguresinatwosidedocument,itmaybedesirableto
positionthefiguresonfacingpages. Todothis,aproceduresimilartotheprevious
section’seven/oddpage-placementmustbeused. Tosimplifytheresultingcode,a
\facingfigurescommandisdefinedas
\newcommand\facingfigures{%
\vspace*{\fill}%
\centering
\includegraphics{left}
\captionof{figure}{This is on the left (even) page.}
\vspace*{\fill}\newpage\vspace*{\fill}%
\centering
\includegraphics{right}
\captionof{figure}{This is on the right (odd) page.}
\vspace*{\fill}\newpage}
Thefacingfiguresarethencreatedusingthis\facingfigurescommandalongwith
the\afterpageand\ifthenelsecommands
\afterpage{\clearpage%
\ifthenelse{\isodd{\value{page}}}%
{\afterpage{\facingfigures}}%
{\facingfigures}}
27 BoxedFigures
ThetermBoxedFigure usuallyreferstooneoftwosituations
• Aboxsurroundsthefigure’sgraphicbutnotthefigure’scaption.
• Aboxsurroundsthefigure’sgraphicanditscaption.
The basicmethodfor boxinganitemistosimply placetheiteminsidean\fbox
command,whichsurroundstheobjectwitharectangularbox. Thefancyboxpackage
providesboxesofdifferentstyles.
27.1 BoxAroundGraphic
Placingan\fbox command d around the \includegraphics command produces s a
boxaroundtheincludedgraphic. Forexample,thecommands
\begin{figure}
\centering
\fbox{\includegraphics[totalheight=2in]{file}}
\caption{Box Around Graphic, But Not Around d Caption}
\label{fig:boxed_graphic}
\end{figure}
placeaboxaroundtheincludedfigure,asshowninFigure57.
27.2 BoxAroundFigure e andCaption
Toincludeboththefigure’sgraphicandits caption,onemaybetemptedtomove
the\caption commandinside the \fbox command. However,this s does not work
because \captioncan only be used inparagraphmode,while thecontents ofan
\fboxcommandareprocessedinLRmode
38
.
38
LAT
E
Xusesthreemodes: LRmode,paragraphmode,andmathmode. See[1,pages36,103-5].
99
L1
N
P1
q1
q2
L2
P2
Figure57: BoxAroundGraphic,ButNotAroundCaption
Sincethecontentsofminipageenvironmentsand\parboxcommandsareprocessed
inparagraphmode,the\captioncommandcanbeincludedinthe\fboxbyenclos-
ingthe\fboxcontentsinsideaminipageenvironmentora\parboxcommand.Since
bothminipagesandparboxesrequireawidthspecification,thereisnodirectwayto
makethe\fboxexactlyaswidethegraphicandcaption.
Forexample,thecommands
\begin{figure}
\centering
\fbox{ \begin{minipage}{4 4 in}
\centering
\includegraphics[totalheight=2in]{pend}
\caption{Box Around Figure Graphic and d Caption}
\label{fig:boxed_figure}
\end{minipage} }
\end{figure}
placeaboxaroundthefigure’sgraphicandcaption,asshowninFigure58
L1
N
P1
q1
q2
L2
P2
Figure58: BoxAroundFigureGraphicandCaption
It isusually atrial-and-errorprocesstodetermine aminipagewidthwhichcauses
theboxtohaveasnugfitaroundthecaptionandgraphic. Thistrial-and-errorcan
beavoidedbythefollowingapproaches.
1. Chooseanarbitraryminipagewidthandforcethegraphictobeaswideasthe
minipage
100
Documents you may be interested
Documents you may be interested