Skip to main content

Kill Team 3rd edition datacard extractor

Project description

Kill Team datacard extractor

License: GPLv3 Shop: Elecrow Donations: Coffee Version

This is a script to extract Kill Team 3rd Edition datacards from the free rules PDFs published by Games Workshop.

The free PDFs always start with a few pages of unit rule datacards, followed by faction rule datacards. These are intended to be printed at home and cut out manually. This script automates the cutting part and outputs one image per card, or a stacked PDF with one page per card rotated to be oriented the same way.

If you like my work please consider supporting me!

Table of contents

Usage

  • Go to Warhammer-Community Kill Team downloads
  • Download the PDF for the Kill Team you want to play
  • Take note of which pages have horizontally drawn datacards, and which pages have vertically drawn datacards.
    • (Unit cards are pasted as ~4 horizontal pages, while rule cards are pasted as ~6 vertical pages)
  • Execute the script, making sure to set all required arguments

kt3extract -h "1-3" -v "4-5" -o png -i /path/to/killteam.pdf

Arguments

All arguments are required.

  • -h / --horizontal: Range of pages where horizontal datacards are situated. -h "1-3"
  • -v / --vertical: Range of pages where vertical datacards are situated. -h "4-5"
  • -o / --output: Format of output files. Allowed formats: pdf, png
  • -i / --input: Path to your team's PDF file. /path/to/killteam.pdf

Todo

  • Plausibility check input parameters, testing for range format
  • Plausibility check input path leads to a PDF
  • Read in PDF, splitting into two page stacks for horizontal and vertical pages
  • Cut and export each page stack
  • Export as stacked PDF
  • Add optional padding parameter
  • Scale pages to be exactly 70mm x 120mm before padding
  • Export as PNG

Donations

If you like my work please consider supporting me!

License

GPLv3
This work is licensed under a GNU GPLv3 License.

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

kt3extract-0.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kt3extract-0.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file kt3extract-0.0.1.tar.gz.

File metadata

  • Download URL: kt3extract-0.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for kt3extract-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2ce29e48325754dfdc2649421453c3fbc1153d26fdde56a6fc0e6c1f8fbf1ad5
MD5 dbfbe19e7957282839fbee37085be044
BLAKE2b-256 0fe2a759e1f21f20ecb8d480faa4acc458c16e287855c347e052642b3b7341e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for kt3extract-0.0.1.tar.gz:

Publisher: python-publish.yml on Chrismettal/Kill-Team-datacard-extractor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kt3extract-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kt3extract-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for kt3extract-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b84846356a16c9e1feec7156bdfd2bfb8612774634bf18132b7cc990561b89a9
MD5 b7259d9f94b3cfd887bc18b7acbc32cd
BLAKE2b-256 3e1e4cd93f27dbf7d87af52355b55187da90df767ade956fce633099f348c34d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kt3extract-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on Chrismettal/Kill-Team-datacard-extractor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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