Table of Contents

Class PdfDocumentInformation

Namespace
Syncfusion.Pdf
Assembly
Syncfusion.Pdf.Portable.dll

A class containing the information about the document.

public class PdfDocumentInformation
Inheritance
PdfDocumentInformation
Inherited Members

Examples

//Create a new document.
PdfDocument pdfDoc= new PdfDocument();
//Creates a new page
PdfPage page = pdfDoc.Pages.Add();           
//Set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument= New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)

Remarks

To know more about refer this link .

Properties

Author

Gets or sets the author.

public string Author { get; set; }

Property Value

string

The author of the document.

Examples

//Create a new document.
PdfDocument pdfDoc= new PdfDocument();
//Creates a new page
PdfPage page = pdfDoc.Pages.Add();           
//Set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
//Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument= New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now
'Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

CreationDate

Gets or sets the creation date of the PDF document

public DateTime CreationDate { get; set; }

Property Value

DateTime

The DateTime.

Examples

//Create a new document.
PdfDocument pdfDoc= new PdfDocument();
//Creates a new page
PdfPage page = pdfDoc.Pages.Add();           
//Set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument= New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

Creator

Gets or sets the creator.

public string Creator { get; set; }

Property Value

string

The creator.

Examples

//Create a new document
PdfDocument pdfDoc = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = pdfDoc.Pages.Add();
//Set the document`s information
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
// Sets the documents creator information
pdfDoc.DocumentInformation.Creator = "Essential PDF";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument = New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'Set the document`s information.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
' Sets the documents creator information
pdfDoc.DocumentInformation.Creator = "Essential PDF"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now     
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

CustomMetadata

Class CusotmMetadata used for add CustomMetadata to PDFDictionry Remove CustomMetadata values Modify CustomMetadata values Add CustomMetadata values

public CustomMetadata CustomMetadata { get; set; }

Property Value

CustomMetadata
See Also

Keywords

Gets or sets the keywords.

public string Keywords { get; set; }

Property Value

string

The keywords.

Examples

//Create a new document.
PdfDocument pdfDoc= new PdfDocument();
//Creates a new page
PdfPage page = pdfDoc.Pages.Add();           
//Set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
//Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument= New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now
'Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

Language

Gets or sets the Language.

public string Language { get; set; }

Property Value

string

The Language.

Examples

//Create a new document.
PdfDocument pdfDoc= new PdfDocument();
//Creates a new page
PdfPage page = pdfDoc.Pages.Add();           
//Set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Language = "En-Us";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
//Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument= New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Language = "En-Us"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now
'Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

ModificationDate

Gets or sets the modification date.

public DateTime ModificationDate { get; set; }

Property Value

DateTime

The DateTime.

Examples

//Create a new document.
PdfDocument pdfDoc= new PdfDocument();
//Creates a new page
PdfPage page = pdfDoc.Pages.Add();           
//Set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
//Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument= New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now
'Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

Producer

If the document was converted to PDF from another format, the name of the application (for example, Acrobat Distiller) that converted it to PDF.

public string Producer { get; set; }

Property Value

string

The producer of the document.

Examples

//Create a new document
PdfDocument pdfDoc = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = pdfDoc.Pages.Add();
//Set the document`s information
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
// Sets the documents creator information
pdfDoc.DocumentInformation.Creator = "Essential PDF";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument = New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'Set the document`s information.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
' Sets the documents creator information
pdfDoc.DocumentInformation.Creator = "Essential PDF"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now     
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

Subject

Gets or sets the subject.

public string Subject { get; set; }

Property Value

string

The subject.

Examples

//Create a new document.
PdfDocument pdfDoc= new PdfDocument();
//Creates a new page
PdfPage page = pdfDoc.Pages.Add();           
//Set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
//Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument= New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now
'Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

Title

Gets or sets the title.

public string Title { get; set; }

Property Value

string

The title.

Examples

