This class encapsulates rendering of document to PDF. More...

Inherits Aspose::Page::Device, Aspose::Page::IMultiPageDevice, and Aspose::Page::IStreamable.

Public Member Functions

ASPOSE_PAGE_SHARED_API int32_t get_CurrentPageNumber () override
 Current page number. More...
 
ASPOSE_PAGE_SHARED_API void set_Stroke (System::SharedPtr< System::Drawing::Pen > value) override
 Returns or specifies current stroke. More...
 
ASPOSE_PAGE_SHARED_API void set_Paint (System::SharedPtr< System::Drawing::Brush > value) override
 Returns or specifies current paint. More...
 
ASPOSE_PAGE_SHARED_API void set_Font (System::SharedPtr< BaseTrFont > value) override
 Specifies current font. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::IO::Streamget_OutputStream () override
 Specifies or returns an output stream. More...
 
ASPOSE_PAGE_SHARED_API void set_OutputStream (System::SharedPtr< System::IO::Stream > value) override
 Specifies or returns an output stream. More...
 
ASPOSE_PAGE_SHARED_API PdfDevice (System::SharedPtr< System::IO::Stream > ros)
 Initializes new instance of PdfDevice with output stream. More...
 
ASPOSE_PAGE_SHARED_API PdfDevice (System::SharedPtr< System::IO::Stream > ros, System::Drawing::Size size)
 Initializes new instance of PdfDevice with output stream and specified size of a page. More...
 
ASPOSE_PAGE_SHARED_API void ReNew () override
 Reset device to initial state for whole document. Used for reseting output stream. More...
 
ASPOSE_PAGE_SHARED_API void StartDocument () override
 Makes necessary preparation of device before start rendering of document. More...
 
ASPOSE_PAGE_SHARED_API void EndDocument () override
 Makes necessary preparation of device after the document has been rendered. More...
 
ASPOSE_PAGE_SHARED_API void Dispose () override
 Disposes the graphics context. If on creation restoreOnDispose was true, writeGraphicsRestore() will be called. More...
 
ASPOSE_PAGE_SHARED_API void Reset () override
 If page device parameters will be set this method allows to return writing stream back the begining of page. More...
 
ASPOSE_PAGE_SHARED_API void InitPageNumbers () override
 Initializes numbers of pages to output. More...
 
ASPOSE_PAGE_SHARED_API bool OpenPage (System::String title) override
 Makes necessary preparation of the device before page rendering. More...
 
ASPOSE_PAGE_SHARED_API bool OpenPage (float width, float height) override
 Makes necessary preparation of the device before each page rendering. More...
 
ASPOSE_PAGE_SHARED_API void ClosePage () override
 Makes necessary preparation of the device after page has been rendered. More...
 
ASPOSE_PAGE_SHARED_API void UpdatePageParameters (System::SharedPtr< IMultiPageDevice > device) override
 Updates page parameters from other multi-paged device. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::DeviceCreate () override
 Creates a copy of this device. More...
 
ASPOSE_PAGE_SHARED_API void InitClip () override
 Initializes clip of the device. More...
 
ASPOSE_PAGE_SHARED_API void Draw (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > s) override
 Draws a path. More...
 
ASPOSE_PAGE_SHARED_API void Fill (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > s) override
 Fills a path. More...
 
ASPOSE_PAGE_SHARED_API void DrawImage (System::SharedPtr< System::Drawing::Bitmap > image, System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, System::Drawing::Color bkg) override
 Draws an image with assigned transform and background. More...
 
ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y) override
 Draws a string at given point. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::MatrixGetTransform () override
 Gets current transform. More...
 
ASPOSE_PAGE_SHARED_API void SetTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform) 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). More...
 
ASPOSE_PAGE_SHARED_API void Transform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform) override
 Transforms the current transformation matrix. Calls writeTransform(Transform) More...
 
ASPOSE_PAGE_SHARED_API void Translate (double x, double y) override
 Translates the current transformation matrix. Calls writeTransform(Transform). More...
 
ASPOSE_PAGE_SHARED_API void Rotate (double theta) 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. More...
 
ASPOSE_PAGE_SHARED_API void Scale (double sx, double sy) override
 Scales the current transformation matrix. Calls writeTransform(Transform). More...
 
ASPOSE_PAGE_SHARED_API void Shear (double shx, double shy) override
 Shears the current transformation matrix. Calls writeTransform(Transform). More...
 
ASPOSE_PAGE_SHARED_API void SetClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clipPath) override
 Specifies the clip of the device. More...
 
ASPOSE_PAGE_SHARED_API void WriteComment (System::String comment) override
 Writes a comment. More...
 
ASPOSE_PAGE_SHARED_API System::String ToString () const override
 Returns the name of device type. More...
 
