MeshLib C# Docs
Loading...
Searching...
No Matches

Class for simple creation pdf. Generated from class MR.Pdf. This is the non-const half of the class. More...

Inheritance diagram for MR.Pdf:

Public Member Functions

unsafe Pdf (MR.Const_PdfParameters? params_=null)
 Ctor. Create a document, but not a page. To create a new page use newPage() method Generated from constructor MR.Pdf.Pdf. Parameter params_ defaults to MR.PdfParameters().
unsafe Pdf (MR._ByValue_Pdf other)
 Generated from constructor MR.Pdf.Pdf.
unsafe MR.Pdf assign (MR._ByValue_Pdf other)
 Generated from method MR::Pdf::operator=.
unsafe void addText (string text, bool? isTitle=null)
 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 Generated from method MR.Pdf.addText. Parameter isTitle defaults to false.
unsafe void addText (string text, MR.Pdf.Const_TextParams params_)
 Generated from method MR.Pdf.addText.
unsafe float getTextWidth (string text, MR.Pdf.Const_TextParams params_)
 return text width Generated from method MR.Pdf.getTextWidth.
unsafe void addTable (MR.Std.Const_Vector_StdPairStdStringFloat 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. Generated from method MR.Pdf.addTable.
unsafe void addPaletteStatsTable (MR.Std.Const_Vector_MRPdfPaletteRowStats paletteStats)
 Generated from method MR.Pdf.addPaletteStatsTable.
unsafe void addImageFromFile (string imagePath, MR.Pdf.Const_ImageParams params_)
 Add image from file in current cursor position. If image bigger than page size, autoscale image to page size. Move cursor. Generated from method MR.Pdf.addImageFromFile.
unsafe void addImage (MR.Const_Image image, MR.Pdf.Const_ImageParams params_)
 Generated from method MR.Pdf.addImage.
unsafe void newPage ()
 Add new pageand move cursor on it Generated from method MR.Pdf.newPage.
unsafe void setNewPageAction (MR.Std._ByValue_Function_Void_From_MRPdfRef action)
 set function to customize new page after creation Generated from method MR.Pdf.setNewPageAction.
unsafe void saveToFile (string documentPath)
 Save document to file Generated from method MR.Pdf.saveToFile.
unsafe void setCursorPosX (float posX)
 Generated from method MR.Pdf.setCursorPosX.
unsafe void setCursorPosY (float posY)
 Generated from method MR.Pdf.setCursorPosY.
unsafe void newTable (int columnCount)
 Generated from method MR.Pdf.newTable.
unsafe void setTableColumnWidths (MR.Std.Const_Vector_Float widths)
 Generated from method MR.Pdf.setTableColumnWidths.
unsafe void addTableTitles (MR.Std.Const_Vector_StdString titles)
 Generated from method MR.Pdf.addTableTitles.
unsafe void setColumnValuesFormat (MR.Std.Const_Vector_StdString formats)
 Generated from method MR.Pdf.setColumnValuesFormat.
unsafe void addRow (MR.Std.Const_Vector_MRPdfCell cells)
 Generated from method MR.Pdf.addRow.
unsafe float getTableTextWidth (string text)
 Generated from method MR.Pdf.getTableTextWidth.
unsafe void setTableCustomRule (MR.Std._ByValue_Function_MRPdfCellCustomParams_From_Int_Int_ConstStdStringRef rule)
 Generated from method MR.Pdf.setTableCustomRule.
unsafe void drawTextInRect (string text, in MR.Box2f rect, MR.Pdf.Const_TextParams params_)
 Generated from method MR.Pdf.drawTextInRect.
unsafe void drawTextCell (string text, MR.Pdf.Const_TextCellParams params_)
 Generated from method MR.Pdf.drawTextCell.
unsafe void drawRect (in MR.Box2f rect, in MR.Color fillColor, in MR.Color strokeColor)
 Generated from method MR.Pdf.drawRect.
Public Member Functions inherited from MR.Const_Pdf
virtual void Dispose ()
unsafe Const_Pdf (MR.Const_PdfParameters? params_=null)
 Ctor. Create a document, but not a page. To create a new page use newPage() method Generated from constructor MR.Pdf.Pdf. Parameter params_ defaults to MR.PdfParameters().
unsafe Const_Pdf (MR._ByValue_Pdf other)
 Generated from constructor MR.Pdf.Pdf.
unsafe float getCursorPosX ()
 Generated from method MR.Pdf.getCursorPosX.
unsafe float getCursorPosY ()
 Generated from method MR.Pdf.getCursorPosY.
unsafe MR.Vector2f getPageSize ()
 Generated from method MR.Pdf.getPageSize.
unsafe MR.Box2f getPageWorkArea ()
 Generated from method MR.Pdf.getPageWorkArea.

Static Public Member Functions

static unsafe implicit operator Pdf (MR.Const_PdfParameters? params_)
 Ctor. Create a document, but not a page. To create a new page use newPage() method Generated from constructor MR.Pdf.Pdf. Parameter params_ defaults to MR.PdfParameters().
Static Public Member Functions inherited from MR.Const_Pdf
static unsafe implicit operator Const_Pdf (MR.Const_PdfParameters? params_)
 Ctor. Create a document, but not a page. To create a new page use newPage() method Generated from constructor MR.Pdf.Pdf. Parameter params_ defaults to MR.PdfParameters().
static unsafe implicit operator bool (MR.Const_Pdf _this)
 Checking the ability to work with a document Generated from conversion operator MR::Pdf::operator bool.

Additional Inherited Members

Public Types inherited from MR.Const_Pdf
enum  AlignmentHorizontal : int { Left = 0 , Center = 1 , Right = 2 }
Protected Member Functions inherited from MR.Const_Pdf
virtual unsafe void Dispose (bool disposing)

Detailed Description

Class for simple creation pdf. Generated from class MR.Pdf. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ Pdf() [1/2]

unsafe MR.Pdf.Pdf ( MR.Const_PdfParameters? params_ = null)
inline

Ctor. Create a document, but not a page. To create a new page use newPage() method Generated from constructor MR.Pdf.Pdf. Parameter params_ defaults to MR.PdfParameters().

◆ Pdf() [2/2]

unsafe MR.Pdf.Pdf ( MR._ByValue_Pdf other)
inline

Generated from constructor MR.Pdf.Pdf.

Member Function Documentation

◆ addImage()

unsafe void MR.Pdf.addImage ( MR.Const_Image image,
MR.Pdf.Const_ImageParams params_ )
inline

Generated from method MR.Pdf.addImage.

◆ addImageFromFile()

unsafe void MR.Pdf.addImageFromFile ( string imagePath,
MR.Pdf.Const_ImageParams params_ )
inline

Add image from file in current cursor position. If image bigger than page size, autoscale image to page size. Move cursor. Generated from method MR.Pdf.addImageFromFile.

◆ addPaletteStatsTable()

unsafe void MR.Pdf.addPaletteStatsTable ( MR.Std.Const_Vector_MRPdfPaletteRowStats paletteStats)
inline

Generated from method MR.Pdf.addPaletteStatsTable.

◆ addRow()

unsafe void MR.Pdf.addRow ( MR.Std.Const_Vector_MRPdfCell cells)
inline

Generated from method MR.Pdf.addRow.

◆ addTable()

unsafe void MR.Pdf.addTable ( MR.Std.Const_Vector_StdPairStdStringFloat table)
inline

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. Generated from method MR.Pdf.addTable.

◆ addTableTitles()

unsafe void MR.Pdf.addTableTitles ( MR.Std.Const_Vector_StdString titles)
inline

Generated from method MR.Pdf.addTableTitles.

◆ addText() [1/2]

unsafe void MR.Pdf.addText ( string text,
bool? isTitle = null )
inline

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 Generated from method MR.Pdf.addText. Parameter isTitle defaults to false.

◆ addText() [2/2]

unsafe void MR.Pdf.addText ( string text,
MR.Pdf.Const_TextParams params_ )
inline

Generated from method MR.Pdf.addText.

◆ assign()

unsafe MR.Pdf MR.Pdf.assign ( MR._ByValue_Pdf other)
inline

Generated from method MR::Pdf::operator=.

◆ drawRect()

unsafe void MR.Pdf.drawRect ( in MR.Box2f rect,
in MR.Color fillColor,
in MR.Color strokeColor )
inline

Generated from method MR.Pdf.drawRect.

◆ drawTextCell()

unsafe void MR.Pdf.drawTextCell ( string text,
MR.Pdf.Const_TextCellParams params_ )
inline

Generated from method MR.Pdf.drawTextCell.

◆ drawTextInRect()

unsafe void MR.Pdf.drawTextInRect ( string text,
in MR.Box2f rect,
MR.Pdf.Const_TextParams params_ )
inline

Generated from method MR.Pdf.drawTextInRect.

◆ getTableTextWidth()

unsafe float MR.Pdf.getTableTextWidth ( string text)
inline

Generated from method MR.Pdf.getTableTextWidth.

◆ getTextWidth()

unsafe float MR.Pdf.getTextWidth ( string text,
MR.Pdf.Const_TextParams params_ )
inline

return text width Generated from method MR.Pdf.getTextWidth.

◆ newPage()

unsafe void MR.Pdf.newPage ( )
inline

Add new pageand move cursor on it Generated from method MR.Pdf.newPage.

◆ newTable()

unsafe void MR.Pdf.newTable ( int columnCount)
inline

Generated from method MR.Pdf.newTable.

◆ operator Pdf()

unsafe implicit MR.Pdf.operator Pdf ( MR.Const_PdfParameters? params_)
inlinestatic

Ctor. Create a document, but not a page. To create a new page use newPage() method Generated from constructor MR.Pdf.Pdf. Parameter params_ defaults to MR.PdfParameters().

◆ saveToFile()

unsafe void MR.Pdf.saveToFile ( string documentPath)
inline

Save document to file Generated from method MR.Pdf.saveToFile.

◆ setColumnValuesFormat()

unsafe void MR.Pdf.setColumnValuesFormat ( MR.Std.Const_Vector_StdString formats)
inline

Generated from method MR.Pdf.setColumnValuesFormat.

◆ setCursorPosX()

unsafe void MR.Pdf.setCursorPosX ( float posX)
inline

Generated from method MR.Pdf.setCursorPosX.

◆ setCursorPosY()

unsafe void MR.Pdf.setCursorPosY ( float posY)
inline

Generated from method MR.Pdf.setCursorPosY.

◆ setNewPageAction()

unsafe void MR.Pdf.setNewPageAction ( MR.Std._ByValue_Function_Void_From_MRPdfRef action)
inline

set function to customize new page after creation Generated from method MR.Pdf.setNewPageAction.

◆ setTableColumnWidths()

unsafe void MR.Pdf.setTableColumnWidths ( MR.Std.Const_Vector_Float widths)
inline

Generated from method MR.Pdf.setTableColumnWidths.

◆ setTableCustomRule()

unsafe void MR.Pdf.setTableCustomRule ( MR.Std._ByValue_Function_MRPdfCellCustomParams_From_Int_Int_ConstStdStringRef rule)
inline

Generated from method MR.Pdf.setTableCustomRule.


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