Aspose::Pdf::Facades::PdfFileInfo Class Referencefinal

Represents a class for accessing meta information of PDF document. More...

#include "PdfFileInfo.h"

Inherits Aspose::Pdf::Facades::SaveableFacade.

Public Member Functions

ASPOSE_PDF_SHARED_API System::String get_Author ()
 Gets the Author information of PDF document. More...
 
ASPOSE_PDF_SHARED_API void set_Author (System::String value)
 Sets the Author information of PDF document. More...
 
ASPOSE_PDF_SHARED_API bool get_IsEncrypted ()
 Checkes whether the PDF document is encrypted. More...
 
ASPOSE_PDF_SHARED_API bool get_IsPdfFile ()
 Checkes whether the source input is a valid PDF file. More...
 
ASPOSE_PDF_SHARED_API bool get_UseStrictValidation () const
 Uses strict validation rules via using IsPdfFile property. More...
 
ASPOSE_PDF_SHARED_API void set_UseStrictValidation (bool value)
 Uses strict validation rules via using IsPdfFile property. More...
 
ASPOSE_PDF_SHARED_API System::String get_CreationDate ()
 Gets the CreationDate information of PDF document. More...
 
ASPOSE_PDF_SHARED_API void set_CreationDate (System::String value)
 Sets the CreationDate information of PDF document. More...
 
ASPOSE_PDF_SHARED_API System::String get_Creator ()
 Gets the Creator information of PDF document. More...
 
ASPOSE_PDF_SHARED_API void set_Creator (System::String value)
 Sets the Creator information of PDF document. More...
 
ASPOSE_PDF_SHARED_API bool get_HasCollection ()
 Returns true if the current input file is a 'Portfolio' file containing collection of PDF files in it. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::String > > get_Header () const
 Gets the customized information of PDF document. More...
 
ASPOSE_PDF_SHARED_API void set_Header (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::String >> value)
 Sets the customized information of PDF document. More...
 
ASPOSE_PDF_SHARED_API System::String get_InputFile () const
 Gets the input file. More...
 
ASPOSE_PDF_SHARED_API void set_InputFile (System::String value)
 Sets the input file. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::IO::Streamget_InputStream () const
 Gets the input stream. More...
 
ASPOSE_PDF_SHARED_API void set_InputStream (System::SharedPtr< System::IO::Stream > value)
 Sets the input stream. More...
 
ASPOSE_PDF_SHARED_API System::String get_Keywords ()
 Gets the Keywords information of PDF document. More...
 
ASPOSE_PDF_SHARED_API void set_Keywords (System::String value)
 Sets the Keywords information of PDF document. More...
 
ASPOSE_PDF_SHARED_API System::String get_ModDate ()
 Gets the ModDate date information of PDF document. More...
 
ASPOSE_PDF_SHARED_API void set_ModDate (System::String value)
 Sets the ModDate date information of PDF document. More...
 
ASPOSE_PDF_SHARED_API int32_t get_NumberOfPages ()
 Gets the number of document pages. More...
 
ASPOSE_PDF_SHARED_API System::String get_Producer ()
 Gets the Producer information of PDF document. More...
 
ASPOSE_PDF_SHARED_API System::String get_Subject ()
 Gets the Subject information of PDF document. More...
 
ASPOSE_PDF_SHARED_API void set_Subject (System::String value)
 Sets the Subject information of PDF document. More...
 
ASPOSE_PDF_SHARED_API System::String get_Title ()
 Gets the Title information of PDF document. More...
 
ASPOSE_PDF_SHARED_API void set_Title (System::String value)
 Sets the Title information of PDF document. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::PasswordType get_PasswordType ()
 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. More...
 
ASPOSE_PDF_SHARED_API bool get_HasOpenPassword ()
 Returns true if password is needed to open password protected pdf document. More...
 
ASPOSE_PDF_SHARED_API bool get_HasEditPassword ()
 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. More...
 
ASPOSE_PDF_SHARED_API void BindPdf (System::SharedPtr< Aspose::Pdf::Document > srcDoc) override
 Initializes the facade. More...
 
ASPOSE_PDF_SHARED_API PdfFileInfo ()
 Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class with default values. More...
 
ASPOSE_PDF_SHARED_API PdfFileInfo (System::SharedPtr< System::IO::Stream > inputStream)
 Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class. More...
 
ASPOSE_PDF_SHARED_API PdfFileInfo (System::SharedPtr< System::IO::Stream > inputStream, System::String password)
 Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class. More...
 
ASPOSE_PDF_SHARED_API PdfFileInfo (System::String inputFile)
 Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class. More...
 
