Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | Friends

wxPdfDocument Class Reference

Class representing a PDF document. More...

#include <pdfdoc.h>

Collaboration diagram for wxPdfDocument:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool AcceptPageBreak ()
 Whenever a page break condition is met,.
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 &WXUNUSED(family))
 Imports a CJK (Chinese, Japanese or Korean) font and makes it available.
virtual int AddLink ()
 Creates a new internal link and returns its identifier.
virtual void AddPage (int orientation=-1)
 Adds a new page to the document.
virtual void AddSpotColor (const wxString &name, double cyan, double magenta, double yellow, double black)
 Add spot color.
virtual void AliasNbPages (const wxString &alias=wxString(_T("{nb}")))
 Defines an alias for the total number of pages.
virtual void Annotate (double x, double y, const wxString &text)
 Adds a text annotation.
virtual void AppendJavascript (const wxString &javascript)
 Appends Javascript.
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 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.
int BeginTemplate (double x=0, double y=0, double width=0, double height=0)
 Starts a new Template.
virtual void Bookmark (const wxString &txt, int level=0, double y=0)
 Adds a bookmark to the document outline.
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.
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.
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 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 ClippingEllipse (double x, double y, double rx, double ry=0, bool outline=false)
 Define ellipse as clipping area.
virtual void ClippingPath ()
 Start defining a clipping path.
virtual void ClippingPath (const wxPdfShape &shape, int style=wxPDF_STYLE_NOOP)
 Define clipping area using a shape.
virtual void ClippingPolygon (const wxPdfArrayDouble &x, const wxPdfArrayDouble &y, bool outline=false)
 Define polygon as clipping area.
virtual void ClippingRect (double x, double y, double w, double h, bool outline=false)
 Define rectangle as clipping area.
virtual void ClippingText (double x, double y, const wxString &txt, bool outline=false)
 Define text as clipping area.
virtual void Close ()
 Terminates the PDF document.
virtual const
wxMemoryOutputStream & 
CloseAndGetBuffer ()
 Closes the document and returns the memory buffer containing the document.
virtual void ClosePath (int style=wxPDF_STYLE_NOOP)
 Close the clipping path.
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.
virtual int CoonsPatchGradient (const wxPdfCoonsPatchMesh &mesh, double minCoord=0, double maxCoord=1)
 Defines a coons patch mesh gradient shading.
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 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 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.
int EndTemplate ()
 Terminates a template.
virtual void Footer ()
 This method is used to render the page footer.
virtual double GetBreakMargin ()
 Returns the page break margin.
virtual double GetCellMargin ()
 Returns the cell margin.
virtual const wxPdfColour GetDrawColor ()
 Gets the color used for all drawing operations.
virtual const wxPdfColour GetFillColor ()
 Gets the color used for all filling operations.
virtual const
wxPdfFontDescription
GetFontDescription () const
 Returns the current font description instance.
virtual const wxString GetFontFamily ()
 Gets the font family of the current font.
virtual wxString GetFontPath () const
 Returns the current default path for font definition files.
virtual double GetFontSize ()
 Gets the size of the current font.
virtual const wxString GetFontStyle ()
 Gets the style of the current font.
virtual bool GetFontSubsetting () const
 Returns the font embedding mode.
virtual double GetImageScale ()
 Returns the image scale.
virtual double GetLeftMargin ()
 Returns the left margin.
virtual double GetLineHeight ()
 Returns the height of a text line.
virtual const wxPdfLineStyleGetLineStyle ()
 Get current line style.
virtual double GetLineWidth ()
 Gets the current line width.
virtual double GetPageHeight ()
 Returns the page height in units.
virtual double GetPageWidth ()
 Returns the page width in units.
virtual double GetRightMargin ()
 Returns the right margin.
virtual double GetScaleFactor ()
 Returns the scale factor (number of points in user unit).
bool GetSourceInfo (wxPdfInfo &info)
 Gets the document information dictionary of the current external PDF document.
virtual double GetStringWidth (const wxString &s)
 Returns the length of a string in user unit.
void GetTemplateBBox (int templateId, double &x, double &y, double &width, double &height)
 Gets the bounding box of a template.
void GetTemplateSize (int templateId, double &width, double &height)
 Get the calculated size of a template.
