Go library to parse and render Remarkable lines files as PDF.
package main
import (
"fmt"
"os"
rm2pdf "github.com/poundifdef/go-remarkable2pdf"
)
func main() {
// Render a single .rm lines file as PDF
input, _ := os.Open("4.rm")
output, _ := os.Create("out.pdf")
rm2pdf.RenderRmFile(input, output)
output.Close()
// Render a full Notebook file as PDF
output, _ := os.Create("out.pdf")
rm2pdf.RenderRmNotebook("Notebook.zip", output)
output.Close()
}
go-remarkable2pdf
Original
If you want to make any other modification or refactor: please create an issue and talk to me prior to making your PR. This way we can talk about the feature, approach, and my own ability to commit to reviewing and merging code.
I don't guarantee that I will keep this repo up to date, or that I will respond in any sort of timely fashion! Your best bet for any change is to keep PRs small and focused on the minimum changeset to add your feature.
Of course, you are welcome to fork, modify, and distribute this code with your changes in accordance with the LICENSE.