- Public Member Functions inherited from Aspose::Page::Device
virtual ASPOSE_PAGE_SHARED_API void set_SaveOptions (System::SharedPtr< Aspose::Page::SaveOptions > value)
 Options for managing rendering process. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object > > > get_Properties ()
 Device properties including metadata. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Properties (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> value)
 Device properties including metadata. More...
 
ASPOSE_PAGE_SHARED_API System::String get_Creator () const
 Returns or specifies creator of resulting device output. More...
 
ASPOSE_PAGE_SHARED_API void set_Creator (System::String value)
 Returns or specifies creator of resulting device output. More...
 
virtual ASPOSE_PAGE_SHARED_API System::Drawing::Size get_Size ()
 Returns or specifies a size of the page. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Size (System::Drawing::Size value)
 Returns or specifies a size of the page. More...
 
virtual ASPOSE_PAGE_SHARED_API bool get_IsDirectRGB ()
 Indicates whether device uses direct RGB mode, that is RGB. More...
 
virtual ASPOSE_PAGE_SHARED_API System::Drawing::Color get_Background ()
 Returns or specifies current background of the page. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Background (System::Drawing::Color value)
 Returns or specifies current background of the page. More...
 
virtual ASPOSE_PAGE_SHARED_API float get_Opacity ()
 Returns or specifies current opacity. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Opacity (float value)
 Returns or specifies current opacity. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Penget_Stroke ()
 Returns or specifies current stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Brushget_Paint ()
 Returns or specifies current paint. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Brushget_OpacityMask ()
 Returns or specifies current opacity mask. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_OpacityMask (System::SharedPtr< System::Drawing::Brush > value)
 Returns or specifies current opacity mask. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< BaseTrFontget_Font ()
 Returns or specifies current font. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::Matrixget_CharTM ()
 Returns or specifies current characters transform. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_CharTM (System::SharedPtr< System::Drawing::Drawing2D::Matrix > value)
 Returns or specifies current characters transform. More...
 
virtual ASPOSE_PAGE_SHARED_API Aspose::Page::TextRenderingMode get_TextRenderingMode ()
 Returns or specifies current text rendering mode. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_TextRenderingMode (Aspose::Page::TextRenderingMode value)
 Returns or specifies current text rendering mode. More...
 
virtual ASPOSE_PAGE_SHARED_API float get_TextStrokeWidth ()
 Returns or specifies current text stroke width. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_TextStrokeWidth (float value)
 Returns or specifies current text stroke width. More...
 
ASPOSE_PAGE_SHARED_API Device (System::Drawing::Size pageSize)
 Initializes Device with a size of a page. More...
 
ASPOSE_PAGE_SHARED_API System::String GetProperty (System::String key)
 Gets a value of string property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Color GetPropertyColor (System::String key)
 Gets a value of color property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::RectangleF GetPropertyRectangle (System::String key)
 Gets a value of rectangle property. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< MarginsGetPropertyMargins (System::String key)
 Gets a value of margin property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Size GetPropertySize (System::String key)
 Gets a value of size property. More...
 
ASPOSE_PAGE_SHARED_API int32_t GetPropertyInt (System::String key)
 Gets a value of integer property. More...
 
ASPOSE_PAGE_SHARED_API double GetPropertyDouble (System::String key)
 Gets a value of double property. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::MatrixGetPropertyMatrix (System::String key)
 Gets a value of matrix property. More...
 
ASPOSE_PAGE_SHARED_API bool IsProperty (System::String key)
 Gets a value of boolean property. More...
 
