Pdfcropmargins

Latest version: v2.1.2

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

Scan your dependencies

Page 1 of 7

2.1.2

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

New features:

* Added the options ``--centerText``, ``--centerTextHoriz``,
``--centerTextVert``, and ``--centeringStrict`` to center text on the pages
after cropping.

Bug fixes:

* Fixed a bug in ``--keepVertCenter`` and ``--keepHorizCenter`` when cropping is restricted
to certain pages.

2.1.01

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

Changes:

* The version of pySimpleGui to install is restricted to less than version 5,
since it started requiring registration at that point.

* The default for what boxes to set is now by default only the mediabox. This
is because of unknown problems causing "cropbox could not be written"
exceptions from PyMuPDF. It will try writing the boxes, if they are
selected with ``--boxesToSet``, but may or may not actually set them.

2.0.12

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

New features:

* Added the option ``--setSamePageSize`` (``-ssp``) which sets all the page
boxes to user-passed values instead of calculating the containing page
size.

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.

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.