Package: pp.client-python
pp.client-pythonProduce & Publish bindings for Python.Thepp.client-pythonbindings can be used to communicate
with the Produce & Publish serverpp.serverfor generating
PDF from Python applications .RequirementsPython 3.7 or higherSource codehttps://bitbucket.org/ajung/pp.client-pythonBug trackerhttps://bitbucket.org/ajung/pp.client-python/issuesDocumentationhttps://pythonhosted.org/pp.client-pythonAPIpdf APIThepdfAPI supports the conversion of HTML/XML to PDF
through the following PDFconverters:PDFreactorPrinceXMLSpeedata PublisherVivliostyle FormatterPagedJSTypeset.shWeasyprintAntennahouseThe PDF conversion process is based on the “CSS Paged Media” approach
where the input documents (XML or HTML) are styled using CSS only.ThepdfAPI ofpp.client-pythonexpects that the input
file and all related assets (images, stylesheets, font files etc.)
are placed within a working directory. The input file must be namedindex.html.Using the commandline frontend:$ ../bin/pp-pdf  --help
usage: pp-pdf [-h] [-f princexml] [-o] [-a] [-s http://localhost:6543]
              [-t None] [-c] [-v]
              source_directory [cmd_options]

positional arguments:
  source_directory      Source directory containing content and assets to be
                        converted
  cmd_options           []

optional arguments:
  -h, --help            show this help message and exit
  -f prince, --converter prince
                        PDF converter to be used (prince, pdfreactor, publisher)
  -o , --output         Write result ZIP to given .zip filename
  -s http://localhost:6543, --server-url http://localhost:6543
                        URL of Produce & Publish server)
  -t None, --authorization-token None
                        Authorization token for P&P server
  -v, --verbose         Verbose modeThe same functionality is available to any Python application through thepdf()API of thepp.client-pythonmodule:from pp.client.python.pdf import pdf

def pdf(source_directory,
        converter='prince',
        output='',
        cmd_options='',
        server_url='http://localhost:8000',
        authorization_token=None,
        verbose=False):SupportSupport for Produce & Publish Server and components is currently only available
on a project basis.Licensepp.client-pythonis published under the GNU Public License V2 (GPL 2).ContactAndreas Jung/ZOPYXHundskapfklinge 33D-72074 Tuebingen, Germanyinfo@zopyx.comwww.zopyx.comCHANGES3.0.1 (2023-02-07)modernized codebaseno feature changes3.0.0 (2020-02-14)adopted to new pp.server 3.x server APIcode cleanupbetter logging implementation0.5.1 (2019-08-02)fixed Python 3 deprecation warning0.5.0 (2018-07-14)compatibility with pp.server 2.0removed async support0.4.5 (2017-08-08)disabled option to by-pass SSL cert checks0.4.4 (2015-11-14)support for Vivliostyle Formatter0.4.2 (2015-02-02)support for /api/available-converters (requires pp.server>=0.6.1)0.4.1 (2014-11-19)experimental support for Speedata Publisher0.4.0 (2014-10-13)compatiblity with Python 3.3 and 3.4dropped Python 2.6 support0.3.6 (24-01-2014)added option ‘-c’ to most commandline script in order
for explicit SSL cert validation0.3.5 (24-01-2014)disabled SSL cert validation since Python/requests module
can not deal properly with the StartCOM SSL cert ofhttps://pp-server.zopyx.com0.3.4 (21-01-2014)updated unoconv API documentation0.3.3 (13-01-2014)support for server side token-based authorization0.3.2 (13-01-2014)import fix0.3.1 (21-10-2013)fixed an open file issue on Windowshttps://bitbucket.org/ajung/pp.client-python/issue/1/0.3.0 (17-10-2013)Python 3.3 compatibility0.2.9 (06-10-2013)added API methods forversionandconvertersAPI
of pp.server webservice0.2.8 (05-10-2013)added support forcmd_optionsparameter
for pp.server==0.3.50.2.7 (03-10-2013)documentation update0.2.6 (14-07-2013)better error handlingfixed issues with format() calls under Python 2.60.2.0 (06-07-2013)minor fixesmoved documentation to Sphinx0.1.5 (04-07-2013)implemented poll supportfixes0.1.4 (04-07-2013)added async support to pp-pdf commandline frontend0.1.3 (03-07-2013)pdf converter parameter not properly propagated0.1.2 (03-07-2013)logger fixes/changes0.1.0 (03-07-2013)initial release