Package Details: pdfcropmargins 2.2.0-3

Git Clone URL: https://aur.archlinux.org/pdfcropmargins.git (read-only, click to copy)
Package Base: pdfcropmargins
Description: Automatically crops the margins of PDF files
Upstream URL: https://pypi.org/project/pdfCropMargins/
Licenses: GPL
Conflicts: python-pysimplegui
Submitter: zoe
Maintainer: zoe
Last Packager: zoe
Votes: 3
Popularity: 0.069512
First Submitted: 2020-04-01 23:06 (UTC)
Last Updated: 2025-01-19 18:19 (UTC)

Latest Comments

« First ‹ Previous 1 2

victorgv commented on 2021-01-06 19:29 (UTC) (edited on 2021-01-06 19:33 (UTC) by victorgv)

After a full system update (through pacman -Syu), pdf-crop-margins raise the following error:

Traceback (most recent call last):
  File "/usr/bin/pdf-crop-margins", line 33, in <module>
    sys.exit(load_entry_point('pdfCropMargins==0.2.15', 'console_scripts', 'pdf-crop-margins')())
  File "/usr/bin/pdf-crop-margins", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
  File "/usr/lib/python3.9/importlib/metadata.py", line 524, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib/python3.9/importlib/metadata.py", line 187, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: pdfCropMargins

Tried reinstalling with yay -S pdfcropmargins. Unfortunately it keeps failing.

Then I tried running sudo pip install pdfCropMargins and it seems to be working.

Isn't it bad practice to manually install PYPI packages as root? IMHO this update should be automatically handled by this package.

loserMcloser commented on 2020-07-08 18:08 (UTC)

Need to add python-pypdf2 as a dependency?

% pdf-crop-margins --help

Error in pdfCropMargins: No system pyPdf Python package was found.


Caught an unexpected exception in the pdfCropMargins program.
Unexpected error:  <class 'ModuleNotFoundError'>
Error message   :  No module named 'PyPDF2'

  File "/usr/lib/python3.8/site-packages/pdfCropMargins/pdfCropMargins.py", line 109, in main
    from .main_pdfCropMargins import main_crop
  File "/usr/lib/python3.8/site-packages/pdfCropMargins/main_pdfCropMargins.py", line 63, in <module>
    from PyPDF2 import PdfFileWriter, PdfFileReader