PdfDevice class

PdfDevice class

This class encapsulates rendering of document to PDF.

Inheritance: PdfDeviceDevice

The PdfDevice type exposes the following members:

Constructors

ConstructorDescription
initInitializes new instance of PdfDevice with output stream.
initInitializes new instance of PdfDevice with output stream and specified size of a page.

Properties

PropertyDescription
current_page_numberCurrent page number.
output_streamSpecifies or returns an output stream.
VERSION“Version” property key.
VERSION5“Version of Adobe Acrobat Reader” property value.
TRANSPARENT“Transparent” property key.
BACKGROUND“Background” property key.
BACKGROUND_COLOR“Background color” property key.
PAGE_SIZE“Page size” property key.
PAGE_MARGINS“Page margins” property key.
ORIENTATION“Orientation” property key.
FIT_TO_PAGE“Fit content to page” property key.
EMBED_FONTS“Embed font in document” property key.
EMBED_FONTS_AS“What font type is used for embedding” property key.
COMPRESS“Compress” property key.
WRITE_IMAGES_AS“Format of images” property key.
AUTHOR“Author” property value.
TITLE“Title” property value.
SUBJECT“Subject” property value.
KEYWORDS“Keywords” property value.
EMIT_WARNINGS“Emit warnings” property value.
EMIT_ERRORS“Emit errors” property value.

Methods

MethodDescription
open_pageMakes necessary preparation of the device before page rendering.
open_pageMakes necessary preparation of the device before each page rendering.
init_page_numbersInitializes numbers of pages to output.
close_pageMakes necessary preparation of the device after page has been rendered.
update_page_parametersUpdates page parameters from other multi-paged device.

See Also