virtual ASPOSE_PAGE_SHARED_API void Rotate (double theta, double x, double y)
 Rotate the current transformation matrix around a point. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawArc (double x, double y, double width, double height, double startAngle, double arcAngle)
 Draws an arc. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawLine (double x1, double y1, double x2, double y2)
 Draws a line segment. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawOval (double x, double y, double width, double height)
 Draws an oval. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolyline (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Draws a polyline. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolyline (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Draws a polyline. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolygon (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Draws a polygon. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolygon (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Draws a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawRect (double x, double y, double width, double height)
 Draws a rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawRoundRect (double x, double y, double width, double height, double arcWidth, double arcHeight)
 Draws a round rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillArc (double x, double y, double width, double height, double startAngle, double arcAngle)
 Fills an arc. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillOval (double x, double y, double width, double height)
 Fills an oval. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillPolygon (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Fills a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillPolygon (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Fills a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillRect (double x, double y, double width, double height)
 Fills a rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillRoundRect (double x, double y, double width, double height, double arcWidth, double arcHeight)
 Fills a round rectangle. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Static Public Member Functions

static ASPOSE_PAGE_SHARED_API System::StringTRANSPARENT ()
 "Transparent" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringBACKGROUND ()
 "Background" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringBACKGROUND_COLOR ()
 "Background color" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringPAGE_MARGINS ()
 "Page margins" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringORIENTATION ()
 "Orientation" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringFIT_TO_PAGE ()
 "Fit content to page" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringEMBED_FONTS ()
 "Embed font in document" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringEMBED_FONTS_AS ()
 "What font type is used for embedding" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringCOMPRESS ()
 "Compress" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringWRITE_IMAGES_AS ()
 "Format of images" property key. More...
 
static ASPOSE_PAGE_SHARED_API System::StringAUTHOR ()
 "Author" property value. More...
 
static ASPOSE_PAGE_SHARED_API System::StringTITLE ()
 "Title" property value. More...
 
static ASPOSE_PAGE_SHARED_API System::StringSUBJECT ()
 "Subject" property value. More...
 
static ASPOSE_PAGE_SHARED_API System::StringKEYWORDS ()
 "Keywords" property value. More...
 
static ASPOSE_PAGE_SHARED_API System::StringEMIT_WARNINGS ()
 "Emit warnings" property value. More...
 
static ASPOSE_PAGE_SHARED_API System::StringEMIT_ERRORS ()
 "Emit errors" property value. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Static Public Attributes

static ASPOSE_PAGE_SHARED_API System::String VERSION
 "Version" property key. More...
 
static const ASPOSE_PAGE_SHARED_API System::String VERSION5
 "Version of Adobe Acrobat Reader" property value. More...
 
static ASPOSE_PAGE_SHARED_API System::String PAGE_SIZE_
 "Page size" property key. More...
 
- Static Public Attributes inherited from Aspose::Page::Device
static ASPOSE_PAGE_SHARED_API System::String VERSION
 Current device version. More...
 

Protected Member Functions

System::SharedPtr< System::Drawing::Brushget_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. More...
 
System::String get_WarningMessage ()
 
ASPOSE_PAGE_SHARED_API void ReNewForMerge (bool mainDocument) override
 Reset device to initial state for whole document while merging several documents. Used for reseting output stream. More...
 
ASPOSE_PAGE_SHARED_API PdfDevice (System::SharedPtr< PdfDevice > device, bool doRestoreOnDispose)
 Clone constructor. Initializes new instance of PdfDevice with existing device. More...
 
ASPOSE_PAGE_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (PdfDevice, CODEPORTING_ARGS(System::SharedPtr< PdfDevice > device, bool doRestoreOnDispose))
 
void WriteHeader ()
 Writes the catalog, docinfo, preferences, and (as we use only single page output the page tree. More...
 
ASPOSE_PAGE_SHARED_API void WriteBackground () override
 Writes out current background. More...
 
void WriteTrailer ()
 Writes out trailer of PDF document. More...
 
void CloseStream ()
 
ASPOSE_PAGE_SHARED_API void Reset (bool zeroPageNumbers) override
 
virtual ASPOSE_PAGE_SHARED_API void SavePageTransform ()
 
virtual ASPOSE_PAGE_SHARED_API void SetHeader (System::SharedPtr< Aspose::Page::EPS::Postscript::TrFont > font, System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString > left, System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString > center, System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString > right, int32_t underlineThickness)
 
virtual ASPOSE_PAGE_SHARED_API void SetFooter (System::SharedPtr< Aspose::Page::EPS::Postscript::TrFont > font, System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString > left, System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString > center, System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString > right, int32_t underlineThickness)
 
void SetSaveFromPatternCreate ()
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::DeviceCopy ()
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::DeviceCreate (float x, float y, float width, float height)
 
virtual ASPOSE_PAGE_SHARED_API void WriteGraphicsSave ()
 
virtual ASPOSE_PAGE_SHARED_API void WriteGraphicsRestore ()
 
void FillLastClip ()
 
ASPOSE_PAGE_SHARED_API void DrawBitmapGlyph (System::SharedPtr< System::Object > charSelector, System::String fontName, System::SharedPtr< System::Drawing::Bitmap > image, System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform) override
 
virtual ASPOSE_PAGE_SHARED_API void WriteTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > t)
 Write the given transformation matrix to the file. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteClip (System::Drawing::RectangleF r2d)
 
virtual ASPOSE_PAGE_SHARED_API void WriteClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > s)
 
virtual ASPOSE_PAGE_SHARED_API void ClipRect (float x, float y, float width, float height)
 Clips rectangle. Calls clip(Rectangle2D). More...
 
ASPOSE_PAGE_SHARED_API void WriteWidth (float width) override
 Writes out the width of the stroke. More...
 
ASPOSE_PAGE_SHARED_API void WriteCap (System::Drawing::Drawing2D::LineCap cap) override
 Writes out the cap of the stroke. More...
 
ASPOSE_PAGE_SHARED_API void WriteJoin (System::Drawing::Drawing2D::LineJoin join) override
 Writes out the join of the stroke. More...
 
ASPOSE_PAGE_SHARED_API void WriteMiterLimit (float limit) override
 Writes out the miter limit of the stroke. More...
 
ASPOSE_PAGE_SHARED_API void WriteDash (System::ArrayPtr< double > dash, double phase, System::Drawing::Drawing2D::DashCap dashCap, float width) override
 Writes out the dash of the stroke. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::SolidBrush > c) override
 Writes out paint as the given color. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush > c) override
 Writes out paint as the given gradient. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::TextureBrush > c) override
 Writes out paint as the given texture. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Brush > paint) override
 Writes out paint. More...
 
void WriteLastWrittenPaint ()
 Writes out last written paint. It is useful in cases when after writing paint graphics restore ("Q") was performed. More...
 
virtual ASPOSE_PAGE_SHARED_API void ResetClip (System::Drawing::Rectangle clip)
 
virtual ASPOSE_PAGE_SHARED_API void Clip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > s)
 Clips using given shape. Dispatches to writeClip(Rectangle), writeClip(RectangleF) or writeClip(Shape). More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteGraphicsState ()
 Called to write the initial graphics state. More...
 
