open pdf in new tab c# mvc : How to delete text in pdf file online control SDK system azure .net windows console RMDotNetProgrammersGuide19-part1807

Chapter27-DocCleanFunctions
zeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferror
codes.
Example27.2CIMG_despeckel_bitmap
nRes = snbdObj.CIMG_despeckel_bitmap(quality);
CIMGLOW_auto_invert()
Thisfunctioninvertsthecolorsoftheimageifthepassedbackgroundcolorisfoundtonotbe
thedominantandpresumablythebackgroundcoloroftheimage.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheDocClean
sample.
Syntax
int SNBDAPI CIMGLOW_auto_invert(int red, int green, int blue, int
colourTolerance, double mismatchTolerance);
Remark
Table27.4:CIMGLOW_auto_invertFunctionVariables
Variable
Description
red
24-bpp:Redcomponentofthedetectioncolororthe
fullbackgroundcolorfor1,4and8-bitperpixel
images.Mayhavethevalueof[0-255].1-bpp/4-bpp/8-
bpp:Indexvalueofthedetectioncolor.Mayhavethe
valueof[0-1],[0-127],and[0-255],respectively.
green
Greencomponentofthedetectioncolor.Ignoredfor
non-24-bppimages.Mayhavethevalueof[0-255].
blue
Bluecomponentofthedetectioncolor.Ignoredfor
non-24-bppimages.Mayhavethevalueof[0-255].
colourTolerance
Percolor-channelpixel-valuematchtolerancelinear
distancevalue.
mismatchTolerance
Mismatchtolerancepercentage.Ifnegative,itwill
defaultto75.Anexampleofavalidvalueis50.26.If
thepercentageofbackgroundpixelsonthepageis
lessthanthemismatchtolerance,theimagewillnot
beinverted.
191
How to delete text in pdf file online - 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
pdf text remover; how to delete text in pdf using acrobat professional
How to delete text in pdf file online - 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
how to delete text from pdf with acrobat; how to erase text in pdf
Chapter27-DocCleanFunctions
Returns
Returns1iftheimageisinvertedand0iftheimageisnotinverted.Anyvaluelessthanzerois
aSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_detect_blank_page()
Thisfunctioncanbeusedtodetectblankpages.Itcanalsobeusedtodetectpagesthatare
essentiallyblankthoughtherearesomescanartifactsorother“dirt”onthem.
Thisfunctionreturnsthepercentageofpixelspresentthatarenotequaltothepasseddetection
orbackgroundcolor.Ifautodetectissetto1,thenthedetectionorbackgroundcolorwillbe
determinedautomaticallyandwillcorrespondtothedominantcolorintheimage.Thetolerance
valuecanbesettoallowforamorelenientcolormatchingthealgorithm.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheDocClean
sample.
Syntax
double SNBDAPI CIMGLOW_detect_blank_page(int autodetect, int red,
int green, int blue, int tolerance, int isLowQuality, int
isLowMemory, Double* pctMismatch);
Remark
Table27.5:CIMGLOW_detect_blank_page FunctionVariables
Variable
Description
autodetect
Auto-detectthebackgroundcolor(0:no;1:yes).1will
forcethesystemtoignorethepassedcolor.
red
24-bpp:Redcomponentofthedetectioncolor.Mayhave
thevalueof[0-255].1-bpp/4-bpp/8-bpp:Indexvalueof
thedetectioncolor.Mayhavethevalueof[0-1],[0-127],
and[0-255],respectively.
green
Greencomponentofthedetectioncolor.Ignoredfornon-
24-bppimages.Mayhavethevalueof[0-255].
blue
Bluecomponentofthedetectioncolor.Ignoredfornon-
24-bppimages.Mayhavethevalueof[0-255].
tolerance
Percolor-channelpixel-valuematchtolerancelinear
distancevalue.Usethisvalueincomparingbackground
pixels.Thisnumberisintherange[0-255].
isLowQuality
Executethelow-qualityversionoftheautodetect
algorithm(0:no;1:yes).Thelow-qualityversionwillnot
guaranteetheglobalmaximum,butitwillexecutemuch
faster.Thetolerancelevelisnottakenintoconsideration.
isLowMemory
Executethelow-memoryversionoftheautodetect
192
C# PDF File & Page Process Library SDK for C#.net, ASP.NET, MVC
NET read PDF, VB.NET convert PDF to text, VB.NET pages, VB.NET comment annotate PDF, VB.NET delete PDF pages, VB If you want to split PDF file into two or small
delete text from pdf acrobat; delete text in pdf file online
VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.
Online source codes for quick evaluation in VB.NET looking for a solution to conveniently delete one page which supports a variety of PDF file editing features
how to delete text in pdf converter professional; remove text from pdf acrobat
Chapter27-DocCleanFunctions
Variable
Description
algorithm(0:no;1:yes).Thelow-memoryversionwillnot
guaranteetheglobalmaximum.Thetolerancelevelisnot
takenintoconsideration.Thissettingisonlyfor24-bpp
images.
pctMismatch
Thepercentageofpixelsonthepagethatisnotequalto
thebackgroundcolor.Ifthepercentageiszeroornear
zero,thepageisblank.
Note:Thepercentageisafloatingpointnumber.For
example,areturnvalueof50.26means50.26%ofthe
pageisnon-blank.
Returns
Returns1ifthefunctionreturnsnoerror.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_image_dilation()
Thisfunctionperformsimagedilationonthespecifiedimage.Thisfunctionwillthickenthe
contentofanimagemakinglinesandtextthicker.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheDocClean
sample.
Syntax
int SNBDAPI CIMGLOW_image_dilation(int coarseness);
Remark
Table27.6:CIMGLOW_image_dilationFunctionVariable
Variable
Description
coarseness
Thecoarsenessoramountofdilation.
Returns
Returnsthestatusoftheimagedilationoperation.Avaluegreaterorequalto0indicates
successandrepresentsthenumberofblobsremoved.Anyvaluelessthanzeroisanerror
code.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
193
C# PDF Text Extract Library: extract text content from PDF file in
Free online source code for extracting text from adobe PDF document in C#.NET class. Able to extract and get all and partial text content from PDF file.
how to delete text in pdf converter; remove text watermark from pdf
VB.NET PDF Text Extract Library: extract text content from PDF
advanced PDF Add-On, developers are able to extract target text content from source PDF document and save extracted text to other file formats through VB
remove text from pdf; erase pdf text
Chapter27-DocCleanFunctions
CIMGLOW_image_erosion()
Thisfunctionperformsimageerosiononthespecifiedimage.Thisfunctionwillthinthecontent
ofanimagemakinglinesandtextthinner.Thiscanbeusedtoremoveartifactsintroducedby
scanning.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheDocClean
sample.
Syntax
int SNBDAPI CIMGLOW_image_erosion(int quality);
Remark
Table27.7:CIMGLOW_image_erosionFunctionVariable
Variable
Description
quality
Thecoarsenessoramountoferosion.
Returns
Returnsthestatusoftheimageerosionoperation.Avaluegreaterorequalto0indicates
successandrepresentsthenumberofblobsremoved.Anyvaluelessthanzeroisanerror
code.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_remove_halftone()
Thisfunctionremovessmallblobsfromimages.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheDocClean
sample.
Syntax
int SNBDAPI CIMGLOW_remove_halftone(int minSize, int maxSize);
Remark
Table27.8:CIMGLOW_remove_halftoneFunctionVariables
Variable
Description
minSize
Minimumdiameterofablob.(Thisvalueshouldbeatleast
1.)
maxSize
Maximumdiameterofablob.(Thisvalueshouldbekept
verysmall.)
194
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
size, images size reducing can help to reduce PDF file size effectively will also take up too much space, glyph file unreferenced can Delete unimportant contents
erase text in pdf document; how to delete text in pdf acrobat
C# PDF File Split Library: Split, seperate PDF into multiple files
SharePoint. C#.NET control for splitting PDF file into two or multiple files online. Support to break a large PDF file into smaller files.
delete text pdf acrobat professional; how to delete text from pdf reader
Chapter27-DocCleanFunctions
Returns
Returnsthestatusofthehalftoneremovaloperation.Avaluegreaterorequalto0indicates
successandrepresentsthenumberofblobsremoved.Anyvaluelessthanzeroisanerror
code.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_remove_lines()
Thisfunctionhorizontaland/orverticallinesfromanimage.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheDocClean
sample.
Syntax
int SNBDAPI CIMGLOW_remove_lines(int horizontal, int vertical, int
min_value);
Remark
Table27.9:CIMGLOW_remove_linesFunctionVariables
Variable
Description
horizontal
Ifsetto1,removeshorizontallines.
vertical
Ifsetto1,removesverticallines.
min_value
Thesmallestpossiblevaluetobeconsideredaline.
Returns
Returnsthestatusofthelineremovaloperation.Avaluegreaterorequalto0indicatessuccess
andrepresentsthenumberofblobsremoved.Anyvaluelessthanzeroisanerrorcode.See
Appendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_remove_holepunch()
Thisfunctionremovesholepunchesfromspecifiedareasonthepageorautomaticallyfindsthe
holepunches.Specifyingafixedareatorepairisfasterthanhavingthemethodfindandfillthe
holes.Thismaybedonemanuallybyspecifyingtheexactspanofanyholepunchesalongwith
thefillcolor.Alternatively,thismaybedoneautomaticallywhereboththeholesandthefillcolor
aredeterminedalgorithmically.
Thisfunctionremovesholepunchesbyfillingintheholeareawithabackgroundcolor.The
backgroundcolorispassedinasred,greenandblueoryoucanhavethefunctionautomatically
detectthebackgroundcolor.
195
C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
Ability to remove a range of pages from PDF file. document page deleting library control (XDoc.PDF) can be C#.NET class applications to delete any unnecessary
how to delete text in a pdf acrobat; delete text from pdf preview
VB.NET PDF File Split Library: Split, seperate PDF into multiple
Split PDF file into two or multiple files in ASP.NET webpage online. Support to break a large PDF file into smaller files in .NET WinForms.
how to erase text in pdf online; how to delete text from a pdf in acrobat
Chapter27-DocCleanFunctions
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheDocClean
sample.
Note:
Thiswillnotworkwithalpha-channelenabledimages.
Syntax
int SNBDAPI CIMGLOW_remove_holepunch(int autoDetectFillColour, int
red, int green, int blue, int autoFindHoles, CIMG_RECT* holes[],
int holeNum, CIMG_RECT* ROIs[], int ROIsNum, int minHoleDiameter,
int maxHoleDiameter);
Remark
Table27.10:CIMGLOW_remove_holepunchFunctionVariables
Variable
Description
autoDetectFillColour
Auto-detectthefillcolour(0:no;1:yes).1willforcethe
systemtoignorethepassedfillcolor.
red
24-bpp:Redcomponentofthedetectioncolororthefull
backgroundcolorfor1,4and8-bitperpixelimages.
Mayhavethevalueof[0-255].1-bpp/4-bpp/8-bpp:
Indexvalueofthedetectioncolor.Mayhavethevalue
of[0-1],[0-127],and[0-255],respectively.
green
Greencomponentofthedetectioncolorfor24-bit
images.Ignoredfornon-24-bppimages.Mayhavethe
valueof[0-255].
blue
Bluecomponentofthedetectioncolorfor24-bit
images.Ignoredfornon-24-bppimages.Mayhavethe
valueof[0-255].
autoFindHoles
Auto-detecttheholepunches(0:no;1:yes).1willforce
thesystemtoignorethepassedholes.
holes
Arrayofholepunchspanstofill.Ifthereareregions-of-
interest(ROI),thenallholeswhichdonotcompletely
liewithinanROIareignored.Simiarly,holeswhich
spanseveralROIsbutnotasingleROIwillbeignored.
MaybeNULLwhenautoFindHolesis1.
holeNum
Numberofelementsintheholesarray.Maybe0
whenautoFindHolesis1.
ROIs
Arrayofregions-of-interest(ROI).ROIsareareas
whereholesmayspan.IfROIsisNULLandtheholes
arenotautomaticallyfound,thentheentireimagewill
betakenastheROI.IfROIsisNULLandtheholesare
automaticallyfound,thensensibleROIswillbe
determinedalgorithmically.
196
Chapter27-DocCleanFunctions
Variable
Description
ROIsNum
NumberofelementsintheROIsarray.Maybe0when
ROIsisNULL.
minHoleDiameter
Minimumdiameterinpixelsofanyholes.Thisisonly
usedwhenholesareautomaticallyfound.
maxHoleDiameter
Maximumdiameterinpixelsofanyholes.Thisisonly
usedwhenholesareautomaticallyfound.
Returns
Returnsthenumberofholesfound.AnyvaluelessthanzeroisaSnowbounderrorcode.See
Appendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
197
Chapter28-ImageProcessingFunctions
Chapter 28 - Image Processing Functions
ThischapterdescribestheRasterMaster.NETimage-processingfunctions.
CIMG_antique_effect()
Thisfunctionconvertscolorimagestolookasthoughtheyareantiquephotos.Itreplaces
colorswithsepiatones,whicharereddishbrownmonochrometints.Whenappliedtoaphoto,
theygivethepictureawarm,antiquefeeling.
Note:
Thismethodonlyworkswith24-bitcolorimages.
Syntax
int CIMG_antique_effect(void);
CIMG_apply_profile()
Thisfunctiontakestheinputprofilefromthecreatingdevice,suchasascanner,andoutput
profileforaprinterordisplayandappliesthemtotheimage.Ifaninputfileisnotavailable,the
parametercanbesettotoNULLorZERO.
Syntax
int SNBDAPI CIMG_apply_profile(String **strInputProfile,String
**strOutputProfile, int mode);
Remarks
Table28.1:CIMG_apply_profileFunctionVariables
Variable
Description
strInputProfile
Stringbuffercontainingtheinputprofile.
strOutputProfile
Stringbuffercontainingtheoutputbuffer.
mode
Formodechoices,seebelow.
Table28.2:CIMG_apply_profileVariableModes
Mode
Description
0
Applypermanentlytotheimagedata.
1
Applyonlyatdisplaytime.*
2
Applyonlyatprinttime.*
198
Chapter28-ImageProcessingFunctions
Mode
Description
3
Applyatdisplayandprinttime.*
*Modesettingsdonotchangetheoriginalimagedata.
Returns
Returnsthestatusoftheapplyprofileoperation.AnyvaluelessthanzeroisaSnowbounderror
code.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_auto_orient()
Thisfunctionreturnstheorientationoftheimage.Thevalueis90or0.Ifthevalueis90,you
maywanttofixtheimagebyusingCIMG_rotate_bitmap().SeeCIMG_
rotate_
bitmap
()
for
moreinformation.
Syntax
int SNBDAPI CIMG_auto_orient(int32 *p_angle);
Remark
Table28.3:CIMG_auto_orientFunctionVariable
Variable
Description
p_angle
Anglereturnedasthecurrentorientation.Numberof
pixelstoaddtotheautocroprectangle.Either90or0is
returned.
Returns
Returnsthestatusoftheautoorientoperation.AnyvaluelessthanzeroisaSnowbounderror
code.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_autocrop_bitmap()
Thisfunctionfindsandclipsanywhiteborderaroundtheimageoneveryside.Theborderis
discardedandtheimageisresizedtothenewcroppedrectangleplusthemargin.
Themarginmaybeavalueof0.
Note:
Thisfunctiononlyworkswith1-bitimages.Ifyouusethisfunctionwithanimagethatis
nota1-bitimage,youwillgetaPIXEL_DEPTH_UNSUPPORTED(-21)errormessage.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
199
Chapter28-ImageProcessingFunctions
Syntax
int SNBDAPI CIMG_autocrop_bitmap(int margin_numofpixels);
Remark
Table28.4:CIMG_autocrop_bitmapFunctionVariable
Variable
Description
margin_numofpixels
Numberofpixelstoaddtotheautocroprectangle
Returns
Returnsthestatusoftheautocropbitmapoperation.AnyvaluelessthanzeroisaSnowbound
errorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_create_thumbnail()
Thisfunctioncreatesathumbnailwiththecorrectpixeldepthandautomaticallyselectsthe
correctresizefunctionfortheimage.SeeCIMG_
resize_
bitmap
()
andCIMG_
resize_
bitmap_
bicubic
()
formoreinformation.
Tozoomlarger,useCIMG_
resize_
bitmap
()
.Tozoomtoasmallersize,useCIMG_create_
thumbnail().
1-bitimagesareconvertedtograyscalewithour“scaletogray”algorithm.8and24-bitimages
areresizedwithourbicubicinterpolationalgorithm.
Ifyouexperiencediminishedqualitywhenresizing,trycallingCIMG_create_thumbnailto
lookatneighboringpixelswhenresizingforbetterquality.
UseCIMG_create_thumbnailtopreserveaspectratiowhenconvertingtoathumbnail.
ThiswillcreateagrayscalealiasedbitmapthatmustbesavedwithTIFF_LZWorTIFF_JPEG.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheThumbnail
sample.
Syntax
int SNBDAPI CIMG_create_thumbnail(int width, int height);
Remark
Table28.5:CIMG_create_thumbnailFunctionVariables
Variable
Description
width
Newwidthofimageinpixels
height
Newheightofimageinpixels
200
Documents you may be interested
Documents you may be interested