Classes | |
class | ImageParams |
class | PaletteRowStats |
Public Member Functions | |
bool | __bool__ (self) |
None | __init__ (self, os.PathLike|str|bytes documentPath, PdfParameters params='MR::PdfParameters()') |
str | __repr__ (self) |
None | addImageFromFile (self, os.PathLike|str|bytes imagePath, Pdf.ImageParams params) |
None | addPaletteStatsTable (self, std_vector_Pdf_PaletteRowStats paletteStats) |
None | addTable (self, std_vector_std_pair_std_string_float table) |
None | addText (self, str text, bool isTitle=False) |
None | close (self) |
float | getCursorPosX (self) |
float | getCursorPosY (self) |
Vector2f | getPageSize (self) |
Box2f | getPageWorkArea (self) |
None | newPage (self) |
None | setCursorPosX (self, float posX) |
None | setCursorPosY (self, float posY) |
Generated from: MR::Pdf Class for simple creation pdf.
None mrmeshpy.Pdf.__init__ | ( | self, | |
os.PathLike | str | bytes | documentPath, | ||
PdfParameters | params = 'MR::PdfParameters()' ) |
Ctor
bool mrmeshpy.Pdf.__bool__ | ( | self | ) |
Checking the ability to work with a document
str mrmeshpy.Pdf.__repr__ | ( | self | ) |
None mrmeshpy.Pdf.addImageFromFile | ( | self, | |
os.PathLike | str | bytes | imagePath, | ||
Pdf.ImageParams | params ) |
@brief Add image from file in current cursor position. If image bigger than page size, autoscale image to page size. Move cursor.
None mrmeshpy.Pdf.addPaletteStatsTable | ( | self, | |
std_vector_Pdf_PaletteRowStats | paletteStats ) |
None mrmeshpy.Pdf.addTable | ( | self, | |
std_vector_std_pair_std_string_float | table ) |
Add set of pair string - value in current cursor position. Move cursor. Box horizontal size is page width without offset. Box vertical size is automatically for text.
None mrmeshpy.Pdf.addText | ( | self, | |
str | text, | ||
bool | isTitle = False ) |
Add text block in current cursor position. Move cursor. Box horizontal size is page width without offset. Box vertical size is automatically for text. horAlignment = left if isTitle - horAlignment = center, use titleFontSize
None mrmeshpy.Pdf.close | ( | self | ) |
Save and close document. After this impossible add anything in document
float mrmeshpy.Pdf.getCursorPosX | ( | self | ) |
float mrmeshpy.Pdf.getCursorPosY | ( | self | ) |
Vector2f mrmeshpy.Pdf.getPageSize | ( | self | ) |
Box2f mrmeshpy.Pdf.getPageWorkArea | ( | self | ) |
None mrmeshpy.Pdf.newPage | ( | self | ) |
Add new pageand move cursor on it
None mrmeshpy.Pdf.setCursorPosX | ( | self, | |
float | posX ) |
None mrmeshpy.Pdf.setCursorPosY | ( | self, | |
float | posY ) |