ASPOSE_PDF_SHARED_API PdfFileInfo (System::String inputFile, System::String password)
 Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class. More...
 
ASPOSE_PDF_SHARED_API void ClearInfo ()
 Clears all meta information of PDF document. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< DocumentPrivilegeGetDocumentPrivilege ()
 Gets the PDF document privilege settings. More...
 
ASPOSE_PDF_SHARED_API System::String GetMetaInfo (System::String name)
 Gets customized information of PDF document with property name. If there is no property match the name it will return a blank string. More...
 
ASPOSE_PDF_SHARED_API float GetPageHeight (int32_t pageNum)
 Gets the height of the specified page. More...
 
ASPOSE_PDF_SHARED_API int32_t GetPageRotation (int32_t pageNum)
 Gets the rotation of the specified page. More...
 
ASPOSE_PDF_SHARED_API float GetPageWidth (int32_t pageNum)
 Gets the width of the specified page. More...
 
ASPOSE_PDF_SHARED_API float GetPageXOffset (int32_t pageNum)
 Gets the horizontal offset of the specified page display area. More...
 
ASPOSE_PDF_SHARED_API float GetPageYOffset (int32_t pageNum)
 Gets the vertical offset of the specified page display area. More...
 
ASPOSE_PDF_SHARED_API System::String GetPdfVersion ()
 Gets the version info of PDF document. More...
 
ASPOSE_PDF_SHARED_API bool SaveNewInfo (System::SharedPtr< System::IO::Stream > outputStream)
 Save updated PDF document into specified stream. More...
 
ASPOSE_PDF_SHARED_API bool SaveNewInfo (System::String outputFile)
 Save updated PDF document into specified file. More...
 
ASPOSE_PDF_SHARED_API void Save (System::SharedPtr< System::IO::Stream > destStream) override
 Saves the PDF document to the specified file. More...
 
ASPOSE_PDF_SHARED_API void Save (System::String destFile) override
 Saves the PDF document to the specified file. More...
 
ASPOSE_PDF_SHARED_API void SetMetaInfo (System::String name, System::String value)
 Sets customized information of PDF document. More...
 
ASPOSE_PDF_SHARED_API bool SaveNewInfoWithXmp (System::String outputFileName)
 Changes the properties specified explicitly by setting file information, other properties remain. More...
 
ASPOSE_PDF_SHARED_API PdfFileInfo (System::SharedPtr< Aspose::Pdf::Document > document)
 Initializes new PdfFileInfo object on base of the document . More...
 
ASPOSE_PDF_SHARED_API void Close () override
 Deinitializes the instance. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::Facade
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Documentget_Document () const
 Gets the document facade is working on. More...
 
ASPOSE_PDF_SHARED_API void BindPdf (System::String srcFile) override
 Initializes the facade. More...
 
ASPOSE_PDF_SHARED_API void BindPdf (System::SharedPtr< System::IO::Stream > srcStream) override
 Initializes the facade. More...
 
ASPOSE_PDF_SHARED_API void BindPdf (System::SharedPtr< Aspose::Pdf::Document > srcDoc) override
 Initializes the facade. More...
 
ASPOSE_PDF_SHARED_API void Dispose () override
 Disposes the facade. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::IFacade
virtual void BindPdf (System::SharedPtr< Document > srcDoc)=0
 Binds PDF document for editing. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Protected Member Functions

ASPOSE_PDF_SHARED_API void BindPdf (System::SharedPtr< System::IO::Stream > srcStream, System::String password) override
 Initializes the facade. More...
 
ASPOSE_PDF_SHARED_API void BindPdf (System::String srcFile, System::String password) override
 Initializes the facade. More...
 
ASPOSE_PDF_SHARED_API void AssertDocument () const override
 Asserts if the facade is initialized. More...
 
- Protected Member Functions inherited from Aspose::Pdf::Facades::SaveableFacade
ASPOSE_PDF_SHARED_API SaveableFacade ()
 The constructor. More...
 
