ThiefMD icon indicating copy to clipboard operation
ThiefMD copied to clipboard

ThiefMD will not export to pdf

Open filipkemuel opened this issue 3 years ago • 3 comments

Using: Tried with Flatpak and with aur-build Desktop Environment: GNOME OS: Tried under Arch Linux and Clear Linux Tested on Wayland and X11

Steps:

  1. Open ThiefMD
  2. Open a mardown document.
  3. Right-click the document and choose "Export"
  4. Choose "PDF" and click "Export"
  5. Choose a filename and click "Save"
  6. ThiefMD says: "ThiefMD could not export the file, please try again"

ePub, DocX, HTML, LaTeX, MHTML and markdown export all work fine.. It's only PDF that's not working

filipkemuel avatar Apr 21 '21 20:04 filipkemuel

If you run ThiefMD from the command line and export, can you capture the logs and share them?

flatpak run com.github.kmwallio.thiefmd > log.txt 2>&1 or com.github.kmwallio.thiefmd > log.txt 2>&1

We're working on supporting weasyprint and pagedjs to alleviate some issue's we've seen with Gtk PDF generation.

kmwallio avatar Apr 21 '21 20:04 kmwallio

I have attached log-files for Arch Linux with Aur-build, Arch Linux with Flatpak and Clear Linux with Flatpak

All three of them differ in output.. most of the output comes when ThiefMd is launching. The Arch-flatpak build is the only one outputting something when trying to export.

It complains about not being able to connect to dbus system-bus. But the other two does not output any errors like that and none of them will export to PDF.

arch-aurbuild-log.txt arch-flatpak-log.txt clear-flatpak-log.txt

NB: the line "Kunne ikke forbinde: Ingen sådan fil eller filkatalog" means: "Could not connect: No such file or directory" I forgot to switch locale to english when running it..

We're working on supporting weasyprint and pagedjs to alleviate some issue's we've seen with Gtk PDF generation.

Aren't you already using pandoc? Doesn't it have PDF export build in?

filipkemuel avatar Apr 22 '21 06:04 filipkemuel

Aren't you already using pandoc? Doesn't it have PDF export build in?

pandoc has PDF support, but doesn't have PDF built in. It requires a LaTeX package, wkhtmltopdf, or weasyprint.

NB: the line "Kunne ikke forbinde: Ingen sådan fil eller filkatalog" means: "Could not connect: No such file or directory" I forgot to switch locale to english when running it..

Thanks for letting me know. This might be an embarrassing/odd bug that might be fixed in the beta branch. We localized some system strings that should not have been localized.

This will be fixed by the weasyprint changes that are coming since we won't be going through the system's print to PDF option.

I'll make sure to test on a localized build prior to the next release.

kmwallio avatar Apr 22 '21 16:04 kmwallio