open pdf file in new tab in asp.net c# : Delete text pdf preview SDK control API .net web page windows sharepoint pdfkungfoo-sample1-part1325

I100TippsandTricks
Delete text pdf preview - 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
how to delete text from a pdf in acrobat; how to edit and delete text in pdf file
Delete text pdf preview - 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 pdf document; delete text from pdf
1Downloadingthetools
MyownpreferredworkenvironmentsareLinuxandMacOSX.However,mostofthemethodsexplained
inthefollowingchapterscanbeappliedtoWindowstoo.Readerswillbenefitmostfromthisbookifthey
reproduceandplaywithsomeoftheexamplecommandlinesgiven.Todothattheyshouldinstallthe
followingtools.
1.1Windows
Thesearethepreferreddownloadsites.Theyaretheoneswhichareofferedbytherespectivedevelopers
themselves.Donoteveruseanyother,third-partydownloadlinks,unlessyoureallyknowwhatyoudo!
• DownloadGhostscript¹:
http://downloads.ghostscript.com/public/²
CurrentlyavailableareinstallerfilesforWindows:
– gs914w32.exe³(forallWindowsOS32bit,butalsoworksonWindows64bit)
– gs914w64.exe⁴(doesnotworkonWindows32bit–butGhostscriptdeveloperswarnanyway:
the64bitversionmayevenrunsloweron64bitthandoesthe32bitversionon64bitWindows!)
– Keepyoureyesopenfornewerversionsappearinginthatdirectory!
• DownloadGhostPCL⁵:
http://downloads.ghostscript.com/public/binaries/⁶
Currentlyavailablearepre-compiled32-bitbinariesforWindowsembeddedina*.zipfile:
– ghostpcl-9.14-win32.zip⁷
– Keepyoureyesopenfornewerversionsappearinginthatdirectory!
• DownloadGhostXPS⁸:
http://downloads.ghostscript.com/public/binaries/⁹
Currentlyavailablearepre-compiled32-bitbinariesforWindowsembeddedina*.zipfile:
– 32-bitVersion:ghostxps-9.14-win32.zip¹⁰
– Keepyoureyesopenfornewerversionsappearinginthatdirectory!
• DownloadXPDF-Utils¹¹(CLItools:pdffonts,pdfinfo,pdfimages,pdftotext,pdftops…)
http://www.foolabs.com/xpdf/download.html¹²
Currentfileversion:
¹
http://www.ghostscript.com/download/gsdnld.html
²
http://downloads.ghostscript.com/public/
³
http://downloads.ghostscript.com/public/gs914w32.exe
http://downloads.ghostscript.com/public/gs914w64.exe
http://www.ghostscript.com/download/gpcldnld.html
http://downloads.ghostscript.com/public/binaries/
http://downloads.ghostscript.com/public/binaries/ghostpcl-9.14-win32.zip
http://www.ghostscript.com/download/gxpsdnld.html
http://downloads.ghostscript.com/public/binaries/
¹⁰
http://downloads.ghostscript.com/public/binaries/ghostxps-9.14-win32.zip
¹¹
http://www.foolabs.com/xpdf/about.html
¹²
http://www.foolabs.com/xpdf/download.html
2
How to C#: Preview Document Content Using XDoc.Word
How to C#: Preview Document Content Using XDoc.Word. Get Preview From File. You may get document preview image from an existing Word file in C#.net.
pdf editor online delete text; deleting text from a pdf
How to C#: Preview Document Content Using XDoc.PowerPoint
How to C#: Preview Document Content Using XDoc.PowerPoint. Get Preview From File. You may get document preview image from an existing PowerPoint file in C#.net.
pull text out of pdf; delete text pdf preview
Downloadingthetools
3
– xpdfbin-win-3.03.zip¹³
The .zip contains pre-compiled binaries for r Windows. . It’s s not t an n installer: : just t unpack
anywhereyouwant,modifythe%PATH%variabletofindthebinariesandstartthemfrom
anCMDwindow.
Youmaywanttoadditionallyaddoneormoreofthe*‘LanguageSupportPackages’.
– Keepyoureyesopenfornewerversionsappearinginthatdirectory!
• Downloadqpdf¹⁴:
32-bitVersion:http://sourceforge.net/projects/qpdf/files/qpdf/5.1.1/qpdf-5.1.1-bin-mingw32.zip¹⁵
64-bitVersion:http://sourceforge.net/projects/qpdf/files/qpdf/5.1.1/qpdf-5.1.1-bin-mingw64.zip¹⁶
64-bitVersion:http://sourceforge.net/projects/qpdf/files/qpdf/5.1.1/qpdf-5.1.1-bin-msvc64.zip¹⁷
• Downloadpdftk¹⁸:
http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-win-setup.exe¹⁹
• DownloadImageMagick²⁰:
http://www.imagemagick.org/download/binaries/²¹ (make sure e to select the correct and most
currentdownloadforyoursystem)
AWarningNoteaboutDownloadingfromSourceforge
Sourceforge.netusedtobearesourcethatwasveryusefulfortheOpenSourcecommu-
nity.However,inrecentyearsthesitehasbecomemoreandmoreoverloadedwithads.
SomeofthemorerecentstoriesontheInternetevensuggestthatthesitemaybepoisoned
withlinksthatleadyoutothirdparty‘drive-by’malwaredownloadsites.
Unfortunately,someofthetoolsadvertisedinthiseBook(suchas
qpdf
)stilldohosttheir
sourcecodeortheirWindowsbinariesonthisplatform.I’mhopingthedevelopersof
thesetoolswillfindsomeotherhostingsoon…
:-(
1.2MacOSX
Myrecommendationistousethe‘MacPorts’frameworkforinstallingadditionalsoftwarepackages:
• http://www.macports.org/install.php²²
AfteryouhaveputMacPortsinplace,openaTerminal.appwindowandstartinstallingthepackagesby
typing:
¹³
ftp://ftp.foolabs.com/pub/xpdf/xpdfbin-win-3.03.zip
¹⁴
http://qpdf.sf.net/
¹⁵
http://sourceforge.net/projects/qpdf/files/qpdf/5.1.1/qpdf-5.1.1-bin-mingw32.zip/download
¹⁶
http://sourceforge.net/projects/qpdf/files/qpdf/5.1.1/qpdf-5.1.1-bin-mingw64.zip/download
¹⁷
http://sourceforge.net/projects/qpdf/files/qpdf/5.1.1/qpdf-5.1.1-bin-msvc64.zip/download
¹⁸
http://www.pdflabs.com/tools/pdftk-server/
¹⁹
http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-win-setup.exe
²⁰
http://www.imagemagick.org/
²¹
http://www.imagemagick.org/download/binaries/
²²
http://www.macports.org/install.php
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
a preview component enables compressing and decompressing in preview in ASP images size reducing can help to reduce PDF file size Delete unimportant contents:
erase pdf text; how to delete text in pdf converter professional
C# WinForms Viewer: Load, View, Convert, Annotate and Edit PDF
Add text to PDF document in preview. • Add text box to PDF file in preview. • Draw PDF markups. Search PDF text in preview. • View PDF outlines.
how to delete text from a pdf reader; how to erase pdf text
Downloadingthetools
4
1
sudo port -p p install ghostscript poppler r ImageMagick coreutils s qpdf pdftk
Beawarethatthismaytakeawhile.Ghostscriptdependsonadditionalpackagesforitsfunctionality,
likelibpng,jpeg,tiff,zlibandmore.Thesameappliesfortheothertools.The
port
commanddownloads,
compilesandinstallsallthesedependenciesautomatically,sothismaytakequiteawhile…
1.3Linux
Debian,Ubuntu,…
Youcanrunthiscommandinaterminalwindow:
1
sudo apt-get t install ghostscript poppler-utils s ImageMagick coreutils s qpdf
Oryouusethepackagemanagerofyourchoicetofindandinstallthepackages…
RedHat,Fedora
Commandinaterminalwindow:
1
sudo yum m install l ghostscript poppler-utils s ImageMagick coreutils s qpdf
Slackware
Commandinaterminalwindow:
1
TODO
1.4Documentation
C# WinForms Viewer: Load, View, Convert, Annotate and Edit
Convert CSV file to PDF (.pdf). Annotation. • Add, delete and save annotations to OpenOffice in preview. Miscellaneous. • Select text on OpenOffice.
online pdf editor to delete text; erase text from pdf file
C# PDF insert text Library: insert text into PDF content in C#.net
Supports adding text to PDF in preview without adobe reader installed in ASP.NET. Powerful .NET PDF edit control allows modify existing scanned PDF text.
how to delete text in pdf file; delete text from pdf file
Downloadingthetools
5
1
TODO
How to C#: Preview Document Content Using XDoc.excel
How to C#: Preview Document Content Using XDoc.Excel. Get Preview From File. You may get document preview image from an existing Excel file in C#.net.
delete text from pdf acrobat; remove text watermark from pdf online
C# PDF replace text Library: replace text in PDF content in C#.net
Description: Delete specified string text that match the search option from specified PDF page. Parameters: Name, Description, Valid Value.
remove text from pdf preview; acrobat remove text from pdf
2HowcanIconvertPCLtoPDF?
IsitpossibletouseGhostscriptforconvertingPCLprintfilestoPDFformat?Ifso,how?
2.1Answer
No,it’snotpossiblewithGhostscriptitself…
Butyes!,it’sverywellpossiblewithanothercoolpieceofworkhorsesoftwarefromthesamebarn:its
nameistGhostPCL.
GhostscriptdevelopersinrecentyearsintegratedtheirsisterproductsGhostXPS,GhostPCLandGhostSVG
intotheirmainGhostscriptsourcecodetree¹,whichswitchedfromSubversiontoGitsometimeago.The
completefamilyofproductsisnowcalledGhostPDL.Soalloftheseadditionalfunctionalities(load,render
andconvertXPS,PCLandSVG)arenowavailablefromthere.
Previously,thoughGhostPCLwasavailableasasourcecodetarball,itwashardlytobefoundonthe‘net.
ThemajorLinuxdistributions(Debian,Ubuntu,Redhat,Fedora,OpenSUSE,…)don’tprovidepackages
fortheiruserseither.OnMacPortsitismissingtoo.
Thismeansyouhavetobuildtheprogramsyourselffromthesources.Youcouldevencompiletheso-called
languageswitchingbinary,
pspcl6
.Thisbinary,intheory,canconsumePCL,PDFandPostScriptand
convertthisinputtoahostofotherformats.Justrun
make ls-product
inthetoplevelGhostscriptsource
directoryinordertobuildit.Theresultingbinarywillendupinthe./language-switch/obj/subdirectory.
Run
make ls-install
inordertoinstallit.
WARNING:WhileitworkedformewheneverIneededit,Ghostscriptdevelopersrecommend
tostopusingthelanguageswitchingbinary(sinceit’s‘almostnon-supported’astheysay,and
itwillpossiblygoawayinthefuture).
Insteadtheyrecommendtousetheexplicitbinaries:
pcl6
or
pcl6.exe
forPCLinput,
gsvg
or
gsvg.exe
forSVGinput(also‘almostnon-supported’butitmayworkbetter
thanthelanguageswitchingbinary
pspcl6
)and
gxps
or
gxps.exe
forXPSinput(supportstatusuncleartome).
Sofor‘convertingPCLcodetoPDFformat’astherequestreads,youcouldusethe
pcl6
command
lineutility,thePCLconsumingsisterproduct toGhostscript’s
gs
(Linux,Unix,MacOSX)and
gswin32c.exe
/
gswin64c.exe
(Windows)whicharePostScriptandPDFinputconsumers.
¹
http://git.ghostscript.com/?p=ghostpdl.git;a=summary
6
HowcanIconvertPCLtoPDF?
7
Samplecommandline(Windows):
1
pcl6.exe
^
2
-o output.pdf
^
3
-sDEVICE=pdfwrite ^
4
[...more parameters s as required (optional)...] ^
5
-f input.pcl
SampleCommandline(Linux,Unix,MacOSX):
1
pcl6
\
2
-o output.pdf
\
3
-sDEVICE=pdfwrite \
4
[...more parameters s as s required d (optional)...] ] \
5
-f input.pcl
Explanation
-o output.pdf
The
-o
parameterdeterminesthelocationoftheoutput.Inthiscaseitwillbethefileoutput.pdf
inthecurrentdirectory(sincewedidnotspecifyanypathprefixforthefilename).Atthesame
time,using
-o
savesusfromtyping
-dBATCH -dNOPAUSE -dSAFER
,because
-o
implicitlydoesalso
settheseparameters.
-sDEVICE=pdfwrite
This parameter determines which kind of output t to o generate. In n our current case it will l be
PDF.IfyouwantedtoproduceamultipagegrayscaleTIFFwithCCITTcompression,youwould
changethatto
-sDEVICE=tiffg4
(don’tforgettomodifytheoutputfilenameaccordinglytoo:
-o
output.tif
).
-f input.pcl
Thisparameterdetermineswhichfiletoreadasinput.Inthiscaseitisthefileinput.pclinthe
currentdirectory.
Update:TheGhostscriptwebsitenowatleastforWindowsusersofferspre-compiled32-bitbinariesfor
GhostPCLandGhostXPS.
• http://downloads.ghostscript.com/public/binaries/ghostpcl-9.14-win32.zip²
• http://downloads.ghostscript.com/public/binaries/ghostxps-9.14-win32.zip³
²
http://downloads.ghostscript.com/public/binaries/ghostpcl-9.14-win32.zip
³
http://downloads.ghostscript.com/public/binaries/ghostxps-9.14-win32.zip
HowcanIconvertPCLtoPDF?
8
Seealsothehintsin*’[HowcanIconvertXPStoPDF?](#convert-xps-to-pdf)’*.
TODO!HintabouttheGhostPCLlicensing.Esp.important:hintabouttheURWfontswhicharenotGPL
(theyrequirecommerciallicensingforcommercialuse).
3HowcanItoconvertXPStoPDF?
HowcanIconvertXPStoPDF?IsthispossiblewithGhostscript?
3.1Answer
GhostscriptdevelopersinrecentyearshaveintegratedasisterproductnamedGhostXPSintotheirmain
Ghostscriptsourcecodetree¹,whichisbasedonGitnow.(Theyhavealsoincludedtwootherproducts,
namedGhostPCLandGhostSVG.)ThecompletefamilyofproductsisnowcalledGhostPDL.Soallof
theseadditionalfunctionalities(load,renderandconvertXPS,PCLandSVG)arenowavailablefromone
location.
Unfortunately,noneofthemajorLinuxdistributions(Debian,Ubuntu,Redhat,Fedora,OpenSUSE,…)do
currentlyprovidepackagesfortheirusers.OnMacPortsGhostXPSismissingtoo,asareGhostPCLand
GhostSVG.
Thismeansyouhavetobuildtheprogramsyourselffromthesources–unlessyouareaWindowsuser.In
thiscaseyouarelucky:thereisa*.zipcontainerontheGhostscriptwebsite,whichcontainsapre-compiled
Win32binary(whichalsorunsonWindows64bit!):
• http://downloads.ghostscript.com/public/binaries/ghostxps-9.07-win32.zip²
Whileyou’reatitandbuildthecodeyourself,youcouldevenbuildaso-calledlanguageswitchingbinary.
TheMakefilehastargetspreparedforthat.ThisbinarycanconsumePCL,PDFandPostScript.Itconverts
theseinputformatstoahostofotherfiletypes.Justrun
make ls-product && make e ls-install
inthe
toplevelGhostscriptsourcedirectoryinordertogetitinstalled.
WARNING:WhileitworkedformewheneverIneededit,Ghostscriptdevelopersrecommend
tostopusingthelanguageswitchingbinary(sinceit’s‘almostnon-supported’astheysay,and
itwillpossiblygoawayinthefuture).
Insteadtheyrecommendtousetheexplicitbinaries,alsosupportedasbuildtargetsinthe
Makefile:
pcl6
or
pcl6.exe
forPCLinput,
gsvg
or
gsvg.exe
forSVGinput(also‘almostnon-supported’)and
gxps
or
gxps.exe
forXPSinput(supportstatusuncleartome).
¹
http://git.ghostscript.com/?p=ghostpdl.git;a=summary
²
http://downloads.ghostscript.com/public/binaries/ghostxps-9.07-win32.zip
9
HowcanItoconvertXPStoPDF?
10
Samplecommandline(Windows):
1
gxps.exe
^
2
-o output.pdf
^
3
-sDEVICE=pdfwrite ^
4
[...more parameters s as s required d (optional)...] ] ^
5
-f input.xps
Samplecommandline(Linux,Unix,MacOSX):
1
gxps
\
2
-o output.pdf
\
3
-sDEVICE=pdfwrite \
4
[...more parameters s as s required d (optional)...] ] \
5
-f input.xps
Explanation
-o output.pdf
The
-o
parameterdeterminesthelocationoftheoutput.Inthiscaseitwillbethefileoutput.pdf
inthecurrentdirectory(sincewedidnotspecifyanypathprefixforthefilename).Atthesame
time,using
-o
savesusfromtyping
-dBATCH -dNOPAUSE -dSAFER
,because
-o
implicitlydoesalso
settheseparameters.
-sDEVICE=pdfwrite
Thisparameterdetermineswhichkindofoutputtogenerate.Inourcurrentcasethat’sPDF.Ifyou
wantedtoproduceaPostScriptlevel2file,youwouldchangethatto
-sDEVICE=ps2write
(don’t
forgettomodifytheoutputfilenameaccordinglytoo:
-o output.ps
).
-f input.pcl
Thisparameterdetermineswhichfiletoreadasinput.Inthiscaseitisthefileinput.pclinthe
currentdirectory.
Seealsothehintsin*[’HowcanIconvertPCLtoPDF?’](#convert-pcl-to-pdf.html)*.
TODO!HintabouttheGhostPCLlicensing.Esp.important:hintabouttheURWfontswhicharenotGPL
(theyrequirecommerciallicensingforcommercialuse).
Documents you may be interested
Documents you may be interested