title-block-a4-p-custom-nomenclature
title-block-a4-p-custom-nomenclature
import pathlib
from document_issue import demo_document_issue
from document_issue_io.title_block import title_block_a4
fdir = pathlib.Path("tests/test-outputs")
fpth = fdir / "title-block-a4-p-custom-nomenclature.pdf"
fpth.unlink(missing_ok=True)
document_issue = demo_document_issue()
document_issue.name_nomenclature = "originator-project-volume-level-type-role-number"
title_block_a4(document_issue=document_issue, fpth_output=fpth)
print(fpth.exists())
#> True