Ghostscript Split Pdf

вторник 14 январяadmin
Ghostscript Split Pdf Rating: 5,5/10 6858 reviews

If you want the cleanest looking files, use a program like PDF Split, if you want the smallest files, use the print to PDF method above. Figure 8: Splitting a PDF in Split PDF. Sometimes PDF optimization is not enough to shoehorn your PDF within strict file size limits. Splitting larger PDFs into multiple files is the answer. GhostScript itself does not have the ability to split a PDF into separate files for each page. You can either write a bash script that runs the above command for each page in the file or you can use Pdftk to 'burst' a PDF into separate pages.

Latest version

Last released:

Interface to the Ghostscript C-API, both high- and low-level, based on ctypes

Project description

Author:Hartmut Goebel <h.goebel@crazy-compiler.com>
Version:0.6
License:GNU Public License v3 (GPLv3)
Homepage:https://gitlab.com/pdftools/python-ghostscript

Ghostscript is a well known interpreter for the PostScriptlanguage and for PDF. This package implements a interface to theGhostscript C-API using ctypes. Both a low-level and a pythonic,high-level interface are provided.

This package is currently tested only under GNU/Linux. Richard buckner the hill rar. Please reportwhether it works in your environment, too. Thanks.

Example

Here is an example for how to use the high-level interface ofpython-ghostscript. This implements a very basic ps2pdf-tool:

Here an example for passing a string document to Ghostscript:

More examples can be found in the examples subdirectory of thedistribution archive.

Requirements and Installation

Please note:This package is meant for developers. Even if there aresome usable examples included, installations instructions are meantfor developers.

python-ghostscript requires

  • Python 2.7 or higher (tested with Python 2.7, 3.4, 3.6 and 3.6)
  • setuptools for installation (see below)
  • Ghostscript Version 8.x or higher (tested with 9.x)

Installing python-ghostscript

Since this package is meant for developers, we assume you haveexperience in installing Python packages.

python-ghostscript is listed on PyPI (Python Package Index), soyou can install it using pip install ghostscript as usual. Pleaserefer to the manuals of pip for further information.

Alternatively you my download and unpack the source package ofpython-ghostscript from http://pypi.python.org/pypi/ghostscript andrun:

Release historyRelease notifications

0.6

0.5.dev0 pre-release

0.4.1

0.4

0.3

0.2

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ghostscript, version 0.6
Filename, sizeFile typePython versionUpload dateHashes
Filename, size ghostscript-0.6-py2.py3-none-any.whl (15.2 kB) File type Wheel Python version py2.py3 Upload dateHashes
Filename, size ghostscript-0.6.tar.gz (34.3 kB) File type Source Python version None Upload dateHashes
Close

Hashes for ghostscript-0.6-py2.py3-none-any.whl

Hashes for ghostscript-0.6-py2.py3-none-any.whl
AlgorithmHash digest
SHA256db90da79326ae62e4a3cc58a7c39c4be6503ad71c5e73047fb68599ae5e40cba
MD5579c0878726acae200da60305b4fef22
BLAKE2-256d0bdc96072da3a98a498285382ec6ee4b18379c021e4bb6561308e25bc4c04d0
GhostscriptClose

Hashes for ghostscript-0.6.tar.gz

Hashes for ghostscript-0.6.tar.gz
AlgorithmHash digest
SHA256ad0a71048dd96644c46d09f7c8c7d479e2b4d290ca3125cc49540e463a2877ac
MD55be9c4fedce48d1946a181979b5b4258
BLAKE2-256949e7336c40a3286ee4b58016a5e032102715e2517c343ac3b7d672c2c92210c