ASPOSE_PAGE_SHARED_API void WriteWarning (System::String warning) override
 Writes out a warning, by default to System.err. More...
 
ASPOSE_PAGE_SHARED_API void WriteString (System::SharedPtr< BaseTrFont > font, System::String str) override
 Writes out string with specified font. More...
 
ASPOSE_PAGE_SHARED_API int64_t GetFinalWrittenLength () override
 
virtual ASPOSE_PAGE_SHARED_API ~PdfDevice ()
 
- Protected Member Functions inherited from Aspose::Page::Device
bool get_IsMainDocument () const
 
bool get_IsLicensed ()
 Indicates whether this instance of Aspose.Page library is licensed. More...
 
ASPOSE_PAGE_SHARED_API Device ()
 Initializes new instance of Device. More...
 
ASPOSE_PAGE_SHARED_API void InitGS ()
 
ASPOSE_PAGE_SHARED_API Device (System::SharedPtr< Device > device)
 Clone constructor. Initializes this device with existing device. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::SaveOptionsGetSaveOptions ()
 
ASPOSE_PAGE_SHARED_API void InitProperties (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> defaults)
 Initializes default properties of device with values. More...
 
void PrintProperties ()
 
virtual ASPOSE_PAGE_SHARED_API void ApplyGraphicState (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clip)
 
virtual ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y, double width, System::SharedPtr< Aspose::Rendering::ApsGlyphsIndices > indices, bool isRtl=false)
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::GraphicsPathCreateShape (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints, bool close)
 Creates a polyline/polygon shape from a set of points. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::GraphicsPathCreateShape (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints, bool close)
 Creates a polyline/polygon shape from a set of points. More...
 
virtual ASPOSE_PAGE_SHARED_API void ClearRect (float x, float y, float width, float height)
 Clears rectangle by painting it with the backgroundColor. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteStroke (System::SharedPtr< System::Drawing::Pen > stroke)
 Writes out the current stroke. If stroke is an instance of BasicStroke it will call writeWidth, writeCap, writeJoin, writeMiterLimit and writeDash, if any were different than the current stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API void HandleException (System::Exception exception)
 Handles an exception which has been caught. Dispatches exception to writeWarning for UnsupportedOperationExceptions and writeError for others More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteWarning (System::Exception warning)
 Writes out a warning, by default to System.err. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteError (System::Exception error)
 Writes out an error, by default the stack trace is printed. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::PathGradientBrush > paint)
 Writes out paint as the given gradient. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< EPS::GradientBrush > paint)
 Writes out paint as the given gradient. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::HatchBrush > paint)
 Writes out paint as the given hatch pattern. More...
 
virtual ASPOSE_PAGE_SHARED_API void SetVentureLicense (System::SharedPtr< LicenseManagement::VentureLicense > license)
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< LicenseManagement::VentureLicense > GetVentureLicense ()
 
virtual ASPOSE_PAGE_SHARED_API void SetPlugin (Plugins::Plugin plugin)
 

Protected Attributes

System::SharedPtr< System::Drawing::Drawing2D::MatrixcurrentTransform
 Current transform. More...
 
System::SharedPtr< System::Drawing::Drawing2D::MatrixeveryPageTransform
 Transform that must be set on each page before adding any element (for multi-page documents). Used when some transforms are set before starting any page. More...
 
- Protected Attributes inherited from Aspose::Page::Device
Plugins::Plugin _usedByPlugin
 
System::String creator
 Creator of resulting device output. More...
 
