C# Class PdfSharp.Pdf.PdfPage

Represents a page in a PDF document.
Inheritance: PdfSharp.Pdf.PdfDictionary, IContentStream
ファイルを表示 Open project: DavidS/MigraDoc Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

AddDocumentLink() public method

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.
return PdfSharp.Pdf.Annotations.PdfLinkAnnotation

AddFileLink() public method

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.
return PdfSharp.Pdf.Annotations.PdfLinkAnnotation

AddWebLink() public method

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.
return PdfSharp.Pdf.Annotations.PdfLinkAnnotation

Close() public method

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
return void

Initialize() public method

public Initialize ( ) : void
return void

PdfPage() public method

Initializes a new page. The page must be added to a document before it can be used.
public PdfPage ( ) : System
return System

PdfPage() public method

Initializes a new instance of the PdfPage class.
public PdfPage ( PdfSharp.Pdf.PdfDocument document ) : System
document PdfSharp.Pdf.PdfDocument The document.
return System