Pdfcropmargins

Latest version: v2.1.2

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

Scan your dependencies

Page 7 of 7

0.1.3

Not secure
------------------

New Features:

* Now copies over data from the document catalog to the cropped document.
This includes, for example, the outline or bookmarks.

* There is a new option ``--docCatBlacklist`` (shortcut ``-dcb``) which can
be used to block any particular item from being copied. The default is
an empty string, which copies everything possible. To revert to the
previous behavior of pdfCropMargins you can set ``-dcb "ALL"``. See
the program's help option ``-h``.

* There is another new option ``--docCatWhitelist`` (shortcut ``dcw``) which
is a list of document catalog items to always try to copy over. This
list overrides the blacklist.

* There is a new option to use an order statistic in choosing the page size for
the ``--samePageSize`` option. The argument is the number ``n`` of pages to
ignore in each edge calculation. The option is ``--samePageSizeOrderStat``
(shortcut ``-ms``). See the program's help option ``-h``.

* Added a new option ``--setPageRatios`` (shortcut ``-spr``) which allows the
width to height ratios of the final pages to be set. Either top and bottom
or left and right margins will be increased after the usual cropping to
give the chosen ratio.

0.1.2

Not secure
------------------

* Changed code to better PEP-8 naming.

* Fixed issue where return codes were not being returned correctly on failure.

* Modified ``samePageSize`` option to only apply to pages selected by the ``pages`` option.

* Option ``-pg`` is now another synonym for ``--pages``.

0.1.1

Not secure
------------------

* Minor edits to documentation.

0.1.0

Not secure
------------------

New Features: None.

Bug Fixes: None.

Other Changes:

* Converted to have a setup.py and install using pip.

* The executable is now called pdf-crop-margins instead of pdfCropMargins.

* Local PyPDF2 is no longer packaged with it.

0.0.0

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

Initial release.

Page 7 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.