System::SharedPtr< Aspose::Page::SaveOptionssaveOptions
 Options for managing rendering process. More...
 
System::Drawing::Size size
 Size of the page. More...
 
float opacity
 Current opacity. More...
 
System::SharedPtr< System::Drawing::Penstroke
 Current stroke. More...
 
System::SharedPtr< System::Drawing::Brushpaint
 Current paint. More...
 
System::SharedPtr< System::Drawing::BrushopacityMask
 Current opacity mask. More...
 
System::SharedPtr< BaseTrFontfont
 Current font. More...
 
System::SharedPtr< System::Drawing::Drawing2D::MatrixcharTM
 Current character transform. More...
 
Aspose::Page::TextRenderingMode textRenderingMode
 Current text rendering mode. More...
 
float textStrokeWidth
 Current text stroke width. More...
 
bool mainDocument
 

Static Protected Attributes

static const ASPOSE_PAGE_SHARED_API System::String PDF_VERSION
 Device properties including metadata. More...
 
- Static Protected Attributes inherited from Aspose::Page::Device
static System::Drawing::Size DefaultSize
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Detailed Description

This class encapsulates rendering of document to PDF.

Constructor & Destructor Documentation

◆ PdfDevice() [1/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::Device::PdfDevice::PdfDevice ( System::SharedPtr< System::IO::Stream ros)

Initializes new instance of PdfDevice with output stream.

Parameters
rosOutput stream.

◆ PdfDevice() [2/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::Device::PdfDevice::PdfDevice ( System::SharedPtr< System::IO::Stream ros,
System::Drawing::Size  size 
)

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

Parameters
rosOutput stream.

///

Parameters
sizePage size.

◆ PdfDevice() [3/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::Device::PdfDevice::PdfDevice ( System::SharedPtr< PdfDevice device,
bool  doRestoreOnDispose 
)
protected

Clone constructor. Initializes new instance of PdfDevice with existing device.

Parameters
deviceExisting device.
doRestoreOnDisposeUse true if need to write restoring graphics state on disposing.

◆ ~PdfDevice()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::Device::PdfDevice::~PdfDevice ( )
protectedvirtual

Member Function Documentation

◆ AUTHOR()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::AUTHOR ( )
static

"Author" property value.

◆ BACKGROUND()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::BACKGROUND ( )
static

"Background" property key.

◆ BACKGROUND_COLOR()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::BACKGROUND_COLOR ( )
static

"Background color" property key.

◆ Clip()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Clip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath s)
protectedvirtual

Clips using given shape. Dispatches to writeClip(Rectangle), writeClip(RectangleF) or writeClip(Shape).

Parameters
shapeused for clipping

◆ ClipRect()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::ClipRect ( float  x,
float  y,
float  width,
float  height 
)
protectedvirtual

Clips rectangle. Calls clip(Rectangle2D).

Parameters
x, y, width, height rectangle for clipping

◆ ClosePage()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::ClosePage ( )
overridevirtual

Makes necessary preparation of the device after page has been rendered.

Implements Aspose::Page::IMultiPageDevice.

◆ CloseStream()

void Aspose::Page::EPS::Device::PdfDevice::CloseStream ( )
protected

◆ COMPRESS()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::COMPRESS ( )
static

"Compress" property key.

◆ Copy()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::Device> Aspose::Page::EPS::Device::PdfDevice::Copy ( )
protectedvirtual

◆ Create() [1/2]

ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::Device> Aspose::Page::EPS::Device::PdfDevice::Create ( )
overridevirtual

Creates a copy of this device.

Returns
Copy of this device.

Reimplemented from Aspose::Page::Device.

◆ Create() [2/2]

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::Device> Aspose::Page::EPS::Device::PdfDevice::Create ( float  x,
float  y,
float  width,
float  height 
)
protectedvirtual

◆ Dispose()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Dispose ( )
overridevirtual

Disposes the graphics context. If on creation restoreOnDispose was true, writeGraphicsRestore() will be called.

Reimplemented from Aspose::Page::Device.

◆ Draw()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Draw ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath s)
overridevirtual

Draws a path.

Parameters
sA path to be drawn.

Reimplemented from Aspose::Page::Device.

◆ DrawBitmapGlyph()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::DrawBitmapGlyph ( System::SharedPtr< System::Object charSelector,
System::String  fontName,
System::SharedPtr< System::Drawing::Bitmap image,
System::SharedPtr< System::Drawing::Drawing2D::Matrix transform 
)
overrideprotectedvirtual

Reimplemented from Aspose::Page::Device.

◆ DrawImage()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::DrawImage ( System::SharedPtr< System::Drawing::Bitmap image,
System::SharedPtr< System::Drawing::Drawing2D::Matrix transform,
System::Drawing::Color  bkg 
)
overridevirtual

Draws an image with assigned transform and background.

Parameters
imageAn image to be drawn.
transformA transform.
bkgA background color.

Reimplemented from Aspose::Page::Device.

◆ DrawString()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::DrawString ( System::String  str,
double  x,
double  y 
)
overridevirtual

Draws a string at given point.

Parameters
strA string to be drawn.
xX coordinate of point.
yY coordinate of point.

Reimplemented from Aspose::Page::Device.

◆ EMBED_FONTS()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::EMBED_FONTS ( )
static

"Embed font in document" property key.

◆ EMBED_FONTS_AS()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::EMBED_FONTS_AS ( )
static

"What font type is used for embedding" property key.

◆ EMIT_ERRORS()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::EMIT_ERRORS ( )
static

"Emit errors" property value.

◆ EMIT_WARNINGS()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::EMIT_WARNINGS ( )
static

"Emit warnings" property value.

◆ EndDocument()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::EndDocument ( )
overridevirtual

Makes necessary preparation of device after the document has been rendered.

Reimplemented from Aspose::Page::Device.

◆ Fill()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Fill ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath s)
overridevirtual

