Click or drag to resize
Pdf Library for .NET

WebPageInformation Class

Contains metadata read from the converted web page — its title, keywords, and description. Obtained from WebPageInformation after a conversion completes.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalWebPageInformation

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

The WebPageInformation type exposes the following members.

Constructors
 NameDescription
Public methodWebPageInformation 
Top
Properties
 NameDescription
Public propertyDescription Gets or sets the description of the converted web page (its description meta tag).
Public propertyKeywords Gets or sets the keywords of the converted web page (its keywords meta tag).
Public propertyTitle Gets or sets the title of the converted web page (its <title> element).
Top
Example
HtmlToPdf converter = new HtmlToPdf();
PdfDocument doc = converter.ConvertUrl("https://www.google.com");
WebPageInformation info = converter.ConversionResult.WebPageInformation;
System.Console.WriteLine("Page title: " + info.Title);
doc.Save("out.pdf");
doc.Close();
See Also