Transfer XML to well formatted PDF table.
Project description
pyxml2pdf
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
- The URL to download XML file from if it is not present at the specified location.
- The file path to store and open the XML file locally.
- The file path to store the created PDF to.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyxml2pdf-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2b114f519423620dd9dc91027d2cde7ec38fd00d9a76eab424e1556ac479c4b |
|
MD5 | 60f0ec601b8b6bed733a0a34fc2caa0a |
|
BLAKE2b-256 | ed84b8d0941148f0b304671247ba1c5324649f6e5c0cb4ad92f01bfe5e59bc54 |