open pdf in new tab c# mvc : Erase text from pdf software application dll windows winforms wpf web forms RMDotNetProgrammersGuide17-part1805

Chapter24-TextSearchFunctions
Chapter 24 - Text Search Functions
ThischapterdescribestheRasterMaster.NETtextsearchfunctions.
CIMG_save_document()
Thisfunctiontakesabufferpassedinwithtext,graphics,andpositioninformationtocreatethe
documentfileoutput.Theoutputfilecontainssearchabletext.Normally,theCIMG_save_
bitmap()functiononlycreatesabitmapfile.ThiscurrentlyonlysupportsthePDFfileasan
outputfile.
SincePDFisamulti-pagefileformat,itispossibleforasinglefiletocontainmultiplepages.Ifa
PDFfilealreadyexists,anewpagewillbeappended.
Syntax
int SNBDAPI CIMG_save_document(String *strName, char *buff, int
filetype);
Remarks
Table24.1:CIMG_save_documentFunctionVariables
Variable
Description
*strName
NameoftheoutputPDFfile
buff
Bufferofextractedtext,graphics,andbitmaps
filetype
CurrentlyonlysupportsPDF-filetype59
Returns
Returnsthedocumentfileoutput.AnyvaluelessthanzeroisaSnowbounderrorcode.See
Appendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
Example24.1DataFormatforExtractedTextBufferforbothWindowsandJava
Thecoordinatessystemisoriginatedattheupperleft.
X-Representsafloatingpointargument.Asin12.012,alloftheseargumentsarein
pointsof1/72ofaninch.
Text-RepresentsanASCIIstringargument.
STREAMCOMMANDSandformatofextractedfile
%%SOF- Start of file
171
Erase text 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 pdf file; how to delete text from a pdf document
Erase text 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
how to delete text in pdf document; how to delete text in pdf file
Chapter24-TextSearchFunctions
/PageNumber=XPage number being extracted.
/PageWidth=XWidth of page in points. (1/72 of an inch)
/PageHeight=XHeight of page in points. (1/72 of an inch)
%%EOFMarks the end of this file. No more data to
process.
/FontStart of font data and attributes.
/FontName=TextStandard font face name.
/FontHeight=XFont height in points (1/72 of an inch).
/FontBold=XSet to 1 for bold font otherwise 0.
/FontItalic=XSet to 1 for Italic font otherwise 0.
/Xpos=XX starting coordinate of text string.
/Ypos=XY starting coordinate of text string.
%%SOTStart of a text string after the carriage return.
Text Data here
%%EOTEnds a text string.
/ImageStart of image data and attributes.
/ImageWidth=XWidth in pixels of the image data.
/ImageHeight=XHeight in pixels of the image data.
/Bitsperpixel=XNumber of bits per pixel.
/Compression=TextCompression type used. CCITT_G4, JPEG, or
NONE.
/Length=XLength of binary image data.
%%SOIStarts the binary image data.
Binary data here
%%EOIEnds the binary image data.
/DrawImage Xs Ys Width HeightDraws the last defined image at
the
location specified by the arguments.
/Moveto XS YSMoves current graphics drawing position.
/LineXS YSDraws a line from current graphics
                               drawing position to a location
