Link Search Menu Expand Document

IDocumentRotator Interface

Represents PDF document rotator.

Namespace:Bytescout.PDFExtractor
Assembly: Bytescout.PDFExtractor (in Bytescout.PDFExtractor.dll) Version: 13.4.0.4760-master
Syntax
public interface IDocumentRotator

The IDocumentRotator type exposes the following members.

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 methodGetPageCount(Stream)
Returns the number of pages of the document.
Public methodGetPageCount(String)
Returns the number of pages of the document.
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.
Top
Events
NameDescription
Public eventPasswordRequired
Occurs when the password required to decrypt the document.
Top
See Also

Reference