open pdf in new tab c# mvc : How to delete text from a pdf reader software SDK project winforms wpf .net UWP RMDotNetProgrammersGuide5-part1835

Chapter4-PrintingImages
Chapter 4 - Printing Images
ThischapterdescribeshowtoprintimagesusingtheRasterMaster.NET.
PrintingOverview
All SnowboundproductsforWindowsprinttoanydevicewithavalidWindowsprinterdriver
installed.
Ifacolororgrayscaleimageisprintedtoa1-bitorbi-levelprintersuchasanHP-LASERJET
typeprinter,theimageisditheredorreducedto1-bitperpixelautomatically.
ThecapabilitiesoftheprinteraredetectedbytheSnowboundlibrariestodetermineiftheimage
mustbedithered.ThetechniqueemployedisStuckyerrordiffusion.Thistechniquesimulates
grayscalebytheplacementofdots.Thehighertheresolutionoftheprinter,thebettertheeffect.
Note:
Forcolororgrayscaleimages,theCIMG_print_bitmap_fast() commandisthe
quickest.
PrintingFunctions
Therearetwoprintingfunctionsavailable.
NormalPrinting
Normally,toprintanimage,usethefunctionbelow.
CIMG_print_bitmap(Graphics *g, int x, int y, int width, int height)
SeeCIMG_
print_
bitmap
()
formoreinformationonnormalprinting.
FastPrinting
Toprintanimageusingfastprinting,usethefunctionbelow.
CIMG_print_bitmap_fast(Graphics *g, int x, int y, int width, int
height)
FastprintingisusedwithPostscriptprinters.Itdoesanicejobofscalingandditheringimages.
Thewholeimageinitsoriginalsizeissenttotheprinterwithnopreprocessing.Alotof
processingisdonewithinthelibrarywhendoingnormalprinting.SeeCIMG_
print_
bitmap_
fast
()
formoreinformationonfastprinting.
Note:
Thismaynotworkwithallprinters.
51
How to delete text from a pdf reader - 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 document; delete text from pdf preview
How to delete text from a pdf reader - 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 file; how to erase text in pdf file
Chapter4-PrintingImages
CIMG_print_bitmap()
Thisfunctionisastandardimageprintroutine.
Thisfunctiondetectswhetherornottheprinterisincolormodeorblackandwhite.Ifablack
andwhiteprinterisdetectedwhenprintingacolororgrayscaleimage,theimageisreducedto
blackandwhiteusinganerrordiffusionalgorithm.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedinthePrint
sample.
Note:
Anegativevalueindicatesanerror.Seetheimgerr.hfileorAppendix
H,
Snowbound
Error
Codes.
Syntax
int SNBDAPI CIMG_print_bitmap(Graphics *g, int x, int y, int width,
int height);
Remark
Table4.1:CIMG_print_bitmapFunctionVariables
Variable
Description
g
Graphicsobject
x
StartingXcoordinatefordisplayofimage
y
StartingYcoordinatefordisplayofimage
width
Horizontalwidthtodisplayimage
height
Verticalheighttodisplayimage
Returns
Returnsthestatusoftheprintbitmapoperation.AnyvaluelessthanzeroisaSnowbounderror
code.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_print_bitmap_fast()
Thisfunctionisaspecialimageprintroutine.
ThisfunctionisdifferentfromCIMG_print_bitmap()becauseitsendsthecurrentWindows
DIBspecifiedbytheimageobjectdirectlytotheprinter.Theprinterisrequiredtodothescaling
andcolorreductionifnecessary.
Postscriptprinterswillbemuchfaster.
52
VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.
›› VB.NET PDF: Delete PDF Page. VB.NET PDF - How to Delete PDF Document Page in VB.NET. Visual Basic Sample Codes to Delete PDF Document Page in VB.NET Class.
how to erase text in pdf; how to delete text from a pdf
C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
Page: Delete Existing PDF Pages. |. Home ›› XDoc.PDF ›› C# PDF: Delete PDF Page. C#.NET PDF Library - Delete PDF Document Page in C#.NET.
delete text pdf files; delete text from pdf file
Chapter4-PrintingImages
Notes:
Thiscallmayfailonsomeprinters.
Ifyouhaveanyproblemswiththisfunction,usethestandardCIMG_print_bitmap
().SeeCIMG_
print_
bitmap
()
formoreinformation.
TheSNOWBND_ERRORvalueindicatesaproblem.SeetheSNOWBND_ERRORor
Appendix
H,
Snowbound
Error
Codes
formoreinformation.
Syntax
int SNBDAPI CIMG_print_bitmap_fast(Graphics *g, int x, int y, int
width, int height);
Remark
Table4.2:CIMG_print_bitmap_fastFunctionVariables
Variable
Description
g
Graphicsobject
x
StartingXcoordinatefordisplayofimage
y
StartingYcoordinatefordisplayofimage
width
Horizontalwidthtodisplayimage
height
Verticalheighttodisplayimage
Returns
Returnsthestatusoftheprintbitmapfastoperation.AnyvaluelessthanzeroisaSnowbound
errorcode.SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
PrintingLarge Documents
Printinglargedocuments,suchasdocumentsapproachingorexceeding100pages,or
documentssettoaresolutionof300DPIorabove,requiresadditionalmemoryresources.
Theseadditionalresourcerequirementscanaffecttheperformanceofbothserversandclients.
Servers
DependingonthecurrentJavaVirtualMachinememoryconfigurationfortheImagingserver,
theneedforadditionalresourcesmaycauseanoutofmemoryerror.IncreasingtheJavaVirtual
MachinemaximumheapsizetotheImagingserverduringstartupcanhelpavoidmemory
errors.Specifytheminimumandmaximumheapsizebypassingtheparameter-Xmsand-Xmx
totheImagingserverduringstartup,wheretheamountofmemoryisinmegabytesor
gigabytesyouwanttoallocatetotheImagingserver.
53
VB.NET PDF Text Extract Library: extract text content from PDF
PDF ›› VB.NET PDF: Extract PDF Text. VB.NET PDF - Extract Text from PDF Using VB. How to Extract Text from PDF with VB.NET Sample Codes in .NET Application.
delete text pdf preview; how to delete text from pdf
C# PDF Text Extract Library: extract text content from PDF file in
XDoc.PDF ›› C# PDF: Extract PDF Text. C# PDF - Extract Text from PDF in C#.NET. Feel Free to Extract Text from PDF Page, Page Region or the Whole PDF File.
pull text out of pdf; how to delete text in a pdf file
Chapter4-PrintingImages
Clients
Eachofthedifferentbrowsershandlestheincreasedresourcedemandsuniquely.Insome
cases,whenprintingdocumentsthatrequireadditionalresources,thedocumentmayprintwith
blankpages,failtorespond,orrequirethebrowserorcomputertoberestarted.
Solution
Aworkaroundforthisproblemmaybetodownloadthedocumentlocallyandthenprintit.Ifthe
documentdoesnothaveanyannotationsorthedocumentistobeprintedwithoutannotations,
theoriginaldocumentcanbedownloadedandprinted.However,ifadocumentistobeprinted
withannotations,aTIFFversionofthedocumentcanbedownloadedandprinted.
54
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.
remove text from pdf preview; online pdf editor to delete text
C# PDF Convert to Text SDK: Convert PDF to txt files in C#.net
C#.NET PDF SDK - Convert PDF to Text in C#.NET. Integrate following RasterEdge C#.NET text to PDF converter SDK dlls into your C#.NET project assemblies;
remove text from pdf; delete text from pdf with acrobat
Chapter5-AspectRatioCorrectionFunction
Chapter 5 - Aspect Ratio Correction
Function
ThischapterdescribesthefunctionusedforaspectratiocorrectionwithintheRasterMaster
.NET.
Aspect RatioCorrectionFunction
Table5.1:AspectRatioFunctionDescription
Function
Description
CIMG_display_bitmap_aspect()
Handlescorrectionofaspectratiobutpreservesthe
widthandheightofimageswhenitswindowis
resized.SeeCIMG_
display_
bitmap_
aspect
()
formore
information.
55
VB.NET PDF Convert to Text SDK: Convert PDF to txt files in vb.net
VB.NET PDF - Convert PDF to Text Using VB. Integrate following RasterEdge text to PDF converter SDK dlls into your VB.NET project assemblies;
delete text in pdf file online; how to delete text in pdf acrobat
C# PDF Text Search Library: search text inside PDF file in C#.net
Text: Search Text in PDF. C# Guide about How to Search Text in PDF Document and Obtain Text Content and Location Information with .NET PDF Control.
pdf text watermark remover; erase pdf text
Chapter6-DisplayQuality
Chapter 6 - Display Quality
ThischapterdescribeshowtoachievethebestdisplayqualityforanimageusingRasterMaster
.NET.
Achievingthe Best Display Quality
Achievingthebestdisplayqualityofanyimagedependsonthetypeofimagebeingviewed.
24-BitImagesDisplayedona256ColorAdapter
Toachievethebestdisplayqualityfor24-bitimagesdisplayedona256coloradapter,the
defaultbehavioristoconverttheimageatdisplaytimeto256colorsusingasimplebayer
matrixdither.Youcanchangethistoabetterqualitydiffusionditheringbyusingthefollowing
call:
CIMGLOW_set_dithermode();
Thiswill,however,takealittlelongertodisplaytheimage.
Use256forthenumberofcolorstooptimizeto.Thiscallpermanentlychangestheimagetoan
8-bitimagesoyouneedonlycallthefunctiononce.Theimagecontainsanoptimizedpalette;
allowingonequalityimagetobedisplayedatatime.
SeeCIMGLOW_
set_
dithermode
()
andCIMG_
remove_
red_
eye
()
formoreinformationon
displaying24-bitimages.
Bi-Leveland1-BitPerPixelImages
Toachievethebestdisplayqualityforbi-levelor1-bitperpixelimages,settheCIMGLOW_set_
alias()functionto:
l
2forscaletogray
l
1forpreserveblack
Largeimagesat200DPIorlargermustbescaledtofitonastandardresolutionmonitor.The
defaultscalingskipspixelssosmalllinesordetailsmaybeignored.
Aliasing
Whenthealiasingfunctionisturnedon,thescalingalgorithmlooksatneighboringpixelsto
preservedetailsthatmightnormallybelost.
ScaletoGray
Thescaletograyfunctionconvertstheneighboringpixelstoa8-bitgrayscalevalue.Best
resultsareobtainedontexttypedocuments.
PreserveBlack
Thepreserveblackfunctioncreatesa1-bitpixelbasedonneighboringpixels.Thishasbeen
56
Chapter6-DisplayQuality
foundtoworkwellonlargeengineeringtypedrawings.Itissuggestedtotrybothtoseewhich
yieldsthebestresultsonthetypeofimagesyouareusing.
57
Chapter7-ImageCompression
Chapter 7 - Image Compression
ThischapterdescribeshowtoselectthebestcompressionforanimageusingRasterMaster
.NET.
PreferredFormats
Mostofthecompressionalgorithmsonlycompressaspecifictypeofimagedata.Compression
techniquesfor24-bitcolorimagesusuallydonotworkwellon1-bitorbi-levelimages.Similarly,
compressionfor1-bitimagesdonotcompresswellfor24-bitcolorimages.
24-BitColorImages
For24-bitcolorimages,usetheJPEGformatinRasterMaster.NETforthebestconversion
results.
8-BitGrayScaleImages
For8-bitgrayscaleimages,usetheJPEGformatinRasterMaster.NETforthebest
conversionresults.
1-bitBi-LevelImages
For1-bitbi-levelimages,usetheTIFFG4inRasterMaster.NETforthebestconversion
results.TheJBIGformatworksabouttwentypercentbetterthantheTIFFG4format,butitcan
bemuchslower.
58
Chapter8-FileFormatConversion
Chapter 8 - File Format Conversion
Thischapterdescribeshowtoconvertanimagetoadifferentfileformat.
ConvertingFile Formats
RasterMaster.NETsupportsover100fileformats.ManyformatssuchasTIFFareverybroad
intheinternalsupportofcompressionandbitdepths.Notallformatscansupportallbitdepths.
AllRasterMasterproductsimportandconvertfileformatstoSnowbound’sinternalformatsat
decompresstime.TheformatisasimpleuncompressedDIBformatstoredinmemory.This
formatisdecompressedorimportedandcanbesavedouttoanysupportedformat.See
Appendix
B,
Supported
File
Formats
foracompletelistofsupportedfileformats.
Ingeneral,RasterMaster.NEThandlesdetailslikefileformat,bit-depth,bitordering,and
compressionformatsautomatically.YouwillneedonlyafewRasterMaster.NETcallsto
handleawidevarietyofinputandoutputfiletypes.
AutomaticallyDetectingFileFormats
Inmostcases,youdonotneedtoknowthefileformatyouwishtoconvertsinceRasterMaster
.NETproductsautomaticallydetectthefileformatregardlessofthefileextension.File
extensionsarenotmandatory.
RasterMaster.NETsupportsautomaticpromotionofimagestodestinationfiles.Forexample,
JPEGimagescanonlybewrittenoutat8and24-bitsperpixel.Inordertosavea1-bitTIFF
imageasJPEG,thedevelopermustpromotetheTIFFto8or24-bitsperpixel.
Inourotherlibraries,thisisaccomplishedbycallingoneofthepromotefunctions.In
RasterMaster.NET,however,thelibraryautomaticallydeterminesthebitsperpixelforthe
destinationformatandpromotesaccordingly.
ThedatatypeCIMG_IMAGE_TYPEin.NETlibraryincludesallcurrentimagetypesdefinedin
thelibrary.
Whenweuse.NETlibrary,insteadofgivingtheformatnumbersuchas59,useCIMG_
IMAGE_TYPE.pdf.
Forexample:
status = simage.CIMGLOW_set_auto_detect((int)CIMG_IMAGE_
TYPE.ascii);
YoucanreadinalmostanytypeofimageordocumentusingtheCIMGLOW_
set_
document_
input
(int,
int,
int)
method.RasterMaster.NETexaminesthecontentofthedocumentandnot
thefiletypeextensiontodeterminethefiletypeIfafiledoesnothaveafileextensionorhasthe
wrongfilenameextension,RasterMaster.NETwillstillidentifytheformatcorrectly.
59
Chapter8-FileFormatConversion
InputDocumentQuality:Resolution/DPI
Beforeyoureadadocumentin,youhavetheoptionofadjustingtheinputquality.Readinginat
ahighresolutionDPI(dotsperinch)willresultinahigherqualitydocument.Thiswillgiveyou
theoptionofproducinghigherqualityoutput.Howeverthereisatrade-off.Higherquality
documentstakelongertoprocessandtakeupmorespaceinmemoryandwhenstored.You
canadjustthequalityusingoneoftheCIMGLOW_
set_
document_
input
(int,
int,
int)
methods.
InputDocumentQuality:Color/bit-depth/PixelDepth
RasterMaster.NETwillautomaticallyreadinblackandwhite,grayscale,andcolordocuments
attheappropriatebit-depth(1,8and24respectively).Thebit-depthsRasterMaster.NETuses
automaticallyvarybyinputformat.Formoreinformationonfileformats,pleaseseeAppendix
B,
Supported
File
Format
.
YoucantellRasterMaster.NETtoreadincolordocumentsasblackandwhitetoincrease
performance.YoudothisbycallingCIMGLOW_
set_
document_
input
(int,
int,
int)
withabit-
depthof1.YoucantellRasterMaster.NETtoreadinblackandwhitedocumentsascolor.
However,thatisnotrecommendedbecauseitwillhurtperformancefornogaininquality.
MakingSureInputisCompatiblewithOutput
Mostofthetime,theinputthatyoureadinwillconvertsuccessfullytotheoutputformatyou
selectineitherCIMG_
save_
bitmap
()
orCIMG_
save_
document
()
.
GettingaPixel_Depth_UnsupportedError
APixel_Depth_Unsupportederrorindicatesthatthebit-depthsdonotmatch.Youcan
lookatthefileformatsyouareusinginAppendix
B,
Supported
File
Format
tocomparethebit-
depthssupportedbyyourinputandoutputfileformats.Thegoalistofindabit-depththatthefile
formatshaveincommon.
Ifyoudonotknowthefileformatoftheinputfile,youcanusetheCIMGLOW_
get_
filetype
()
to
determineit.Youcanfindthebitdepth/bitsperpixelofyourimagebycallingCIMG_
bitmap_
info
()
andlookingatthevalueinbiBitCount,
Insomecases,youwillfindyoudonothaveenoughbits-per-pixeltogotothedesiredoutput
format.Forexample,ifyouaregoingfromablackandwhiteorgrayscaletoacolordocument
thatiscolorpromotionbecausethebit-depthisgoingfromlowtohigh.PleaseseeChapter
30,
Color
Promotion
Functions
forinformationonRasterMaster.NETfunctionsthatyoucanuseto
gettothebitsperpixeldepthyouneed.
Ifyouhavetoomanybitsperpixelforthedesiredoutputformat,thenyouaregoingfromcoloror
grayscaletowardsblackandwhite.Goingfromahigherbitsperpixeltoaloweroneiscolor
reduction.PleaseseetheChapter
31,
Color
Reduction
Functions
forinformationon
RasterMaster.NETfunctionsthatyoucanusetoadjustyourimagetoalowerpixeldepth.
AdjustingLowOutputQuality
Theoutputqualityisaffectedbyseveralfactorsdescribedinthesectionsbelow:
60
Documents you may be interested
Documents you may be interested