Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ThiefMD will not export to pdf #147

Open
filipkemuel opened this issue Apr 21, 2021 · 3 comments
Open

ThiefMD will not export to pdf #147

filipkemuel opened this issue Apr 21, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@filipkemuel
Copy link

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

@kmwallio kmwallio added the bug Something isn't working label Apr 21, 2021
@kmwallio kmwallio self-assigned this Apr 21, 2021
@kmwallio
Copy link
Owner

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.

@filipkemuel
Copy link
Author

filipkemuel commented Apr 22, 2021

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?

@kmwallio
Copy link
Owner

kmwallio commented Apr 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants