|
| PdfPainterMM () |
|
void | SetStrokeWidthMM (long lWidth) |
|
void | DrawLineMM (long lStartX, long lStartY, long lEndX, long lEndY) |
|
void | RectangleMM (long lX, long lY, long lWidth, long lHeight) |
|
void | EllipseMM (long lX, long lY, long lWidth, long lHeight) |
|
void | DrawTextMM (long lX, long lY, const PdfString &sText) |
|
void | DrawTextMM (long lX, long lY, const PdfString &sText, long lLen) |
|
void | DrawImageMM (long lX, long lY, PdfImage *pObject, double dScaleX=1.0, double dScaleY=1.0) |
|
void | DrawXObjectMM (long lX, long lY, PdfXObject *pObject, double dScaleX=1.0, double dScaleY=1.0) |
|
void | LineToMM (long lX, long lY) |
|
void | MoveToMM (long lX, long lY) |
|
| PdfPainter () |
|
void | SetPage (PdfCanvas *pPage) |
|
PdfCanvas * | GetPage () const |
|
PdfStream * | GetCanvas () const |
|
void | FinishPage () |
|
void | SetStrokingGray (double g) |
|
void | SetGray (double g) |
|
void | SetStrokingColor (double r, double g, double b) |
|
void | SetColor (double r, double g, double b) |
|
void | SetStrokingColorCMYK (double c, double m, double y, double k) |
|
void | SetColorCMYK (double c, double m, double y, double k) |
|
void | SetStrokingShadingPattern (const PdfShadingPattern &rPattern) |
|
void | SetShadingPattern (const PdfShadingPattern &rPattern) |
|
void | SetStrokingTilingPattern (const PdfTilingPattern &rPattern) |
|
void | SetStrokingTilingPattern (const std::string &rPatternName) |
|
void | SetTilingPattern (const PdfTilingPattern &rPattern) |
|
void | SetTilingPattern (const std::string &rPatternName) |
|
void | SetStrokingColor (const PdfColor &rColor) |
|
void | SetColor (const PdfColor &rColor) |
|
void | SetStrokeWidth (double dWidth) |
|
void | SetStrokeStyle (EPdfStrokeStyle eStyle, const char *pszCustom=NULL, bool inverted=false, double scale=1.0, bool subtractJoinCap=false) |
|
void | SetLineCapStyle (EPdfLineCapStyle eCapStyle) |
|
void | SetLineJoinStyle (EPdfLineJoinStyle eJoinStyle) |
|
void | SetFont (PdfFont *pFont) |
|
void | SetTextRenderingMode (EPdfTextRenderingMode mode) |
|
EPdfTextRenderingMode | GetTextRenderingMode (void) const |
|
PdfFont * | GetFont () const |
|
void | SetClipRect (double dX, double dY, double dWidth, double dHeight) |
|
void | SetClipRect (const PdfRect &rRect) |
|
void | SetMiterLimit (double value) |
|
void | DrawLine (double dStartX, double dStartY, double dEndX, double dEndY) |
|
void | Rectangle (double dX, double dY, double dWidth, double dHeight, double dRoundX=0.0, double dRoundY=0.0) |
|
void | Rectangle (const PdfRect &rRect, double dRoundX=0.0, double dRoundY=0.0) |
|
void | Ellipse (double dX, double dY, double dWidth, double dHeight) |
|
void | Circle (double dX, double dY, double dRadius) |
|
void | DrawText (double dX, double dY, const PdfString &sText) |
|
void | DrawText (double dX, double dY, const PdfString &sText, long lLen) |
|
void | DrawMultiLineText (double dX, double dY, double dWidth, double dHeight, const PdfString &rsText, EPdfAlignment eAlignment=ePdfAlignment_Left, EPdfVerticalAlignment eVertical=ePdfVerticalAlignment_Top, bool bClip=true, bool bSkipSpaces=true) |
|
void | DrawMultiLineText (const PdfRect &rRect, const PdfString &rsText, EPdfAlignment eAlignment=ePdfAlignment_Left, EPdfVerticalAlignment eVertical=ePdfVerticalAlignment_Top, bool bClip=true, bool bSkipSpaces=true) |
|
std::vector< PdfString > | GetMultiLineTextAsLines (double dWidth, const PdfString &rsText, bool bSkipSpaces=true) |
|
void | DrawTextAligned (double dX, double dY, double dWidth, const PdfString &rsText, EPdfAlignment eAlignment) |
|
void | BeginText (double dX, double dY) |
|
void | AddText (const PdfString &sText) |
|
void | AddText (const PdfString &sText, pdf_long lStringLen) |
|
void | MoveTextPos (double dX, double dY) |
|
void | EndText () |
|
void | DrawGlyph (PdfMemDocument *pDocument, double dX, double dY, const char *pszGlyphname) |
|
void | DrawImage (double dX, double dY, PdfImage *pObject, double dScaleX=1.0, double dScaleY=1.0) |
|
void | DrawXObject (double dX, double dY, PdfXObject *pObject, double dScaleX=1.0, double dScaleY=1.0) |
|
void | ClosePath () |
|
void | LineTo (double dX, double dY) |
|
void | MoveTo (double dX, double dY) |
|
void | CubicBezierTo (double dX1, double dY1, double dX2, double dY2, double dX3, double dY3) |
|
void | HorizontalLineTo (double dX) |
|
void | VerticalLineTo (double dY) |
|
void | SmoothCurveTo (double dX2, double dY2, double dX3, double dY3) |
|
void | QuadCurveTo (double dX1, double dY1, double dX3, double dY3) |
|
void | SmoothQuadCurveTo (double dX3, double dY3) |
|
void | ArcTo (double dX, double dY, double dRadiusX, double dRadiusY, double dRotation, bool bLarge, bool bSweep) |
|
void | Close () |
|
void | Stroke () |
|
void | Fill (bool useEvenOddRule=false) |
|
void | FillAndStroke (bool useEvenOddRule=false) |
|
void | Clip (bool useEvenOddRule=false) |
|
void | EndPath (void) |
|
void | Save () |
|
void | Restore () |
|
void | SetTransformationMatrix (double a, double b, double c, double d, double e, double f) |
|
void | SetExtGState (PdfExtGState *inGState) |
|
void | SetRenderingIntent (char *intent) |
|
void | SetTabWidth (unsigned short nTabWidth) |
|
unsigned short | GetTabWidth () const |
|
void | SetPrecision (unsigned short inPrec) |
|
unsigned short | GetPrecision () const |
|
std::ostringstream & | GetCurrentPath (void) |
|
void | SetDependICCProfileColor (const PdfColor &rColor, const std::string &pCSTag) |
|
This class provides an easy to use painter object which allows you to draw on a PDF page object.
During all drawing operations, you are still able to access the stream of the object you are drawing on directly.
This painter takes all coordinates in 1/1000th mm instead of PDF units.
Developer note: we use ownership rather than inheritance here, so as to use the same methods names a PdfPainter AND avoid compiler confusion on picking the right one.
- See also
- PdfPainter