specified by the
arguments.
/Rectangle XS YS WIDTH HEIGHT
Draws a rectangle at the
specified
coordinates.
/Curve X1 Y1 X2 Y2 X3 Y3Draws a curve from the current
graphics
drawing position to the end coordinates
using the first 4 arguments as guide
points.
172
C# PDF Text Redact Library: select, redact text content from PDF
Free online C# source code to erase text from adobe PDF file in Visual Studio. How to Use C# Code to Erase PDF Text in C#.NET. Add necessary references:
how to delete text from pdf; how to delete text from a pdf in acrobat
C# WinForms Viewer: Load, View, Convert, Annotate and Edit PDF
Draw PDF markups. PDF Protection. • Sign PDF document with signature. • Erase PDF text. • Erase PDF images. • Erase PDF pages. Miscellaneous.
how to delete text in pdf converter professional; delete text pdf document
Chapter24-TextSearchFunctions
CIMG_save_mem()
Thisfunctionsavesthecurrentsnowboundobjecttoaimagebuffer.Itcalculatesthesizeofthe
memorybufferandgrowsitappropriately.
Syntax
int SNBDAPI CIMG_save_mem(Array* arrBuffer, int initial_size, int
buff_inc, int format, Int32* buff_size);
Remark
Table24.2: CIMG_save_memFunctionVariables
Variable
Description
arrBuffer
Bytearraybufferimagesavein.
initial_size
Initialsizeoftheimagebuffertoallocate.
buff_inc
Amounttogrowthebufferifmorespaceisneededto
save.
format
Formatcodetosaveas.
buff_size
Savedimagebuffersize.
Returns
Returnsthememorybuffer.AnyvaluelessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_save_mem_page()
Thisfunctionsavesthecurrentpageandappendsittothecurrentimagebuffer.Itcalculates
thesizeofthememorybufferandgrowsitappropriately.
Syntax
int SNBDAPI CIMG_save_mem_page(Array* arrBuffer, int buff_inc, int
format, Int32* buff_size);
Remark
Table24.3: CIMG_save_mem_pageFunctionVariables
Variable
Description
arrBuffer
Bytearraybufferimagesavein.
buff_inc
Amounttogrowthebufferifmorespaceisneededto
save.
format
Formatcodetosaveas.
buff_size
Savedimagebuffersize.
173
C# WPF Viewer: Load, View, Convert, Annotate and Edit PDF
Draw markups to PDF document. PDF Protection. • Add signatures to PDF document. • Erase PDF text. • Erase PDF images. • Erase PDF pages. Miscellaneous.
delete text from pdf; remove text from pdf online
C# HTML5 Viewer: Load, View, Convert, Annotate and Edit PDF
Redact tab on viewer empower users to redact and erase PDF text, erase PDF images and erase PDF pages online. Miscellaneous. • RasterEdge XDoc.
erase text from pdf; online pdf editor to delete text
Chapter24-TextSearchFunctions
Returns
Returnsthememorybuffer.AnyvaluelessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_append_page()
Thisfunctionextractpagesfromimagefileandappendthemtoimagebuffer.Currentlyonly
worksforPDFformatt.
Syntax
int SNBDAPI CIMGLOW_append_page(String *strFileName, Array*
arrBuffer);
Remarks
Table24.4:CIMGLOW_append_pageFunctionVariables
Variable
Description
strFileName
Inputdocumentname.
*arrBuffer
Imagebuffertosave/in
Returns
Returnstheimagebuffer.AnyvaluelessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_extract_text()
ThisfunctionextractstextfromPTOCA,PCL,PDF,MSWord,AFP,andMSExcelfiles.It
returnsthebufferofextractedtextinASCIIformat.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
Thisfunctionisusedinthefollowingsamples:
l
Convert_
Doc
l
Text
Search
Syntax
int SNBDAPI CIMGLOW_extract_text(String *strFileName, Byte
*arrBuffer, int *ptrLength, int page);
174
C# HTML5 PDF Viewer SDK to view, annotate, create and convert PDF
setting PDF file permissions. Help C# users to erase PDF text content, images and pages online in ASP.NET. RasterEdge C#.NET HTML5
how to remove text watermark from pdf; how to delete text in a pdf file
C# PDF Image Redact Library: redact selected PDF images in C#.net
redaction API to redact PDF images. Same as text redaction, you can specify custom text to appear over the image redaction area. How to Erase PDF Images in
how to delete text in pdf using acrobat professional; how to erase text in pdf file
Chapter24-TextSearchFunctions
Remarks
Table24.5:CIMGLOW_extract_textFunctionVariables
Variable
Description
*strFileName
Nameoffilefromwhichtoextracttext
*arrBuffer
Bufferfromwhichtoreceiveextractedtext
*ptrLength
Pointertoanintegertoreturnthelengthoftheextracted
buffer
page
Pagenumberoffilefromwhichtoextracttext
Returns
ReturnsthebufferofextractedtextinASCIIformat.AnyvaluelessthanzeroisaSnowbound
errorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
Example24.2CIMGLOW_extract_text
%%SOF
/Page=0
/Width=1700
/Height=2200
/FontName=TimesRoman
/FontHeight=44
/FontBold=1
/FontItalic=0
/Xpos=1300 /Ypos=240
%%SOT
Devadas
%%EOT
/Xpos=1243 /Ypos=240
%%SOT
S.
%%EOT
%%EOF
%%SOI
%%EOI
Table24.6:ExtractedTextVariables
Extractedtextuses%%SOTforregularASCIItext.IfUnicodetextisdetected,RasterMaster
willuse%%SOTU.Thetextinside%%SOTUand%%EOTUmayincludenullcharacters.
Variable
Description
%%SOF
Signalsthestartofthebuffer
%%EOF
Markstheendofextractedtext
Page
Specifiedonceatthebeginningofthefiletoindicatethe
175
How to C#: Special Effects
Erase. Set the image to current background color, the background color can be set by:ImageProcess.BackgroundColor = Color.Red. Encipher.
delete text pdf acrobat; how to delete text from pdf document
Customize, Process Image in .NET Winforms| Online Tutorials
Include crop, merge, paste images; Support for image & documents rotation; Edit images & documents using Erase Rectangle & Merge Block function;
delete text from pdf with acrobat; delete text pdf document
Chapter24-TextSearchFunctions
Variable
Description
pagenumber
Width
Specifiedonceatthebeginningofthefiletoindicatepage
widthinpixels
Height
Specifiedonceatthebeginningofthefiletoindicatepage
heightinpixels
FontName
Nameoffont
FontHeight
Fontheightinpixels
FontBold
Fonttobedrawnplainorinbold
1=bold
0=plain
FontItalic
Fonttobedrawninnormaloritalic
1=italic
0=normal
Xpos
Xposinpixels
Ypos
Yposinpixels
%%SOT
Startoftextblock
%%EOT
Endoftextblock
%%SOI
Startofimage
%%EOI
Endofimage
%%SOTU
StartofTextUnicode/UTF.
%%EOTU
EndofTextUnicode/UTF.
CIMGLOW_extract_text_mem_pointer()
Thisfunctionextractstextfrommemory.ItreturnsthebufferpointerofextractedtextinASCII
format.ThisfunctionrunsfasterthanCIMG_extract_text_mem.ItisonlysupportedbyC++
andC#.
Syntax
int SNBDAPI CIMGLOW_extract_text_mem_pointer(Array *arrImage, Byte
*arrBuffer, int *ptrLength, int page);
Remarks
Table24.7:CIMGLOW_extract_text_mem_pointerFunctionVariables
Variable
Description
*arrImage
Memoryarraytoimagedata
*arrBuffer
Pointerofbufferfromwhichtoreceiveextractedtext
*ptrLength
Pointertoanintegertoreturnthelengthoftheextracted
buffer
176
.NET Imaging Processing SDK | Process, Manipulate Images
Provide basic transformation functions, like Crop, Rotate, Resize, Flip and more; Basic image edit function support, such as Erase Rectangle, Merge Block, etc.
remove text from pdf reader; how to delete text from a pdf document
Chapter24-TextSearchFunctions
Variable
Description
page
Pagenumberoffilefromwhichtoextracttext
Returns
ReturnsthebufferofextractedtextinASCIIformat.AnyvaluelessthanzeroisaSnowbound
errorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_extract_page()
Thisfunctionextractsapagefromdocumentandsavetoimagebuffer.Currentlyonlyworksfor
PDFformat.
Syntax
int SNBDAPI CIMGLOW_extract_page(String *strFileName, Array*
arrBuffer, int page);
Remarks
Table24.8:CIMGLOW_extract_pageFunctionVariables
Variable
Description
strFileName
Inputdocumentname.
*arrBuffer
Imagebuffertosave/in
page
Pagenumberoffilefromwhichtoextracttext
Returns
Returnstheimagebuffer.AnyvaluelessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_extract_page_mem()
Thisfunctionextractsapagefrommemoryandsavetoimagebuffer.Currentlyonlyworksfor
PDFformat.
Syntax
int SNBDAPI CIMGLOW_extract_page_mem(Array *arrImage, Array*
arrBuffer, int page);
Remarks
Table24.9:CIMGLOW_extract_page_memFunctionVariables
177
Chapter24-TextSearchFunctions
Variable
Description
arrImage
Inputimagebuffer.
*arrBuffer
Imagebuffertosave/in
page
Pagenumberoffilefromwhichtoextracttext
Returns
Returnstheimagebuffer.AnyvaluelessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_search_text()
Thisfunctionreturnsanarrayofstructuresofclassesofthetype,SNBD_SEARCH_RESULT.
Foreachclassorstructurethereisanarrayofrectangles.Thisistoallowasearchtermtowrap
toanewlinerequiringmorethantworectanglestohighlight.
The nCountparameterwillbesettothenumberofrectanglesrequiredforeachinstanceofa
searchterm.Therectangleswillbesortedfromthetopofthepagetothebottomfromtheleft
sidetotheright.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheText
Search
sample.
Syntax
int SNBDAPI CIMGLOW_search_text(CIMG_SEARCH_RESULT[] sbdRCList,
Array *txtbuffer, String *strSearch, int case_sense, int *ptrerror,
int *pRecNum);
Remark
Table24.10:CIMGLOW_search_textFunctionVariables
Variable
Description
sbdRCList
ArrayofCIMG_SEARCH_RESULTspecifyingthelocation
ofthestringfound.Formoreinformation,seepublic
class
CIMG_
SEARCH_
RESULT
.
txtBuffer
Characterbuffertosearch.Returnedfromacallto
CIMGLOW_
extract_
text
()
.
strSearch
Searchstring
instance
Occuranceofsearchstringtofind,startfrom0
case_sense
Issearchcasesensitive.
0=Notcasesensitive
1=casesensitive
ptrerror
Errorcode
pRecNum
Numberofitemsinsearchresultarray.
178
Chapter24-TextSearchFunctions
Returns
Returnsthestatusofthearrayofstructuresofclassesofthetype,SNBD_SEARCH_
RESULT.AnyvaluelessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMGLOW_set_document_input()
Thisfunctionsetsthelevelofcolorandresolutionqualitywhenreadingindocumentsforthe
specifieddocumentformat.
Syntax
int SNBDAPI CIMGLOW_set_document_input(int dpi,int bitsperpixel,
int format, double width, double height);
Remark
Table24.11: CIMGLOW_set_document_inputFunctionVariables
Variable
Description
dpi
Inputresolutionindotsperinch.
bitsperpixel
Bitsperpixel.
format
Formatcodenumber.
width
Pagewidth.Unitsininches.
height
Pagewidth.Unitsininches.
Returns
Returnsthestatusofthedocumentinput.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
179
Chapter25-AFPFontMappingFunctions
Chapter 25 - AFP Font Mapping Functions
Thischapterdescribesthesnbd_map.fntfileandthefunctionsusedforAFPfontmapping.The
chaptercontainsthefollowingtopics:
AFP
Font
Mapping
Format
of
Font
Mapping
Data
Color
Documents
Rendered
as
Black
and
White
CIMGLOW_
set_
fontmap_
path
()
CIMGLOW_
set_
fontmap
()
AFPFont Mapping
AFPfilescanusespecificfontstoachieveaparticularlook.Ifyoufindthatthefidelityofthe
outputforyourAFPdocumentsislacking,particularlyinregardstotextsizeandspacingor
barcodes,thenyoucancustomizeRasterMaster.NETtouseparticularfontswhenprocessing
yourAFPfiles.RasterMaster.NETiseasytocustomizetoimprovethelookofyourAFP
documents.SnowboundSoftwareallowsyoutomapthefontsinyourAFP/MODCAdocument
tofontsonyoursystemusingamappingfilenamedsnbd_map.fnt.Thesnbd_map.fntfileis
customcraftedtospecifythefontsusedinyourAFPfilesandonyoursystem.Ifyouprovidea
representativesampleAFPdocumenttoSnowboundSoftwarebyenteringasupportissueat
http://support.snowbound.com
,wewillprovideyouwithacustomsnbd_map.fntfileusuallyin
afewbusinessdaysthatwillimprovethedisplayandprintqualityofyourAFPdocuments.
RasterMaster.NETautomaticallyloadsthesnbd_map.fntfileifitisfoundinoneofthe
followingdirectories:
l
Thedirectoryintowhichimagesarebeingread.Forexample:C:\\AFP\\fontmap
l
Thedirectorywhereyourapplicationexistsaslongasyouarenotchangingdirectories
withadialogbox
Thefollowingfunctionsallowyoutosetfontmapping:
1.
TheCIMGLOW_set_fontmap_path()functionsetsthepathofthefontmappingfile.
SeeCIMGLOW_
set_
fontmap_
path
()
formoreinformation.
2.
TheCIMGLOW_set_fontmap()functionprogrammaticallysetsthefontmapping.See
CIMGLOW_
set_
fontmap
()
 formoreinformation.
Format of Font MappingData
AnyAFPfontnamecannowbemappedtothefollowing:
180
Documents you may be interested
Documents you may be interested