Documentation
¶
Overview ¶
Package rmparse provides rendering of parsed .rm files to PDF
Package rmparse provides parsing for reMarkable v6 .rm files
Index ¶
Constants ¶
View Source
const ( // reMarkable 2 tablet screen: 1404 x 1872 pixels at 226 DPI RMWidth = 1404.0 RMHeight = 1872.0 // PDF page size (A5 portrait in points: 1pt = 1/72 inch) PDFWidth = 420.0 // ~148mm PDFHeight = 595.0 // ~210mm // Scale factor from reMarkable coordinates to PDF points ScaleX = PDFWidth / RMWidth ScaleY = PDFHeight / RMHeight )
reMarkable tablet dimensions and scaling
Variables ¶
This section is empty.
Functions ¶
func RenderToPDF ¶
RenderToPDF renders an RMFile to a PDF file
Types ¶
type BlockType ¶
type BlockType uint32
BlockType represents the type of block in the .rm file
const ( BlockTypeLayerDef BlockType = 0x1010100 // Layer definition BlockTypeLayerName BlockType = 0x2020100 // Layer names BlockTypeTextDef BlockType = 0x7010100 // Text definition BlockTypeLayerInfo BlockType = 0x4010100 // Layer info BlockTypeLineDef BlockType = 0x5020200 // Line/stroke definition )
Block type constants for different types of data in .rm files
type Line ¶
type Line struct {
PenType uint32 // Pen type
Color uint32 // Color
BrushSize float32 // Brush size
Points []Point // Array of points
}
Line represents a stroke/line with multiple points
Click to show internal directories.
Click to hide internal directories.