Drawj2d can generate drawings in the reMarkable paper tablet's internal line drawing format. Thus using Drawj2d you can create an editable notebook page (not limited to annotations). Once transferred to your device, you can insert the page into an existing notebook using the move functionality of the reMarkable.
Have a look at the reMarkable HowTo page for the basics.
- preview on the computer screen: drawj2d -Tscreen -W157 -H209 drawing.hcl
- create a reMarkable page drawj2d -Trmn drawing.hcl
and upload it using RCU
- or create a reMarkable page drawj2d -Trmdoc drawing.hcl
and transfer it to the device using its USB web interface or upload it to the cloud storage using the reMarkable desktop app
Write / copy text in a text file (e.g. textfile.txt). Use UTF-8 encoding.
Call drawj2d -Trmdoc write.hcl textfile.txt
to generate an rM notebook page.
script file write.hcl
# drawj2d
# usage: drawj2d write.hcl textfile
# preview: drawj2d -Tscr -W157 -H209 write.hcl textfile.txt
# reMarkable: drawj2d -Trmdoc write.hcl textfile.txt
#
if {< $argc 1} {
puts {usage: drawj2d write.hcl textfile}
return
}
set textfile [lindex $argv 0]
set f [open $textfile]
font Lines 3.5
m 15 5
text {} 138
while {$f hasnext} {
text [$f readln]
}
Notes
- The script uses a single line ("hershey") font called Lines, at size 3.5 mm.
- The text starts at 15 mm from the left border (avoids the menu bar), the maximal text line length is 138 mm
While the script will not do page breaks (drawj2d does not support multiple page output), you can still use it for longer texts. This is thanks to the continuous pages functionality (introduced by rM with its software version 3.0).
The single line font supports all Basic Latin and Latin-1 glyphs (and Greek, Latvian, Polish, Russian letters). For missing letters (e.g. accented greek letters) the fall back mechanism will render the outlines of the glyphs of the previously used truetype font. Drawj2d does not (and most likely will not) support "keyboard text" introduced in rM software version 3.
On the command line type (no scaling or scaled down)
echo image pageA5.pdf | drawj2d -Trmdoc
echo image pageA4.pdf 1 0 0 0.7 | drawj2d -Trmdoc
It writes a notebook file out.rmdoc. Then transfer it to the device using its USB web interface or the reMarkable desktop app.
For multipage pdf have a look at pdf2rmnotebook (Linux).