Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Moving import to top fixes segfault
Browse files Browse the repository at this point in the history
But then again, this can result to conflicts between package maintainers
who all claim the top lines for importing.

Also, I've not tested if everything as in _everything_ still works:
adding images to the pdfarranger doc and signing it using pyHanko works.
  • Loading branch information
plenaerts committed Apr 17, 2021
1 parent c8accda commit 4640ed1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pdfarranger/pdfarranger.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

print('Testing imports')
from pyhanko.pdf_utils.barcodes import PdfStreamQRImage
from pyhanko.pdf_utils.images import PdfImage

import os
import shutil # for file operations like whole directory deletion
import sys # for processing of command line args
Expand Down Expand Up @@ -2024,9 +2028,6 @@ def sign_pdf(self, _action, _parameter, _unknown):
2. ask for a coordinate to put the signature;
3. save the document as a new PDF file and sign it using pyHanko.
"""
print('Testing imports')
from pyhanko.pdf_utils.barcodes import PdfStreamQRImage
from pyhanko.pdf_utils.images import PdfImage

# Check for pyHanko
try:
Expand Down

0 comments on commit 4640ed1

Please sign in to comment.