open pdf in new tab c# mvc : Erase text from pdf file software Library project winforms asp.net windows UWP RMDotNetProgrammersGuide22-part1811

Chapter29-DocumentConversionandTextExtractionFunctions
Chapter 29 - Document Conversion and
Text Extraction Functions
Thischapterdescribesthefunctionsusedfordocumentconversionandtextextraction.
Document ConversionandText Extraction
ThedocumentconversionDLLextractsandconvertsvectorordocumentfileformatssuchas
AFP/MO:DCA,PCL,andMSWordtovectorPDFformat.ThePDFfilewillbeinatruevector
format,meaningthatitwillnotbeinabitmapformat.ThePDFfilewillretaintheoriginaltext
andgraphicscommands.Fontinformationsuchasthefonttypeface,fontheight,andbold/Italic
attributeswillremainthesame.ThisallowstheoutputPDFfiletobecreatedastext
searchable.ThePDFfilecreatedcanbesearchedforwordsorphraseswiththeuseofatext
searchingapplication.
Currently,onlyAFP/MO:DCA,MSWord,ExcelandPCLformatsaresupported.
Conversionandtextextractionoccurinthefollowingtwostepprocess:
1.
Acallismadetoextractthetext,graphics,andbitmapdata.TheCIMGLOW_extract_
text()functionextractstext,graphics,andpositioninformationfromthefilename
passedin.Thebufferreturnedisusedasanargumentinthecalltowriteoutthenew
PDFfile.SeeCIMGLOW_
extract_
text
()
formoreinformation.
2.
TheCIMG_save_document()functiontakesabufferpassedinwithtext,graphics,
andpositioninformationtocreatethedocumentfileoutput.Theoutputfilecontains
searchabletext.Normally,theCIMG_save_bitmap()functionsonlycreateabitmap
file.ThisonlysupportsthePDFfileasanoutputfile.SeeCIMG_
save_
document
()
for
moreinformation.
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
221
Erase text from pdf file - 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 in pdf file online; erase text in pdf document
Erase text from pdf file - 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 copy text out of a pdf; pdf text watermark remover
Chapter29-DocumentConversionandTextExtractionFunctions
Syntax
int SNBDAPI CIMGLOW_extract_text(String *strFileName, Byte
*arrBuffer, int *ptrLength, int page);
Remark
Table29.1:CIMGLOW_extract_textFunctionVariables
Variable
Description
*strFileName
Nameoffilefromwhichtoextracttext
*arrBuffer
Bufferfromwhichtoreceiveextractedtext
*ptrLength
Pointertoanintegertoreturnthelengthoftheextractedbuffer
page
Pagenumberoffilefromwhichtoextracttext
Returns
ReturnsthebufferofextractedtextinASCIIformat.Avalueof0indicatessuccess.Anyvalue
lessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralist
oferrorcodes.
Example29.1CIMGLOW_extract_text
%%SOF
/Page=0
/Width=1700
/Height=2200
/FontName=TimesRoman
/FontHeight=44
/FontBold=1
/FontItalic=0
/Xpos=1290 /Ypos=240
%%SOT
Devadas
%%EOT
/Xpos=1253 /Ypos=240
%%SOT
S.
%%EOT
%%EOF
%%SOI
%%EOI
Table29.2:Extracted Text Variable
Extractedtextuses%%SOTforregularASCIItext.IfUnicodetextisdetected,RasterMaster
willuse%%SOTU.Thetextinside%%SOTUand%%EOTUmayincludenullcharacters.
222
C# PDF Text Redact Library: select, redact text content from PDF
application. Free online C# source code to erase text from adobe PDF file in Visual Studio. NET class without adobe reader installed.
remove text from pdf; pdf editor delete text
C# HTML5 Viewer: Load, View, Convert, Annotate and Edit PDF
logo to PDF document, you and load and save it to current PDF file. Redact tab on viewer empower users to redact and erase PDF text, erase PDF images and erase
delete text in pdf file online; how to delete text from pdf
Chapter29-DocumentConversionandTextExtractionFunctions
Variable
Description
%%SOF
Signalsthestartofthebuffer
%%EOF
Markstheendofextractedtext
Page
Specifiedonceatthebeginningofthefiletoindicatethe
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()
Thisfunctionextractstextfrommemory.ItreturnsthebufferofextractedtextinASCIIformat.
Syntax
int SNBDAPI CIMGLOW_extract_text_mem(Array *arrImage, Byte
*arrBuffer, int *ptrLength, int page);
Remarks
Table29.3:CIMGLOW_extract_text_memFunctionVariables
Variable
Description
*arrImage
Memoryarraytoimagedata
*arrBuffer
Bufferfromwhichtoreceiveextractedtext
*ptrLength
Pointertoanintegertoreturnthelengthoftheextracted
buffer
page
Pagenumberoffilefromwhichtoextracttext
Table29.4:Extracted Text Variable
223
C# WPF Viewer: Load, View, Convert, Annotate and Edit PDF
Insert text box to PDF file. • Draw markups to PDF document. PDF Protection. • Add signatures to PDF document. • Erase PDF text. • Erase PDF images.
how to delete text from pdf document; acrobat remove text from pdf
C# WinForms Viewer: Load, View, Convert, Annotate and Edit PDF
Add text box to PDF file in preview. • Draw PDF markups. PDF Protection. • Sign PDF document with signature. • Erase PDF text. • Erase PDF images.
how to erase text in pdf; online pdf editor to delete text
Chapter29-DocumentConversionandTextExtractionFunctions
Variable
Description
Ypos
Yposinpixels
Xpos
Xposinpixels
Width
Specifiedonceatthebeginningofthefiletoindicatepage
widthinpixels
Page
Specifiedonceatthebeginningofthefiletoindicatethe
pagenumber
Height
Specifiedonceatthebeginningofthefiletoindicatepage
heightinpixels
FontItalic
Fonttobedrawninnormaloritalic
1=italic
0=normal
FontHeight
Fontheightinpixels
FontBold
Fonttobedrawnplainorinbold
1=bold
0=plain
FontName
Nameoffont
%%SOT
Startoftextblock
%%SOF
Signalsthestartofthebuffer
%%EOT
Endoftextblock
%%EOF
Markstheendofextractedtext
Returns
ReturnsthebufferofextractedtextinASCIIformat.AnyvaluelessthanzeroisaSnowbound
errorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_save_document()
Thisfunctiontakesabufferpassedinwithtext,graphics,andpositioninformationtocreatethe
documentfileoutput.Theoutputfilecontainssearchabletext.Normally,theCIMG_save_
bitmap()functiononlycreatesabitmapfile.ThiscurrentlyonlysupportsthePDFfileasan
outputfile.
SincePDFisamulti-pagefileformat,itispossibleforasinglefiletocontainmultiplepages.Ifa
PDFfilealreadyexists,anewpagewillbeappended.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheConvert_
Doc
sample.
Syntax
int SNBDAPI CIMG_save_document(String *strName, char *buff, int
filetype);
224
C# HTML5 PDF Viewer SDK to view, annotate, create and convert PDF
Able to protect PDF document from editing, printing, copying and commenting by setting PDF file permissions. Help C# users to erase PDF text content, images and
delete text from pdf preview; how to delete text from a pdf in acrobat
C# PDF Image Redact Library: redact selected PDF images in C#.net
call our image redaction API to redact PDF images. as text redaction, you can specify custom text to appear How to Erase PDF Images in .NET Using C# Class Code.
remove text watermark from pdf; delete text pdf acrobat professional
Chapter29-DocumentConversionandTextExtractionFunctions
Remarks
Table29.5:CIMG_save_documentFunctionVariables
Variable
Description
*strName
NameoftheoutputPDFfile
buff
Bufferofextractedtext,graphics,andbitmaps
filetype
CurrentlyonlysupportsPDF-filetype59
Returns
Returnsthedocumentfileoutput.AnyvaluelessthanzeroisaSnowbounderrorcode.See
Appendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
Example29.2DataFormatforExtractedTextBufferforbothWindowsandJava
Thecoordinatessystemisoriginatedattheupperleft.
X-Representsafloatingpointargument.Asin12.012,alloftheseargumentsarein
pointsof1/72ofaninch.
Text-RepresentsanASCIIstringargument.
STREAMCOMMANDSandformatofextractedfile
%%SOF- Start of file
/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
225
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 file; how to remove text watermark from pdf
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;
how to delete text from pdf with acrobat; how to erase text in pdf file
Chapter29-DocumentConversionandTextExtractionFunctions
%%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.
CIMG_save_document_mem()
Thisfunctiontakesabufferpassedinwithtext,graphics,andpositioninformationobtained
fromCIMGLOW_extract_text_mem()tosavethedocumentfileoutputtomemory.The
outputfilecontainssearchabletext.ThiscurrentlyonlysupportsthePDFfileasanoutputfile.
SincePDFisamulti-pagefileformat,itispossibleforasinglefiletocontainmultiplepages.Ifa
PDFfilealreadyexists,anewpagewillbeappended.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheConvert_
Doc
sample.
Syntax
int SNBDAPI CIMG_save_document_mem(Array *imgArray, Array
*buffArray, int filetype));
Remarks
Table29.6:CIMG_save_document_memFunctionVariables
Variable
Description
*imgArray
Memoryarrayalreadyallocated
buffArray
Bufferofextractedtext,graphics,andbitmaps
filetype
CurrentlyonlysupportsPDF-filetype59
226
.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.
how to delete text from a pdf in acrobat; acrobat delete text in pdf
Chapter29-DocumentConversionandTextExtractionFunctions
Returns
Returnstheexactdocumentsizesavedinmemory.Returnsa0orpositivevalueonsuccessin
RasterMaster.NETversion17.9.8orearlier.Returnsthenumberofbytessavedin
RasterMaster.NETversion17.9.9orlater.AnyvaluelessthanzeroisaSnowbounderror
code.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
227
Chapter30-ColorPromotionFunctions
Chapter 30 - Color Promotion Functions
ThischapterdescribestheRasterMaster.NETcolorpromotionfunctions.Generallyadding
morecolordepthtoanimagewillusesignificantlymorespaceandthelargerimagewilltake
moretimetoprocess.However,therearecircumstanceswhenablackandwhiteorgrayscale
imageneedstobepromotedtocolor,oracolorspaceneedstobechangedinordertomakean
imageconsistentwithotherpagesinadocument.
AFP(MO:DCA),Word,Excel,andPowerPointformatdocumentsareallreadinasblackand
white1-bitperpixelbydefaulttoenhanceperformance.Ifyouwouldliketopreservethecolorin
thesedocuments,youmayuseCIMGLOW_set_document_input(300,24)beforecalling
CIMG_
decompress_
bitmap
()
toreadinthedocuments.Preservingthe24-bitcolorinformation
andusingarelativelyhighresolutionof300DPIwillconsiderablyincreasethememoryrequired
toprocessthedocument,increasethesizeoftheoutputdocumentanddecreaseperformance. 
Ifyouhaveamixofmonochromeandcolorpagesthatyouareconvertingandsavingtoanother
format,thenyoumaywanttouseCIMGLOW_
detect_
color
()
toidentifyblackandwhitepages
thatcansafelybeconvertedtoahigherperformance1-bitdeepformat.Thecolorpagesshould
beconvertedtoanoutputformatthatsupportscolor,suchasJPEG.PleaseseeAppendix
B,
Supported
File
Formats
fordetailsonwhichformatssupportcolorinformationatdifferentbit-
depths.
Thischapterliststhefunctionsfromthefunctionsthatsaveimageswithlesscolor(smaller
size)tomorecolor(largestoutputdepth):
CIMG_
promote_
8
()
CIMG_
promote_
24
()
CIMG_
promote_
32
()
Thischapteralsoliststhefollowingfunctionsthatchangecolorspaces:
CIMG_
rgb_
to_
cmyk
()
CIMG_
cmyk_
to_
rgb
()
CIMG_
color_
combine
()
CIMG_
color_
separate
()
CIMGLOW_
get_
tiff_
tag
()
CIMG_promote_8()
Thisfunctionpermanentlyconvertsa1or4-bitimagetoan8-bitimageinthecurrentDIB.
Syntax
int SNBDAPI CIMG_promote_8(void);
228
Chapter30-ColorPromotionFunctions
Returns
Returnsthestandardlibraryimagehandle.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_promote_24()
Thisfunctionpermanentlyconvertsa1,4,or8-bitimagetoa24-bitimageinthecurrentDIB.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheMerge
Image
sample.
Syntax
int SNBDAPI CIMG_promote_24(void);
Returns
Returnsthestandardlibraryimagehandle.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H
-
Error
Codes
foralistoferrorcodes.
CIMG_promote_32()
Thisfunctionconvertsa1,4,8,or24-bitimagetoa32-bitalphachannelimage.32-bitalpha
imagescontain24bitsofred,green,andblueplanes(8-bitseach),andanextra(8-bits)alpha
channelplanefortransparency.
Syntax
int SNBDAPI CIMG_promote_32(void);
Returns
Returnsthestandardlibraryimagehandle.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
ChangingColor Spaces Functions
CIMG_rgb_to_cmyk()
Thisfunctionconverts24-bitRGBdatato32-bitCMYKdata.RasterMaster.NETproducts
supportfull32-bitCMYKdataasaninternal32-bitDIBformat.Theblackplaneiscreated.
Syntax
int SNBDAPI CIMG_rgb_to_cmyk(void);
229
Chapter30-ColorPromotionFunctions
Returns
ReturnsthestatusoftheconvertRGBtoCMYKoperation.Avalueof0indicatessuccess.Any
valuelessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
for
alistoferrorcodes.
CIMG_cmyk_to_rgb()
Thisfunctionconvertsthe32-bitCMYKdatato24-bitRGBdata.RasterMaster.NETsupports
full32-bitCMYKdataasaninternal32-bitDIBformat.
Note:
Thequalityoftheconversiontoblackandwhiteorgrayscalecanbeenhancedby
specifyingthealiasandaliasquality.
Syntax
int SNBDAPI CIMG_cmyk_to_rgb(void);
Returns
ReturnsthestatusoftheconvertCMYKtoRGBoperation.Avalueof0indicatessuccess.Any
valuelessthanzeroisaSnowbounderrorcode.SeeAppendix
H,
Snowbound
Error
Codes
for
alistoferrorcodes.
CIMG_color_combine()
Thisfunctioncombines3or4planesintoanew24or32-bitimage.
Ifthe4thargumentisavalidhandle,a32-bitCMYKimageiscreated.Ifthe4thargumentisnot
validor-1,a24-bitRGBimageiscreated.
Note:
Thequalityoftheconversiontoblackandwhiteorgrayscalecanbeenhancedby
specifyingthealiasandaliasquality.
Syntax
int SNBDAPI CIMG_color_combine(Snowbnd *dest, Snowbnd *blue_handle,
Snowbnd *green_handle, Snowbnd *red_handle, Snowbnd *k_handle, int
planes_num);
Remark
Table30.1:CIMG_color_combineFunctionVariables
230
Documents you may be interested
Documents you may be interested