Class PdfDevice
PdfDevice class
This class encapsulates rendering of document to PDF.
[Obsolete("PdfDevice class is deprecated beginning from 24.3. Please use SaveAsPdf method in PsDocument class instead. In 24.6 this class will be entirely hidden")]
public class PdfDevice : Device, IMultiPageDevice, IStreamable
Constructors
Name | Description |
---|
PdfDevice(Stream) | Initializes new instance of PdfDevice with output stream. |
PdfDevice(Stream, Size) | Initializes new instance of PdfDevice with output stream and specified size of a page. |
Properties
Methods
Name | Description |
---|
virtual ClosePage() | Makes necessary preparation of the device after page has been rendered. |
virtual InitPageNumbers() | Initializes numbers of pages to output. |
virtual OpenPage(string) | Makes necessary preparation of the device before page rendering. |
virtual OpenPage(float, float) | Makes necessary preparation of the device before each page rendering. |
override ToString() | Returns the name of device type. |
virtual UpdatePageParameters(IMultiPageDevice) | Updates page parameters from other multi-paged device. |
Fields
Name | Description |
---|
static readonly AUTHOR | “Author” property value. |
static readonly BACKGROUND | “Background” property key. |
static readonly BACKGROUND_COLOR | “Background color” property key. |
static readonly COMPRESS | “Compress” property key. |
static readonly EMBED_FONTS | “Embed font in document” property key. |
static readonly EMBED_FONTS_AS | “What font type is used for embedding” property key. |
static readonly EMIT_ERRORS | “Emit errors” property value. |
static readonly EMIT_WARNINGS | “Emit warnings” property value. |
static readonly FIT_TO_PAGE | “Fit content to page” property key. |
static readonly KEYWORDS | “Keywords” property value. |
static readonly ORIENTATION | “Orientation” property key. |
static readonly PAGE_MARGINS | “Page margins” property key. |
static readonly PAGE_SIZE | “Page size” property key. |
static readonly SUBJECT | “Subject” property value. |
static readonly TITLE | “Title” property value. |
static readonly TRANSPARENT | “Transparent” property key. |
static readonly VERSION | “Version” property key. |
const VERSION5 | “Version of Adobe Acrobat Reader” property value. |
static readonly WRITE_IMAGES_AS | “Format of images” property key. |
See Also