Fills a path.

Parameters
sA path to be filled.

Reimplemented from Aspose::Page::Device.

◆ FillLastClip()

void Aspose::Page::EPS::Device::PdfDevice::FillLastClip ( )
protected

◆ FIT_TO_PAGE()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::FIT_TO_PAGE ( )
static

"Fit content to page" property key.

◆ get_CurrentPageNumber()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::EPS::Device::PdfDevice::get_CurrentPageNumber ( )
overridevirtual

Current page number.

Implements Aspose::Page::IMultiPageDevice.

◆ get_LastWrittenPaint()

System::SharedPtr<System::Drawing::Brush> Aspose::Page::EPS::Device::PdfDevice::get_LastWrittenPaint ( ) const
protected

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()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::IO::Stream> Aspose::Page::EPS::Device::PdfDevice::get_OutputStream ( )
overridevirtual

Specifies or returns an output stream.

Implements Aspose::Page::IStreamable.

◆ get_WarningMessage()

System::String Aspose::Page::EPS::Device::PdfDevice::get_WarningMessage ( )
protected

◆ GetFinalWrittenLength()

ASPOSE_PAGE_SHARED_API int64_t Aspose::Page::EPS::Device::PdfDevice::GetFinalWrittenLength ( )
overrideprotectedvirtual

Reimplemented from Aspose::Page::Device.

◆ GetTransform()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Drawing2D::Matrix> Aspose::Page::EPS::Device::PdfDevice::GetTransform ( )
overridevirtual

Gets current transform.

Returns
Current transform

Reimplemented from Aspose::Page::Device.

◆ InitClip()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::InitClip ( )
overridevirtual

Initializes clip of the device.

Reimplemented from Aspose::Page::Device.

◆ InitPageNumbers()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::InitPageNumbers ( )
overridevirtual

Initializes numbers of pages to output.

Implements Aspose::Page::IMultiPageDevice.

◆ KEYWORDS()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::KEYWORDS ( )
static

"Keywords" property value.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::Device::PdfDevice::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( PdfDevice  ,
CODEPORTING_ARGS(System::SharedPtr< PdfDevice > device, bool doRestoreOnDispose)   
)
protected

◆ OpenPage() [1/2]

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::Device::PdfDevice::OpenPage ( System::String  title)
overridevirtual

Makes necessary preparation of the device before page rendering.

Parameters
titleThe page title.
Returns
Always true.

Implements Aspose::Page::IMultiPageDevice.

◆ OpenPage() [2/2]

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::Device::PdfDevice::OpenPage ( float  width,
float  height 
)
overridevirtual

Makes necessary preparation of the device before each page rendering.

Parameters
widthA width of the page.
heightA height of the page.
Returns
Always true.

Implements Aspose::Page::IMultiPageDevice.

◆ ORIENTATION()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::ORIENTATION ( )
static

"Orientation" property key.

◆ PAGE_MARGINS()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::PAGE_MARGINS ( )
static

"Page margins" property key.

◆ ReNew()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::ReNew ( )
overridevirtual

Reset device to initial state for whole document. Used for reseting output stream.

Reimplemented from Aspose::Page::Device.

◆ ReNewForMerge()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::ReNewForMerge ( bool  mainDocument)
overrideprotectedvirtual

Reset device to initial state for whole document while merging several documents. Used for reseting output stream.

Reimplemented from Aspose::Page::Device.

◆ Reset() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Reset ( )
overridevirtual

If page device parameters will be set this method allows to return writing stream back the begining of page.

Reimplemented from Aspose::Page::Device.

◆ Reset() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Reset ( bool  zeroPageNumbers)
overrideprotectedvirtual

