Permalink
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (37 sloc) 655 Bytes
metadata:
title: Overlay
example start: 1
example end: 7
---
modules:
- docassemble.base.util
---
question: |
What is your favorite fruit?
fields:
- Fruit: favorite_fruit
---
question: |
What is your favorite vegetable?
fields:
- Vegetable: favorite_vegetable
---
question: |
Upload your company logo.
fields:
- Logo: logo_image
datatype: file
---
attachment:
variable name: logo_page
docx template file: logo_template.docx
---
attachment:
variable name: the_document
docx template file: food_template.docx
---
mandatory: True
question: |
Here is your document.
subquestion: |
${ overlay_pdf(the_document, logo_page) }