svenssonaxel / pdf-sign

A tool to sign PDF files. With Linux support.
MIT License
127 stars 3 forks source link

Initial GUI size shrunk to a state of unusability #10

Closed relleoML closed 5 months ago

relleoML commented 5 months ago

Thanks for this great tool I've been anticipating for years! It works like a charm!

However, I found this oddity that the GUI always opens up in a quite unusable state (see screener) - i.e. the window canvas is shrunk to a few pixels.

shrunk GUI

In another issue I read something similar.

Its not a big deal to drag and enlarge the window in first x- and then y- direction, but its 2 unnecessary interactions imho. Enlarging it diagonally makes the tool crush with the following error:

Unrecoverable error: rangecheck in .putdeviceprops Command '['gs', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-dQUIET', '-sOutputFile=/tmp/tmpry7ko1k6/display.png', '-sDEVICE=pngalpha', '-dMaxBitmap=2147483647', '-dDEVICEWIDTHPOINTS=-1', '-dDEVICEHEIGHTPOINTS=-1', '-dFIXEDMEDIA', '-dPDFFitPage', '-f', '/tmp/tmpry7ko1k6/signed-page.pdf']' returned non-zero exit status 255.

I suppose its a tkinter issue, but the error seems to somehow imply otherwise.

I am using Ubuntu and Gnome shell if that matters somehow.

svenssonaxel commented 5 months ago

@relleoML Please try branch dev. Can you confirm whether the fix works for you?

relleoML commented 5 months ago

@svenssonaxel Yes, branch dev resolves this issue. Thanks! How do we go from here?

svenssonaxel commented 5 months ago

@relleoML Merged to master.