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.
On the command line type (no scaling or scaled down)
echo image pageA5.pdf | drawj2d -Trmn
echo image pageA4.pdf 1 0 0 0.7 | drawj2d -Trmn ;# reMarkable 2
echo image pageA4.pdf 1 0 0 0.8 | drawj2d -Trmdoc ;# reMarkable Paper Pro
It writes a notebook file out.rmn or out.rmdoc. Then upload it using RCU or the reMarkable desktop app.
For multipage pdf have a look at pdf2rmnotebook (Linux) or rmn-combine (a Perl script to combine multiple page rmn files into a single notebook rmn file) or rmcat.
Have a look at the Drawj2d Examples for reMarkable tablet.
Download a Shape Library for reMarkable tablet.
Create a drawing using a text editor (with UTF-8 encoding support).
An example imput file thales.hcl is shown below.
Preview on screen: drawj2d -Tscreen -W157 -H209 thales.hcl
drawj2d -Tscreen -W168 -H239 thales.hcl
Create the reMarkable page
Drawj2d will generate a reMarkable notebook containing the line drawing. If you intend to transfer it to the device using a local cable or wlan connection choose the output type rmn (tar archive) . If you just need the raw page data (e.g. to replace a page in an existing notebook) choose the output type rm. The output type rmdoc (zip archive) can be used for a local transfer to the device using its USB web interface or for an upload to the cloud storage using the reMarkable desktop app.
drawj2d -Trmn thales.hcl
→ out-thales.rmndrawj2d -Trm thales.hcl
→ out-thales.rm drawj2d -Trmdoc thales.hcl
→ out-thales.rmdocTransfer the notebook page to the paper tablet
There are several options.
Transfer the notebook to the device using RCU
Transfer the notebook to the device using its USB web interface or upload it to the cloud storage using the reMarkable desktop app
Upload the page to the cloud storage using rMAPI
rmapi put out-thales.rm
or rmapi put out-thales.rmdoc
The page created by drawj2d should now appear in the notebook thales on your reMarkable tablet. You can edit it like a page drawn directly on the device.
Embed a pdf page. In the most simple case the drawj2d input file (suffix .hcl) contains just one line.
image page.pdf
Embed page 5 of an A4 sized (297mm x 210mm) pdf file, scale to fit the tablet height (297 * 0.7 = 208mm < 209mm), right justified (9 + 210 * 0.7 = 156mm < 157mm).
moveto 9 0
image article.pdf 5 0 0 0.7
Embed page 5 of an A4 sized (297mm x 210mm) pdf file, scale to fit the tablet height (297 * 0.8 = 238mm < 239mm), right justified (210*0.8 = 168mm <= 179mm - 11mm).
image article.pdf 5 0 0 0.8
For more options refer to the manual. Pdf files are interpreted, thus drawj2d redraws the vector data (instead of embedding a picture). Thus the rM notebook page will consist of lines that can be edited on the device. Fonts will render as outlines (limitation of the rM notebook file format).
More information
- Drawj2d web site
- Wiki Examples page
- Drawj2d Manual
Is the program useful for you? Consider supporting Drawj2d.
font Lines
moveto 15 10; label {Geometry} BL
movetox 140; label "[today]" BW
font bold 6
moveto 15 20
text {Thales, Pythagoras}
font plain 4
text {using Drawj2d (https://drawj2d.sourceforge.io)}
text {wiki https://sourceforge.net/p/drawj2d/wiki/reMarkable}
moveto 15 50
font italic
label {Thales:}
moveto 30 120
block
unitlength 1.0 cm
set B {0 0}
set C {8 0}
set A {8 -6}
dimline dots; font plain
dimline $B $C; label C SE
dimlineto $A; label A NE
dimlineto $B; label B SW
pen gray
dimangle $B $A $C
dimangle $C $B $A
dimangle $A $C $B
dot [geom.online $A $B 0.5]
circle [geom.dist $A]
endblock
pen black
moveto 15 150
font italic
label {Angles:}
moverel 25 0
font plain
label {α + β + γ = }
moveto 15 160
font italic
label {Pythagoras:}
moverel 25 7
font plain
label {a²+b² = }
moverel 0 7
label {c² = }
Wiki: Examples_reMarkable
Wiki: Examples_reMarkable_ShapesLib
Wiki: Home