virtual const wxPdfColour GetTextColor ()
 Gets the color used for text output.
virtual double GetTopMargin ()
 Returns the top margin.
virtual double GetX ()
 Returns the abscissa of the current position.
virtual double GetY ()
 Returns the ordinate of the current position.
virtual void Header ()
 This method is used to render the page header.
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)
int ImportPage (int pageno)
 Imports a page from an external PDF document.
virtual bool IsInFooter ()
 Returns whether footer output is in progress.
virtual void Line (double x1, double y1, double x2, double y2)
 Draws a line between two points.
virtual int LinearGradient (const wxPdfColour &col1, const wxPdfColour &col2, wxPdfLinearGradientType gradientType=wxPDF_LINEAR_GRADIENT_HORIZONTAL)
 Defines a linear gradient shading.
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 void LineTo (double x, double y)
 Append a straight line segment to the current (sub)path.
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 Ln (double h=-1)
 Performs a line break.
virtual void Marker (double x, double y, wxPdfMarker markerType, double size)
 Draws a graphical marker symbol.
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 void MirrorH (double x=-1)
 Performs a horizontal mirroring transformation.
virtual void MirrorV (double y=-1)
 Performs a vertical mirroring transformation.
virtual void MoveTo (double x, double y)
 Begin a new subpath.
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 void Open ()
 This method begins the generation of the PDF document.
virtual int PageNo ()
 Returns the current page number.
virtual void Polygon (const wxPdfArrayDouble &x, const wxPdfArrayDouble &y, int style=wxPDF_STYLE_DRAW)
 Draws a polygon.
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.
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.
void RadioButton (const wxString &group, const wxString &name, double x, double y, double width)
 Adds a radio button.
void RadioButton (const wxString &group, const wxString &name, double width)
 Adds a radio button at the current position.
virtual void Rect (double x, double y, double w, double h, int style=wxPDF_STYLE_DRAW)
 Outputs a rectangle.
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 Rotate (double angle, double x=-1, double y=-1)
 Performs a rotation around a given center.
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 RotatedText (double x, double y, const wxString &txt, double angle)
 Prints a rotated text string.
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 SaveAsFile (const wxString &name=wxEmptyString)
 Saves the document to a file on disk.
virtual bool Scale (double sx, double sy, double x=-1, double y=-1)
 Performs scaling in X and Y direction.
virtual bool ScaleX (double sx, double x=-1, double y=-1)
 Performs scaling in X direction only.
virtual bool ScaleXY (double s, double x=-1, double y=-1)
 Performs equal scaling in X and Y direction.
virtual bool ScaleY (double sy, double x=-1, double y=-1)
 Performs scaling in Y direction only.
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 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 void SetAuthor (const wxString &author)
 Defines the author of the document.
virtual void SetAutoPageBreak (bool autoPageBreak, double margin=0)
 Enables or disables the automatic page breaking mode.
virtual void SetCellMargin (double margin)
 Defines the cell margin.
virtual void SetCompression (bool compress)
 Activates or deactivates page compression.
virtual void SetCreator (const wxString &creator)
 Defines the creator of the document.
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 SetDrawColor (double cyan, double magenta, double yellow, double black)
 Defines the color used for all drawing operations.
virtual void SetDrawColor (const unsigned char grayscale)
 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 (const wxString &name, double tint=100)
 Defines the spot color used for all drawing operations.
virtual void SetDrawColor (const wxColour &color)
 Defines 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 void SetFillGradient (double x, double y, double w, double h, int gradient)
 Paints a gradient shading to rectangular area.
virtual bool SetFont (const wxString &family, const wxString &style=wxEmptyString, double size=0)
 Sets the font used to print character strings.
virtual void SetFontPath (const wxString &fontPath=wxEmptyString)
 Sets the default path for font definition files.
virtual void SetFontSize (double size)
 Defines the size of the current font.
virtual void SetFontSubsetting (bool fontSubsetting=true)
 Sets the font embedding mode.
void SetFormBorderStyle (wxPdfBorderStyle borderStyle=wxPDF_BORDER_SOLID, double borderWidth=-1)
 Sets the border style for form fields.
void SetFormColors (const wxPdfColour &borderColor=wxPdfColour(), const wxPdfColour &backgroundColor=wxPdfColour(250), const wxPdfColour &textColor=wxPdfColour())
 Sets colors for form fields.
