Package Details: pdfcropmargins 2.1.2-2

Git Clone URL: (read-only, click to copy)
Package Base: pdfcropmargins
Description: Automatically crops the margins of PDF files
Upstream URL:
Licenses: GPL
Conflicts: python-pysimplegui
Submitter: zoe
Maintainer: zoe
Last Packager: zoe
Votes: 2
Popularity: 0.000000
First Submitted: 2020-04-01 23:06 (UTC)
Last Updated: 2024-05-19 10:21 (UTC)

Latest Comments

loserMcloser commented on 2024-05-18 19:14 (UTC)

PKGBUILD for version 2.1.2

begin-theadventu commented on 2023-09-03 20:07 (UTC)

@zoe Do you plan to update this package?

ilario commented on 2023-08-10 12:31 (UTC)

It complains that PyPDF2 is not available even if python-pypdf2 was installed as a dependency:

Error in pdfCropMargins: No system PyPDF2 Python package was found. Reinstall pdfCropMargins via pip or install that dependency ('pip install pypdf2').

$ pacman -Q python-pypdf2 python-pypdf2 1:2.12.1-3

Checking on the upstream repository, since the version 2.0.0 the dependency to PyPDF2 is not needed. So, a possible fix is to update this AUR entry.

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