Closed teto closed 4 years ago
Looks like pymupdf removed support for the images
flag in the getTextBlocks()
function. I just pushed a quick fix: 9e5ee6d4ebfd16343c231762c2ccd2beb8831847 But this will have the bad consequence that images are ignored when autocropping!
Wait, @teto, are you using Linux? I can't get termpdf.py
to work on my Arch Linux system, see https://github.com/dsanson/termpdf.py/issues/2. If you're running linux, it's probably just a dependency problem on my part.
@rien333 yes I am on linux, you can have a look at my package https://github.com/NixOS/nixpkgs/pull/69637/files to see the dependencies I use. I know at least one person using termpdf.py on arch so that must be sthg in your config. Try reinstalling with the new setup.py (it used to lack dependencies).
(python-)dependencies don't seem to be the issue, but it's a bug that might be specific to kitty, see #2. What version of kitty are you running @teto ?
0.14.3
FWIW, @rien333, I am using fish, though I am on a Mac.
I have packaged termpdf for my distrib and am playing a bit with it. When pressing 'c' (crop), termpdf crashes with: