download pdf file in asp.net c# : Remove metadata from pdf online SDK application service wpf html .net dnn cpdfmanual3-part1394

Chapter 6
Bookmarks
cpdf -list-bookmarks [-utf8 | -raw] in.pdf
cpdf -remove-bookmarks in.pdf -o out.pdf
cpdf -add-bookmarks <bookmark file> in.pdf -o out.pdf
PDFBookmarks(properlycalledthedocumentoutline)representatreeofreferencestopartsof
thefile,typicallydisplayedatthesideofthescreen.Theusercanclickononetomovetothe
specifiedplace.cpdfprovidesfacilitiestolist,add,andremovebookmarks.Theformatused
bythelistandaddoperationsisthesame,soyoucanfeedtheoutputofoneintotheother,for
instancetocopybookmarks.
6.1 ListBookmarks
The-list-bookmarksoperationprints(tostandardoutput)thebookmarksinafile. The
firstcolumngivesthelevelofthetreeatwhichaparticularbookmarkis.Thenthetextofthe
bookmarkinquotes,thenthepagenumberwhichthebookmarkpointsto,then(optionally)the
word”open”ifthebookmarkshouldhaveitschildren(atthelevelimmediatelybelow)visible
whenthefileisloaded.Forexample,uponexecuting
cpdf -list-bookmarks doc.pdf
theresultmightbe:
0 "Part 1" 1 open
1 "Part 1A" 2
1 "Part 1B" 3
0 "Part 2" 4
1 "Part 2a" 5
23
Remove metadata from pdf online - 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
batch update pdf metadata; clean pdf metadata
Remove metadata from pdf online - 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
endnote pdf metadata; batch edit pdf metadata
24
CHAPTER6. BOOKMARKS
Ifthepagenumberis0,itindicatesthatclickingonthatentrydoesn’tmovetoapage.
Bydefault,cpdfconvertsunicodetoASCIItext,droppingcharactersoutsidetheASCII
range.Topreventthis,andreturnunicodeUTF8output,addthe-utf8optiontothecommand.
Topreventanyprocessing,usethe-rawoption.
6.2 RemoveBookmarks
The-remove-bookmarksoperationsremovesallbookmarksfromthefile.
cpdf -remove-bookmarks in.pdf -o out.pdf
6.3 AddBookmarks
The-add-bookmarksfileaddsbookmarksasspecifiedbyabookmarksfile,atextfileinASCII
orUTF8encodingandinthesameformatasthatproducedbythe-list-bookmarksoption.
IfthereareanybookmarksintheinputPDFalready,theyarediscarded.Forexample,ifthefile
bookmarks.txtcontainstheoutputfrom-list-bookmarksabove,thenthecommand
cpdf -add-bookmarks bookmarks.txt in.pdf -o out.pdf
addsthebookmarkstotheinputfile,writingtoout.pdf. Anerrorwillbegivenifthe
bookmarksfileisnotinthecorrectform(inparticular,thenumbersinthefirstcolumnwhich
specifythelevelmustformapropertreewithnoentrybeingmorethanonegreaterthanthe
last).
VB.NET PDF remove image library: remove, delete images from PDF in
Image: Insert Image to PDF. Image: Remove Image from PDF Page. Image Link: Edit URL. Bookmark: Edit Bookmark. Metadata: Edit, Delete Metadata. Form Process.
delete metadata from pdf; add metadata to pdf programmatically
VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.
Ability to remove consecutive pages from PDF file in VB Enable specified pages deleting from PDF in Visual Basic Online source codes for quick evaluation in VB
pdf xmp metadata viewer; add metadata to pdf
Chapter 7
Presentations
cpdf -presentation in.pdf [<range>] -o out.pdf
[-trans <transition-name>] [-duration <float>]
[-vertical] [-outward] [-direction <int>]
[-effect-duration <float>]
ThePDFfileformat,startingatVersion1.1,providesforsimpleslide-showpresentationsin
themannerofMicrosoftPowerpoint.ThesecanbeplayedinAcrobatandpossiblyotherPDF
viewers,typicallystartedbyenteringfull-screenmode.The-presentationoperationallows
suchapresentationtobebuiltfromanyPDFfile.
The-transoptionchoosesthetransitionstyle. Whenapagerangeisused,itisthe
transitionfromeachpagenamedwhichisaltered.Thefollowingtransitionstylesareavailable:
Split Twolinessweepacrossthescreen,revealingthenewpage. Bydefaultthelinesare
horizontal.Verticallinesareselectedbyusingthe-verticaloption.
Blinds Multiplelinessweepacrossthescreen,revealingthenewpage.Bydefaultthelinesare
horizontal.Verticallinesareselectedbyusingthe-verticaloption.
Box Arectangularboxsweepsinwardfromtheedgesofthepage.Use-outwardtomakeit
sweepfromthecentertotheedges.
Wipe Asinglelinesweepsacrossthescreenfromoneedgetotheotherinadirectionspecified
bythe-directionoption.
Dissolve Theoldpagedissolvesgraduallytorevealthenewone.
Glitter ThesameasDissolvebuttheeffectsweepsacrossthepageinthedirectionspecifiedby
the-directionoption.
25
C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
Free online C# class source code for deleting specified PDF pages in .NET console application. Able to remove a single page from PDF document.
batch pdf metadata; analyze pdf metadata
C# PDF Password Library: add, remove, edit PDF file password in C#
Support to add password to PDF document online or in C# String outputFilePath = Program.RootPath + "\\" Remove.pdf"; // Remove password in the input file and
batch edit pdf metadata; pdf metadata editor
26
CHAPTER7. PRESENTATIONS
Toremoveatransitionstylecurrentlyappliedtotheselectedpages,omitthe-transoption.
The-effect-durationoptionspecifiesthelengthoftimeinsecondsforthetransition
itself.Thedefaultvalueisonesecond.
The-durationoptionspecifiesthemaximumtimeinsecondsthatthepageisdisplayed
beforethepresentationautomaticallyadvances.Thedefault,intheabsenceofthe-duration
option,isfornoautomaticadvancement.
The-directionoption(forWipeandGlitterstylesonly)specifiesthedirectionofthe
effect.Thefollowingvaluesarevalid:
0 Lefttoright
90 Bottomtotop(Wipeonly)
180 Righttoleft(Wipeonly)
270 Toptobottom
315 Top-lefttobottom-right(Glitteronly)
Forexample:
cpdf -presentation in.pdf 2-end -trans Split -duration 10 -o out.pdf
TheSplitstyle,withverticallines,andeachslidestayingtensecondsunlessmanuallyadvanced.
Thefirstpage(beingatitle)doesnotmoveonautomatically,andhasnotransitioneffect.
Tousedifferentoptionsondifferentpageranges,runcpdfmultipletimesonthefileusinga
differentpagerangeeachtime.
C# PDF remove image library: remove, delete images from PDF in C#.
Text in PDF. Image: Insert Image to PDF. Image: Remove Image from PDF Page. Cut Image in Page. Link: Edit URL. Bookmark: Edit Bookmark. Metadata: Edit, Delete
clean pdf metadata; edit pdf metadata acrobat
C# PDF bookmark Library: add, remove, update PDF bookmarks in C#.
Ability to remove and delete bookmark and outline from PDF document. Merge and split PDF file with bookmark. Save PDF file with bookmark open.
pdf metadata reader; pdf metadata viewer online
Chapter 8
Watermarks and Stamps
cpdf -stamp-on source.pdf
([-scale-stamp-to-fit] | [<positioning command>])
in.pdf [<range>] -o out.pdf
cpdf -stamp-under source.pdf
([-scale-stamp-to-fit] | [<positioning command>])
in.pdf [<range>] -o out.pdf
cpdf -combine-pages over.pdf under.pdf -o out.pdf
cpdf -add-text <text-format>
[-font <fontname>]
[-font-size <size-in-points>]
[-color <color>]
[-line-spacing <number>]
[-outline]
[-linewidth <number>]
[-underneath]
[-relative-to-cropbox]
[-prerotate]
[-bates <number>]
[-opacity <number>]
in.pdf [<range>] -o out.pdf
Seealsopositioningcommandsbelow.
cpdf -remove-text in.pdf [<range>] -o out.pdf
8.1 AddaWatermarkorLogo
The-stamp-onand-stamp-underoperationsstampthefirstpageofasourcePDFontoor
undereachpageinthegivenrangeoftheinputfile.Forexample,
27
VB.NET PDF delete text library: delete, remove text from PDF file
to remove text format by modifying text font, size, color, etc. Other PDF edit functionalities, like add PDF text, add PDF text box and field. Online .NET
batch update pdf metadata; pdf keywords metadata
VB.NET PDF Password Library: add, remove, edit PDF file password
Remove password from PDF. Dim outputFilePath As String = Program.RootPath + "\\" Remove.pdf" ' Remove password in the input file and output to a new file.
adding metadata to pdf; remove pdf metadata
28
CHAPTER8. WATERMARKSANDSTAMPS
cpdf -stamp-on logo.pdf in.pdf odd -o out.pdf
stampsthefilelogo.pdfontotheoddpagesofin.pdf,writingtoout.pdf.Awatermark
shouldgounderneatheachpage:
cpdf -stamp-under topsecret.pdf in.pdf -o out.pdf
ThepositioncommandsinSection8.2.4canbeusedtolocatethestampmoreprecisely(theyare
calculatedrelativetothecropboxofthestamp).Or,preprocessthestampwith-shiftfirst.
The-scale-stamp-to-fitoptioncanbeaddedtoscalethestamptofitthepagebefore
applyingit.Theuseofpositioningcommandstogetherwith-scale-stamp-to-fitisnot
recommended.
The-combine-pagesoperationtakestwoPDFfilesandstampseachpageofoneover
eachpageoftheother.Thelengthoftheoutputisthesameasthelengthofthe“under”file.
Forinstance:
cpdf -combine-pages over.pdf under.pdf -o out.pdf
Pageattributes(suchasthedisplayrotation)aretakenfromthe“under”file.Forbestresults,
removeanyrotationdifferencesinthetwofilesusing-uprightfirst.
8.2 StampText,DatesandTimes.
The-add-textoperationallowstext,datesandtimestobestampedoveroneormorepages
oftheinputatagivenpositionandusingagivenfont,fontsizeandcolor.
cpdf -add-text "Copyright 2014 ACME Corp." in.pdf -o out.pdf
Thedefaultisblack12ptTimesNewRomantextinthetopleftofeachpage.Thetextcanbe
placedunderneathratherthanoverthepagebyaddingthe-underneathoption.
Textpreviouslyaddedbycpdfmayberemovedbythe-remove-textoperation.
cpdf -remove-text in.pdf -o out.pdf
8.2.1 PageNumbers
Therearevariousspecialcodestoincludethepagenumberinthetext:
8.2. STAMPTEXT,DATESANDTIMES.
29
%Page
Pagenumberinarabicnotation(1,2,3...)
%roman
Pagenumberinlower-caseromannotation(i,ii,iii...)
%Roman
Pagenumberinupper-caseromannotation(I,II,III...)
%EndPage
Lastpageofdocumentinarabicnotation
%Label
Thepagelabelofthepage
%EndLabel
Thepagelabelofthelastpage
%filename
Thefullfilenameoftheinputdocument
Forexample,theformat"Page %Page of %EndPage"mightbecome”Page5of17”.
NB:Insomecircumstances(e.ginbatchfiles)onMicrosoftWindows,%isaspecialcharacter,
andmustbeescaped(writtenas%%).Consultyourlocaldocumentationfordetails.
8.2.2 DateandTimeFormats
%a
Abbreviatedweekdayname(Sun,Monetc.)
%A
Fullweekdayname(Sunday,Mondayetc.)
%b
Abbreviatedmonthname(Jan,Febetc.)
%B
Fullmonthname(January,Februaryetc.)
%d
Dayofthemonth(01–31)
%e
Dayofthemonth(1–31)
%H
Hourin24-hourclock(00–23)
%I
Hourin12-hourclock(01–12)
%j
Dayoftheyear(001–366)
%m
Monthoftheyear(01–12)
%M
Minuteofthehour(00–59)
%p
”a.m”or”p.m”
%S
Secondoftheminute(00–61)
%T
Sameas%H:%M:%S
%u
Weekday(1–7,1=Monday)
%w
Weekday(0–6,0=Monday)
%Y
Year(0000–9999)
%%
The%character.
8.2.3 BatesNumbers
Uniquepageidentifierscanbespecifiedbyputting%Batesintheformat.Thestartingpoint
canbesetwiththe-batesoption.Forexample:
cpdf -add-text "Page ID: %Bates" -bates 23745 in.pdf -o out.pdf
8.2.4 Position
Thepositionofthetextmaybespecifiedeitherinabsoluteterms:
30
CHAPTER8. WATERMARKSANDSTAMPS
-pos-center "200 200"
Positionthecenterofthebaselinetextat(200pt,200pt)
-pos-left "200 200"
Positiontheleftofthebaselineofthetextat(200pt,200pt)
-pos-right "200 200"
Positiontherightofthebaselineofthetextat(200pt,200pt)
Positionsrelativetocertaincommonpointscanbeset:
-top 10
Centerofbaseline10ptsdownfromthetopcenter
-topleft 10
Leftofbaseline10ptsdownandinfromtopleft
-topright 10
Rightofbaseline10ptsdownandleftfromtopright
-left 10
Leftofbaseline10ptsinfromcenterleft
-bottomleft 10
Leftofbaseline10ptsinandupfrombottomleft
-bottom 10
Centerofbaseline10ptsupfrombottomcenter
-bottomright 10
Rightofbaseline10ptsupandinfrombottomright
-right 10
Rightofbaseline10ptsinfromthecenterright
-diagonal
Diagonal,bottomlefttotopright,centeredonpage
-reverse-diagonal
Diagonal,toplefttobottomright,centeredonpage
-center
Centeredonpage
Noattemptismadetotakeaccountofthepagerotationwheninterpretingtheposition,so
-prerotatemustbeaddedtothecommandlineifthefilecontainspageswithanon-zero
viewingrotation.Thisisequivalenttopre-processingthedocumentwith-upright.
The-relative-to-cropboxmodifiercanbeaddedtothecommandlinetomakethese
measurementsrelativetothecropboxinsteadofthemediabox.
Thedefaultpositionisequivalentto-topleft 100.
The-midlineoptionmaybeaddedtospecifythatthepositioningcommandsaboveareto
beconsideredrelativetothemidlineofthetext,ratherthanitsbaseline.
8.2.5 FontandSize
Thefontmaybesetwiththe-fontoption.The14StandardPDFfontsareavailable:
8.2. STAMPTEXT,DATESANDTIMES.
31
Times-Roman
Times-Bold
Times-Italic
Times-BoldItalic
Helvetica
Helvetica-Bold
Helvetica-Oblique
Helvetica-BoldOblique
Courier
Courier-Bold
Courier-Oblique
Courier-BoldOblique
Symbol
ZapfDingbats
Forexample,pagenumbersinTimesItaliccanbeachievedby:
cpdf -add-text "-%Page-" -font "Times-Italic" in.pdf -o out.pdf
SeeSection14.1forhowtouseotherfonts.
Thefontsizecanbealteredwiththe-font-sizeoption,whichspecifiesthesizeinpoints:
cpdf -add-text "-%Page-" -font-size 36 in.pdf -o out.pdf
8.2.6 Colors
The-coloroptiontakesanRGBcolor,wherered,greenandbluecomponentsrangebetween
0and1.Thefollowingvaluesarepredefined:
Color R,G,B
white 1,1,1
black
0,0,0
red
1,0,0
green
0,1,0
blue
0,0,1
cpdf -add-text "Hullo" -color "red" in.pdf -o out.pdf
cpdf -add-text "Hullo" -color "0.5 0.5 0.5" in.pdf -o out.pdf
Partly-transparenttextmaybespecifiedusingthe-opacityoption.Whollyopaqueis1and
whollytransparentis0.Forexample:
cpdf -add-text "DRAFT" -color "red" -opacity 0.3 -o out.pdf
32
CHAPTER8. WATERMARKSANDSTAMPS
8.2.7 OutlineText
The-outlineoptionsetsoutlinetext. Thelinewidth(default1pt)maybesetwiththe
-linewidthoption.Forexample,tostampdocumentsasdrafts:
cpdf -add-text "DRAFT" -diagonal -outline in.pdf -o out.pdf
8.2.8 Multi-lineText
Thecodenncanbeincludedinthetextstringtomovetothenextline.Inthiscase,thevertical
positionreferstothebaselineofthefirstlineoftext(ifthepositionisatthetop,topleftortop
rightofthepage)orthebaselineofthelastlineoftext(ifthepositionisatthebottom,bottom
leftorbottomright).
cpdf -add-text "Specification\n%Page of %EndPage"
-topright 10 in.pdf -o out.pdf
The-midlineoptionmaybeusedtomaketheseverticalpositionsrelativetothemidlineofa
lineoftextratherthanthebaseline,asusual.
The-line-spacingoptioncanbeusedtoincreaseordecreasethelinespacing,wherea
spacingof1isthestandard.
cpdf -add-text "Specification\n%Page of %EndPage"
-topright 10 -line-spacing 1.5 in.pdf -o out.pdf
Justificationofmultiplelinesishandledbythe-justify-left,-justify-rightand
-justify-centeroptions.Thedefaultsareleftjustificationforpositionsrelativetotheleft
handsideofthepage,rightjustificationforthoserelativetotheright,andcenterjustification
forpositionsrelativetothecenterofthepage.Forexample:
cpdf -add-text "Long line\nShort" -justify-right
in.pdf -o out.pdf
8.2.9 SpecialCharacters
Ifyourcommandlineallowsfortheinclusionofunicodecharacters,theinputtextwillbe
consideredasUTF8bycpdf.SpecialcharacterswhichexistinthePDFWinAnsiEncodingLatin
Documents you may be interested
Documents you may be interested