Click or drag to resize
Pdf Library for .NET

HtmlToPdfDocumentInformation Class

Specifies the document metadata (title, author, subject, keywords, creation date, language) written into the generated pdf document. Reached through PdfDocumentInformation.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalHtmlToPdfDocumentInformation

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class HtmlToPdfDocumentInformation

The HtmlToPdfDocumentInformation type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyAuthor Gets or sets the author recorded in the generated pdf document metadata.
Public propertyCreationDate Gets or sets the creation date recorded in the generated pdf document metadata.
Public propertyKeywords Gets or sets the keywords recorded in the generated pdf document metadata.
Public propertyLanguage Gets or sets the natural language of the generated pdf document, as a BCP 47 language tag such as en-US.
Public propertyProducer Gets the producer string recorded in the generated pdf document metadata. This value is set by the library and cannot be changed by consumer code.
Public propertySubject Gets or sets the subject recorded in the generated pdf document metadata.
Public propertyTitle Gets or sets the title recorded in the generated pdf document metadata.
Top
Example
HtmlToPdf converter = new HtmlToPdf();
converter.Options.PdfDocumentInformation.Title = "Monthly Report";
converter.Options.PdfDocumentInformation.Author = "Reporting Service";
PdfDocument doc = converter.ConvertUrl("https://www.google.com");
doc.Save("out.pdf");
doc.Close();
See Also