jamiemcg / Remarkable

Remarkable - The Markdown Editor for Linux http://remarkableapp.github.io
MIT License
1.96k stars 226 forks source link

Export pdf (styled) problem. Ubuntu 20.04 #370

Closed cafernandezlo closed 1 week ago

cafernandezlo commented 3 years ago

preview is ok but exporting a PDF (styled) is not working properly, seems like some of the chucks (baash) are badly formed. I tried cloning the repo, with snap but the same problem arise and also have problems to install the deb package as mentioned in previous issues.

mikeperalta1 commented 3 years ago

+1

Tried to run in debug mode but didn't see any useful information. I'm on Ubuntu 20.10 using a repo clone (commit 1ed83780fa011badca3c22f28e34475eb0d36564).

Console only outputs the following:

mike@bedroom:~/Documents$ remarkable --verbose
DEBUG:remarkable: set_up_logging() 'logging enabled'
--verbose does not exist, creating it

Neither PDF output (plain or styled) works, but HTML does.

mikeperalta1 commented 3 years ago

As a temporary workaround, you can export to HTML, then use the wkhtmltopdf tool to convert to PDF:

$ wkhtmltopdf --enable-local-file-access my-document.html my-document.pdf

As you can see in the image below, it's not perfect. But at least it's something:

image

mikeperalta1 commented 3 years ago

Poking around, I've just noticed Remarkable is using pdfkit version 0.4.1, while the latest is 0.6.1

Just a thought.