#include <pdfdoc.h>
Public Member Functions | |
wxPdfDocument (int orientation=wxPORTRAIT, const wxString &unit=wxString(_T("mm")), wxPaperSize format=wxPAPER_A4) | |
Constructor. | |
virtual | ~wxPdfDocument () |
virtual void | SetProtection (int permissions, const wxString &userPassword=wxEmptyString, const wxString &ownerPassword=wxEmptyString, wxPdfEncryptionMethod encryptionMethod=wxPDF_ENCRYPTION_RC4V1, int keyLength=0) |
Set permissions as well as user and owner passwords. | |
virtual void | SetImageScale (double scale) |
Set the image scale. | |
virtual double | GetImageScale () |
Returns the image scale. | |
virtual double | GetPageWidth () |
Returns the page width in units. | |
virtual double | GetPageHeight () |
Returns the page height in units. | |
virtual double | GetBreakMargin () |
Returns the page break margin. | |
virtual double | GetScaleFactor () |
Returns the scale factor (number of points in user unit). | |
virtual void | SetMargins (double left, double top, double right=-1) |
Defines the left, top and right margins. | |
virtual void | SetLeftMargin (double margin) |
Defines the left margin. | |
virtual double | GetLeftMargin () |
Returns the left margin. | |
virtual void | SetTopMargin (double margin) |
Defines the top margin. | |
virtual double | GetTopMargin () |
Returns the top margin. | |
virtual void | SetRightMargin (double margin) |
Defines the right margin. | |
virtual double | GetRightMargin () |
Returns the right margin. | |
virtual void | SetCellMargin (double margin) |
Defines the cell margin. | |
virtual double | GetCellMargin () |
Returns the cell margin. | |
virtual void | SetLineHeight (double height) |
Sets the height of a text line. | |
virtual double | GetLineHeight () |
Returns the height of a text line. | |
virtual void | SetAutoPageBreak (bool autoPageBreak, double margin=0) |
Enables or disables the automatic page breaking mode. | |
virtual void | SetDisplayMode (wxPdfZoom zoom, wxPdfLayout layout=wxPDF_LAYOUT_CONTINUOUS, double zoomFactor=100.) |
Defines the way the document is to be displayed by the viewer. | |
virtual void | SetCompression (bool compress) |
Activates or deactivates page compression. | |
virtual void | SetViewerPreferences (int preferences=0) |
Defines the viewer preferences. | |
virtual void | SetTitle (const wxString &title) |
Defines the title of the document. | |
virtual void | SetSubject (const wxString &subject) |
Defines the subject of the document. | |
virtual void | SetAuthor (const wxString &author) |
Defines the author of the document. | |
virtual void | SetKeywords (const wxString &keywords) |
Associates keywords with the document,. | |
virtual void | SetCreator (const wxString &creator) |
Defines the creator of the document. | |
virtual void | AliasNbPages (const wxString &alias=wxString(_T("{nb}"))) |
Defines an alias for the total number of pages. | |
virtual void | Open () |
This method begins the generation of the PDF document. | |
virtual void | Close () |
Terminates the PDF document. | |
virtual void | AddPage (int orientation=-1) |
Adds a new page to the document. | |
virtual void | Header () |
This method is used to render the page header. | |
virtual void | Footer () |
This method is used to render the page footer. | |
virtual bool | IsInFooter () |
Returns whether footer output is in progress. | |
virtual int | PageNo () |
Returns the current page number. | |
virtual void | AddSpotColor (const wxString &name, double cyan, double magenta, double yellow, double black) |
Add spot color. | |
virtual void | SetDrawColor (const unsigned char grayscale) |
Defines the color used for all drawing operations. | |
virtual void | SetDrawColor (const wxColour &color) |
Defines the color used for all drawing operations. | |
virtual void | SetDrawColor (const wxPdfColour &color) |
Defines the color used for all drawing operations. | |
virtual void | SetDrawColor (const unsigned char red, const unsigned char green, const unsigned char blue) |
Defines the color used for all drawing operations. | |
virtual void | SetDrawColor (double cyan, double magenta, double yellow, double black) |
Defines the color used for all drawing operations. | |
virtual void | SetDrawColor (const wxString &name, double tint=100) |
Defines the spot color used for all drawing operations. | |
virtual const wxPdfColour | GetDrawColor () |
Gets the color used for all drawing operations. | |
virtual void | SetFillColor (const unsigned char grayscale) |
Defines the color used for all filling operations. | |
virtual void | SetFillColor (const wxColour &color) |
Defines the color used for all filling operations. | |
virtual void | SetFillColor (const wxPdfColour &color) |
Defines the color used for all filling operations. | |
virtual void | SetFillColor (const unsigned char red, const unsigned char green, const unsigned char blue) |
Defines the color used for all filling operations. | |
virtual void | SetFillColor (double cyan, double magenta, double yellow, double black) |
Defines the color used for all filling operations. | |
virtual void | SetFillColor (const wxString &name, double tint=100) |
Defines the spot color used for all filling operations. | |
virtual const wxPdfColour | GetFillColor () |
Gets the color used for all filling operations. | |
virtual void | SetTextColor (const unsigned char grayscale) |
Defines the color used for text. | |
virtual void | SetTextColor (const wxColour &color) |
Defines the color used for text. | |
virtual void | SetTextColor (const wxPdfColour &color) |
Defines the color used for text. | |
virtual void | SetTextColor (const unsigned char red, const unsigned char green, const unsigned char blue) |
Defines the color used for text. | |
virtual void | SetTextColor (double cyan, double magenta, double yellow, double black) |
Defines the color used for text. | |
virtual void | SetTextColor (const wxString &name, double tint=100) |
Defines the spot color used for text. | |
virtual const wxPdfColour | GetTextColor () |
Gets the color used for text output. | |
virtual double | GetStringWidth (const wxString &s) |
Returns the length of a string in user unit. | |
virtual void | SetLineWidth (double width) |
Defines the line width. | |
virtual double | GetLineWidth () |
Gets the current line width. | |
virtual void | SetLineStyle (const wxPdfLineStyle &linestyle) |
Sets line style. | |
virtual const wxPdfLineStyle & | GetLineStyle () |
Get current line style. | |
virtual void | Line (double x1, double y1, double x2, double y2) |
Draws a line between two points. | |
virtual void | Arrow (double x1, double y1, double x2, double y2, double linewidth, double height, double width) |
Draws an arrow line between two points. | |
virtual void | Rect (double x, double y, double w, double h, int style=wxPDF_STYLE_DRAW) |
Outputs a rectangle. | |
virtual void | RoundedRect (double x, double y, double w, double h, double r, int roundCorner=wxPDF_CORNER_ALL, int style=wxPDF_STYLE_DRAW) |
Draws a rounded rectangle. | |
virtual void | Curve (double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, int style=wxPDF_STYLE_DRAW) |
Draws a Bezier curve. | |
virtual void | Ellipse (double x0, double y0, double rx, double ry=0, double angle=0, double astart=0, double afinish=360, int style=wxPDF_STYLE_DRAW, int nSeg=8) |
Draws an ellipse. | |
virtual void | Circle (double x0, double y0, double r, double astart=0, double afinish=360, int style=wxPDF_STYLE_DRAW, int nSeg=8) |
Draws a circle. | |
virtual void | Sector (double x0, double y0, double r, double astart, double afinish, int style=wxPDF_STYLE_FILLDRAW, bool clockwise=true, double origin=90.) |
Draws a sector. | |
virtual void | Polygon (const wxPdfArrayDouble &x, const wxPdfArrayDouble &y, int style=wxPDF_STYLE_DRAW) |
Draws a polygon. | |
virtual void | RegularPolygon (double x0, double y0, double r, int ns, double angle=0, bool circle=false, int style=wxPDF_STYLE_DRAW, int circleStyle=wxPDF_STYLE_DRAW, const wxPdfLineStyle &circleLineStyle=wxPdfLineStyle(), const wxPdfColour &circleFillColor=wxPdfColour()) |
Draws a regular polygon. | |
virtual void | StarPolygon (double x0, double y0, double r, int nv, int ng, double angle=0, bool circle=false, int style=wxPDF_STYLE_DRAW, int circleStyle=wxPDF_STYLE_DRAW, const wxPdfLineStyle &circleLineStyle=wxPdfLineStyle(), const wxPdfColour &circleFillColor=wxPdfColour()) |
Draws a star polygon. | |
virtual void | Shape (const wxPdfShape &shape, int style=wxPDF_STYLE_DRAW) |
Draws a shape. | |
virtual void | Rotate (double angle, double x=-1, double y=-1) |
Performs a rotation around a given center. | |
virtual void | SetFontPath (const wxString &fontPath=wxEmptyString) |
Sets the default path for font definition files. | |
virtual wxString | GetFontPath () const |
Returns the current default path for font definition files. | |
virtual void | SetFontSubsetting (bool fontSubsetting=true) |
Sets the font embedding mode. | |
virtual bool | GetFontSubsetting () const |
Returns the font embedding mode. | |
virtual bool | AddFont (const wxString &family, const wxString &style=wxEmptyString, const wxString &file=wxEmptyString) |
Imports a TrueType, TrueTypeUnicode or Type1 font and makes it available. | |
virtual bool | AddFontCJK (const wxString &family) |
Imports a CJK (Chinese, Japanese or Korean) font and makes it available. | |
virtual bool | SetFont (const wxString &family, const wxString &style=wxEmptyString, double size=0) |
Sets the font used to print character strings. | |
virtual void | SetFontSize (double size) |
Defines the size of the current font. | |
virtual const wxPdfFontDescription & | GetFontDescription () const |
Returns the current font description instance. | |
virtual const wxString | GetFontFamily () |
Gets the font family of the current font. | |
virtual const wxString | GetFontStyle () |
Gets the style of the current font. | |
virtual double | GetFontSize () |
Gets the size of the current font. | |
virtual int | AddLink () |
Creates a new internal link and returns its identifier. | |
virtual bool | SetLink (int link, double y=0., int page=-1) |
Defines the page and position a link points to. | |
virtual void | Link (double x, double y, double w, double h, const wxPdfLink &link) |
Puts a link on a rectangular area of the page. | |
virtual void | Bookmark (const wxString &txt, int level=0, double y=0) |
Adds a bookmark to the document outline. | |
virtual void | Text (double x, double y, const wxString &txt) |
Prints a character string. | |
virtual void | RotatedText (double x, double y, const wxString &txt, double angle) |
Prints a rotated text string. | |
virtual bool | AcceptPageBreak () |
Whenever a page break condition is met,. | |
virtual void | Cell (double w, double h=0., const wxString &txt=wxEmptyString, int border=wxPDF_BORDER_NONE, int ln=0, int align=wxPDF_ALIGN_LEFT, int fill=0, const wxPdfLink &link=wxPdfLink(-1)) |
Prints a cell (rectangular area) with optional borders, background color and character string. | |
virtual int | MultiCell (double w, double h, const wxString &txt, int border=0, int align=wxPDF_ALIGN_JUSTIFY, int fill=0, int maxline=0) |
This method allows printing text with line breaks. | |
virtual int | LineCount (double w, const wxString &txt) |
This method counts the number of lines a text would occupy in respect to a given maximal width. | |
virtual int | TextBox (double w, double h, const wxString &txt, int halign=wxPDF_ALIGN_JUSTIFY, int valign=wxPDF_ALIGN_TOP, int border=0, int fill=0) |
This method counts the number of lines a text will occupy in respect to a given maximal width. | |
virtual void | Write (double h, const wxString &txt, const wxPdfLink &link=wxPdfLink(-1)) |
This method prints text from the current position. | |
virtual void | WriteCell (double h, const wxString &txt, int border=wxPDF_BORDER_NONE, int fill=0, const wxPdfLink &link=wxPdfLink(-1)) |
This method prints text with cell attributes from the current position. | |
virtual bool | Image (const wxString &file, double x, double y, double w=0, double h=0, const wxString &mimeType=wxEmptyString, const wxPdfLink &link=wxPdfLink(-1), int maskImage=0) |
Puts an image in the page. | |
virtual bool | Image (const wxString &name, const wxImage &image, double x, double y, double w=0, double h=0, const wxPdfLink &link=wxPdfLink(-1), int maskImage=0) |
virtual bool | Image (const wxString &name, wxInputStream &stream, const wxString &mimeType, double x, double y, double w=0, double h=0, const wxPdfLink &link=wxPdfLink(-1), int maskImage=0) |
virtual int | ImageMask (const wxString &file, const wxString &mimeType=wxEmptyString) |
virtual int | ImageMask (const wxString &name, const wxImage &image) |
virtual int | ImageMask (const wxString &name, wxInputStream &stream, const wxString &mimeType) |
virtual void | RotatedImage (const wxString &file, double x, double y, double w, double h, double angle, const wxString &type=wxEmptyString, const wxPdfLink &link=wxPdfLink(-1), int maskImage=0) |
Puts a rotated image in the page. | |
virtual void | Ln (double h=-1) |
Performs a line break. | |
virtual double | GetX () |
Returns the abscissa of the current position. | |
virtual void | SetX (double x) |
Defines the abscissa of the current position. | |
virtual double | GetY () |
Returns the ordinate of the current position. | |
virtual void | SetY (double y) |
Moves the current abscissa back to the left margin and sets the ordinate. | |
virtual void | SetXY (double x, double y) |
Defines the abscissa and ordinate of the current position. | |
virtual void | SaveAsFile (const wxString &name=wxEmptyString) |
Saves the document to a file on disk. | |
virtual const wxMemoryOutputStream & | CloseAndGetBuffer () |
Closes the document and returns the memory buffer containing the document. | |
virtual void | ClippingText (double x, double y, const wxString &txt, bool outline=false) |
Define text as clipping area. | |
virtual void | ClippingRect (double x, double y, double w, double h, bool outline=false) |
Define rectangle as clipping area. | |
virtual void | ClippingEllipse (double x, double y, double rx, double ry=0, bool outline=false) |
Define ellipse as clipping area. | |
virtual void | ClippingPolygon (const wxPdfArrayDouble &x, const wxPdfArrayDouble &y, bool outline=false) |
Define polygon as clipping area. | |
virtual void | ClippingPath () |
Start defining a clipping path. | |
virtual void | MoveTo (double x, double y) |
Begin a new subpath. | |
virtual void | LineTo (double x, double y) |
Append a straight line segment to the current (sub)path. | |
virtual void | CurveTo (double x1, double y1, double x2, double y2, double x3, double y3) |
Append a cubic Bezier curve to the current (sub)path. | |
virtual void | ClosePath (int style=wxPDF_STYLE_NOOP) |
Close the clipping path. | |
virtual void | ClippingPath (const wxPdfShape &shape, int style=wxPDF_STYLE_NOOP) |
Define clipping area using a shape. | |
virtual void | UnsetClipping () |
Remove clipping area. | |
virtual void | ClippedCell (double w, double h=0., const wxString &txt=wxEmptyString, int border=wxPDF_BORDER_NONE, int ln=0, int align=wxPDF_ALIGN_LEFT, int fill=0, const wxPdfLink &link=wxPdfLink(-1)) |
Prints a cell clipped to a rectangular area. | |
virtual void | StartTransform () |
Enters a transformation environment. | |
virtual bool | ScaleX (double sx, double x=-1, double y=-1) |
Performs scaling in X direction only. | |
virtual bool | ScaleY (double sy, double x=-1, double y=-1) |
Performs scaling in Y direction only. | |
virtual bool | ScaleXY (double s, double x=-1, double y=-1) |
Performs equal scaling in X and Y direction. | |
virtual bool | Scale (double sx, double sy, double x=-1, double y=-1) |
Performs scaling in X and Y direction. | |
virtual void | MirrorH (double x=-1) |
Performs a horizontal mirroring transformation. | |
virtual void | MirrorV (double y=-1) |
Performs a vertical mirroring transformation. | |
virtual void | TranslateX (double tx) |
Moves the X origin. | |
virtual void | TranslateY (double ty) |
Moves the Y origin. | |
virtual void | Translate (double tx, double ty) |
Moves the origin. | |
virtual bool | SkewX (double xAngle, double x=-1, double y=-1) |
Performs a skewing in both X direction only. | |
virtual bool | SkewY (double yAngle, double x=-1, double y=-1) |
Performs a skewing in Y direction only. | |
virtual bool | Skew (double xAngle, double yAngle, double x=-1, double y=-1) |
Performs a skewing in both X and Y directions. | |
virtual void | StopTransform () |
Leaves a transformation environment. | |
virtual int | SetAlpha (double lineAlpha=1, double fillAlpha=1, wxPdfBlendMode blendMode=wxPDF_BLENDMODE_NORMAL) |
Sets alpha values and blend mode. | |
virtual void | SetAlphaState (int alphaState) |
Sets a previously defined alpha state. | |
virtual int | LinearGradient (const wxPdfColour &col1, const wxPdfColour &col2, wxPdfLinearGradientType gradientType=wxPDF_LINEAR_GRADIENT_HORIZONTAL) |
Defines a linear gradient shading. | |
virtual int | AxialGradient (const wxPdfColour &col1, const wxPdfColour &col2, double x1=0, double y1=0, double x2=1, double y2=0, double intexp=1) |
Defines a axial gradient shading. | |
virtual int | MidAxialGradient (const wxPdfColour &col1, const wxPdfColour &col2, double x1=0, double y1=0, double x2=1, double y2=0, double midpoint=0.5, double intexp=1) |
Defines a axial gradient shading. | |
virtual int | RadialGradient (const wxPdfColour &col1, const wxPdfColour &col2, double x1=0.5, double y1=0.5, double r1=0, double x2=0.5, double y2=0.5, double r2=1, double intexp=1) |
Defines a radial gradient shading. | |
virtual int | CoonsPatchGradient (const wxPdfCoonsPatchMesh &mesh, double minCoord=0, double maxCoord=1) |
Defines a coons patch mesh gradient shading. | |
virtual void | SetFillGradient (double x, double y, double w, double h, int gradient) |
Paints a gradient shading to rectangular area. | |
virtual void | Marker (double x, double y, wxPdfMarker markerType, double size) |
Draws a graphical marker symbol. | |
virtual void | Annotate (double x, double y, const wxString &text) |
Adds a text annotation. | |
virtual void | AppendJavascript (const wxString &javascript) |
Appends Javascript. | |
void | WriteXml (const wxString &str) |
Prints a string containing simple XML markup. | |
void | CheckBox (const wxString &name, double width, bool checked=false) |
Adds a check box field at the current position. | |
void | CheckBox (const wxString &name, double x, double y, double width, bool checked=false) |
Adds a check box field. | |
void | ComboBox (const wxString &name, double width, double height, const wxArrayString &values) |
Adds a combo box field at the current position. | |
void | ComboBox (const wxString &name, double x, double y, double width, double height, const wxArrayString &values) |
Adds a combo box field. | |
void | PushButton (const wxString &name, double width, double height, const wxString &caption, const wxString &action) |
Adds a push button at the current position. | |
void | PushButton (const wxString &name, double x, double y, double width, double height, const wxString &caption, const wxString &action) |
Adds a push button. | |
void | RadioButton (const wxString &group, const wxString &name, double width) |
Adds a radio button at the current position. | |
void | RadioButton (const wxString &group, const wxString &name, double x, double y, double width) |
Adds a radio button. | |
void | TextField (const wxString &name, double width, double height, const wxString &value=wxEmptyString, bool multiline=false) |
Adds a text field at the current position. | |
void | TextField (const wxString &name, double x, double y, double width, double height, const wxString &value=wxEmptyString, bool multiline=false) |
Adds a text field. | |
void | SetFormColors (const wxPdfColour &borderColor=wxPdfColour(), const wxPdfColour &backgroundColor=wxPdfColour(250), const wxPdfColour &textColor=wxPdfColour()) |
Sets colors for form fields. | |
void | SetFormBorderStyle (wxPdfBorderStyle borderStyle=wxPDF_BORDER_SOLID, double borderWidth=-1) |
Sets the border style for form fields. | |
int | BeginTemplate (double x=0, double y=0, double width=0, double height=0) |
Starts a new Template. | |
int | EndTemplate () |
Terminates a template. | |
void | GetTemplateSize (int templateId, double &width, double &height) |
Get the calculated size of a template. | |
void | UseTemplate (int templateId, double x=-1, double y=-1, double width=0, double height=0) |
Uses a template in current page or in another template. | |
int | SetSourceFile (const wxString &filename, const wxString &password=wxEmptyString) |
Sets a source file for the external template feature. | |
bool | GetSourceInfo (wxPdfInfo &info) |
Gets the document information dictionary of the current external PDF document. | |
int | ImportPage (int pageno) |
Imports a page from an external PDF document. | |
void | GetTemplateBBox (int templateId, double &x, double &y, double &width, double &height) |
Gets the bounding box of a template. | |
void | SetTemplateBBox (int templateId, double x, double y, double width, double height) |
Sets the bounding box of a template. | |
void | ShapedText (const wxPdfShape &shape, const wxString &text, wxPdfShapedTextMode mode=wxPDF_SHAPEDTEXTMODE_STRETCHTOFIT) |
Prints a text string along a path defined by a shape. | |
Static Public Member Functions | |
static wxString | RGB2String (const wxColour &color) |
Converts a wxColour to the corresponding PDF specification. | |
static wxString | Double2String (double value, int precision=0) |
Formats a floating point number with a fixed precision. | |
static double | String2Double (const wxString &str) |
Parses a floating point number. | |
static wxString | Convert2Roman (int value) |
Converts an integer number to a roman number. | |
static double | ForceRange (double value, double minValue, double maxValue) |
Forces a floating point number into a fixed range. | |
static wxString | GetUniqueId (const wxString &prefix=wxEmptyString) |
Create a unique ID. | |
Protected Member Functions | |
virtual bool | SelectFont (const wxString &family, const wxString &style=wxEmptyString, double size=0, bool setFont=true) |
Select font. | |
virtual void | BeginPage (int orientation) |
Start document. | |
virtual void | EndPage () |
End of page contents. | |
virtual void | EndDoc () |
End dociment. | |
virtual void | PutHeader () |
Add header. | |
virtual void | PutPages () |
Add pages. | |
virtual void | ReplaceNbPagesAlias () |
Replace page number aliases. | |
virtual void | PutResources () |
Add resources. | |
virtual void | PutBookmarks () |
Add bookmarks. | |
virtual void | PutExtGStates () |
Add extended graphics states. | |
virtual void | PutShaders () |
Add shaders. | |
virtual void | PutFonts () |
Adds fonts. | |
virtual void | PutImages () |
Add images. | |
virtual void | PutTemplates () |
Add templates. | |
virtual void | PutImportedObjects () |
Add imported objects. | |
virtual void | WriteObjectValue (wxPdfObject *value, bool newline=true) |
virtual void | PutSpotColors () |
Add spot colors. | |
virtual void | PutJavaScript () |
Add Javascript (document level). | |
virtual void | PutResourceDict () |
Add resource dictionary. | |
virtual void | PutEncryption () |
Add encryption info. | |
virtual void | PutFormFields () |
Add form fields. | |
virtual void | PutInfo () |
Add info. | |
virtual void | PutCatalog () |
Addcatalog. | |
virtual void | PutXObjectDict () |
Add object dictionary. | |
virtual void | PutTrailer () |
Add trailer. | |
int | CalculateStreamLength (int len) |
Calculate stream size. | |
int | CalculateStreamOffset () |
Calculate stream offset. | |
int | GetNewObjId () |
Get new object id. | |
void | NewObj (int objId=0) |
Begin a new object. | |
wxString | DoDecoration (double x, double y, const wxString &txt) |
Decorate text. | |
void | TextEscape (const wxString &s, bool newline=true) |
Format a text string. | |
void | PutStream (wxMemoryOutputStream &s) |
Add byte stream. | |
void | OutTextstring (const wxString &s, bool newline=true) |
Add a text string to the document. | |
void | OutRawTextstring (const wxString &s, bool newline=true) |
Add a raw text string to the document (without charset conversion). | |
void | OutHexTextstring (const wxString &s, bool newline=true) |
Add a hex text string to the document (without charset conversion). | |
void | OutAsciiTextstring (const wxString &s, bool newline=true) |
Add an ASCII text string to the document. | |
void | OutEscape (const char *s, int len) |
Add \ before \, ( and ). | |
void | OutAscii (const wxString &s, bool newline=true) |
Add ASCII string. | |
void | Out (const char *s, bool newline=true) |
Add character string. | |
void | Out (const char *s, int len, bool newline=true) |
Add len characters. | |
void | OutPoint (double x, double y) |
Sets a draw point. | |
void | OutPointRelative (double dx, double dy) |
Sets a draw point relative to current position. | |
void | OutLine (double x, double y) |
Draws a line from last draw point. | |
void | OutLineRelative (double dx, double dy) |
Draws a line relative from last draw point. | |
void | OutCurve (double x1, double y1, double x2, double y2, double x3, double y3) |
Draws a Bézier curve from last draw point. | |
void | Transform (double tm[6]) |
Perform transformation. | |
void | AddFormField (wxPdfAnnotationWidget *field, bool setFormField=true) |
Adds a form field to the document. | |
void | OutIndirectObject (wxPdfIndirectObject *object) |
Add an indirect object to the document. | |
void | OutImage (wxPdfImage *currentImage, double x, double y, double w, double h, const wxPdfLink &link) |
Add an image object to the document. | |
void | PrepareXmlCell (wxXmlNode *node, wxPdfCellContext &context) |
Prepare an XML cell for output. | |
void | WriteXmlCell (wxXmlNode *node, wxPdfCellContext &context) |
Output a prepared XML cell. | |
void | DoXmlAlign (wxPdfCellContext &context) |
Take alignment of an XML cell into account. | |
void | PrepareXmlTable (wxXmlNode *node, wxPdfCellContext &context) |
Prepare an XML table for output. | |
void | WriteXmlTable (wxPdfCellContext &context) |
Output a prepared XML table. | |
void | InitializeCoreFonts () |
Initialize the core fonts. | |
Friends | |
class | wxPdfImage |
class | wxPdfTable |
wxPdfDocument::wxPdfDocument | ( | int | orientation = wxPORTRAIT , |
|
const wxString & | unit = wxString(_T("mm")) , |
|||
wxPaperSize | format = wxPAPER_A4 | |||
) |
Constructor.
orientation | Defines the default page orientation. Possible values are:
| |
unit | Defines the user units. Possible values are:
| |
format | Defines the page format. All known wxWidgets paper types are allowed. (Default: wxPAPER_A4) |
wxPdfDocument::~wxPdfDocument | ( | ) | [virtual] |
void wxPdfDocument::SetProtection | ( | int | permissions, | |
const wxString & | userPassword = wxEmptyString , |
|||
const wxString & | ownerPassword = wxEmptyString , |
|||
wxPdfEncryptionMethod | encryptionMethod = wxPDF_ENCRYPTION_RC4V1 , |
|||
int | keyLength = 0 | |||
) | [virtual] |
Set permissions as well as user and owner passwords.
permissions | flag indicating permissions. Flags from the following list may be combined as needed If a value is present it means that the permission is granted | |
userPassword | user password if applicable. If a user password is set, user will be prompted before document is opened | |
ownerPassword | owner password.if applicable If an owner password is set, the document can be opened in privilege mode with no restriction if that password is entered | |
encryptionMethod | selects the encryption method. Possible values are:
| |
keyLength | Length of the key used for encryption (Default: 0) The default value selects the standard encryption method revision 2 with a key length of 40 bits. Specifying a value > 0 selects the standard encryption method revision 3 with the given key length, the key length has to be in the range 40..128 and has to be dividable by 8. The key length is adjusted accordingly if these conditions are not met. NOTE: Adobe Reader supports only 40- and 128-bit encryption keys. |
void wxPdfDocument::SetImageScale | ( | double | scale | ) | [virtual] |
Set the image scale.
[in] | scale | image scale. |
double wxPdfDocument::GetImageScale | ( | ) | [virtual] |
Returns the image scale.
double wxPdfDocument::GetPageWidth | ( | ) | [virtual] |
Returns the page width in units.
double wxPdfDocument::GetPageHeight | ( | ) | [virtual] |
Returns the page height in units.
double wxPdfDocument::GetBreakMargin | ( | ) | [virtual] |
Returns the page break margin.
double wxPdfDocument::GetScaleFactor | ( | ) | [virtual] |
Returns the scale factor (number of points in user unit).
void wxPdfDocument::SetMargins | ( | double | left, | |
double | top, | |||
double | right = -1 | |||
) | [virtual] |
Defines the left, top and right margins.
By default, they equal 1 cm. Call this method to change them.
left | Left margin. | |
top | Top margin. | |
right | Right margin. Default value is the left one. |
void wxPdfDocument::SetLeftMargin | ( | double | margin | ) | [virtual] |
Defines the left margin.
The method can be called before creating the first page. If the current abscissa gets out of page, it is brought back to the margin.
margin | The margin. |
double wxPdfDocument::GetLeftMargin | ( | ) | [virtual] |
Returns the left margin.
void wxPdfDocument::SetTopMargin | ( | double | margin | ) | [virtual] |
Defines the top margin.
The method can be called before creating the first page.
margin | The margin. |
double wxPdfDocument::GetTopMargin | ( | ) | [virtual] |
Returns the top margin.
void wxPdfDocument::SetRightMargin | ( | double | margin | ) | [virtual] |
Defines the right margin.
The method can be called before creating the first page.
margin | The margin. |
double wxPdfDocument::GetRightMargin | ( | ) | [virtual] |
Returns the right margin.
void wxPdfDocument::SetCellMargin | ( | double | margin | ) | [virtual] |
Defines the cell margin.
The method can be called before creating the first page.
margin | The margin. |
double wxPdfDocument::GetCellMargin | ( | ) | [virtual] |
Returns the cell margin.
void wxPdfDocument::SetLineHeight | ( | double | height | ) | [virtual] |
Sets the height of a text line.
height | The line height. |
double wxPdfDocument::GetLineHeight | ( | ) | [virtual] |
Returns the height of a text line.
void wxPdfDocument::SetAutoPageBreak | ( | bool | autoPageBreak, | |
double | margin = 0 | |||
) | [virtual] |
Enables or disables the automatic page breaking mode.
When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.
autoPageBreak | Boolean indicating if mode should be on or off. | |
margin | Distance from the bottom of the page. |
void wxPdfDocument::SetDisplayMode | ( | wxPdfZoom | zoom, | |
wxPdfLayout | layout = wxPDF_LAYOUT_CONTINUOUS , |
|||
double | zoomFactor = 100. | |||
) | [virtual] |
Defines the way the document is to be displayed by the viewer.
The zoom level can be set:pages can be displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a specific zooming factor or use viewer default (configured in the Preferences menu of Acrobat). The page layout can be specified too: single at once, continuous display, two columns or viewer default. By default, documents use the full width mode with continuous display.
zoom | The zoom to use. It can be one of the following string values or a number indicating the zooming factor to use.
| |
layout | The page layout. Possible values are:
| |
zoomFactor | specifies the zoom factor in percent if layout is wxPDF_ZOOM_FACTOR |
void wxPdfDocument::SetCompression | ( | bool | compress | ) | [virtual] |
Activates or deactivates page compression.
When activated, the internal representation of each page is compressed, which leads to a compression ratio of about 2 for the resulting document. Compression is on by default.
compress | Boolean indicating if compression must be enabled. |
void wxPdfDocument::SetViewerPreferences | ( | int | preferences = 0 |
) | [virtual] |
Defines the viewer preferences.
preferences | A set of viewer preferences options.
|
void wxPdfDocument::SetTitle | ( | const wxString & | title | ) | [virtual] |
Defines the title of the document.
title | The title. |
void wxPdfDocument::SetSubject | ( | const wxString & | subject | ) | [virtual] |
Defines the subject of the document.
subject | The subject. |
void wxPdfDocument::SetAuthor | ( | const wxString & | author | ) | [virtual] |
Defines the author of the document.
author | The name of the author. |
void wxPdfDocument::SetKeywords | ( | const wxString & | keywords | ) | [virtual] |
Associates keywords with the document,.
Generally keywords are in the form 'keyword1 keyword2 ...'.
keywords | The list of keywords. |
void wxPdfDocument::SetCreator | ( | const wxString & | creator | ) | [virtual] |
Defines the creator of the document.
This is typically the name of the application that generates the PDF.
creator | The name of the creator. |
void wxPdfDocument::AliasNbPages | ( | const wxString & | alias = wxString(_T("{nb}")) |
) | [virtual] |
void wxPdfDocument::Open | ( | ) | [virtual] |
void wxPdfDocument::Close | ( | ) | [virtual] |
Terminates the PDF document.
It is not necessary to call this method explicitly because SaveAsFile() does it automatically. If the document contains no page, AddPage() is called to prevent from getting an invalid document.
void wxPdfDocument::AddPage | ( | int | orientation = -1 |
) | [virtual] |
Adds a new page to the document.
If a page is already present, the Footer() method is called first to output the footer. Then the page is added, the current position set to the top-left corner according to the left and top margins, and Header() is called to display the header. The font which was set before calling is automatically restored. There is no need to call SetFont() again if you want to continue with the same font. The same is true for colors and line width. The origin of the coordinate system is at the top-left corner and increasing ordinates go downwards.
orientation | Page orientation. Possible values are:
|
void wxPdfDocument::Header | ( | ) | [virtual] |
This method is used to render the page header.
It is automatically called by AddPage() and should not be called directly by the application. The implementation in wxPdfDocument is empty, so you have to subclass it and override the method if you want a specific processing.
void wxPdfDocument::Footer | ( | ) | [virtual] |
This method is used to render the page footer.
It is automatically called by AddPage() and Close() and should not be called directly by the application. The implementation in wxPdfDocument is empty, so you have to subclass it and override the method if you want a specific processing.
bool wxPdfDocument::IsInFooter | ( | ) | [virtual] |
Returns whether footer output is in progress.
int wxPdfDocument::PageNo | ( | ) | [virtual] |
void wxPdfDocument::AddSpotColor | ( | const wxString & | name, | |
double | cyan, | |||
double | magenta, | |||
double | yellow, | |||
double | black | |||
) | [virtual] |
Add spot color.
Add a spot color which can be referenced in color setting methods
name | the name of the spot color (case sensitive) | |
cyan | indicates the cyan level. Value between 0 and 100 | |
magenta | indicates the magenta level. Value between 0 and 100 | |
yellow | indicates the yellow level. Value between 0 and 100 | |
black | indicates the black level. Value between 0 and 100 |
void wxPdfDocument::SetDrawColor | ( | const unsigned char | grayscale | ) | [virtual] |
Defines the color used for all drawing operations.
Affected drawing operations are: lines, rectangles and cell borders. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
grayscale | indicates the gray level. Value between 0 and 255 |
void wxPdfDocument::SetDrawColor | ( | const wxColour & | color | ) | [virtual] |
Defines the color used for all drawing operations.
Affected drawing operations are: lines, rectangles and cell borders. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
color | defines a color composed of a red, green and blue component |
void wxPdfDocument::SetDrawColor | ( | const wxPdfColour & | color | ) | [virtual] |
Defines the color used for all drawing operations.
Affected drawing operations are: lines, rectangles and cell borders. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
color | defines a color using the class wxPdfColour |
void wxPdfDocument::SetDrawColor | ( | const unsigned char | red, | |
const unsigned char | green, | |||
const unsigned char | blue | |||
) | [virtual] |
Defines the color used for all drawing operations.
Affected drawing operations are: lines, rectangles and cell borders. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
red | indicates the red level. Value between 0 and 255 | |
green | indicates the green level. Value between 0 and 255 | |
blue | indicates the blue level. Value between 0 and 255 |
void wxPdfDocument::SetDrawColor | ( | double | cyan, | |
double | magenta, | |||
double | yellow, | |||
double | black | |||
) | [virtual] |
Defines the color used for all drawing operations.
Affected drawing operations are: lines, rectangles and cell borders. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
cyan | indicates the cyan level. Value between 0 and 100 | |
magenta | indicates the magenta level. Value between 0 and 100 | |
yellow | indicates the yellow level. Value between 0 and 100 | |
black | indicates the black level. Value between 0 and 100 |
void wxPdfDocument::SetDrawColor | ( | const wxString & | name, | |
double | tint = 100 | |||
) | [virtual] |
Defines the spot color used for all drawing operations.
Affected drawing operations are: lines, rectangles and cell borders. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
name | the name of the spot color | |
tint | indicates the tint level. Value between 0 and 100. Default: 100. |
const wxPdfColour wxPdfDocument::GetDrawColor | ( | ) | [virtual] |
void wxPdfDocument::SetFillColor | ( | const unsigned char | grayscale | ) | [virtual] |
Defines the color used for all filling operations.
Affected filling operations are: filled rectangles and cell backgrounds. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
grayscale | indicates the gray level. Value between 0 and 255 |
void wxPdfDocument::SetFillColor | ( | const wxColour & | color | ) | [virtual] |
Defines the color used for all filling operations.
Affected filling operations are: filled rectangles and cell backgrounds. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
color | defines a color composed of a red, green and blue component |
void wxPdfDocument::SetFillColor | ( | const wxPdfColour & | color | ) | [virtual] |
Defines the color used for all filling operations.
Affected filling operations are: filled rectangles and cell backgrounds. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
color | defines a color using the class wxPdfColour |
void wxPdfDocument::SetFillColor | ( | const unsigned char | red, | |
const unsigned char | green, | |||
const unsigned char | blue | |||
) | [virtual] |
Defines the color used for all filling operations.
Affected filling operations are: filled rectangles and cell backgrounds. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
red | indicates the red level. Value between 0 and 255 | |
green | indicates the green level. Value between 0 and 255 | |
blue | indicates the blue level. Value between 0 and 255 |
void wxPdfDocument::SetFillColor | ( | double | cyan, | |
double | magenta, | |||
double | yellow, | |||
double | black | |||
) | [virtual] |
Defines the color used for all filling operations.
Affected filling operations are: filled rectangles and cell backgrounds. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
cyan | indicates the cyan level. Value between 0 and 100 | |
magenta | indicates the magenta level. Value between 0 and 100 | |
yellow | indicates the yellow level. Value between 0 and 100 | |
black | indicates the black level. Value between 0 and 100 |
void wxPdfDocument::SetFillColor | ( | const wxString & | name, | |
double | tint = 100 | |||
) | [virtual] |
Defines the spot color used for all filling operations.
Affected filling operations are: filled rectangles and cell backgrounds. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
name | is the name of the spot color | |
tint | indicates the tint level. Value between 0 and 100. Default: 100. |
const wxPdfColour wxPdfDocument::GetFillColor | ( | ) | [virtual] |
void wxPdfDocument::SetTextColor | ( | const unsigned char | grayscale | ) | [virtual] |
Defines the color used for text.
It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
grayscale | indicates the gray level. Value between 0 and 255 |
void wxPdfDocument::SetTextColor | ( | const wxColour & | color | ) | [virtual] |
Defines the color used for text.
It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
color | defines a color composed of a red, green and blue component |
void wxPdfDocument::SetTextColor | ( | const wxPdfColour & | color | ) | [virtual] |
Defines the color used for text.
It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
color | defines a color using the class wxPdfColour |
void wxPdfDocument::SetTextColor | ( | const unsigned char | red, | |
const unsigned char | green, | |||
const unsigned char | blue | |||
) | [virtual] |
Defines the color used for text.
It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
red | indicates the red level. Value between 0 and 255 | |
green | indicates the green level. Value between 0 and 255 | |
blue | indicates the blue level. Value between 0 and 255 |
void wxPdfDocument::SetTextColor | ( | double | cyan, | |
double | magenta, | |||
double | yellow, | |||
double | black | |||
) | [virtual] |
Defines the color used for text.
It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
cyan | indicates the cyan level. Value between 0 and 100 | |
magenta | indicates the magenta level. Value between 0 and 100 | |
yellow | indicates the yellow level. Value between 0 and 100 | |
black | indicates the black level. Value between 0 and 100 |
void wxPdfDocument::SetTextColor | ( | const wxString & | name, | |
double | tint = 100 | |||
) | [virtual] |
Defines the spot color used for text.
It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
name | the name of the spot color | |
tint | indicates the tint level. Value between 0 and 100. Default: 100. |
const wxPdfColour wxPdfDocument::GetTextColor | ( | ) | [virtual] |
double wxPdfDocument::GetStringWidth | ( | const wxString & | s | ) | [virtual] |
Returns the length of a string in user unit.
A font must be selected.
s | The string whose length is to be computed |
void wxPdfDocument::SetLineWidth | ( | double | width | ) | [virtual] |
Defines the line width.
By default, the value equals 0.2 mm. The method can be called before the first page is created and the value is retained from page to page.
width | The width. |
double wxPdfDocument::GetLineWidth | ( | ) | [virtual] |
Gets the current line width.
void wxPdfDocument::SetLineStyle | ( | const wxPdfLineStyle & | linestyle | ) | [virtual] |
Sets line style.
linestyle,: | Line style. |
const wxPdfLineStyle & wxPdfDocument::GetLineStyle | ( | ) | [virtual] |
Get current line style.
void wxPdfDocument::Line | ( | double | x1, | |
double | y1, | |||
double | x2, | |||
double | y2 | |||
) | [virtual] |
Draws a line between two points.
x1 | Abscissa of first point | |
y1 | Ordinate of first point | |
x2 | Abscissa of second point | |
y2 | Ordinate of second point |
void wxPdfDocument::Arrow | ( | double | x1, | |
double | y1, | |||
double | x2, | |||
double | y2, | |||
double | linewidth, | |||
double | height, | |||
double | width | |||
) | [virtual] |
Draws an arrow line between two points.
x1 | Abscissa of first point | |
y1 | Ordinate of first point | |
x2 | Abscissa of second point | |
y2 | Ordinate of second point | |
linewidth | line width | |
height | height of the arrow head | |
width | width of the arrow head |
void wxPdfDocument::Rect | ( | double | x, | |
double | y, | |||
double | w, | |||
double | h, | |||
int | style = wxPDF_STYLE_DRAW | |||
) | [virtual] |
Outputs a rectangle.
It can be drawn (border only), filled (with no border) or both.
x | Abscissa of upper-left corner | |
y | Ordinate of upper-left corner | |
w | Width | |
h | Height | |
style | Style of rendering. Possible values are:
|
void wxPdfDocument::RoundedRect | ( | double | x, | |
double | y, | |||
double | w, | |||
double | h, | |||
double | r, | |||
int | roundCorner = wxPDF_CORNER_ALL , |
|||
int | style = wxPDF_STYLE_DRAW | |||
) | [virtual] |
Draws a rounded rectangle.
x | Abscissa of upper-left corner | |
y | Ordinate of upper-left corner | |
w | Width | |
h | Height | |
r,: | Radius of the rounded corners | |
roundCorner,: | Draws rounded corner or not.
| |
style,: | Style of rectangle (draw and/or fill) |
void wxPdfDocument::Curve | ( | double | x0, | |
double | y0, | |||
double | x1, | |||
double | y1, | |||
double | x2, | |||
double | y2, | |||
double | x3, | |||
double | y3, | |||
int | style = wxPDF_STYLE_DRAW | |||
) | [virtual] |
Draws a Bezier curve.
A Bezier curve is tangent to the line between the control points at either end of the curve.
x0,: | Abscissa of start point | |
y0,: | Ordinate of start point | |
x1,: | Abscissa of control point 1 | |
y1,: | Ordinate of control point 1 | |
x2,: | Abscissa of control point 2 | |
y2,: | Ordinate of control point 2 | |
x3,: | Abscissa of end point | |
y3,: | Ordinate of end point | |
style,: | Style of rectangle (draw and/or fill) |
void wxPdfDocument::Ellipse | ( | double | x0, | |
double | y0, | |||
double | rx, | |||
double | ry = 0 , |
|||
double | angle = 0 , |
|||
double | astart = 0 , |
|||
double | afinish = 360 , |
|||
int | style = wxPDF_STYLE_DRAW , |
|||
int | nSeg = 8 | |||
) | [virtual] |
Draws an ellipse.
x0,: | Abscissa of Center point | |
y0,: | Ordinate of Center point | |
rx,: | Horizontal radius | |
ry,: | Vertical radius (if ry = 0, draws a circle) | |
angle,: | Orientation angle (anti-clockwise) | |
astart,: | Start angle | |
afinish,: | Finish angle | |
style,: | Style of rectangle (draw and/or fill) | |
nSeg,: | Ellipse is made up of nSeg Bezier curves |
void wxPdfDocument::Circle | ( | double | x0, | |
double | y0, | |||
double | r, | |||
double | astart = 0 , |
|||
double | afinish = 360 , |
|||
int | style = wxPDF_STYLE_DRAW , |
|||
int | nSeg = 8 | |||
) | [virtual] |
Draws a circle.
x0,: | Abscissa of Center point | |
y0,: | Ordinate of Center point | |
r,: | Radius | |
astart,: | Start angle | |
afinish,: | Finish angle | |
style,: | Style of rectangle (draw and/or fill) | |
nSeg,: | Circle is made up of nSeg Bezier curves |
void wxPdfDocument::Sector | ( | double | x0, | |
double | y0, | |||
double | r, | |||
double | astart, | |||
double | afinish, | |||
int | style = wxPDF_STYLE_FILLDRAW , |
|||
bool | clockwise = true , |
|||
double | origin = 90. | |||
) | [virtual] |
Draws a sector.
x0,: | Abscissa of Center point | |
y0,: | Ordinate of Center point | |
r,: | Radius | |
astart,: | Start angle | |
afinish,: | Finish angle | |
style,: | Style of rectangle (draw and/or fill, default: fill&draw) | |
clockwise,: | indicates whether to go clockwise (default: true) | |
origin,: | origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock; default: 90) |
void wxPdfDocument::Polygon | ( | const wxPdfArrayDouble & | x, | |
const wxPdfArrayDouble & | y, | |||
int | style = wxPDF_STYLE_DRAW | |||
) | [virtual] |
Draws a polygon.
x | Array with abscissa values | |
y | Array with ordinate values | |
style,: | Style of polygon (draw and/or fill) |
void wxPdfDocument::RegularPolygon | ( | double | x0, | |
double | y0, | |||
double | r, | |||
int | ns, | |||
double | angle = 0 , |
|||
bool | circle = false , |
|||
int | style = wxPDF_STYLE_DRAW , |
|||
int | circleStyle = wxPDF_STYLE_DRAW , |
|||
const wxPdfLineStyle & | circleLineStyle = wxPdfLineStyle() , |
|||
const wxPdfColour & | circleFillColor = wxPdfColour() | |||
) | [virtual] |
Draws a regular polygon.
x0,: | Abscissa of Center point | |
y0,: | Ordinate of Center point | |
r,: | Radius of circumscribed circle | |
ns,: | Number of sides | |
angle,: | Orientation angle (anti-clockwise) | |
circle,: | Flag whether to draw circumscribed circle or not | |
style,: | Style of polygon (draw and/or fill) | |
circleStyle,: | Style of circumscribed circle (draw and/or fill) (if draw) | |
circleLineStyle,: | Line style for circumscribed circle. (if draw) | |
circleFillColor,: | Fill color for circumscribed circle. (if draw fill circle) |
void wxPdfDocument::StarPolygon | ( | double | x0, | |
double | y0, | |||
double | r, | |||
int | nv, | |||
int | ng, | |||
double | angle = 0 , |
|||
bool | circle = false , |
|||
int | style = wxPDF_STYLE_DRAW , |
|||
int | circleStyle = wxPDF_STYLE_DRAW , |
|||
const wxPdfLineStyle & | circleLineStyle = wxPdfLineStyle() , |
|||
const wxPdfColour & | circleFillColor = wxPdfColour() | |||
) | [virtual] |
Draws a star polygon.
x0,: | Abscissa of Center point | |
y0,: | Ordinate of Center point | |
r,: | Radius of circumscribed circle | |
nv,: | Number of vertices | |
ng,: | Number of gaps (ng % nv = 1 => regular polygon) | |
angle,: | Orientation angle (anti-clockwise) | |
circle,: | Flag whether to draw circumscribed circle or not | |
style,: | Style of polygon (draw and/or fill) | |
circleStyle,: | Style of circumscribed circle (draw and/or fill) (if draw) | |
circleLineStyle,: | Line style for circumscribed circle. (if draw) | |
circleFillColor,: | Fill color for circumscribed circle. (if draw fill circle) |
void wxPdfDocument::Shape | ( | const wxPdfShape & | shape, | |
int | style = wxPDF_STYLE_DRAW | |||
) | [virtual] |
Draws a shape.
shape,: | shape to be drawn | |
style | Style of rendering. Possible values are:
|
void wxPdfDocument::Rotate | ( | double | angle, | |
double | x = -1 , |
|||
double | y = -1 | |||
) | [virtual] |
Performs a rotation around a given center.
angle | angle in degrees. | |
x | abscissa of the rotation center. Default value: current position. | |
y | ordinate of the rotation center. Default value: current position. |
Remarks:
void wxPdfDocument::SetFontPath | ( | const wxString & | fontPath = wxEmptyString |
) | [virtual] |
Sets the default path for font definition files.
wxPdfDocument uses XML font definition files for embedding fonts. The definition file (and the font file itself when embedding) must be present in the path set by SetFontPath.
fontPath | the path to be used as the default font file path If an empty string is passed the default path is set to the path specified by the environment variable WXPDF_FONTPATH. If WXPDF_FONTPATH does not exist, the subdirectory 'fonts' of the current working directory is used instead. |
virtual wxString wxPdfDocument::GetFontPath | ( | ) | const [inline, virtual] |
Returns the current default path for font definition files.
virtual void wxPdfDocument::SetFontSubsetting | ( | bool | fontSubsetting = true |
) | [inline, virtual] |
Sets the font embedding mode.
If other fonts than the 14 Adobe core fonts are used in a document, they are usually embedded into the PDF file, often resulting in rather large PDF files. This is especially true for Unicode fonts with thousands of glyphs. To reduce the size of the resulting PDF file fonts may be subsetted, that is, only those glyphs actually used in the document are embedded.
Currently wxPdfDocument supports font subsetting for TrueType Unicode fonts only.
fontSubsetting | Boolean indicating whether font subsetting should be used or not. |
virtual bool wxPdfDocument::GetFontSubsetting | ( | ) | const [inline, virtual] |
Returns the font embedding mode.
bool wxPdfDocument::AddFont | ( | const wxString & | family, | |
const wxString & | style = wxEmptyString , |
|||
const wxString & | file = wxEmptyString | |||
) | [virtual] |
Imports a TrueType, TrueTypeUnicode or Type1 font and makes it available.
It is necessary to generate a font definition file first with the makefont utility. The definition file (and the font file itself when embedding) must be present either in the subdirectory 'fonts' of the current working directory or in the one indicated by WXPDF_FONTPATH if this environment variable is defined.
family | Font family. The name can be chosen arbitrarily. If it is a standard family name, it will override the corresponding font. | |
style | Font style. Possible values are (case insensitive):
| |
file | The font definition file. By default, the name is built from the family and style, in lower case with no space. |
bool wxPdfDocument::AddFontCJK | ( | const wxString & | family | ) | [virtual] |
Imports a CJK (Chinese, Japanese or Korean) font and makes it available.
It is necessary to generate a font definition file first with the makefont utility. The definition file (and the font file itself when embedding) must be present either in the current directory or in the one indicated by WXPDF_FONTPATH if the constant is defined.
family | Font family. The name can be chosen arbitrarily. If it is a standard family name, it will override the corresponding font. |
bool wxPdfDocument::SetFont | ( | const wxString & | family, | |
const wxString & | style = wxEmptyString , |
|||
double | size = 0 | |||
) | [virtual] |
Sets the font used to print character strings.
It is mandatory to call this method at least once before printing text or the resulting document would not be valid. The font can be either a standard one or a font added via the AddFont() method. Standard fonts use Windows encoding cp1252 (Western Europe). The method can be called before the first page is created and the font is retained from page to page. If you just wish to change the current font size, it is simpler to call SetFontSize().
family | Family font. It can be either a name defined by AddFont() or one of the standard families (case insensitive):
| |
style | Font style. Possible values are (case insensitive):
| |
size | Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12 |
void wxPdfDocument::SetFontSize | ( | double | size | ) | [virtual] |
const wxPdfFontDescription & wxPdfDocument::GetFontDescription | ( | ) | const [virtual] |
Returns the current font description instance.
const wxString wxPdfDocument::GetFontFamily | ( | ) | [virtual] |
Gets the font family of the current font.
const wxString wxPdfDocument::GetFontStyle | ( | ) | [virtual] |
double wxPdfDocument::GetFontSize | ( | ) | [virtual] |
Gets the size of the current font.
int wxPdfDocument::AddLink | ( | ) | [virtual] |
bool wxPdfDocument::SetLink | ( | int | link, | |
double | y = 0. , |
|||
int | page = -1 | |||
) | [virtual] |
Defines the page and position a link points to.
link | The link identifier returned by AddLink() | |
y | Ordinate of target position; -1 indicates the current position. The default value is 0 (top of page) | |
page | Number of target page; -1 indicates the current page. This is the default value |
void wxPdfDocument::Link | ( | double | x, | |
double | y, | |||
double | w, | |||
double | h, | |||
const wxPdfLink & | link | |||
) | [virtual] |
Puts a link on a rectangular area of the page.
Text or image links are generally put via Cell(), Write() or Image(), but this method can be useful for instance to define a clickable area inside an image.
x | Abscissa of the upper-left corner of the rectangle | |
y | Ordinate of the upper-left corner of the rectangle | |
w | Width of the rectangle | |
h | Height of the rectangle | |
link | URL or identifier returned by AddLink() |
void wxPdfDocument::Bookmark | ( | const wxString & | txt, | |
int | level = 0 , |
|||
double | y = 0 | |||
) | [virtual] |
Adds a bookmark to the document outline.
txt,: | the bookmark title. | |
level,: | the bookmark level (0 is top level, 1 is just below, and so on). | |
y,: | the y position of the bookmark destination in the current page. -1 means the current position. Default value: 0. |
void wxPdfDocument::Text | ( | double | x, | |
double | y, | |||
const wxString & | txt | |||
) | [virtual] |
Prints a character string.
The origin is on the left of the first charcter, on the baseline. This method allows to place a string precisely on the page, but it is usually easier to use Cell(), MultiCell() or Write() which are the standard methods to print text.
x | Abscissa of the origin | |
y | Ordinate of the origin | |
txt | String to print |
void wxPdfDocument::RotatedText | ( | double | x, | |
double | y, | |||
const wxString & | txt, | |||
double | angle | |||
) | [virtual] |
Prints a rotated text string.
x,: | abscissa of the rotation center. | |
y,: | ordinate of the rotation center. | |
txt | String to print | |
angle,: | angle in degrees. |
bool wxPdfDocument::AcceptPageBreak | ( | ) | [virtual] |
Whenever a page break condition is met,.
Whenever a page break condition is met, the method is called, and the break is issued or not depending on the returned value. The default implementation returns a value according to the mode selected by SetAutoPageBreak()
This method is called automatically and should not be called directly by the application.
void wxPdfDocument::Cell | ( | double | w, | |
double | h = 0. , |
|||
const wxString & | txt = wxEmptyString , |
|||
int | border = wxPDF_BORDER_NONE , |
|||
int | ln = 0 , |
|||
int | align = wxPDF_ALIGN_LEFT , |
|||
int | fill = 0 , |
|||
const wxPdfLink & | link = wxPdfLink(-1) | |||
) | [virtual] |
Prints a cell (rectangular area) with optional borders, background color and character string.
The upper-left corner of the cell corresponds to the current position. The text can be aligned or centered. After the call, the current position moves to the right or to the next line. It is possible to put a link on the text. If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting.
w | Cell width. If 0, the cell extends up to the right margin. | |
h | Cell height. Default value: 0. | |
txt | String to print. Default value: empty string. | |
border | Indicates if borders must be drawn around the cell. The value can be
| |
ln | Indicates where the current position should go after the call. Possible values are:
| |
align | Allows to center or align the text. Possible values are:
| |
fill | Indicates if the cell background must be painted (1) or transparent (0). Default value: 0. | |
link | URL or identifier returned by AddLink(). |
int wxPdfDocument::MultiCell | ( | double | w, | |
double | h, | |||
const wxString & | txt, | |||
int | border = 0 , |
|||
int | align = wxPDF_ALIGN_JUSTIFY , |
|||
int | fill = 0 , |
|||
int | maxline = 0 | |||
) | [virtual] |
This method allows printing text with line breaks.
They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the
character). As many cells as necessary are output, one below the other. Text can be aligned, centered or justified. The cell block can be framed and the background painted.
w | Width of cells. If 0, they extend up to the right margin of the page. | |
h | Height of cells. | |
txt | String to print | |
border | Indicates if borders must be drawn around the cell. The value can be
| |
align | Allows to center or align the text. Possible values are:
| |
fill | Indicates if the cell background must be painted (1) or transparent (0). Default value: 0. | |
maxline | Defines the maximum number of lines which should be printed. If maxline is 0 then the number of lines is not restricted. Default value: 0. |
int wxPdfDocument::LineCount | ( | double | w, | |
const wxString & | txt | |||
) | [virtual] |
This method counts the number of lines a text would occupy in respect to a given maximal width.
w | Width of cells. If 0, they extend up to the right margin of the page. | |
txt | String for which the number of lines is to be counted |
int wxPdfDocument::TextBox | ( | double | w, | |
double | h, | |||
const wxString & | txt, | |||
int | halign = wxPDF_ALIGN_JUSTIFY , |
|||
int | valign = wxPDF_ALIGN_TOP , |
|||
int | border = 0 , |
|||
int | fill = 0 | |||
) | [virtual] |
This method counts the number of lines a text will occupy in respect to a given maximal width.
w | Width of cells. If 0, they extend up to the right margin of the page. | |
h | Height of cells. | |
txt | String to print | |
halign | Allows to center or align the text. Possible values are:
| |
valign | Allows to vertical align the text. Possible values are:
| |
border | Indicates if borders must be drawn around the text box. The value can be
| |
fill | Indicates if the cell background must be painted (1) or transparent (0). Default value: 0. |
void wxPdfDocument::Write | ( | double | h, | |
const wxString & | txt, | |||
const wxPdfLink & | link = wxPdfLink(-1) | |||
) | [virtual] |
This method prints text from the current position.
When the right margin is reached (or the
character is met) a line break occurs and text continues from the left margin. Upon method exit, the current position is left just at the end of the text. It is possible to put a link on the text.
h | Line height | |
txt | String to print | |
link | URL or identifier returned by AddLink() |
void wxPdfDocument::WriteCell | ( | double | h, | |
const wxString & | txt, | |||
int | border = wxPDF_BORDER_NONE , |
|||
int | fill = 0 , |
|||
const wxPdfLink & | link = wxPdfLink(-1) | |||
) | [virtual] |
This method prints text with cell attributes from the current position.
When the right margin is reached (or the
character is met) a line break occurs and text continues from the left margin. Upon method exit, the current position is left just at the end of the text. It is possible to put a link on the text.
h | Line height | |
txt | String to print | |
border | Indicates if borders must be drawn around the cell. The value can be
| |
fill | Indicates if the cell background must be painted (1) or transparent (0). Default value: 0. | |
link | URL or identifier returned by AddLink() |
bool wxPdfDocument::Image | ( | const wxString & | file, | |
double | x, | |||
double | y, | |||
double | w = 0 , |
|||
double | h = 0 , |
|||
const wxString & | mimeType = wxEmptyString , |
|||
const wxPdfLink & | link = wxPdfLink(-1) , |
|||
int | maskImage = 0 | |||
) | [virtual] |
Puts an image in the page.
The upper-left corner must be given. The dimensions can be specified in different ways:
For GIF, all flavors the wsWidgets GIF decoder is able to handle are supported
For WMF: WMF files contain vector data described in terms of Windows Graphics Device Interface (GDI) commands. There are approximately 80 different GDI commands allowed for in the WMF standard. This method interprets only a small subset of these, but is sufficient to display most WMF images. Please feel free to add further functionality.
The format can be specified explicitly or inferred from the file extension.
It is possible to put a link on the image.
Remark: if an image is used several times, only one copy will be embedded in the file.
file | Name of the file containing the image. | |
x | Abscissa of the upper-left corner. | |
y | Ordinate of the upper-left corner. | |
w | Width of the image in the page. If not specified or equal to zero, it is automatically calculated. | |
h | Height of the image in the page. If not specified or equal to zero, it is automatically calculated. | |
mimeType | Image format. Possible values are: image/jpeg, image/png, image/gif, image/wmf. If not specified, the type is inferred from the file extension. | |
link | URL or identifier returned by AddLink(). | |
maskImage | Id of an image mask created previously by ImageMask(). |
bool wxPdfDocument::Image | ( | const wxString & | name, | |
const wxImage & | image, | |||
double | x, | |||
double | y, | |||
double | w = 0 , |
|||
double | h = 0 , |
|||
const wxPdfLink & | link = wxPdfLink(-1) , |
|||
int | maskImage = 0 | |||
) | [virtual] |
Puts an image in the page The image is given by an wxImage-Object
name | Name of the image to be used as an identifier for this image object. | |
image | wxImage object which will be embedded as PNG | |
x | Abscissa of the upper-left corner. | |
y | Ordinate of the upper-left corner. | |
w | Width of the image in the page. If not specified or equal to zero, it is automatically calculated. | |
h | Height of the image in the page. If not specified or equal to zero, it is automatically calculated. | |
link | URL or identifier returned by AddLink(). | |
maskImage | Id of an image mask created previously by ImageMask(). |
bool wxPdfDocument::Image | ( | const wxString & | name, | |
wxInputStream & | stream, | |||
const wxString & | mimeType, | |||
double | x, | |||
double | y, | |||
double | w = 0 , |
|||
double | h = 0 , |
|||
const wxPdfLink & | link = wxPdfLink(-1) , |
|||
int | maskImage = 0 | |||
) | [virtual] |
Puts an image in the page The image is given by an wxInputStream-Object containing the raw image data.
name | Name of the image to be used as an identifier for this image object. | |
stream | wxInputStream object containing the raw image data | |
mimeType | Image format. Possible values are: image/jpeg, image/png, image/gif, image/wmf. | |
x | Abscissa of the upper-left corner. | |
y | Ordinate of the upper-left corner. | |
w | Width of the image in the page. If not specified or equal to zero, it is automatically calculated. | |
h | Height of the image in the page. If not specified or equal to zero, it is automatically calculated. | |
link | URL or identifier returned by AddLink(). | |
maskImage | Id of an image mask created previously by ImageMask(). |
int wxPdfDocument::ImageMask | ( | const wxString & | file, | |
const wxString & | mimeType = wxEmptyString | |||
) | [virtual] |
Prepares an image for use as an image mask The image is given as the name of the file conatining the image
file | Name of the file containing the image. | |
mimeType | Image format. Possible values are: image/jpeg, image/png, image/gif, image/wmf. |
int wxPdfDocument::ImageMask | ( | const wxString & | name, | |
const wxImage & | image | |||
) | [virtual] |
Prepares an image for use as an image mask The image is given by an wxImage-Object
name | Name of the image. | |
image | wxImage object. |
int wxPdfDocument::ImageMask | ( | const wxString & | name, | |
wxInputStream & | stream, | |||
const wxString & | mimeType | |||
) | [virtual] |
Prepares an image for use as an image mask The image is given by an wxInputStream-Object containing the raw image data.
name | Name of the image. | |
stream | wxInputStream object containing the raw image data | |
mimeType | Image format. Possible values are: image/jpeg, image/png, image/gif, image/wmf. |
void wxPdfDocument::RotatedImage | ( | const wxString & | file, | |
double | x, | |||
double | y, | |||
double | w, | |||
double | h, | |||
double | angle, | |||
const wxString & | type = wxEmptyString , |
|||
const wxPdfLink & | link = wxPdfLink(-1) , |
|||
int | maskImage = 0 | |||
) | [virtual] |
Puts a rotated image in the page.
The upper-left corner must be given.
The format can be specified explicitly or inferred from the file extension.
It is possible to put a link on the image.
Remark: if an image is used several times, only one copy will be embedded in the file.
file | Name of the file containing the image. | |
x | Abscissa of the upper-left corner. | |
y | Ordinate of the upper-left corner. | |
w | Width of the image in the page. If not specified or equal to zero, it is automatically calculated. | |
h | Height of the image in the page. If not specified or equal to zero, it is automatically calculated. | |
angle | Angle of rotation | |
type | Image format. Possible values are (case insensitive): JPG, JPEG, PNG, GIF, WMF. If not specified, the type is inferred from the file extension. | |
link | URL or identifier returned by AddLink(). | |
maskImage | Id of an image mask created previously by ImageMask(). |
void wxPdfDocument::Ln | ( | double | h = -1 |
) | [virtual] |
Performs a line break.
The current abscissa goes back to the left margin and the ordinate increases by the amount passed in parameter.
h | The height of the break. By default, the value equals the height of the last printed cell. |
double wxPdfDocument::GetX | ( | ) | [virtual] |
void wxPdfDocument::SetX | ( | double | x | ) | [virtual] |
double wxPdfDocument::GetY | ( | ) | [virtual] |
void wxPdfDocument::SetY | ( | double | y | ) | [virtual] |
void wxPdfDocument::SetXY | ( | double | x, | |
double | y | |||
) | [virtual] |
void wxPdfDocument::SaveAsFile | ( | const wxString & | name = wxEmptyString |
) | [virtual] |
const wxMemoryOutputStream & wxPdfDocument::CloseAndGetBuffer | ( | ) | [virtual] |
void wxPdfDocument::ClippingText | ( | double | x, | |
double | y, | |||
const wxString & | txt, | |||
bool | outline = false | |||
) | [virtual] |
Define text as clipping area.
A clipping area restricts the display and prevents any elements from showing outside of it.
x | Abscissa of the origin | |
y | Ordinate of the origin | |
txt | String to print | |
outline | Draw the outline or not. |
void wxPdfDocument::ClippingRect | ( | double | x, | |
double | y, | |||
double | w, | |||
double | h, | |||
bool | outline = false | |||
) | [virtual] |
Define rectangle as clipping area.
A clipping area restricts the display and prevents any elements from showing outside of it.
x | Abscissa of the upper-left corner | |
y | Ordinate of the upper-left corner | |
w | Width of the rectangle | |
h | Height of the rectangle | |
outline | Draw the outline or not. |
void wxPdfDocument::ClippingEllipse | ( | double | x, | |
double | y, | |||
double | rx, | |||
double | ry = 0 , |
|||
bool | outline = false | |||
) | [virtual] |
Define ellipse as clipping area.
A clipping area restricts the display and prevents any elements from showing outside of it.
x | Abscissa of the Center point | |
y | Ordinate of the Center point | |
rx,: | Horizontal radius | |
ry,: | Vertical radius (if ry = 0, draws a circle) | |
outline | Draw the outline or not. (Default false) |
void wxPdfDocument::ClippingPolygon | ( | const wxPdfArrayDouble & | x, | |
const wxPdfArrayDouble & | y, | |||
bool | outline = false | |||
) | [virtual] |
Define polygon as clipping area.
A clipping area restricts the display and prevents any elements from showing outside of it.
x | Array with abscissa values | |
y | Array with ordinate values | |
outline | Draw the outline or not. (Default false) |
void wxPdfDocument::ClippingPath | ( | ) | [virtual] |
Start defining a clipping path.
A clipping area restricts the display and prevents any elements from showing outside of it. The clipping path may consist of one or more subpaths.
void wxPdfDocument::MoveTo | ( | double | x, | |
double | y | |||
) | [virtual] |
Begin a new subpath.
Move to the starting point of a new (sub)path. The new current point is (x, y).
x | abscissa value | |
y | ordinate value |
void wxPdfDocument::LineTo | ( | double | x, | |
double | y | |||
) | [virtual] |
Append a straight line segment to the current (sub)path.
Append a straight line segment from the current point to the point (x, y). The new current point is (x, y).
x | abscissa value | |
y | ordinate value |
void wxPdfDocument::CurveTo | ( | double | x1, | |
double | y1, | |||
double | x2, | |||
double | y2, | |||
double | x3, | |||
double | y3 | |||
) | [virtual] |
Append a cubic Bezier curve to the current (sub)path.
Append a cubic Bezier curve to the current path. The curve extends from the current point to the point (x3, y3), using (x1, y1) and (x2, y2) as the Bézier control points. The new current point is (x3, y3).
x1,: | Abscissa of control point 1 | |
y1,: | Ordinate of control point 1 | |
x2,: | Abscissa of control point 2 | |
y2,: | Ordinate of control point 2 | |
x3,: | Abscissa of end point | |
y3,: | Ordinate of end point |
void wxPdfDocument::ClosePath | ( | int | style = wxPDF_STYLE_NOOP |
) | [virtual] |
Close the clipping path.
A clipping area restricts the display and prevents any elements from showing outside of it.
style | Style of rendering. Possible values are:
|
void wxPdfDocument::ClippingPath | ( | const wxPdfShape & | shape, | |
int | style = wxPDF_STYLE_NOOP | |||
) | [virtual] |
Define clipping area using a shape.
A clipping area restricts the display and prevents any elements from showing outside of it.
shape | shape defining the clipping path | |
style | Style of rendering. Possible values are:
|
void wxPdfDocument::UnsetClipping | ( | ) | [virtual] |
Remove clipping area.
Once you have finished using the clipping, you must remove it with UnsetClipping().
void wxPdfDocument::ClippedCell | ( | double | w, | |
double | h = 0. , |
|||
const wxString & | txt = wxEmptyString , |
|||
int | border = wxPDF_BORDER_NONE , |
|||
int | ln = 0 , |
|||
int | align = wxPDF_ALIGN_LEFT , |
|||
int | fill = 0 , |
|||
const wxPdfLink & | link = wxPdfLink(-1) | |||
) | [virtual] |
Prints a cell clipped to a rectangular area.
The upper-left corner of the cell corresponds to the current position. The text can be aligned or centered. After the call, the current position moves to the right or to the next line. It is possible to put a link on the text. If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting.
w | Cell width. | |
h | Cell height. | |
txt | String to print. Default value: empty string. | |
border | Indicates if borders must be drawn around the cell. The value can be
| |
ln | Indicates where the current position should go after the call. Possible values are:
| |
align | Allows to center or align the text. Possible values are:
| |
fill | Indicates if the cell background must be painted (1) or transparent (0). Default value: 0. | |
link | URL or identifier returned by AddLink(). |
void wxPdfDocument::StartTransform | ( | ) | [virtual] |
Enters a transformation environment.
Before applying any transformation this method should be invoked. All transformation method invoke it implicitly if necessary. All open transformation environments are closed implicitly on page end.
bool wxPdfDocument::ScaleX | ( | double | sx, | |
double | x = -1 , |
|||
double | y = -1 | |||
) | [virtual] |
Performs scaling in X direction only.
A scaling transformation is applied for the X direction.
sx,: | scaling factor for width as percent. 0 is not allowed. | |
x,: | abscissa of the scaling center. Default is current x position | |
y,: | ordinate of the scaling center. Default is current y position |
bool wxPdfDocument::ScaleY | ( | double | sy, | |
double | x = -1 , |
|||
double | y = -1 | |||
) | [virtual] |
Performs scaling in Y direction only.
A scaling transformation is applied for the Y direction.
sy,: | scaling factor for height as percent. 0 is not allowed. | |
x,: | abscissa of the scaling center. Default is current x position | |
y,: | ordinate of the scaling center. Default is current y position |
bool wxPdfDocument::ScaleXY | ( | double | s, | |
double | x = -1 , |
|||
double | y = -1 | |||
) | [virtual] |
Performs equal scaling in X and Y direction.
A scaling transformation is applied for both - X and Y - directions.
s,: | scaling factor for width and height as percent. 0 is not allowed. | |
x,: | abscissa of the scaling center. Default is current x position | |
y,: | ordinate of the scaling center. Default is current y position |
bool wxPdfDocument::Scale | ( | double | sx, | |
double | sy, | |||
double | x = -1 , |
|||
double | y = -1 | |||
) | [virtual] |
Performs scaling in X and Y direction.
A scaling transformation is applied independently for X and Y direction.
sx,: | scaling factor for width in percent. 0 is not allowed. | |
sy,: | scaling factor for height in percent. 0 is not allowed. | |
x,: | abscissa of the scaling center. Default is current x position | |
y,: | ordinate of the scaling center. Default is current y position |
void wxPdfDocument::MirrorH | ( | double | x = -1 |
) | [virtual] |
Performs a horizontal mirroring transformation.
Alias for scaling -100% in x-direction
x,: | abscissa of the axis of reflection |
void wxPdfDocument::MirrorV | ( | double | y = -1 |
) | [virtual] |
Performs a vertical mirroring transformation.
Alias for scaling -100% in y-direction
y,: | abscissa of the axis of reflection |
void wxPdfDocument::TranslateX | ( | double | tx | ) | [virtual] |
Moves the X origin.
tx,: | movement to the right |
void wxPdfDocument::TranslateY | ( | double | ty | ) | [virtual] |
Moves the Y origin.
ty,: | movement to the bottom |
void wxPdfDocument::Translate | ( | double | tx, | |
double | ty | |||
) | [virtual] |
Moves the origin.
tx,: | movement to the right | |
ty,: | movement to the bottom |
bool wxPdfDocument::SkewX | ( | double | xAngle, | |
double | x = -1 , |
|||
double | y = -1 | |||
) | [virtual] |
Performs a skewing in both X direction only.
xAngle,: | angle in degrees between -90 (skew to the left) and 90 (skew to the right) | |
x,: | abscissa of the skewing center. default is current x position | |
y,: | ordinate of the skewing center. default is current y position |
bool wxPdfDocument::SkewY | ( | double | yAngle, | |
double | x = -1 , |
|||
double | y = -1 | |||
) | [virtual] |
Performs a skewing in Y direction only.
yAngle,: | angle in degrees between -90 (skew to the bottom) and 90 (skew to the top) | |
x,: | abscissa of the skewing center. default is current x position | |
y,: | ordinate of the skewing center. default is current y position |
bool wxPdfDocument::Skew | ( | double | xAngle, | |
double | yAngle, | |||
double | x = -1 , |
|||
double | y = -1 | |||
) | [virtual] |
Performs a skewing in both X and Y directions.
xAngle,: | angle in degrees between -90 (skew to the left) and 90 (skew to the right) | |
yAngle,: | angle in degrees between -90 (skew to the bottom) and 90 (skew to the top) | |
x,: | abscissa of the skewing center. default is current x position | |
y,: | ordinate of the skewing center. default is current y position |
void wxPdfDocument::StopTransform | ( | ) | [virtual] |
Leaves a transformation environment.
This method should be invoked to cancel a transformation environment opened by StartTransform. All open transformation environments are closed implicitly on page end.
int wxPdfDocument::SetAlpha | ( | double | lineAlpha = 1 , |
|
double | fillAlpha = 1 , |
|||
wxPdfBlendMode | blendMode = wxPDF_BLENDMODE_NORMAL | |||
) | [virtual] |
Sets alpha values and blend mode.
lineAlpha | alpha value for stroking operations, from 0 (transparent) to 1 (opaque) | |
fillAlpha | alpha value for non-stroking operations, from 0 (transparent) to 1 (opaque) | |
blendMode | one of the following: Normal, Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion, Hue, Saturation, Color, Luminosity |
void wxPdfDocument::SetAlphaState | ( | int | alphaState | ) | [virtual] |
Sets a previously defined alpha state.
alphaState | id of alpha state |
int wxPdfDocument::LinearGradient | ( | const wxPdfColour & | col1, | |
const wxPdfColour & | col2, | |||
wxPdfLinearGradientType | gradientType = wxPDF_LINEAR_GRADIENT_HORIZONTAL | |||
) | [virtual] |
Defines a linear gradient shading.
col1 | first color (RGB or CMYK). | |
col2 | second color (RGB or CMYK). | |
gradientType | Type of the gradient |
int wxPdfDocument::AxialGradient | ( | const wxPdfColour & | col1, | |
const wxPdfColour & | col2, | |||
double | x1 = 0 , |
|||
double | y1 = 0 , |
|||
double | x2 = 1 , |
|||
double | y2 = 0 , |
|||
double | intexp = 1 | |||
) | [virtual] |
Defines a axial gradient shading.
col1 | first color (RGB or CMYK). | |
col2 | second color (RGB or CMYK). | |
x1 | start point of gradient vector, default: 0 (range 0 .. 1) | |
y1 | start point of gradient vector, default: 0 (range 0 .. 1) | |
x2 | end point of gradient vector, default: 1 (range 0 .. 1) | |
y2 | end point of gradient vector, default: 0 (range 0 .. 1) | |
intexp | interpolation exponent, default: 1 |
int wxPdfDocument::MidAxialGradient | ( | const wxPdfColour & | col1, | |
const wxPdfColour & | col2, | |||
double | x1 = 0 , |
|||
double | y1 = 0 , |
|||
double | x2 = 1 , |
|||
double | y2 = 0 , |
|||
double | midpoint = 0.5 , |
|||
double | intexp = 1 | |||
) | [virtual] |
Defines a axial gradient shading.
col1 | first color (RGB or CMYK). | |
col2 | second color (RGB or CMYK). | |
x1 | start point of gradient vector, default: 0 (range 0 .. 1) | |
y1 | start point of gradient vector, default: 0 (range 0 .. 1) | |
x2 | end point of gradient vector, default: 1 (range 0 .. 1) | |
y2 | end point of gradient vector, default: 0 (range 0 .. 1) | |
midpoint | position of the mirror point, default: 0.5 (range 0 .. 1) | |
intexp | interpolation exponent, default: 1 |
int wxPdfDocument::RadialGradient | ( | const wxPdfColour & | col1, | |
const wxPdfColour & | col2, | |||
double | x1 = 0.5 , |
|||
double | y1 = 0.5 , |
|||
double | r1 = 0 , |
|||
double | x2 = 0.5 , |
|||
double | y2 = 0.5 , |
|||
double | r2 = 1 , |
|||
double | intexp = 1 | |||
) | [virtual] |
Defines a radial gradient shading.
col1 | first color (RGB or CMYK). | |
col2 | second color (RGB or CMYK). | |
x1 | center point of circle 1, default: 0.5 (range 0 .. 1) | |
y1 | center point of circle 1, default: 0.5 (range 0 .. 1) | |
r1 | radius of circle 1, default: 0 | |
x2 | center point of circle 2, default: 0.5 (range 0 .. 1) | |
y2 | center point of circle 2, default: 0.5 (range 0 .. 1) | |
r2 | radius of circle 2, default: 1 | |
intexp | interpolation exponent, default: 1 |
int wxPdfDocument::CoonsPatchGradient | ( | const wxPdfCoonsPatchMesh & | mesh, | |
double | minCoord = 0 , |
|||
double | maxCoord = 1 | |||
) | [virtual] |
Defines a coons patch mesh gradient shading.
mesh | coons patch mesh to be used for the gradient | |
minCoord | minimal coordinate of the mesh | |
maxCoord | maximal coordinate of the mesh |
void wxPdfDocument::SetFillGradient | ( | double | x, | |
double | y, | |||
double | w, | |||
double | h, | |||
int | gradient | |||
) | [virtual] |
Paints a gradient shading to rectangular area.
x | abscissa of the top left corner of the rectangle. | |
y | ordinate of the top left corner of the rectangle. | |
w | width of the rectangle. | |
h | height of the rectangle. | |
gradient | id of the gradient. |
void wxPdfDocument::Marker | ( | double | x, | |
double | y, | |||
wxPdfMarker | markerType, | |||
double | size | |||
) | [virtual] |
Draws a graphical marker symbol.
x | abscissa of the marker's center | |
y | ordinate of the marker's center | |
markerType | type of the marker | |
size | size of the marker |
void wxPdfDocument::Annotate | ( | double | x, | |
double | y, | |||
const wxString & | text | |||
) | [virtual] |
Adds a text annotation.
x | abscissa of the annotation symbol | |
y | ordinate of the annotation symbol | |
text | annotation text |
void wxPdfDocument::AppendJavascript | ( | const wxString & | javascript | ) | [virtual] |
Appends Javascript.
Allows to append Javascript code to a Javascript object at the document level.
javascript | Javascript code to be appended |
void wxPdfDocument::WriteXml | ( | const wxString & | str | ) |
Prints a string containing simple XML markup.
Output starts at the current position.
str | string containing text with simple XML markup |
void wxPdfDocument::CheckBox | ( | const wxString & | name, | |
double | width, | |||
bool | checked = false | |||
) |
Adds a check box field at the current position.
Adds a check box to the list of form fields at the current position
name | field name of the check box | |
width | width of the check box | |
checked | default value of the check box |
void wxPdfDocument::CheckBox | ( | const wxString & | name, | |
double | x, | |||
double | y, | |||
double | width, | |||
bool | checked = false | |||
) |
Adds a check box field.
Adds a check box to the list of form fields
name | field name of the check box | |
x | abscissa of the check box position | |
y | ordinate of the check box position | |
width | width of the check box | |
checked | default value of the check box |
void wxPdfDocument::ComboBox | ( | const wxString & | name, | |
double | width, | |||
double | height, | |||
const wxArrayString & | values | |||
) |
Adds a combo box field at the current position.
Adds a combo box to the list of form fields at the current position
name | field name of the combo box | |
width | width of the combo box | |
height | height of the combo box | |
values | array of option values of the combo box |
void wxPdfDocument::ComboBox | ( | const wxString & | name, | |
double | x, | |||
double | y, | |||
double | width, | |||
double | height, | |||
const wxArrayString & | values | |||
) |
Adds a combo box field.
Adds a combo box to the list of form fields
name | field name of the combo box | |
x | abscissa of the combo box position | |
y | ordinate of the combo box position | |
width | width of the combo box | |
height | height of the combo box | |
values | array of option values of the combo box |
void wxPdfDocument::PushButton | ( | const wxString & | name, | |
double | width, | |||
double | height, | |||
const wxString & | caption, | |||
const wxString & | action | |||
) |
Adds a push button at the current position.
Adds a push button to the list of form fields at the current position
name | field name of the push button | |
width | width of the push button | |
height | height of the push button | |
caption | caption of the push button | |
action | associated Javascript action |
void wxPdfDocument::PushButton | ( | const wxString & | name, | |
double | x, | |||
double | y, | |||
double | width, | |||
double | height, | |||
const wxString & | caption, | |||
const wxString & | action | |||
) |
Adds a push button.
Adds a push button to the list of form fields
name | field name of the push button | |
x | abscissa of the push button position | |
y | ordinate of the push button position | |
width | width of the push button | |
height | height of the push button | |
caption | caption of the push button | |
action | associated Javascript action |
void wxPdfDocument::RadioButton | ( | const wxString & | group, | |
const wxString & | name, | |||
double | width | |||
) |
Adds a radio button at the current position.
Adds a radio button to the list of form fields at the current position
group | name of the radio button group this radio button belongs to | |
name | field name of the radio button | |
width | width of the radio button |
void wxPdfDocument::RadioButton | ( | const wxString & | group, | |
const wxString & | name, | |||
double | x, | |||
double | y, | |||
double | width | |||
) |
Adds a radio button.
Adds a radio button to the list of form fields
group | name of the radio button group this radio button belongs to | |
name | field name of the radio button | |
x | abscissa of the radio button position | |
y | ordinate of the radio button position | |
width | width of the radio button |
void wxPdfDocument::TextField | ( | const wxString & | name, | |
double | width, | |||
double | height, | |||
const wxString & | value = wxEmptyString , |
|||
bool | multiline = false | |||
) |
Adds a text field at the current position.
Adds a text field to the list of form fields at the current position
name | field name of the text field | |
width | width of the text field | |
height | height of the text field | |
value | default value of the text field | |
multiline | flag whether the text field is a multiline field or not |
void wxPdfDocument::TextField | ( | const wxString & | name, | |
double | x, | |||
double | y, | |||
double | width, | |||
double | height, | |||
const wxString & | value = wxEmptyString , |
|||
bool | multiline = false | |||
) |
Adds a text field.
Adds a text field to the list of form fields
name | field name of the text field | |
x | abscissa of the text field position | |
y | ordinate of the text field position | |
width | width of the text field | |
height | height of the text field | |
value | default value of the text field | |
multiline | flag whether the text field is a multiline field or not |
void wxPdfDocument::SetFormColors | ( | const wxPdfColour & | borderColor = wxPdfColour() , |
|
const wxPdfColour & | backgroundColor = wxPdfColour(250) , |
|||
const wxPdfColour & | textColor = wxPdfColour() | |||
) |
Sets colors for form fields.
Sets the border, background and text color to be used for all subsequent form field additions until this method is called again with different values.
borderColor | color of the form field's border | |
backgroundColor | color of the form field's background | |
textColor | color of the form field's font |
void wxPdfDocument::SetFormBorderStyle | ( | wxPdfBorderStyle | borderStyle = wxPDF_BORDER_SOLID , |
|
double | borderWidth = -1 | |||
) |
Sets the border style for form fields.
Sets the border width and style to be used for all subsequent form field additions until this method is called again with different values.
borderStyle | style of the form field's border
| |
borderWidth | width of the form field's border |
int wxPdfDocument::BeginTemplate | ( | double | x = 0 , |
|
double | y = 0 , |
|||
double | width = 0 , |
|||
double | height = 0 | |||
) |
Starts a new Template.
Starts a new template, optionally with own dimensions. The margins have to adapted to the new template size. For writing outside the template, for example to build a clipped template, the margins and "cursor" position have to be set manually after the call to BeginTemplate().
If no dimensions are given, the template uses the current page size. The method returns the ID of the current template. The ID is used to reference a template in the UseTemplate() method. Warning: A template once created is embedded in the resulting PDF document at all events, even if it is not used.
x | The x-coordinate given in user units | |
y | The y-coordinate given in user units | |
width | The width given in user units | |
height | The height given in user units |
int wxPdfDocument::EndTemplate | ( | ) |
Terminates a template.
Terminates the creation of a template and reset initiated variables on beginTemplate.
void wxPdfDocument::GetTemplateSize | ( | int | templateId, | |
double & | width, | |||
double & | height | |||
) |
Get the calculated size of a template.
Retrieves the size of a template.
templateId | A valid template ID | |
width | The width of the template | |
height | The height of the template |
void wxPdfDocument::UseTemplate | ( | int | templateId, | |
double | x = -1 , |
|||
double | y = -1 , |
|||
double | width = 0 , |
|||
double | height = 0 | |||
) |
Uses a template in current page or in another template.
Uses the specified template just like an image in the current page or in another template.
All parameters are optional. The width or height is calculated using GetTemplateSize internally. By default the size as defined by BeginTemplate is used.
templateId | A valid template ID | |
x | The x coordinate | |
y | The y coordinate | |
width | The new width of the template | |
height | The new height of the template |
int wxPdfDocument::SetSourceFile | ( | const wxString & | filename, | |
const wxString & | password = wxEmptyString | |||
) |
Sets a source file for the external template feature.
Selects the source for the external template feature. A parser is setup for importing pages from the PDF document. Although wxPdfDocument usually creates PDF documents conforming to version 1.3 of the PDF standard, parsing of documents conforming to versions up to 1.6 is supported. If pages are aimported from documents conforming to a higher version than 1.3 the version used by wxPdDocument is updated accordingly.
filename | a valid filename | |
password | a valid user or owner password if the PDF document is encrypted |
bool wxPdfDocument::GetSourceInfo | ( | wxPdfInfo & | info | ) |
Gets the document information dictionary of the current external PDF document.
Gets the values of the Info dictionary of the current external document, if available.
info | the info dictionary object receiving the document information |
int wxPdfDocument::ImportPage | ( | int | pageno | ) |
Imports a page from an external PDF document.
Imports a page from the current external PDF document. As the bounding box of the template the ArtBox of the imported page is used. If the page does not have an explicit ArtBox, the CropBox will be used instead; if there is no explicit CropBox then the MediaBox will be used.
pageno | page number of the page to be imported |
void wxPdfDocument::GetTemplateBBox | ( | int | templateId, | |
double & | x, | |||
double & | y, | |||
double & | width, | |||
double & | height | |||
) |
Gets the bounding box of a template.
Especially for pages imported from an external PDF document the size of the bounding box might be of interest. The values returned correspond to the coordinates of the lower left corner and the width and height of the template.
templateId | A valid template ID | |
x | The x coordinate of the lower left corner | |
y | The y coordinate of the lower left corner | |
width | The width of the template | |
height | The height of the template |
void wxPdfDocument::SetTemplateBBox | ( | int | templateId, | |
double | x, | |||
double | y, | |||
double | width, | |||
double | height | |||
) |
Sets the bounding box of a template.
As long as a template hasn't been used it is possible to change the bounding box of the template. This may be useful for pages imported from an external PDF document allowing to set the visible portion of the template. Note: Setting the bounding box influences only the visible area of the template, not the real size it occupies.
templateId | A valid template ID | |
x | The x coordinate of the lower left corner | |
y | The y coordinate of the lower left corner | |
width | The width of the template | |
height | The height of the template |
void wxPdfDocument::ShapedText | ( | const wxPdfShape & | shape, | |
const wxString & | text, | |||
wxPdfShapedTextMode | mode = wxPDF_SHAPEDTEXTMODE_STRETCHTOFIT | |||
) |
Prints a text string along a path defined by a shape.
shape | shape defining a path along which the text is printed | |
text | text string to be printed | |
mode | flag how to handle the text string
|
wxString wxPdfDocument::RGB2String | ( | const wxColour & | color | ) | [static] |
Converts a wxColour to the corresponding PDF specification.
color | color to be converted to a hexadecimal string representation |
wxString wxPdfDocument::Double2String | ( | double | value, | |
int | precision = 0 | |||
) | [static] |
Formats a floating point number with a fixed precision.
value | the value to be formatted | |
precision | the number of decimal places |
double wxPdfDocument::String2Double | ( | const wxString & | str | ) | [static] |
Parses a floating point number.
str | the string to be parsed |
wxString wxPdfDocument::Convert2Roman | ( | int | value | ) | [static] |
Converts an integer number to a roman number.
value | integer value to be converted |
double wxPdfDocument::ForceRange | ( | double | value, | |
double | minValue, | |||
double | maxValue | |||
) | [static] |
Forces a floating point number into a fixed range.
value | value to be forced into range | |
minValue | lower limit | |
maxValue | upper limit |
wxString wxPdfDocument::GetUniqueId | ( | const wxString & | prefix = wxEmptyString |
) | [static] |
Create a unique ID.
bool wxPdfDocument::SelectFont | ( | const wxString & | family, | |
const wxString & | style = wxEmptyString , |
|||
double | size = 0 , |
|||
bool | setFont = true | |||
) | [protected, virtual] |
Select font.
void wxPdfDocument::BeginPage | ( | int | orientation | ) | [protected, virtual] |
Start document.
void wxPdfDocument::EndPage | ( | ) | [protected, virtual] |
End of page contents.
void wxPdfDocument::EndDoc | ( | ) | [protected, virtual] |
End dociment.
void wxPdfDocument::PutHeader | ( | ) | [protected, virtual] |
Add header.
void wxPdfDocument::PutPages | ( | ) | [protected, virtual] |
Add pages.
void wxPdfDocument::ReplaceNbPagesAlias | ( | ) | [protected, virtual] |
Replace page number aliases.
void wxPdfDocument::PutResources | ( | ) | [protected, virtual] |
Add resources.
void wxPdfDocument::PutBookmarks | ( | ) | [protected, virtual] |
Add bookmarks.
void wxPdfDocument::PutExtGStates | ( | ) | [protected, virtual] |
Add extended graphics states.
void wxPdfDocument::PutShaders | ( | ) | [protected, virtual] |
Add shaders.
void wxPdfDocument::PutFonts | ( | ) | [protected, virtual] |
Adds fonts.
void wxPdfDocument::PutImages | ( | ) | [protected, virtual] |
Add images.
void wxPdfDocument::PutTemplates | ( | ) | [protected, virtual] |
Add templates.
void wxPdfDocument::PutImportedObjects | ( | ) | [protected, virtual] |
Add imported objects.
void wxPdfDocument::WriteObjectValue | ( | wxPdfObject * | value, | |
bool | newline = true | |||
) | [protected, virtual] |
void wxPdfDocument::PutSpotColors | ( | ) | [protected, virtual] |
Add spot colors.
void wxPdfDocument::PutJavaScript | ( | ) | [protected, virtual] |
Add Javascript (document level).
void wxPdfDocument::PutResourceDict | ( | ) | [protected, virtual] |
Add resource dictionary.
void wxPdfDocument::PutEncryption | ( | ) | [protected, virtual] |
Add encryption info.
void wxPdfDocument::PutFormFields | ( | ) | [protected, virtual] |
Add form fields.
void wxPdfDocument::PutInfo | ( | ) | [protected, virtual] |
Add info.
void wxPdfDocument::PutCatalog | ( | ) | [protected, virtual] |
Addcatalog.
void wxPdfDocument::PutXObjectDict | ( | ) | [protected, virtual] |
Add object dictionary.
void wxPdfDocument::PutTrailer | ( | ) | [protected, virtual] |
Add trailer.
int wxPdfDocument::CalculateStreamLength | ( | int | len | ) | [protected] |
Calculate stream size.
int wxPdfDocument::CalculateStreamOffset | ( | ) | [protected] |
Calculate stream offset.
int wxPdfDocument::GetNewObjId | ( | ) | [protected] |
Get new object id.
void wxPdfDocument::NewObj | ( | int | objId = 0 |
) | [protected] |
Begin a new object.
wxString wxPdfDocument::DoDecoration | ( | double | x, | |
double | y, | |||
const wxString & | txt | |||
) | [protected] |
Decorate text.
void wxPdfDocument::TextEscape | ( | const wxString & | s, | |
bool | newline = true | |||
) | [protected] |
Format a text string.
void wxPdfDocument::PutStream | ( | wxMemoryOutputStream & | s | ) | [protected] |
Add byte stream.
void wxPdfDocument::OutTextstring | ( | const wxString & | s, | |
bool | newline = true | |||
) | [protected] |
Add a text string to the document.
void wxPdfDocument::OutRawTextstring | ( | const wxString & | s, | |
bool | newline = true | |||
) | [protected] |
Add a raw text string to the document (without charset conversion).
void wxPdfDocument::OutHexTextstring | ( | const wxString & | s, | |
bool | newline = true | |||
) | [protected] |
Add a hex text string to the document (without charset conversion).
void wxPdfDocument::OutAsciiTextstring | ( | const wxString & | s, | |
bool | newline = true | |||
) | [protected] |
Add an ASCII text string to the document.
void wxPdfDocument::OutEscape | ( | const char * | s, | |
int | len | |||
) | [protected] |
Add \ before \, ( and ).
void wxPdfDocument::OutAscii | ( | const wxString & | s, | |
bool | newline = true | |||
) | [protected] |
Add ASCII string.
void wxPdfDocument::Out | ( | const char * | s, | |
bool | newline = true | |||
) | [protected] |
Add character string.
void wxPdfDocument::Out | ( | const char * | s, | |
int | len, | |||
bool | newline = true | |||
) | [protected] |
Add len characters.
void wxPdfDocument::OutPoint | ( | double | x, | |
double | y | |||
) | [protected] |
Sets a draw point.
void wxPdfDocument::OutPointRelative | ( | double | dx, | |
double | dy | |||
) | [protected] |
Sets a draw point relative to current position.
void wxPdfDocument::OutLine | ( | double | x, | |
double | y | |||
) | [protected] |
Draws a line from last draw point.
void wxPdfDocument::OutLineRelative | ( | double | dx, | |
double | dy | |||
) | [protected] |
Draws a line relative from last draw point.
void wxPdfDocument::OutCurve | ( | double | x1, | |
double | y1, | |||
double | x2, | |||
double | y2, | |||
double | x3, | |||
double | y3 | |||
) | [protected] |
Draws a Bézier curve from last draw point.
void wxPdfDocument::Transform | ( | double | tm[6] | ) | [protected] |
Perform transformation.
void wxPdfDocument::AddFormField | ( | wxPdfAnnotationWidget * | field, | |
bool | setFormField = true | |||
) | [protected] |
Adds a form field to the document.
void wxPdfDocument::OutIndirectObject | ( | wxPdfIndirectObject * | object | ) | [protected] |
Add an indirect object to the document.
TODO: support for radio button groups
void wxPdfDocument::OutImage | ( | wxPdfImage * | currentImage, | |
double | x, | |||
double | y, | |||
double | w, | |||
double | h, | |||
const wxPdfLink & | link | |||
) | [protected] |
Add an image object to the document.
void wxPdfDocument::PrepareXmlCell | ( | wxXmlNode * | node, | |
wxPdfCellContext & | context | |||
) | [protected] |
Prepare an XML cell for output.
void wxPdfDocument::WriteXmlCell | ( | wxXmlNode * | node, | |
wxPdfCellContext & | context | |||
) | [protected] |
Output a prepared XML cell.
void wxPdfDocument::DoXmlAlign | ( | wxPdfCellContext & | context | ) | [protected] |
Take alignment of an XML cell into account.
void wxPdfDocument::PrepareXmlTable | ( | wxXmlNode * | node, | |
wxPdfCellContext & | context | |||
) | [protected] |
Prepare an XML table for output.
void wxPdfDocument::WriteXmlTable | ( | wxPdfCellContext & | context | ) | [protected] |
Output a prepared XML table.
void wxPdfDocument::InitializeCoreFonts | ( | ) | [protected] |
Initialize the core fonts.
friend class wxPdfImage [friend] |
friend class wxPdfTable [friend] |