Skip to main content

Transfer XML to well formatted PDF table.

Project description

pyxml2pdf

PyPI - Python Version PyPI release number Codacy Badge CircleCI Maintainability codecov Documentation Status

Convert XML input to PDF table. Since we forked the upstream this project has generalized quite a bit on the generation of a multipage PDF file containing a table with subtables each containing a subset of the xml tags based on the texts of some of their children tags. Since we work on this project mainly every end of the year, one can expect major developments during november to january. The next big step will be the deployment on Heroku.

Getting started

As a starting point you could take a look at the execution of MainPredefined.py which will download a publicly available XML file into the folder input and process it as desired to produce the output files (one file containing all generated pages in landscape and additionally one file per page rotated into portrait) and place them in the subfolder output.

The intended way of using this software is calling MainPredefined.py with the following command line parameters

  1. The URL to download XML file from if it is not present at the specified location.
  2. The file path to store and open the XML file locally.
  3. The file path to store the created PDF to.
  4. The file path to the properties file, which contains the settings for the table to be created.

A call thus could look like:

$ python pyxml2pdf/Main.py https://www.alpinclub-berlin.de/kv/DRAFT_kursdaten.xml input/2021_DRAFT_kursdaten.xml output/DRAFT_kursdaten.pdf input/kursdaten_prop.properties

Documentation

The full developer reference with all public interfaces you can find on ReadTheDocs . User documentation might still take a while for us to generate, since it is only us working on the project and using it as far as we know.

Get in touch

In case you have any questions on this project do not hesitate to get in touch with us.

Project details


Download files

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

Source Distribution

pyxml2pdf-0.1.0.tar.gz (275.3 kB view hashes)

Uploaded Source

Built Distribution

pyxml2pdf-0.1.0-py3-none-any.whl (30.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page