ASPOSE_PDF_SHARED_API SaveableFacade (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 The constructor. More...
 
- Protected Member Functions inherited from Aspose::Pdf::Facades::Facade
bool get__IsObjectLicensed ()
 Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise. More...
 
ASPOSE_PDF_SHARED_API Facade ()
 The constructor. More...
 
ASPOSE_PDF_SHARED_API Facade (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 The constructor. More...
 
virtual ASPOSE_PDF_SHARED_API ~Facade ()
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Represents a class for accessing meta information of PDF document.

Constructor & Destructor Documentation

◆ PdfFileInfo() [1/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfFileInfo::PdfFileInfo ( )

Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class with default values.

◆ PdfFileInfo() [2/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfFileInfo::PdfFileInfo ( System::SharedPtr< System::IO::Stream inputStream)

Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.

Parameters
inputStreamStream where input file is placed.

◆ PdfFileInfo() [3/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfFileInfo::PdfFileInfo ( System::SharedPtr< System::IO::Stream inputStream,
System::String  password 
)

Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.

Parameters
inputStreamStream where input file is placed.
passwordPassword for access to file.

◆ PdfFileInfo() [4/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfFileInfo::PdfFileInfo ( System::String  inputFile)

Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.

Parameters
inputFileName of file containing input file.

◆ PdfFileInfo() [5/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfFileInfo::PdfFileInfo ( System::String  inputFile,
System::String  password 
)

Initializes a new instance of the Aspose.Pdf.Facades.PdfFileInfo class.

Parameters
inputFileName of file containing input file.
passwordPassword for access to file.

◆ PdfFileInfo() [6/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::PdfFileInfo::PdfFileInfo ( System::SharedPtr< Aspose::Pdf::Document document)

Initializes new PdfFileInfo object on base of the document .

Parameters
documentPdf document.

Member Function Documentation

◆ AssertDocument()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::AssertDocument ( ) const
overrideprotectedvirtual

Asserts if the facade is initialized.

Reimplemented from Aspose::Pdf::Facades::Facade.

◆ BindPdf() [1/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::BindPdf ( System::SharedPtr< Aspose::Pdf::Document srcDoc)
override

Initializes the facade.

Parameters
srcDocThe Aspose.Pdf.Document object.

◆ BindPdf() [2/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::BindPdf ( System::SharedPtr< System::IO::Stream srcStream,
System::String  password 
)
overrideprotectedvirtual

Initializes the facade.

Parameters
srcStreamThe stream of PDF file.
passwordThe password of the PDF document.

Reimplemented from Aspose::Pdf::Facades::Facade.

◆ BindPdf() [3/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::BindPdf ( System::String  srcFile,
System::String  password 
)
overrideprotectedvirtual

Initializes the facade.

Parameters
srcFileThe PDF file.
passwordThe password of the PDF document.

Reimplemented from Aspose::Pdf::Facades::Facade.

◆ ClearInfo()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::ClearInfo ( )

Clears all meta information of PDF document.

◆ Close()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::Close ( )
overridevirtual

Deinitializes the instance.

Reimplemented from Aspose::Pdf::Facades::Facade.

◆ get_Author()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_Author ( )

Gets the Author information of PDF document.

◆ get_CreationDate()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_CreationDate ( )

Gets the CreationDate information of PDF document.

◆ get_Creator()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_Creator ( )

Gets the Creator information of PDF document.

◆ get_HasCollection()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::get_HasCollection ( )

Returns true if the current input file is a 'Portfolio' file containing collection of PDF files in it.

◆ get_HasEditPassword()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::get_HasEditPassword ( )

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.

◆ get_HasOpenPassword()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::get_HasOpenPassword ( )

Returns true if password is needed to open password protected pdf document.

◆ get_Header()

ASPOSE_PDF_SHARED_API System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::String> > Aspose::Pdf::Facades::PdfFileInfo::get_Header ( ) const

Gets the customized information of PDF document.

◆ get_InputFile()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_InputFile ( ) const

Gets the input file.

Deprecated:
Use BindPdf(inputFile) method for facade initialization.

◆ get_InputStream()

ASPOSE_PDF_SHARED_API System::SharedPtr<System::IO::Stream> Aspose::Pdf::Facades::PdfFileInfo::get_InputStream ( ) const

Gets the input stream.

Deprecated:
Use BindPdf(inputStream) method for facade initialization.

◆ get_IsEncrypted()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::get_IsEncrypted ( )

Checkes whether the PDF document is encrypted.

◆ get_IsPdfFile()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::get_IsPdfFile ( )

Checkes whether the source input is a valid PDF file.

◆ get_Keywords()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_Keywords ( )

Gets the Keywords information of PDF document.

◆ get_ModDate()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_ModDate ( )

Gets the ModDate date information of PDF document.

◆ get_NumberOfPages()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::PdfFileInfo::get_NumberOfPages ( )

Gets the number of document pages.

◆ get_PasswordType()

ASPOSE_PDF_SHARED_API Aspose::Pdf::PasswordType Aspose::Pdf::Facades::PdfFileInfo::get_PasswordType ( )

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.

◆ get_Producer()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_Producer ( )

Gets the Producer information of PDF document.

◆ get_Subject()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_Subject ( )

Gets the Subject information of PDF document.

◆ get_Title()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::get_Title ( )

Gets the Title information of PDF document.

◆ get_UseStrictValidation()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::get_UseStrictValidation ( ) const

Uses strict validation rules via using IsPdfFile property.

◆ GetDocumentPrivilege()

ASPOSE_PDF_SHARED_API System::SharedPtr<DocumentPrivilege> Aspose::Pdf::Facades::PdfFileInfo::GetDocumentPrivilege ( )

Gets the PDF document privilege settings.

Returns
The PDF document privilege settings.

◆ GetMetaInfo()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::GetMetaInfo ( System::String  name)

Gets customized information of PDF document with property name. If there is no property match the name it will return a blank string.

Parameters
nameCustom meta property key.
Returns
Custom meta property value.

◆ GetPageHeight()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Facades::PdfFileInfo::GetPageHeight ( int32_t  pageNum)

Gets the height of the specified page.

Parameters
pageNumPage number.
Returns
The height of the page.

◆ GetPageRotation()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::PdfFileInfo::GetPageRotation ( int32_t  pageNum)

Gets the rotation of the specified page.

Parameters
pageNumPage number.
Returns
The rotation of the page. The value may be 0,90,180,270.

◆ GetPageWidth()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Facades::PdfFileInfo::GetPageWidth ( int32_t  pageNum)

Gets the width of the specified page.

Parameters
pageNumPage number.
Returns
The width of the page.

◆ GetPageXOffset()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Facades::PdfFileInfo::GetPageXOffset ( int32_t  pageNum)

Gets the horizontal offset of the specified page display area.

Parameters
pageNumPage number.
Returns
The horizontal offset from the left side of the page.

◆ GetPageYOffset()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Facades::PdfFileInfo::GetPageYOffset ( int32_t  pageNum)

Gets the vertical offset of the specified page display area.

Parameters
pageNumPage number.
Returns
The vertical offset of the page display area.

◆ GetPdfVersion()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::PdfFileInfo::GetPdfVersion ( )

Gets the version info of PDF document.

Returns
The version string.

◆ Save() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::Save ( System::SharedPtr< System::IO::Stream destStream)
overridevirtual

Saves the PDF document to the specified file.

Parameters
destStreamThe destination stream.

Reimplemented from Aspose::Pdf::Facades::SaveableFacade.

◆ Save() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::Save ( System::String  destFile)
overridevirtual

Saves the PDF document to the specified file.

Parameters
destFileThe destination file.

Reimplemented from Aspose::Pdf::Facades::SaveableFacade.

◆ SaveNewInfo() [1/2]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::SaveNewInfo ( System::SharedPtr< System::IO::Stream outputStream)

Save updated PDF document into specified stream.

Deprecated:
Use Save(destination) method for saving facade results.
Parameters
outputStreamOutput stream.
Returns
True if success otherwise is false.

◆ SaveNewInfo() [2/2]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::SaveNewInfo ( System::String  outputFile)

Save updated PDF document into specified file.

Parameters
outputFileOutput file.
Returns
True if success otherwise is false.

◆ SaveNewInfoWithXmp()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::PdfFileInfo::SaveNewInfoWithXmp ( System::String  outputFileName)

Changes the properties specified explicitly by setting file information, other properties remain.

Parameters
outputFileNameOutput file.
Returns
True for success, or false.

◆ set_Author()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_Author ( System::String  value)

Sets the Author information of PDF document.

◆ set_CreationDate()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_CreationDate ( System::String  value)

Sets the CreationDate information of PDF document.

◆ set_Creator()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_Creator ( System::String  value)

Sets the Creator information of PDF document.

◆ set_Header()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_Header ( System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::String >>  value)

Sets the customized information of PDF document.

◆ set_InputFile()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_InputFile ( System::String  value)

Sets the input file.

Deprecated:
Use BindPdf(inputFile) method for facade initialization.

◆ set_InputStream()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_InputStream ( System::SharedPtr< System::IO::Stream value)

Sets the input stream.

Deprecated:
Use BindPdf(inputStream) method for facade initialization.

◆ set_Keywords()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_Keywords ( System::String  value)

Sets the Keywords information of PDF document.

◆ set_ModDate()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_ModDate ( System::String  value)

Sets the ModDate date information of PDF document.

◆ set_Subject()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_Subject ( System::String  value)

Sets the Subject information of PDF document.

◆ set_Title()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_Title ( System::String  value)

Sets the Title information of PDF document.

◆ set_UseStrictValidation()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::set_UseStrictValidation ( bool  value)

Uses strict validation rules via using IsPdfFile property.

◆ SetMetaInfo()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::PdfFileInfo::SetMetaInfo ( System::String  name,
System::String  value 
)

Sets customized information of PDF document.

Parameters
nameCustom meta property key.
valueCustom meta property value.