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: Azos.Media.PDF.DocumentModel
Assembly: Azos.Media.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.Collections.Generic.List<PdfFont> |
Info
Document info
Declaration
public PdfInfo Info { get; }
Property Value
Type | Description |
---|---|
PdfInfo |
Meta
PDF document meta
Declaration
public PdfMeta Meta { get; }
Property Value
Type | Description |
---|---|
PdfMeta |
Outlines
Document outlines
Declaration
public PdfOutlines Outlines { get; }
Property Value
Type | Description |
---|---|
PdfOutlines |
Pages
Document pages
Declaration
public List<PdfPage> Pages { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<PdfPage> |
PageSize
Size for all pages created after it's setting
Declaration
public PdfSize PageSize { get; set; }
Property Value
Type | Description |
---|---|
PdfSize |
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 |
---|---|
PdfUnit |
Methods
AddPage(PdfSize)
Adds new page to document
Declaration
public PdfPage AddPage(PdfSize size = null)
Parameters
Type | Name | Description |
---|---|---|
PdfSize | size |
Returns
Type | Description |
---|---|
PdfPage | Page |
AddPage(PdfUnit)
Adds new page to document
Declaration
public PdfPage AddPage(PdfUnit unit)
Parameters
Type | Name | Description |
---|---|---|
PdfUnit | unit |
Returns
Type | Description |
---|---|
PdfPage | Page |
Save(String)
Save document to file
Declaration
public void Save(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | File path |