getting-things-gnome / gtg

Getting Things GNOME! trunk
https://wiki.gnome.org/Apps/GTG
GNU General Public License v3.0
556 stars 164 forks source link

Improve the PDF / PocketMod export plugin to get rid of the pdftk-java dependency #984

Open nekohayo opened 1 year ago

nekohayo commented 1 year ago

It turns out that by using pdftk we accidentally depend on Java, which is hilarious and sad at the same time šŸ« 

Indeed, the pdftk project reportedly rewrote their codebase to Java some years ago. I had never noticed because the GTG package had disappeared from Fedora, but it actually exists in Debian, so whoever installs Debian's/Ubuntu's GTG package gets pdftk-java pulled in as part of the dependencies. I'm not even sure it actually works with that pdftk-java thing installed, in practiceā€¦

This is not urgent, but eventually after 0.7 is done (see #737) and released, as part of #974 it would be a "nice thing to have" to get rid of this dependency. Maybe by doing MarkDown export as a first-class citizen instead of PDF, and leaving PDF generation to the various Markdown conversion tools?

Neui commented 1 year ago

It seems Debian marks pdftk-java as a dependency instead of something else (recommends/suggests/enhances), so maybe that could be changed in the meantime.

nekohayo commented 1 year ago

Maybe @fbriere is the one to notify about the Debian package's dependencies property, or would know who to notify or could file a bug on Debianā€¦

ploum commented 1 year ago

I submitted a bug to debian about it.

Thereā€™s already a different albeit related one: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050453

ploum commented 1 year ago

debian bug : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051530