Aspose::Page::EPS::Device::PdfDevice class
Contents
[
Hide
]PdfDevice class
This class encapsulates rendering of document to PDF.
class PdfDevice : public Aspose::Page::Device,
public Aspose::Page::IMultiPageDevice,
public Aspose::Page::IStreamable
Methods
Method | Description |
---|---|
static AUTHOR() | “Author” property value. |
static BACKGROUND() | “Background” property key. |
static BACKGROUND_COLOR() | “Background color” property key. |
virtual Clip(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) | Clips using given shape. Dispatches to writeClip(Rectangle), writeClip(RectangleF) or writeClip(Shape). |
virtual ClipRect(float, float, float, float) | Clips rectangle. Calls clip(Rectangle2D). |
ClosePage() override | Makes necessary preparation of the device after page has been rendered. |
CloseStream() | |
static COMPRESS() | “Compress” property key. |
virtual Copy() | |
Create() override | Creates a copy of this device. |
virtual Create(float, float, float, float) | |
CreatePdfCanvas() | |
Dispose() override | Disposes the graphics context. If on creation restoreOnDispose was true, writeGraphicsRestore() will be called. |
Draw(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) override | Draws a path. |
DrawBitmapGlyph(System::SharedPtr<System::Object>, System::String, System::SharedPtr<System::Drawing::Bitmap>, System::SharedPtr<System::Drawing::Drawing2D::Matrix>) override | |
DrawImage(System::SharedPtr<System::Drawing::Bitmap>, System::SharedPtr<System::Drawing::Drawing2D::Matrix>, System::Drawing::Color) override | Draws an image with assigned transform and background. |
DrawString(System::String, double, double) override | Draws a string at given point. |
static EMBED_FONTS() | “Embed font in document” property key. |
static EMBED_FONTS_AS() | “What font type is used for embedding” property key. |
static EMIT_ERRORS() | “Emit errors” property value. |
static EMIT_WARNINGS() | “Emit warnings” property value. |
EndDocument() override | Makes necessary preparation of device after the document has been rendered. |
Fill(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) override | Fills a path. |
FillLastClip() | |
static FIT_TO_PAGE() | “Fit content to page” property key. |
get_CurrentPageNumber() override | Current page number. |
get_LastWrittenPaint() const | Draws frame and banner around a string. The method calculates and returns the point to which the text curser should be set before drawing the string. |
get_OutputStream() override | Specifies or returns an output stream. |
get_WarningMessage() | |
GetFinalWrittenLength() override | |
GetTransform() override | Gets current transform. |
InitClip() override | Initializes clip of the device. |
InitPageNumbers() override | Initializes numbers of pages to output. |
static KEYWORDS() | “Keywords” property value. |
OpenPage(System::String) override | Makes necessary preparation of the device before page rendering. |
OpenPage(float, float) override | Makes necessary preparation of the device before each page rendering. |
static ORIENTATION() | “Orientation” property key. |
static PAGE_MARGINS() | “Page margins” property key. |
PdfDevice(System::SharedPtr<System::IO::Stream>) | Initializes new instance of PdfDevice with output stream. |
PdfDevice(System::SharedPtr<System::IO::Stream>, System::Drawing::Size) | Initializes new instance of PdfDevice with output stream and specified size of a page. |
PdfDevice(System::SharedPtr<PdfDevice>, bool) | Clone constructor. Initializes new instance of PdfDevice with existing device. |
ReNew() override | Reset device to initial state for whole document. Used for reseting output stream. |
ReNewForMerge(bool) override | Reset device to initial state for whole document while merging several documents. Used for reseting output stream. |
Reset() override | If page device parameters will be set this method allows to return writing stream back the begining of page. |
Reset(bool) override | |
virtual ResetClip(System::Drawing::Rectangle) | |
Rotate(double) override | Rotate the current transform over the Z-axis. Calls writeTransform(Transform). Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis. |
virtual SavePageTransform() | |
Scale(double, double) override | Scales the current transformation matrix. Calls writeTransform(Transform). |
set_Font(System::SharedPtr<BaseTrFont>) override | Specifies current font. |
set_OutputStream(System::SharedPtr<System::IO::Stream>) override | Specifies or returns an output stream. |
set_Paint(System::SharedPtr<System::Drawing::Brush>) override | Returns or specifies current paint. |
set_Stroke(System::SharedPtr<System::Drawing::Pen>) override | Returns or specifies current stroke. |
SetClip(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) override | Specifies the clip of the device. |
virtual SetFooter(System::SharedPtr<Aspose::Page::EPS::Postscript::TrFont>, System::SharedPtr<Aspose::Page::EPS::Graphics2d::TagString>, System::SharedPtr<Aspose::Page::EPS::Graphics2d::TagString>, System::SharedPtr<Aspose::Page::EPS::Graphics2d::TagString>, int32_t) | |
virtual SetHeader(System::SharedPtr<Aspose::Page::EPS::Postscript::TrFont>, System::SharedPtr<Aspose::Page::EPS::Graphics2d::TagString>, System::SharedPtr<Aspose::Page::EPS::Graphics2d::TagString>, System::SharedPtr<Aspose::Page::EPS::Graphics2d::TagString>, int32_t) | |
SetSaveFromPatternCreate() | |
SetTransform(System::SharedPtr<System::Drawing::Drawing2D::Matrix>) override | Specifies the current transform. Since most output formats do not implement this functionality, the inverse transform of the currentTransform is calculated and multiplied by the transform to be set.The result is then forwarded by a call to writeTransform(Transform). |
Shear(double, double) override | Shears the current transformation matrix. Calls writeTransform(Transform). |
StartDocument() override | Makes necessary preparation of device before start rendering of document. |
static SUBJECT() | “Subject” property value. |
static TITLE() | “Title” property value. |
ToString() const override | Returns the name of device type. |
Transform(System::SharedPtr<System::Drawing::Drawing2D::Matrix>) override | Transforms the current transformation matrix. Calls writeTransform(Transform) |
Translate(double, double) override | Translates the current transformation matrix. Calls writeTransform(Transform). |
static TRANSPARENT() | “Transparent” property key. |
UpdatePageParameters(System::SharedPtr<IMultiPageDevice>) override | Updates page parameters from other multi-paged device. |
static WRITE_IMAGES_AS() | “Format of images” property key. |
WriteBackground() override | Writes out current background. |
WriteCap(System::Drawing::Drawing2D::LineCap) override | Writes out the cap of the stroke. |
virtual WriteClip(System::Drawing::RectangleF) | |
virtual WriteClip(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) | |
WriteComment(System::String) override | Writes a comment. |
WriteDash(System::ArrayPtr<double>, double, System::Drawing::Drawing2D::DashCap, float) override | Writes out the dash of the stroke. |
virtual WriteGraphicsRestore() | |
virtual WriteGraphicsSave() | |
WriteHeader() | Writes the catalog, docinfo, preferences, and (as we use only single page output the page tree. |
WriteJoin(System::Drawing::Drawing2D::LineJoin) override | Writes out the join of the stroke. |
WriteLastWrittenPaint() | Writes out last written paint. It is useful in cases when after writing paint graphics restore (“Q”) was performed. |
WriteMiterLimit(float) override | Writes out the miter limit of the stroke. |
WritePaint(System::SharedPtr<System::Drawing::SolidBrush>) override | Writes out paint as the given color. |
WritePaint(System::SharedPtr<System::Drawing::Drawing2D::LinearGradientBrush>) override | Writes out paint as the given gradient. |
WritePaint(System::SharedPtr<System::Drawing::TextureBrush>) override | Writes out paint as the given texture. |
WritePaint(System::SharedPtr<System::Drawing::Brush>) override | Writes out paint. |
WriteString(System::SharedPtr<BaseTrFont>, System::String) override | Writes out string with specified font. |
WriteTrailer() | Writes out trailer of PDF document. |
virtual WriteTransform(System::SharedPtr<System::Drawing::Drawing2D::Matrix>) | Write the given transformation matrix to the file. |
WriteWarning(System::String) override | Writes out a warning, by default to System.err. |
WriteWidth(float) override | Writes out the width of the stroke. |
Fields
Field | Description |
---|---|
static PAGE_SIZE_ | “Page size” property key. |
static VERSION | “Version” property key. |
static VERSION5 | “Version of Adobe Acrobat Reader” property value. |
Deprecated
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 False
See Also
- Class Device
- Class IMultiPageDevice
- Class IStreamable
- Namespace Aspose::Page::EPS::Device
- Library Aspose.Page for C++