A simple set of utilities to read from ArkhamDB and OCTGN files mainly used to generate printable proxies in PDF format.
pip install arkham-utils
Note the images from ArkhamDB have an FFG watermark on them.
from arkham_utils.arkhamdb import db
from arkham_utils.pdf.builder import PDFBuilder
cards = [db.search(name) for name in [
'Blackjack',
'Guts',
'Emergency Cache',
'Elder Sign',
'Shrivelling',
'Daisy Walker'
]]
pdf = PDFBuilder(cards)
pdf.write('proxies.pdf')
You will need to first download the image packs from https://ahlcgoctgn.wordpress.com/image-packs/ into a subfolder named o8c
in your application support directory (Library/Application Support/arkham_utils/o8c
on MacOS).
from arkham_utils.octgn import db
from arkham_utils.pdf.builder import PDFBuilder
cards = [db.find(name) for name in [
'Blackjack',
'Guts',
'Emergency Cache',
'Elder Sign',
'Shrivelling',
'Daisy Walker'
]]
pdf = PDFBuilder(cards)
pdf.write('proxies.pdf')
from arkham_utils.octgn import db
from arkham_utils.pdf.builder import PDFBuilder, PDFBuilderConfig
# write all the non-mini cards as a PDF
barkham = db.find_set('Meowlathotep')
PDFBuilder([c for c in barkham.cards if c.type != 'Mini']).write('barkham.pdf')
# write the mini investigator cards
mini_cfg = PDFBuilderConfig()
mini_cfg.cards_per_row = 4
mini_cfg.rows_per_page = 4
mini_cfg.card_height = 2.5
mini_cfg.card_width = 1.625
PDFBuilder([c for c in barkham.cards if c.type == 'Mini'], mini_cfg).write('barkham_minis.pdf')