Reimplemented from Aspose::Page::Device.

◆ ResetClip()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::ResetClip ( System::Drawing::Rectangle  clip)
protectedvirtual

◆ Rotate()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Rotate ( double  theta)
overridevirtual

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.

Parameters
thetaradians over which to rotate

Reimplemented from Aspose::Page::Device.

◆ SavePageTransform()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::SavePageTransform ( )
protectedvirtual

◆ Scale()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Scale ( double  sx,
double  sy 
)
overridevirtual

Scales the current transformation matrix. Calls writeTransform(Transform).

Parameters
sxA scale in X axis.
syA scale in Y axis.

Reimplemented from Aspose::Page::Device.

◆ set_Font()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::set_Font ( System::SharedPtr< BaseTrFont value)
overridevirtual

Specifies current font.

Reimplemented from Aspose::Page::Device.

◆ set_OutputStream()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::set_OutputStream ( System::SharedPtr< System::IO::Stream value)
overridevirtual

Specifies or returns an output stream.

Implements Aspose::Page::IStreamable.

◆ set_Paint()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::set_Paint ( System::SharedPtr< System::Drawing::Brush value)
overridevirtual

Returns or specifies current paint.

Reimplemented from Aspose::Page::Device.

◆ set_Stroke()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::set_Stroke ( System::SharedPtr< System::Drawing::Pen value)
overridevirtual

Returns or specifies current stroke.

Reimplemented from Aspose::Page::Device.

◆ SetClip()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::SetClip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath clipPath)
overridevirtual

Specifies the clip of the device.

Parameters
clipPathA clipping path.

Reimplemented from Aspose::Page::Device.

◆ SetFooter()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::SetFooter ( System::SharedPtr< Aspose::Page::EPS::Postscript::TrFont >  font,
System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString >  left,
System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString >  center,
System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString >  right,
int32_t  underlineThickness 
)
protectedvirtual

◆ SetHeader()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::SetHeader ( System::SharedPtr< Aspose::Page::EPS::Postscript::TrFont >  font,
System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString >  left,
System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString >  center,
System::SharedPtr< Aspose::Page::EPS::Graphics2d::TagString >  right,
int32_t  underlineThickness 
)
protectedvirtual

◆ SetSaveFromPatternCreate()

void Aspose::Page::EPS::Device::PdfDevice::SetSaveFromPatternCreate ( )
protected

◆ SetTransform()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::SetTransform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform)
overridevirtual

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).

Parameters
transformTransform to be applied.

Reimplemented from Aspose::Page::Device.

◆ Shear()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Shear ( double  shx,
double  shy 
)
overridevirtual

Shears the current transformation matrix. Calls writeTransform(Transform).

Parameters
shxA shear in X axis.
shyA shear in Y axis.

Reimplemented from Aspose::Page::Device.

◆ StartDocument()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::StartDocument ( )
overridevirtual

Makes necessary preparation of device before start rendering of document.

Reimplemented from Aspose::Page::Device.

◆ SUBJECT()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::SUBJECT ( )
static

"Subject" property value.

◆ TITLE()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::TITLE ( )
static

"Title" property value.

◆ ToString()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::Device::PdfDevice::ToString ( ) const
overridevirtual

Returns the name of device type.

Returns
Type name.

Reimplemented from Aspose::Page::Device.

◆ Transform()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Transform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform)
overridevirtual

Transforms the current transformation matrix. Calls writeTransform(Transform)

Parameters
transformTransform to be applied.

Reimplemented from Aspose::Page::Device.

◆ Translate()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::Translate ( double  x,
double  y 
)
overridevirtual

Translates the current transformation matrix. Calls writeTransform(Transform).

Parameters
xTranslation in X axis.
yTranslation in Y axis.

Reimplemented from Aspose::Page::Device.

◆ TRANSPARENT()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::TRANSPARENT ( )
static

"Transparent" property key.

◆ UpdatePageParameters()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::UpdatePageParameters ( System::SharedPtr< IMultiPageDevice device)
overridevirtual

Updates page parameters from other multi-paged device.

Parameters
deviceAnother instance of the same device.

Implements Aspose::Page::IMultiPageDevice.

◆ WRITE_IMAGES_AS()

static ASPOSE_PAGE_SHARED_API System::String& Aspose::Page::EPS::Device::PdfDevice::WRITE_IMAGES_AS ( )
static

"Format of images" property key.

◆ WriteBackground()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteBackground ( )
overrideprotectedvirtual

Writes out current background.

Reimplemented from Aspose::Page::Device.

◆ WriteCap()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteCap ( System::Drawing::Drawing2D::LineCap  cap)
overrideprotectedvirtual

Writes out the cap of the stroke.

Parameters
capLine cap of the stroke.

Reimplemented from Aspose::Page::Device.

