Skip to content

Commit

Permalink
use weasyprint to generate pdfs from html + css
Browse files Browse the repository at this point in the history
  • Loading branch information
damonmcc committed Oct 2, 2024
1 parent bdd3ba9 commit 4378a19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion products/template/build_scripts/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def generate_metadata():
generate_metadata_assets.DEFAULT_DATA_DICTIONARY_TEMPLATE_PATH,
)
generate_metadata_assets.generate_pdf_from_html(
output_html_path, PRODUCT_PATH / "data_dictionary.pdf"
output_html_path,
PRODUCT_PATH / "data_dictionary.pdf",
generate_metadata_assets.DEFAULT_DATA_DICTIONARY_STYLESHEET_PATH,
)
oti_xlsx.write_oti_xlsx(metadata_path=dataset_metadata_yml)

Expand Down

0 comments on commit 4378a19

Please sign in to comment.