5 #ifndef PDFTRON_H_CPPPDFElementBuilder
6 #define PDFTRON_H_CPPPDFElementBuilder
14 #include <C/PDF/TRN_ElementBuilder.h>
203 Element CreatePath(
const std::vector<double>& points,
const std::vector<unsigned char>& seg_types);
206 Element CreatePath(
const double* points,
int point_count,
const char* seg_types,
int seg_types_count);
248 void MoveTo(
double x,
double y);
255 void LineTo(
double x,
double y);
267 void CurveTo(
double cx1,
double cy1,
double cx2,
double cy2,
double x2,
double y2);
279 void ArcTo(
double x,
double y,
double width,
double height,
double start,
double extent);
297 void ArcTo(
double xr,
double yr,
301 double endX,
double endY);
312 void Ellipse(
double x,
double y,
double width,
double height);
323 void Rect(
double x,
double y,
double width,
double height);
337 TRN_ElementBuilder mp_builder;
347 #include <Impl/ElementBuilder.inl>
353 #endif // PDFTRON_H_CPPPDFElementBuilder
void MoveTo(double x, double y)
Element CreateImage(Image &img)
Element CreateEllipse(double x, double y, double width, double height)
Element CreateTextRun(const char *text_data, Font font, double font_sz)
Element CreateForm(SDF::Obj form)
void CurveTo(double cx1, double cy1, double cx2, double cy2, double x2, double y2)
Element CreateRect(double x, double y, double width, double height)
Element CreateTextBegin()
void LineTo(double x, double y)
Element CreateGroupBegin()
Element CreatePath(const std::vector< double > &points, const std::vector< unsigned char > &seg_types)
void Ellipse(double x, double y, double width, double height)
Element CreateTextNewLine()
void Rect(double x, double y, double width, double height)
Element CreateUnicodeTextRun(const Unicode *text_data, UInt32 text_data_sz)
void ArcTo(double x, double y, double width, double height, double start, double extent)
Element CreateShading(Shading &sh)