◆ WriteClip() [1/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteClip ( System::Drawing::RectangleF  r2d)
protectedvirtual

◆ WriteClip() [2/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteClip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath s)
protectedvirtual

◆ WriteComment()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteComment ( System::String  comment)
overridevirtual

Writes a comment.

Parameters
commentA comment to be written.

Reimplemented from Aspose::Page::Device.

◆ WriteDash()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteDash ( System::ArrayPtr< double >  dash,
double  phase,
System::Drawing::Drawing2D::DashCap  dashCap,
float  width 
)
overrideprotectedvirtual

Writes out the dash of the stroke.

Parameters
dashThe dash pattern or an empty array if line is solid.
phaseThe phase of the dash pattern.
dashCapThe dash cap of the dash pattern.

Reimplemented from Aspose::Page::Device.

◆ WriteGraphicsRestore()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteGraphicsRestore ( )
protectedvirtual

◆ WriteGraphicsSave()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteGraphicsSave ( )
protectedvirtual

◆ WriteGraphicsState()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteGraphicsState ( )
protectedvirtual

Called to write the initial graphics state.

◆ WriteHeader()

void Aspose::Page::EPS::Device::PdfDevice::WriteHeader ( )
protected

Writes the catalog, docinfo, preferences, and (as we use only single page output the page tree.

◆ WriteJoin()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteJoin ( System::Drawing::Drawing2D::LineJoin  join)
overrideprotectedvirtual

Writes out the join of the stroke.

Parameters
joinLine join of the stroke.

Reimplemented from Aspose::Page::Device.

◆ WriteLastWrittenPaint()

void Aspose::Page::EPS::Device::PdfDevice::WriteLastWrittenPaint ( )
protected

Writes out last written paint. It is useful in cases when after writing paint graphics restore ("Q") was performed.

Parameters
paintThe paint to be written.

◆ WriteMiterLimit()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteMiterLimit ( float  limit)
overrideprotectedvirtual

Writes out the miter limit of the stroke.

Parameters
limitMiter limit of the stroke.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [1/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WritePaint ( System::SharedPtr< System::Drawing::SolidBrush c)
overrideprotectedvirtual

Writes out paint as the given color.

Parameters
cThe color to be written.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [2/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WritePaint ( System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush c)
overrideprotectedvirtual

Writes out paint as the given gradient.

Parameters
cThe paint to be written

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [3/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WritePaint ( System::SharedPtr< System::Drawing::TextureBrush c)
overrideprotectedvirtual

Writes out paint as the given texture.

Parameters
cThe paint to be written

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [4/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WritePaint ( System::SharedPtr< System::Drawing::Brush paint)
overrideprotectedvirtual

Writes out paint.

Parameters
paintThe paint to be written.

Reimplemented from Aspose::Page::Device.

◆ WriteString()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteString ( System::SharedPtr< BaseTrFont font,
System::String  str 
)
overrideprotectedvirtual

Writes out string with specified font.

Parameters
fontSpecified font.
strThe string.

Reimplemented from Aspose::Page::Device.

◆ WriteTrailer()

void Aspose::Page::EPS::Device::PdfDevice::WriteTrailer ( )
protected

Writes out trailer of PDF document.

◆ WriteTransform()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteTransform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix t)
protectedvirtual

Write the given transformation matrix to the file.

◆ WriteWarning()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteWarning ( System::String  warning)
overrideprotectedvirtual

Writes out a warning, by default to System.err.

Parameters
warningThe warning to be written.

Reimplemented from Aspose::Page::Device.

◆ WriteWidth()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::Device::PdfDevice::WriteWidth ( float  width)
overrideprotectedvirtual

Writes out the width of the stroke.

Parameters
widthThe width of the stroke

Reimplemented from Aspose::Page::Device.

Member Data Documentation

◆ currentTransform

System::SharedPtr<System::Drawing::Drawing2D::Matrix> Aspose::Page::EPS::Device::PdfDevice::currentTransform
protected

Current transform.

◆ everyPageTransform

System::SharedPtr<System::Drawing::Drawing2D::Matrix> Aspose::Page::EPS::Device::PdfDevice::everyPageTransform
protected

Transform that must be set on each page before adding any element (for multi-page documents). Used when some transforms are set before starting any page.

◆ PAGE_SIZE_

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::Device::PdfDevice::PAGE_SIZE_
static

"Page size" property key.

◆ PDF_VERSION

const ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::Device::PdfDevice::PDF_VERSION
staticprotected

Device properties including metadata.

"PDF version" property value.

◆ VERSION

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::Device::PdfDevice::VERSION
static

"Version" property key.

◆ VERSION5

const ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::Device::PdfDevice::VERSION5
static

"Version of Adobe Acrobat Reader" property value.