Class PdfFileInfo

PdfFileInfo class

Represents a class for accessing meta information of PDF document.

public sealed class PdfFileInfo : SaveableFacade

Constructors

NameDescription
PdfFileInfo()Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class with default values.
PdfFileInfo(Document)Initializes new PdfFileInfo object on base of the document.
PdfFileInfo(Stream)Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.
PdfFileInfo(string)Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.
PdfFileInfo(Stream, string)Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.
PdfFileInfo(string, string)Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.

Properties

NameDescription
Author { get; set; }Gets or sets the Author information of PDF document.
CreationDate { get; set; }Gets or sets the CreationDate information of PDF document.
Creator { get; set; }Gets or sets the Creator information of PDF document.
Document { get; }Gets the document facade is working on.
HasCollection { get; }Returns true if the current input file is a ‘Portfolio’ file containing collection of PDF files in it.
HasEditPassword { get; }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.
HasOpenPassword { get; }Returns true if password is needed to open password protected pdf document.
Header { get; set; }Gets or sets the customized information of PDF document.
IsEncrypted { get; }Checkes whether the PDF document is encrypted.
IsPdfFile { get; }Checkes whether the source input is a valid PDF file.
Keywords { get; set; }Gets or sets the Keywords information of PDF document.
ModDate { get; set; }Gets or sets the ModDate date information of PDF document.
NumberOfPages { get; }Gets the number of document pages.
PasswordType { get; }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.
Producer { get; }Gets the Producer information of PDF document.
Subject { get; set; }Gets or sets the Subject information of PDF document.
Title { get; set; }Gets or sets the Title information of PDF document.
UseStrictValidation { get; set; }Uses strict validation rules via using IsPdfFile property.

Methods

NameDescription
override BindPdf(Document)Initializes the facade.
virtual BindPdf(Stream)Initializes the facade.
virtual BindPdf(string)Initializes the facade.
ClearInfo()Clears all meta information of PDF document.
override Close()Deinitializes the instance.
Dispose()Disposes the facade.
GetDocumentPrivilege()Gets the PDF document privilege settings.
GetMetaInfo(string)Gets customized information of PDF document with property name. If there is no property match the name it will return a blank string.
GetPageHeight(int)Gets the height of the specified page.
GetPageRotation(int)Gets the rotation of the specified page.
GetPageWidth(int)Gets the width of the specified page.
GetPageXOffset(int)Gets the horizontal offset of the specified page display area.
GetPageYOffset(int)Gets the vertical offset of the specified page display area.
GetPdfVersion()Gets the version info of PDF document.
override Save(Stream)Saves the PDF document to the specified file.
override Save(string)Saves the PDF document to the specified file.
SaveNewInfo(string)Save updated PDF document into specified file.
SaveNewInfoWithXmp(string)Changes the properties specified explicitly by setting file information, other properties remain.
SetMetaInfo(string, string)Sets customized information of PDF document.

See Also