Package Details: pdfcropmargins 1.0.5-1

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
Submitter: zoe
Maintainer: zoe
Last Packager: zoe
Votes: 1
Popularity: 0.058870
First Submitted: 2020-04-01 23:06
Last Updated: 2021-06-12 07:29

Latest Comments

zoe commented on 2021-01-09 23:57

@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

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

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