Link Search Menu Expand Document

Remover2 Class

Utility class to remove text and image objects from PDF document. Improved version of Remover class.
Inheritance Hierarchy
SystemObject
Bytescout.PDFExtractorRemover2

Namespace:Bytescout.PDFExtractor
Assembly: Bytescout.PDFExtractor (in Bytescout.PDFExtractor.dll) Version: 13.4.0.4760-master
Syntax
public class Remover2 : IBaseExtractor, IDisposable, 
	IRemover2

The Remover2 type exposes the following members.

Constructors
NameDescription
Public methodRemover2
Initializes a new instance of the Remover2 class.
Public methodRemover2(String, String)
Initializes a new instance of the Remover2 class.
Top
Properties
NameDescription
Public propertyCheckPermissions
Defines whether to respect permissions set by document owner. If True, extractor throws exception when the extraction is prohibited. IMPORTANT: THIS OPTION HAVE TO BE ENABLED AND SET TO "TRUE" TO RESPECT OWNERS OF PDF DOCUMENTS. IF YOU SET IT TO FALSE TO IGNORE PERMISSIONS WHICH ARE SET IN PDF DOCUMENT THEN YOU ARE SOLELY LIABLE FOR THIS ACTION AND ANY COPYRIGHT OR OTHER VIOLATIONS AT YOUR OWN RISK. BYTESCOUT IS NOT LIABLE FOR ANY DAMAGES, LOSSES, COPYRIGHT INFRINGEMENTS OR ANY OTHER CONSEQUENCES CAUSED BY IGNORING PERMISSIONS OF PDF DOCUMENT. BY CHANGING THIS OPTION YOU ARE CONFIRMING YOU ARE UNDERSTANDING ALL WRITTEN ABOVE AND DOING IT AT YOUR OWN RISK.
Public propertyContentType
Returns content type of PDF document: normal document, portfolio or XFA form. To extract files from PDF portfolio use AttachmentExtractor class. To extract XFA form content use XFAFormExtractor class.
Public propertyImageFormat
Image format to convert PDF pages to. Used in MakePDFUnsearchable mode.
Public propertyIsDocumentLoaded
Get the document loaded state.
Public propertyJPEGQuality
Gets or sets the quality for JPEG image format. Used in MakePDFUnsearchable mode.
Public propertyLicenseInfo
Gets license information.
Public propertyMakePDFUnsearchable
Get or sets whether to make the output document unsearchable. If true, all PDF pages will be replaced with rendered images.
Public propertyMaskColor
Gets or sets the color of masking rectangle applied by MaskRemovedText property.
Public propertyMaskRemovedText
Get or sets whether to mask removed text fragments with solid color rectangles to make the output document look like "censored". Use MaskColor to change the color of masking rectangle.
Public propertyPassword
PDF document password.
Public propertyRegistrationKey
Registration key.
Public propertyRegistrationName
Registration name.
Public propertyRemoveTextWhileMasking
Get or sets whether to remove text or not while applying masking. This can be helpful if we only needed to apply Masking and not removing text.
Public propertyRenderingResolution
Gets or sets PDF rendering resolution for MakePDFUnsearchable mode. Larger resolution - larger output document, but better visual quality.
Public propertySearchInShadowLikeText
Sets whether to search in shadow-like text (when the same text is drawn twice with small offset).
Public propertyVersion
Gets the component version number.
Top
Methods
NameDescription
Public methodAddImagesToRemove(Int32, RectangleF)
Adds rectangle to remove images from.
Public methodAddImagesToRemove(Int32, Single, Single, Single, Single)
Public methodAddImageToRemove(Int32, PointF)
Adds point to remove image from.
Public methodAddImageToRemove(Int32, Single, Single)
Adds point to remove image from.
Public methodAddTextToRemove(ISearchResult)
Removes the text by the search result got from Find(Int32, String, Boolean) methods.
Public methodAddTextToRemove(IEnumerableISearchResult)
Adds text search results received from FindAll(Int32, String, Boolean) method for removal.
Public methodAddTextToRemove(Int32, IEnumerablePointF)
Adds text objects located in the specified points for removal.
Public methodAddTextToRemove(Int32, IEnumerableRectangleF)
Adds all text objects located in or intersecting the specified rectangles for removal.
Public methodAddTextToRemove(Int32, PointF)
Adds text object located in the specified point for removal.
Public methodAddTextToRemove(Int32, RectangleF)
Adds all text objects located in or intersecting the specified rectangle for removal.
Public methodAddTextToRemove(Int32, IEnumerableString, Boolean)
Adds all occurrence of the specified text for removal.
Public methodAddTextToRemove(Int32, Single, Single)
Adds text object located in the specified point for removal.
Public methodAddTextToRemove(Int32, String, Boolean)
Adds all occurrence of the specified text for removal.
Public methodAddTextToRemove(Int32, Single, Single, Single, Single)
Adds all text objects located in or intersecting the specified rectangle for removal.
Public methodAddVectorsToRemove(Int32, RectangleF)
Adds rectangle to remove vector objects from.
Public methodAddVectorsToRemove(Int32, Single, Single, Single, Single)
Adds rectangle to remove vector objects from.
Public methodDispose
Releases the unmanaged resources used by the instance and optionally releases the managed resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectRectangleFromPoint
Returns bounding rectangle of text object located at the specified point.
Public methodGetPageCount
Returns document page count.
Public methodGetPageRect_Height
Gets the specified page height.
Public methodGetPageRect_Left
Gets the specified page left coordinate.
Public methodGetPageRect_Top
Gets the specified page top coordinate.
Public methodGetPageRect_Width
Gets the specified page width.
Public methodGetPageRectangle(Int32)
Gets the page rectangle in PDF Points (1 Point = 1/72 in.).
Public methodGetPageRectangle(Int32, Boolean)
Gets the page rectangle in PDF Points (1 Point = 1/72 in.).
Public methodGetPageRotationAngle
Returns the rotation angle of specified page.
Public methodGetType (Inherited from Object.)
Public methodIsEncrypted
Gets the document encrypted state.
Public methodLoadDocumentFromFile
Loads PDF document from specified file.
Public methodLoadDocumentFromStream
Loads PDF document from provided stream.
Public methodLoadDocumentFromVariant
Loads PDF document from byte array presented as array of Variant or Byte objects ('Variant()' or 'Byte()'). This is COM/ActiveX-compatible version of the method LoadDocumentFromStream(Stream) for in-memory processing of PDF files.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPerformRemoval(Stream)
Remove the added text fragments and save the edited document to the specified stream.
Public methodPerformRemoval(String)
Remove the added text fragments and save the edited document to the specified file.
Public methodPerformRemovalToVariant
Remove the added text fragments and returns the result PDF document as array of bytes. This is COM/ActiveX-compatible version of the method PerformRemoval(Stream).
Public methodReset
Resets the instance, disposes internal resources and releases the file. Use this method before loading another PDF file.
Public methodToString (Inherited from Object.)
Top
Events
NameDescription
Public eventParsingError
Raised on PDF document parsing errors. This usually indicates a damaged document.
Public eventPasswordRequired
Occurs when the password required to decrypt the document.
Top
See Also

Reference