virtual void SetImageScale (double scale)
 Set the image scale.
virtual void SetKeywords (const wxString &keywords)
 Associates keywords with the document,.
virtual void SetLeftMargin (double margin)
 Defines the left margin.
virtual void SetLineHeight (double height)
 Sets the height of a text line.
virtual void SetLineStyle (const wxPdfLineStyle &linestyle)
 Sets line style.
virtual void SetLineWidth (double width)
 Defines the line width.
virtual bool SetLink (int link, double y=0., int page=-1)
 Defines the page and position a link points to.
virtual void SetMargins (double left, double top, double right=-1)
 Defines the left, top and right margins.
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 SetRightMargin (double margin)
 Defines the right margin.
int SetSourceFile (const wxString &filename, const wxString &password=wxEmptyString)
 Sets a source file for the external template feature.
virtual void SetSubject (const wxString &subject)
 Defines the subject of the document.
void SetTemplateBBox (int templateId, double x, double y, double width, double height)
 Sets the bounding box of a template.
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 wxColour &color)
 Defines the color used for text.
virtual void SetTextColor (const unsigned char grayscale)
 Defines the color used for text.
virtual void SetTextColor (const wxPdfColour &color)
 Defines the color used for text.
virtual void SetTextColor (const wxString &name, double tint=100)
 Defines the spot color used for text.
virtual void SetTitle (const wxString &title)
 Defines the title of the document.
virtual void SetTopMargin (double margin)
 Defines the top margin.
virtual void SetViewerPreferences (int preferences=0)
 Defines the viewer preferences.
virtual void SetX (double x)
 Defines the abscissa of the current position.
virtual void SetXY (double x, double y)
 Defines the abscissa and 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 Shape (const wxPdfShape &shape, int style=wxPDF_STYLE_DRAW)
 Draws a shape.
void ShapedText (const wxPdfShape &shape, const wxString &text, wxPdfShapedTextMode mode=wxPDF_SHAPEDTEXTMODE_STRETCHTOFIT)
 Prints a text string along a path defined by a shape.
virtual bool Skew (double xAngle, double yAngle, double x=-1, double y=-1)
 Performs a skewing in both X and Y directions.
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 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 StartTransform ()
 Enters a transformation environment.
virtual void StopTransform ()
 Leaves a transformation environment.
virtual void Text (double x, double y, const wxString &txt)
 Prints a character string.
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.
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 TextField (const wxString &name, double width, double height, const wxString &value=wxEmptyString, bool multiline=false)
 Adds a text field at the current position.
virtual void Translate (double tx, double ty)
 Moves the origin.
virtual void TranslateX (double tx)
 Moves the X origin.
virtual void TranslateY (double ty)
 Moves the Y origin.
virtual void UnsetClipping ()
 Remove clipping area.
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.
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.
void WriteXml (const wxString &str)
 Prints a string containing simple XML markup.
 wxPdfDocument (int orientation=wxPORTRAIT, const wxString &unit=wxString(_T("mm")), wxPaperSize format=wxPAPER_A4)
 Constructor.

Static Public Member Functions

static wxString Convert2Roman (int value)
 Converts an integer number to a roman number.
static wxString Double2String (double value, int precision=0)
 Formats a floating point number with a fixed precision.
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.
static wxString RGB2String (const wxColour &color)
 Converts a wxColour to the corresponding PDF specification.
static double String2Double (const wxString &str)
 Parses a floating point number.

Protected Member Functions

void AddFormField (wxPdfAnnotationWidget *field, bool setFormField=true)
 Adds a form field to the document.
virtual void BeginPage (int orientation)
 Start document.
int CalculateStreamLength (int len)
 Calculate stream size.
int CalculateStreamOffset ()
 Calculate stream offset.
wxString DoDecoration (double x, double y, const wxString &txt)
 Decorate text.
void DoXmlAlign (wxPdfCellContext &context)
 Take alignment of an XML cell into account.
virtual void EndDoc ()
 End dociment.
virtual void EndPage ()
 End of page contents.
int GetNewObjId ()
 Get new object id.
void InitializeCoreFonts ()
 Initialize the core fonts.
