PoDoFo::PdfInfo Class Reference
#include <PdfInfo.h>
List of all members.
Detailed Description
This class provides access to the documents info dictionary, which provides information about the PDF document.
Member Enumeration Documentation
Enum to specifiy the initial information of the info dictionary.
- Enumerator:
-
| ePdfInfoInitial_WriteCreationTime |
Write the creation time (current time). Default for new documents. |
| ePdfInfoInitial_WriteModificationTime |
Write the modification time (current time). Default for loaded documents. |
| ePdfInfoInitial_WriteProducer |
Write producer key. Default for new documents. |
Constructor & Destructor Documentation
| PoDoFo::PdfInfo::PdfInfo |
( |
PdfVecObjects * |
pParent, |
|
|
int |
eInitial = ePdfInfoInitial_WriteCreationTime | ePdfInfoInitial_WriteProducer | |
|
) |
| | |
Create a new PdfInfo object
- Parameters:
-
| pParent | the parent of this object |
| eInitial | which information should be writting initially to the information dictionary |
| PoDoFo::PdfInfo::PdfInfo |
( |
PdfObject * |
pObject, |
|
|
int |
eInitial = ePdfInfoInitial_WriteModificationTime | |
|
) |
| | |
Create a PdfInfo object from an existing object in the PDF file.
- Parameters:
-
| pObject | must be an info dictionary. |
| eInitial | which information should be writting initially to the information |
| PoDoFo::PdfInfo::~PdfInfo |
( |
|
) |
|
Member Function Documentation
| void PoDoFo::PdfInfo::SetAuthor |
( |
const PdfString & |
sAuthor |
) |
|
Set the author of the document.
- Parameters:
-
| const PdfString & PoDoFo::PdfInfo::GetAuthor |
( |
|
) |
const [inline] |
Get the author of the document
- Returns:
- the author
| void PoDoFo::PdfInfo::SetCreator |
( |
const PdfString & |
sCreator |
) |
|
Set the creator of the document. Typically the name of the application using the library.
- Parameters:
-
| const PdfString & PoDoFo::PdfInfo::GetCreator |
( |
|
) |
const [inline] |
Get the creator of the document
- Returns:
- the creator
| void PoDoFo::PdfInfo::SetKeywords |
( |
const PdfString & |
sKeywords |
) |
|
Set keywords for this document
- Parameters:
-
| sKeywords | a list of keywords |
| const PdfString & PoDoFo::PdfInfo::GetKeywords |
( |
|
) |
const [inline] |
Get the keywords of the document
- Returns:
- the keywords
| void PoDoFo::PdfInfo::SetSubject |
( |
const PdfString & |
sSubject |
) |
|
Set the subject of the document.
- Parameters:
-
| const PdfString & PoDoFo::PdfInfo::GetSubject |
( |
|
) |
const [inline] |
Get the subject of the document
- Returns:
- the subject
| void PoDoFo::PdfInfo::SetTitle |
( |
const PdfString & |
sTitle |
) |
|
Set the title of the document.
- Parameters:
-
| const PdfString & PoDoFo::PdfInfo::GetTitle |
( |
|
) |
const [inline] |
Get the title of the document
- Returns:
- the title
| void PoDoFo::PdfInfo::SetProducer |
( |
const PdfString & |
sProducer |
) |
|
Set the producer of the document.
- Parameters:
-
| const PdfString & PoDoFo::PdfInfo::GetProducer |
( |
|
) |
const [inline] |
Get the producer of the document
- Returns:
- the producer
| void PoDoFo::PdfInfo::SetTrapped |
( |
const PdfName & |
sTrapped |
) |
|
Set the trapping state of the document.
- Parameters:
-
| const PdfName & PoDoFo::PdfInfo::GetTrapped |
( |
|
) |
const [inline] |
Get the trapping state of the document
- Returns:
- the title
| PdfDate PoDoFo::PdfInfo::GetCreationDate |
( |
|
) |
const [inline] |
Get creation date of document
- Returns:
- creation date
| PdfDate PoDoFo::PdfInfo::GetModDate |
( |
|
) |
const [inline] |
Get modification date of document
- Returns:
- modification date
| void PoDoFo::PdfInfo::SetCustomKey |
( |
const PdfName & |
sName, |
|
|
const PdfString & |
sValue | |
|
) |
| | |
Set custom info key.
- Parameters:
-
| sName | Name of the key. |
| sValue | Value of the key. |