C# Класс PdfSharp.Pdf.PdfPage

Represents a page in a PDF document.
Наследование: PdfSharp.Pdf.PdfDictionary, IContentStream
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetFontName string
GetFontName string
GetFormName string
GetImageName string
IContentStream string
IContentStream string
IContentStream string
IContentStream string
InheritValues void
PdfPage System
PrepareForSave void
TryGetFontName string
WriteObject void

Открытые методы

Метод Описание
AddDocumentLink ( PdfSharp.Pdf.PdfRectangle rect, int destinationPage ) : PdfSharp.Pdf.Annotations.PdfLinkAnnotation

Adds an intra document link.

AddFileLink ( PdfSharp.Pdf.PdfRectangle rect, string fileName ) : PdfSharp.Pdf.Annotations.PdfLinkAnnotation

Adds a link to a file.

AddWebLink ( PdfSharp.Pdf.PdfRectangle rect, string url ) : PdfSharp.Pdf.Annotations.PdfLinkAnnotation

Adds a link to the Web.

Close ( ) : void

Closes the page. A closes page cannot be modified anymore and it is not possible to get an XGraphics object for a closed page. Closing a page is not required, but may saves resources if the document has many pages.

Initialize ( ) : void
PdfPage ( ) : System

Initializes a new page. The page must be added to a document before it can be used.

PdfPage ( PdfSharp.Pdf.PdfDocument document ) : System

Initializes a new instance of the PdfPage class.

Приватные методы

Метод Описание
GetFontName ( PdfSharp.Drawing.XFont font, PdfSharp.Pdf.Advanced.PdfFont &pdfFont ) : string

Gets the resource name of the specified font within this page.

GetFontName ( string idName, byte fontData, PdfSharp.Pdf.Advanced.PdfFont &pdfFont ) : string

Gets the resource name of the specified font data within this page.

GetFormName ( PdfSharp.Drawing.XForm form ) : string

Gets the resource name of the specified form within this page.

GetImageName ( PdfSharp.Drawing.XImage image ) : string

Gets the resource name of the specified image within this page.

IContentStream ( PdfSharp.Drawing.XFont font, PdfSharp.Pdf.Advanced.PdfFont &pdfFont ) : string
IContentStream ( PdfSharp.Drawing.XForm form ) : string

Implements the interface because the primary function is internal.

IContentStream ( PdfSharp.Drawing.XImage image ) : string

Implements the interface because the primary function is internal.

IContentStream ( string idName, byte fontData, PdfSharp.Pdf.Advanced.PdfFont &pdfFont ) : string
InheritValues ( PdfSharp.Pdf.PdfDictionary page, InheritedValues values ) : void

Inherit values from parent node.

PdfPage ( PdfSharp.Pdf.PdfDictionary dict ) : System
PrepareForSave ( ) : void
TryGetFontName ( string idName, PdfSharp.Pdf.Advanced.PdfFont &pdfFont ) : string

Tries to get the resource name of the specified font data within this page. Returns null if no such font exists.

WriteObject ( PdfSharp.Pdf.IO.PdfWriter writer ) : void

Описание методов

AddDocumentLink() публичный Метод

Adds an intra document link.
public AddDocumentLink ( PdfSharp.Pdf.PdfRectangle rect, int destinationPage ) : PdfSharp.Pdf.Annotations.PdfLinkAnnotation
rect PdfSharp.Pdf.PdfRectangle The rect.
destinationPage int The destination page.
Результат PdfSharp.Pdf.Annotations.PdfLinkAnnotation

AddFileLink() публичный Метод

Adds a link to a file.
public AddFileLink ( PdfSharp.Pdf.PdfRectangle rect, string fileName ) : PdfSharp.Pdf.Annotations.PdfLinkAnnotation
rect PdfSharp.Pdf.PdfRectangle The rect.
fileName string Name of the file.
Результат PdfSharp.Pdf.Annotations.PdfLinkAnnotation

AddWebLink() публичный Метод

Adds a link to the Web.
public AddWebLink ( PdfSharp.Pdf.PdfRectangle rect, string url ) : PdfSharp.Pdf.Annotations.PdfLinkAnnotation
rect PdfSharp.Pdf.PdfRectangle The rect.
url string The URL.
Результат PdfSharp.Pdf.Annotations.PdfLinkAnnotation

Close() публичный Метод

Closes the page. A closes page cannot be modified anymore and it is not possible to get an XGraphics object for a closed page. Closing a page is not required, but may saves resources if the document has many pages.
public Close ( ) : void
Результат void

Initialize() публичный Метод

public Initialize ( ) : void
Результат void

PdfPage() публичный Метод

Initializes a new page. The page must be added to a document before it can be used.
public PdfPage ( ) : System
Результат System

PdfPage() публичный Метод

Initializes a new instance of the PdfPage class.
public PdfPage ( PdfSharp.Pdf.PdfDocument document ) : System
document PdfSharp.Pdf.PdfDocument The document.
Результат System