void NewObj (int objId=0)
 Begin a new object.
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 OutAscii (const wxString &s, bool newline=true)
 Add ASCII string.
void OutAsciiTextstring (const wxString &s, bool newline=true)
 Add an ASCII text string to the document.
void OutCurve (double x1, double y1, double x2, double y2, double x3, double y3)
 Draws a Bézier curve from last draw point.
void OutEscape (const char *s, int len)
 Add \ before \, ( and )
void OutHexTextstring (const wxString &s, bool newline=true)
 Add a hex text string to the document (without charset conversion)
void OutImage (wxPdfImage *currentImage, double x, double y, double w, double h, const wxPdfLink &link)
 Add an image object to the document.
void OutIndirectObject (wxPdfIndirectObject *object)
 Add an indirect object to the document.
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 OutPoint (double x, double y)
 Sets a draw point.
void OutPointRelative (double dx, double dy)
 Sets a draw point relative to current position.
void OutRawTextstring (const wxString &s, bool newline=true)
 Add a raw text string to the document (without charset conversion)
void OutTextstring (const wxString &s, bool newline=true)
 Add a text string to the document.
void PrepareXmlCell (wxXmlNode *node, wxPdfCellContext &context)
 Prepare an XML cell for output.
void PrepareXmlTable (wxXmlNode *node, wxPdfCellContext &context)
 Prepare an XML table for output.
virtual void PutBookmarks ()
 Add bookmarks.
virtual void PutCatalog ()
 Addcatalog.
virtual void PutEncryption ()
 Add encryption info.
virtual void PutExtGStates ()
 Add extended graphics states.
virtual void PutFonts ()
 Adds fonts.
virtual void PutFormFields ()
 Add form fields.
virtual void PutHeader ()
 Add header.
virtual void PutImages ()
 Add images.
virtual void PutImportedObjects ()
 Add imported objects.
virtual void PutInfo ()
 Add info.
virtual void PutJavaScript ()
 Add Javascript (document level)
virtual void PutPages ()
 Add pages.
virtual void PutResourceDict ()
 Add resource dictionary.
virtual void PutResources ()
 Add resources.
virtual void PutShaders ()
 Add shaders.
virtual void PutSpotColors ()
 Add spot colors.
void PutStream (wxMemoryOutputStream &s)
 Add byte stream.
virtual void PutTemplates ()
 Add templates.
virtual void PutTrailer ()
 Add trailer.
virtual void PutXObjectDict ()
 Add object dictionary.
virtual void ReplaceNbPagesAlias ()
 Replace page number aliases.
virtual bool SelectFont (const wxString &family, const wxString &style=wxEmptyString, double size=0, bool setFont=true)
 Select font.
void TextEscape (const wxString &s, bool newline=true)
 Format a text string.
void Transform (double tm[6])
 Perform transformation.
virtual void WriteObjectValue (wxPdfObject *value, bool newline=true)
void WriteXmlCell (wxXmlNode *node, wxPdfCellContext &context)
 Output a prepared XML cell.
void WriteXmlTable (wxPdfCellContext &context)
 Output a prepared XML table.

Private Attributes

wxString m_aliasNbPages
 alias for total number of pages
double m_angle
 current rotation angle
wxPdfAnnotationsMap * m_annotations
 array of text annotations
wxString m_author
 author
bool m_autoPageBreak
 automatic page breaking
double m_bMargin
 page break margin
wxMemoryOutputStream m_buffer
 buffer holding in-memory PDF
double m_cMargin
 cell margin
bool m_colorFlag
 indicates whether fill and text colors are different
bool m_compress
 compression flag
wxPdfCoreFontMap * m_coreFonts
 array of standard font names (and character widths)
wxString m_creator
 creator
int m_curOrientation
 current orientation
int m_currentExtGState
 current extended graphics state
wxPdfFontm_currentFont
 current font info
wxPdfParserm_currentParser
 current parser
wxString m_currentSource
 current import source file name
wxPdfTemplatem_currentTemplate
 current template
int m_decoration
 font decoration flags
int m_defOrientation
 default orientation
wxPdfDiffHashMap * m_diffs
wxPdfColour m_drawColor
 commands for drawing color
int m_encObjId
 encrypted object id
bool m_encrypted
 flag whether document is protected
