MCPcopy Create free account
hub / github.com/docling-project/docling-parse / instruction_name

Function instruction_name

app/pybind_parse.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 const char* instruction_name(pdflib::RENDER_INSTRUCTION_NAME name)
32 {
33 switch(name)
34 {
35 case pdflib::SIZE_INSTRUCTION: return "size";
36 case pdflib::TEXT_RENDER_INSTRUCTION: return "text";
37 case pdflib::TEXT_WIDGET_RENDER_INSTRUCTION: return "widget";
38 case pdflib::BITMAP_RENDER_INSTRUCTION: return "bitmap";
39 case pdflib::SHAPE_RENDER_INSTRUCTION: return "shape";
40 default: return "unknown";
41 }
42 }
43
44 pybind11::dict make_quad_dict(double x0, double y0,
45 double x1, double y1,

Callers 5

set_sizeMethod · 0.85
render_textMethod · 0.85
render_widgetMethod · 0.85
render_bitmapMethod · 0.85
render_shapeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected