Link Search Menu Expand Document

DocumentRotator Class

Represents PDF document rotator.
Inheritance Hierarchy
SystemObject
Bytescout.PDFExtractorDocumentRotator

Namespace:Bytescout.PDFExtractor
Assembly: Bytescout.PDFExtractor (in Bytescout.PDFExtractor.dll) Version: 13.4.0.4760-master
Syntax
public class DocumentRotator : IDocumentRotator, 
	IDisposable

The DocumentRotator type exposes the following members.

Constructors
NameDescription
Public methodDocumentRotator
Initializes a new instance of the DocumentRotator class.
Public methodDocumentRotator(String, String)
Initializes a new instance of the DocumentRotator class.
Top
Properties
NameDescription
Public propertyCheckPermissions
Defines whether respect permissions set by document owner. If true, extractor throws exception when the extraction is prohibited. Default is true.
Public propertyLicenseInfo
Gets license information.
Public propertyOCRLanguage
Language for Optical Character Recognition (OCR). The valid values are:
  • "eng" - English (default)
  • "deu" - German
  • "fra" - French
  • "spa" - Spanish

Download more languages at https://github.com/bytescout/ocrdata.

Public propertyOCRLanguageDataFolder
Folder containing OCR language data files. In addition to the language selected by OCRLanguage, the folder must contain the "osd.traineddata" file required for rotation detection.
Public propertyRegistrationKey
Registration key.
Public propertyRegistrationName
Registration name.
Public propertyVersion
Gets the component version number.
Top
Methods
NameDescription
Public methodAutoRotate(Stream, Stream)
Rotates specified PDF document automatically.
Public methodAutoRotate(String, String)
Rotates specified PDF document automatically. Automatic rotation works via optical recognition and requires from you to set the
Public methodAutoRotateToVariant
Rotates specified PDF document automatically and returns the result PDF document as array of bytes. This is COM/ActiveX-compatible version of the method AutoRotate(Stream, Stream) for in-memory processing of PDF files.
Public methodDispose
Releases all resources used by the DocumentRotator
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetPageCount(Stream)
Returns the number of pages of the document.
Public methodGetPageCount(String)
Returns the number of pages of the document.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRotate(Stream, Stream, RotationAngle)
Rotates specified PDF document to specified angle.
Public methodRotate(Stream, Stream, IListDocumentRotatorPageAndAngle)
Rotates specified PDF document to specified angle.
Public methodRotate(String, String, RotationAngle)
Rotates specified PDF document to specified angle.
Public methodRotate(String, String, IListDocumentRotatorPageAndAngle)
Rotates specified PDF document to specified angle.
Public methodRotateToVariant
Rotates specified PDF document to specified angle and returns the result PDF document as array of bytes. This is COM/ActiveX-compatible version of the method Rotate(Stream, Stream, RotationAngle) for in-memory processing of PDF files.
Public methodToString (Inherited from Object.)
Top
Events
NameDescription
Public eventPasswordRequired
Occurs when the password required to decrypt the document.
Top
See Also

Reference