Open hugolpz opened 6 years ago
@Chanind, I explored a bit 2 of the possible ways to produce A4 pdfs. On the html2pdf approach, it seems the svg transform / translate get in the way. Could you take a brief look at this one, maybe you will 'feel' the issue thanks to your understanding of hanzi-writer :
HTML2PDF tool, converts an html element into pdf, bug on svg translation (?):
PDFkit, an in-client pdf generator, exploration has issues but progresses :
Exploration will continue.
I'm not sure what the issue could be, the SVG is pretty simple. As a minor aside, I'd recommend rendering the strokes in reverse order so the black strokes show up on top of the gray strokes.
New exploration : https://codepen.io/hugolpz/pen/jdwgvr
Input :
[ {character: " 我"}, {character: " 的"} ]
(compulsary) orOutput
Level 1:
Level 2:
Examples for inspiration:
Level 3: