Error on saving PDF: AttributeError: 'Shape' object has no attribute 'drawRect' #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I installed plakativ (version 0.5.1) with pipx (tried python 3.8.18 and python 3.11.5 same result). The GUI works as expected, I can select the page format, and the output format.
If I select "print cutting guide", upon saving the PDF (with a different) name, nothing happen. Looking at the terminal from which I started the program, I can see the following error message:
If the "print cutting guide" option is not selected, saving the file works as expected.
This is probably related to your version of pymupdf. Which version are you using?
I am using Manjaro. The "python-pymupdf" package (version 1.23.5) is available in the repository but is not currently installed on my machine.
The library was not installed either in the python environment when I installed plakativ with pipx. I manually installed pymupdf (1.23.5) using pip in the environment created by pipx, but it does not seems to change anything, the same error message and the file is not saved.
Yes, that's because I never tried plakativ with pymupdf 1.23.5. It works fine with 1.21.1 so the interface changed between these two versions. Would you like to try a patch and see if that fixes things for you?
Sure
Does this fix things for you?
Yep, the patch applies cleanly and no more error message, the cutting guide are shown on the final PDF. It seems to fix the issue for me.
Thanks a lot!