wxPdfEncryptm_encryptor
 encryptor instance
wxPdfExtGSLookupMap * m_extGSLookup
 array for fast lookup of extended graphics states
wxPdfExtGStateMap * m_extGStates
 array of extended graphics states
double m_fh
 height of page format in user unit
double m_fhPt
 height of page format in points
wxPdfColour m_fillColor
 commands for filling color
int m_firstPageId
 object id of the first page
wxString m_fontFamily
 current font family
wxString m_fontPath
 current default path for font files
wxPdfFontHashMap * m_fonts
 array of used fonts
double m_fontSize
 current font size in user unit
double m_fontSizePt
 current font size in points
wxString m_fontStyle
 current font style
bool m_fontSubsetting
 flag whether to use font subsetting
wxPdfFormAnnotsMap * m_formAnnotations
 array of form field annotations
wxString m_formBackgroundColor
 form field background color
wxString m_formBorderColor
 form field border color
wxString m_formBorderStyle
 form field border style
double m_formBorderWidth
 form field border width
wxPdfFormFieldsMap * m_formFields
 array of form fields
wxString m_formTextColor
 form field text color
double m_fw
 width of page format in user unit
double m_fwPt
 width of page format in points
wxPdfGradientMap * m_gradients
 array of gradients
double m_h
 current height of page in user unit
double m_hPt
 current height of page in points
wxPdfImageHashMap * m_images
 > array of encoding differences
double m_img_rb_x
 right-bottom corner X coordinate of inserted image
double m_img_rb_y
 right-bottom corner Y coordinate of inserted image
double m_imgscale
 image scale factor
wxString m_importVersion
 highest PDF version of imported files
bool m_inFooter
 flag set when processing footer
bool m_inTemplate
 flag whether template mode is on
int m_inTransform
 flag for transformation state
wxString m_javascript
 Javascript string.
double m_k
 scale factor (number of points in user unit)
wxString m_keywords
 keywords
double m_lasth
 height of last cell printed
wxPdfLayout m_layoutMode
 layout display mode
wxPdfLineStyle m_lineStyle
 current line style
double m_lineWidth
 line width in user units
wxPdfLinkHashMap * m_links
 array of internal links
double m_lMargin
 left margin
int m_maxOutlineLevel
 max. occuring outline level
int m_n
 current object number
wxPdfNamedLinksMap * m_namedLinks
 array of named internal links
int m_nJS
 Javascript object number.
wxPdfOffsetHashMap * m_offsets
 array of object offsets
wxPdfBoolHashMap * m_orientationChanges
 array indicating orientation changes
int m_outlineRoot
 number of root node
wxArrayPtrVoid m_outlines
 array of bookmarks
int m_page
 current page number
double m_pageBreakTrigger
 threshold used to trigger page breaks
wxPdfPageLinksMap * m_pageLinks
 array of links in pages
wxPdfPageHashMap * m_pages
 array containing pages
wxPdfParserMap * m_parsers
 array of parsers
wxString m_PDFVersion
 PDF version number.
wxPdfRadioGroupMap * m_radioGroups
 array of radio button groups
double m_rMargin
 right margin
wxPdfSpotColourMap * m_spotColors
 array of spot colors
int m_state
 current document state
wxString m_subject
 subject
int m_templateId
 Id of current template.
wxString m_templatePrefix
 prefix used for template object names
wxPdfTemplatesMap * m_templates
 array of templates
wxPdfColour m_textColor
 commands for text color
wxString m_title
 title
double m_tMargin
 top margin
int m_viewerPrefs
 viewer preferences
double m_w
 current width of page in user unit
double m_wPt
 current width of page in points
double m_ws
 word spacing
double m_x
 current x position in user unit for cell positioning
double m_y
 current y position in user unit for cell positioning
int m_zapfdingbats
 index of font ZapfDingBats
double m_zoomFactor
 zoom factor
wxPdfZoom m_zoomMode
 zoom display mode

Static Private Attributes

static int ms_s1 = 0
 Random number generator seed 1.
static int ms_s2 = 0
 Random number generator seed 2.
static bool ms_seeded = false
 flag whether random number generator is seeded

Friends

class wxPdfImage
class wxPdfTable

Detailed Description

Class representing a PDF document.

Definition at line 102 of file pdfdoc.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index