Pdfcropmargins

Latest version: v2.2.0

Safety actively analyzes 723200 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

2.0.3

------------------

* Work on a resource warning that appeared at times.

2.0.0

------------------

Changes:

* All internal PDF processing is now done with PyMuPDF. The PyPDF dependency
has been removed.

* The program now uses PyMuPDF for all internal PDF processing instead of
PyPDF. The PyPDF dependency has been removed, and PyMuPDF is a required
depencency.

* The PyMuPDF program is much stricter about setting page boxes than PyPDF, in
order to avoid inconsistent situations. Setting the MediaBox automatically
resets all the other boxes (CropBox, etc.) to their defaults. The MediaBox
is always set first. By default crops still set the MediaBox and CropBox,
but the other boxes will be reset.

* All the other boxes must be completely contained in the MediaBox to be set.
If not (when using the ``--boxesToSet`` option) a warning will be issued and
the action will be ignored.

* The ArtBox can no longer be used to save restore information. The restore
information is instead saved in the XML metadata. Documents that were
cropped by earlier versions will automatically have their ArtBox data
transferred to XML restore metadata unless the ``--noundosave`` option is
used.

* The options ``--docCatBlacklist`` and ``--docCatWhitelist`` have been removed
since PyMuPDF automatically retains the full document catalog.

1.2.0

------------------

Changes:

* Added deprecation warnings for the options ``--docCatBlacklist``,
``--docCatWhitelist``, ``--gsRender``, and ``--gsBbox``. They will be
removed in version 3.0. The latter two have equivalent ``-c`` options. The
former two no longer work because the PyPDF2 dependency will be fully
replaced with PyMuPDF. PyMuPDF by default copies over the full document
catalog and should be more compliant with PDF specifications.

1.1.178

-----------------------

New features:

* Added the option ``--screenRes`` to pass in the full screen resolution (if
the size-detection algorithm fails) and ``-guiFontSize`` to set the font size
in the GUI.

Changes:

* Python 3.7 now required due to requirements of Pillow and PyMuPDF.

Bug fixes:

* Sizing of the GUI for smaller screen resolutions has been improved.

1.1.146

-----------------------

New features:

* Windows can now be resized and the preview will be redrawn to match.
Page rendering to the GUI has also been improved.

Bug fixes:

* Added a fallback for some systems (KDE) which were failing to detect the
correct screen size for the GUI.

1.1.101

-----------------------

New features:

* Added an option ``--prevCropped`` (``-pc``) which just tests whether or not the document was
previously cropped with pdfCropMargins. This is meant for scripting use.

Bug fixes:

* Fixed a bug in returning error codes when running from the command line.

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.