Package Details: pdfcropmargins 1.0.9-1

Git Clone URL: (read-only, click to copy)
Package Base: pdfcropmargins
Description: Automatically crops the margins of PDF files
Upstream URL:
Licenses: GPL
Submitter: zoe
Maintainer: zoe
Last Packager: zoe
Votes: 2
Popularity: 0.003679
First Submitted: 2020-04-01 23:06 (UTC)
Last Updated: 2022-07-29 08:35 (UTC)

Latest Comments

zoe commented on 2021-01-09 23:57 (UTC)

@victorgv : I cannot reproduce your error. For me, it does work well, and my archlinux is up-to-date…

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/", line 524, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib/python3.9/importlib/", 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/", line 109, in main
    from .main_pdfCropMargins import main_crop
  File "/usr/lib/python3.8/site-packages/pdfCropMargins/", line 63, in <module>
    from PyPDF2 import PdfFileWriter, PdfFileReader