2D Drawing Module

Detailed Description

group a3d_pdf_2ddrawings_module

Module to create 2D Drawings on a PDF page.

Type Documentation

enum A3DPDFEGraphicType

Graphic types.

Version
9.1

Values:

enumerator kA3DPDFGraphicLine

Graphic line.

enumerator kA3DPDFGraphicArc

Graphic arc.

enumerator kA3DPDFGraphicBezierCurve

Graphic bezier curve.

Function Documentation

A3DStatus A3DPDFPageDrawRectangle(A3DPDFPage *pPage, const A3DPDFGraphicRectangleData *pGraphicRectangleData)

Function to create a graphic rectangle.

Version
9.1

Parameters:
  • pPage[inout] The Page object to work with.
  • pGraphicRectangleData[in] The Graphic rectangle parameters.
Return values:

A3D_SUCCESS

Returns:

A3D_SUCCESS in case of success or an error code

A3DStatus A3DPDFPageDrawLine(A3DPDFPage *pPage, const A3DPDFGraphicLineData *pGraphicLineData)

Function to create a graphic line.

Version
9.1

Parameters:
  • pPage[inout] The page object to work with.
  • pGraphicLineData[in] The Graphic line parameters.
Return values:

A3D_SUCCESS

Returns:

A3D_SUCCESS in case of success or an error code

A3DStatus A3DPDFPageDrawArc(A3DPDFPage *pPage, const A3DPDFGraphicArcData *pGraphicArcData)

Function to create a graphic circle arc.

Version
9.1

Parameters:
  • pPage[inout] The page object to work with.
  • pGraphicArcData[in] The Graphic arc parameters.
Return values:

A3D_SUCCESS

Returns:

A3D_SUCCESS in case of success or an error code

A3DStatus A3DPDFPageDrawBezierCurve(A3DPDFPage *pPage, const A3DPDFGraphicBezierCurveData *pGraphicBezierCurveData)

Function to create a graphic bezier curve.

Version
9.1

Parameters:
  • pPage[inout] The page object to work with.
  • pGraphicBezierCurveData[in] The Graphic Bezier curve parameters.
Return values:

A3D_SUCCESS

Returns:

A3D_SUCCESS in case of success or an error code

A3DStatus A3DPDFPageDrawCompositePath(A3DPDFPage *pPage, A3DPDFGraphicCompositePathData *pGraphicPathData)

Function to create a graphic composite path.

Version
9.1

Parameters:
  • pPage[inout] The page object to work with.
  • pGraphicPathData[in] The parameters of the elements to be drawn.
Return values:

A3D_SUCCESS

Returns:

A3D_SUCCESS in case of success or an error code