Class PdfDocument
Model for PDF document
Inheritance
System.Object
PdfDocument
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Media.PDF.DocumentModel
Assembly: NFX.dll
Syntax
public class PdfDocument
Constructors
PdfDocument()
Declaration
public PdfDocument()
Properties
Fonts
Used fonts
Declaration
public List<PdfFont> Fonts { get; }
Property Value
Type | Description |
---|---|
System. |
Info
Document info
Declaration
public PdfInfo Info { get; }
Property Value
Type | Description |
---|---|
Pdf |
Meta
PDF document meta
Declaration
public PdfMeta Meta { get; }
Property Value
Type | Description |
---|---|
Pdf |
Outlines
Document outlines
Declaration
public PdfOutlines Outlines { get; }
Property Value
Type | Description |
---|---|
Pdf |
Pages
Document pages
Declaration
public List<PdfPage> Pages { get; }
Property Value
Type | Description |
---|---|
System. |
PageSize
Size for all pages created after it's setting
Declaration
public PdfSize PageSize { get; set; }
Property Value
Type | Description |
---|---|
Pdf |
Unit
User units for all pages created after it's setting (the default user space unit is 1/72 inch)
Declaration
public PdfUnit Unit { get; }
Property Value
Type | Description |
---|---|
Pdf |
Methods
AddPage(PdfSize)
Adds new page to document
Declaration
public PdfPage AddPage(PdfSize size = null)
Parameters
Type | Name | Description |
---|---|---|
Pdf |
size |
Returns
Type | Description |
---|---|
Pdf |
Page |
AddPage(PdfUnit)
Adds new page to document
Declaration
public PdfPage AddPage(PdfUnit unit)
Parameters
Type | Name | Description |
---|---|---|
Pdf |
unit |
Returns
Type | Description |
---|---|
Pdf |
Page |
Save(String)
Save document to file
Declaration
public void Save(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
filePath | File path |