C# Класс PdfSharp.Drawing.XPdfForm

Represents a so called 'PDF form external object', which is typically an imported page of an external PDF document. XPdfForm objects are used like images to draw an existing PDF page of an external document in the current document. XPdfForm objects can only be placed in PDF documents. If you try to draw them using a XGraphics based on an GDI+ context no action is taken if no placeholder image is specified. Otherwise the place holder is drawn.
Наследование: PdfSharp.Drawing.XForm
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
FromFile ( string path ) : XPdfForm

Creates an XPdfForm from a file.

FromStream ( Stream stream ) : XPdfForm

Creates an XPdfForm from a stream.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Frees the memory occupied by the underlying imported PDF document, even if other XPdfForm objects refer to this document. A reuse of this object doesn't fail, because the underlying PDF document is re-imported if necessary.

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

Метод Описание
Finish ( ) : void

Sets the form in the state FormState.Finished.

XPdfForm ( Stream stream ) : System

Initializes a new instance of the XPdfForm class from a stream.

XPdfForm ( string path ) : System

Initializes a new instance of the XPdfForm class from the specified path to an external PDF document. Although PDFsharp internally caches XPdfForm objects it is recommended to reuse XPdfForm objects in your code and change the PageNumber property if more than one page is needed form the external document. Furthermore, because XPdfForm can occupy very much memory, it is recommended to dispose XPdfForm objects if not needed anymore.

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

Dispose() защищенный Метод

Frees the memory occupied by the underlying imported PDF document, even if other XPdfForm objects refer to this document. A reuse of this object doesn't fail, because the underlying PDF document is re-imported if necessary.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FromFile() публичный статический Метод

Creates an XPdfForm from a file.
public static FromFile ( string path ) : XPdfForm
path string
Результат XPdfForm

FromStream() публичный статический Метод

Creates an XPdfForm from a stream.
public static FromStream ( Stream stream ) : XPdfForm
stream Stream
Результат XPdfForm