PdfFileInfo Class
Represents a class for accessing meta information of PDF document.
Inheritance Hierarchy

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.10
Syntax
public sealed class PdfFileInfo : SaveableFacade

The PdfFileInfo type exposes the following members.

Constructors
  NameDescription
Public methodPdfFileInfo
Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class with default values.
Public methodPdfFileInfo(Stream)
Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.
Public methodPdfFileInfo(String)
Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.
Public methodPdfFileInfo(Document)
Initializes new PdfFileInfo object on base of the document.
Public methodPdfFileInfo(Stream, String)
Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.
Public methodPdfFileInfo(String, String)
Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.
Properties
  NameDescription
Public propertyAuthor
Gets or sets the Author information of PDF document.
Public propertyCreationDate
Gets or sets the CreationDate information of PDF document.
Public propertyCreator
Gets or sets the Creator information of PDF document.
Public propertyDocument
Gets the document facade is working on.
(Inherited from Facade.)
Public propertyHasCollection
Returns true if the current input file is a 'Portfolio' file containing collection of PDF files in it.
Public propertyHasEditPassword
Returns true if password is needed to modify permissions or document security property. Pay attention that this property can be read only if valid password was provided in PdfFileInfo constructor. In case PasswordType is Inaccessible (means that invalid password was provided) reading this property will fail with InvalidPasswordException.
Public propertyHasOpenPassword
Returns true if password is needed to open password protected pdf document.
Public propertyHeader
Gets or sets the customized information of PDF document.
Public propertyInputFile Obsolete.
Gets or sets the input file.
Public propertyInputStream Obsolete.
Gets or sets the input stream.
Public propertyIsEncrypted
Checkes whether the PDF document is encrypted.
Public propertyIsPdfFile
Checkes whether the source input is a valid PDF file.
Public propertyKeywords
Gets or sets the Keywords information of PDF document.
Public propertyModDate
Gets or sets the ModDate date information of PDF document.
Public propertyNumberOfPages
Gets the number of document pages.
Public propertyPasswordType
Returns the type of password which was passed for creating PdfFileInfo instance. See possible values in PasswordType. Pay attention that pdf document can be opened using both user (or open) password and owner (or permissions, edit) password.
Public propertyProducer
Gets the Producer information of PDF document.
Public propertySubject
Gets or sets the Subject information of PDF document.
Public propertyTitle
Gets or sets the Title information of PDF document.
Methods
  NameDescription
Public methodBindPdf(Stream)
Initializes the facade.
(Inherited from Facade.)
Public methodBindPdf(String)
Initializes the facade.
(Inherited from Facade.)
Public methodBindPdf(Document)
Initializes the facade.
(Overrides FacadeBindPdf(Document).)
Public methodCode exampleClearInfo
Clears all meta information of PDF document.
Public methodClose
Deinitializes the instance.
(Overrides FacadeClose.)
Public methodDispose
Disposes the facade.
(Inherited from Facade.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetDocumentPrivilege
Gets the PDF document privilege settings.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetMetaInfo
Gets customized information of PDF document with property name. If there is no property match the name it will return a blank string.
Public methodGetPageHeight
Gets the height of the specified page.
Public methodGetPageRotation
Gets the rotation of the specified page.
Public methodGetPageWidth
Gets the width of the specified page.
Public methodGetPageXOffset
Gets the horizontal offset of the specified page display area.
Public methodGetPageYOffset
Gets the vertical offset of the specified page display area.
Public methodGetPdfVersion
Gets the version info of PDF document.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodSave(Stream)
Saves the PDF document to the specified file.
(Overrides SaveableFacadeSave(Stream).)
Public methodSave(String)
Saves the PDF document to the specified file.
(Overrides SaveableFacadeSave(String).)
Public methodSaveNewInfo(Stream) Obsolete.
Save updated PDF document into specified stream.
Public methodSaveNewInfo(String)
Save updated PDF document into specified file.
Public methodSaveNewInfoWithXmp
Changes the properties specified explicitly by setting file information, other properties remain.
Public methodSetMetaInfo
Sets customized information of PDF document.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also