//Create a new document.
PdfDocument pdfDoc= new PdfDocument();
//Creates a new page
PdfPage page = pdfDoc.Pages.Add();           
//Set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information";
pdfDoc.DocumentInformation.Author = "Syncfusion";
pdfDoc.DocumentInformation.Keywords = "PDF";
pdfDoc.DocumentInformation.Subject = "PDF demo";
pdfDoc.DocumentInformation.Producer = "Syncfusion Software";
pdfDoc.DocumentInformation.CreationDate = DateTime.Now;
//Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now;
//Save the document
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
'Create a new document.
Dim pdfDoc As PdfDocument= New PdfDocument()
'Create a new page
Dim page As PdfPage = pdfDoc.Pages.Add()
'set the Document`s properties.
pdfDoc.DocumentInformation.Title = "Document Properties Information"
pdfDoc.DocumentInformation.Author = "Syncfusion"
pdfDoc.DocumentInformation.Keywords = "PDF"
pdfDoc.DocumentInformation.Subject = "PDF demo"
pdfDoc.DocumentInformation.Producer = "Syncfusion Software"
pdfDoc.DocumentInformation.CreationDate = DateTime.Now
'Sets the modification date
pdfDoc.DocumentInformation.ModificationDate = DateTime.Now
'Save the document
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)
See Also

XmpMetadata

Gets Xmp metadata of the document.

public XmpMetadata XmpMetadata { get; }

Property Value

XmpMetadata

Represents the document information in Xmp format.

Examples

PdfDocument pdfDoc = new PdfDocument();
PdfPage page = pdfDoc.Pages.Add();
// Get xmp object.
XmpMetadata xmp = pdfDoc.DocumentInformation.XmpMetadata;
// XMP Basic Schema.
BasicSchema basic = xmp.BasicSchema;
basic.Advisory.Add("advisory");
basic.BaseURL = new Uri("http://google.com");
basic.CreateDate = DateTime.Now;
basic.CreatorTool = "creator tool";
basic.Identifier.Add("identifier");
basic.Label = "label";
basic.MetadataDate = DateTime.Now;
basic.ModifyDate = DateTime.Now;
basic.Nickname = "nickname";
basic.Rating.Add(-25);
pdfDoc.Save("DocumentInformation.pdf");
pdfDoc.Close(true);
Dim pdfDoc As PdfDocument = New PdfDocument()
Dim page As PdfPage = pdfDoc.Pages.Add()
' Get xmp object.
Dim xmp As XmpMetadata = pdfDoc.DocumentInformation.XmpMetadata
' XMP Basic Schema.
Dim basic As BasicSchema = xmp.BasicSchema
basic.Advisory.Add("advisory")
basic.BaseURL = New Uri("http://google.com")
basic.CreateDate = DateTime.Now
basic.CreatorTool = "creator tool"
basic.Identifier.Add("identifier")
basic.Label = "label"
basic.MetadataDate = DateTime.Now
basic.ModifyDate = DateTime.Now
basic.Nickname = "nickname"
basic.Rating.Add(-25)
pdfDoc.Save("DocumentInformation.pdf")
pdfDoc.Close(True)

Remarks

This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight

See Also

Methods

Remove(string)

Remove a specified key from the document information in a PDF document.

public bool Remove(string key)

Parameters

key string

Returns

bool

Examples

//Load the existing PDF document.
PdfLoadedDocument document = new PdfLoadedDocument("input.pdf");
//Remove the document information properties.
document.DocumentInformation.Remove("Title");
document.DocumentInformation.Remove("Author");
document.DocumentInformation.Remove("Subject");
document.DocumentInformation.Remove("Keywords");
document.DocumentInformation.Remove("Creator");
document.DocumentInformation.Remove("Producer");
document.DocumentInformation.Remove("ModDate");
document.DocumentInformation.Remove("CreationDate");
//Save the document
document.Save("DocumentInformation.pdf");
document.Close(true);
See Also

RemoveModificationDate()

Remove the modification date from existing document.

public void RemoveModificationDate()
See Also

See Also