Comments (5)
@aphelionz Thanks for letting me know about this. I figured out the issue. The signature images generated by the server have no density specified in the metadata, and apparently that is why they work properly, while most other images don't. The fix will be in the next version.
from docassemble.
Hi again! A quick question about this. If I use the following interview template, the drawn-in signature looks fine but the uploaded signature does not :( It renders very small in the corner of the PDF:
I thought it was a matter of using the da_file[0]
instead of just da_file
but that didn't seem to make a difference.
Interview template:
---
features:
progress bar: True
---
mandatory: True
code: |
set_progress(0)
interview_started
set_progress(25)
member_name
set_progress(50)
if is_company:
member_company
set_progress(75)
else:
member_company = "n/a"
set_progress(75)
if has_signature_image:
member_signature_upload
member_signature = member_signature_upload[0]
else:
member_signature
set_progress(100)
---
id: Intro
question: |
Welcome!
subquestion: |
Welcome again.
field: interview_started
---
id: Member Name
question: |
What is your full name?
fields:
- Name: member_name
---
id: Is Company
question: |
Are you part of a company?
yesno: is_company
---
id: Member Company
question: |
What is the name of your company?
fields:
- Name: member_company
---
id: Has Signature Image
question: |
Do you have a signature image to upload?
yesno: has_signature_image
---
id: Member Signature
question: |
Sign your name using the mouse or your finger.
subquestion: |
By signing your name, you agree to
our terms and conditions.
signature: member_signature
under: |
${ member_name }
---
question: |
Please upload a picture of your signature.
fields:
- Picture: member_signature_upload
datatype: file
---
id: FinalDoc
question: Here is your document.
allow emailing: false
attachment:
- name: Membership Agreement (10 Day Pass)
filename: Membership_Agreement_10_Day_Pass.pdf
pdf template file: Membership_Agreement_10_Day_Pass.pdf
fields:
- "date": ${ format_date(current_datetime(), format='M/d/yyyy') }
- "member_name": ${ member_name }
- "member_company": ${ member_company }
- "member_signature": ${ member_signature }
mandatory: true
---
I assume this is a simple configuration issue, which is why I didn't open another ticket. Thank you!
from docassemble.
@aphelionz I would need to see the Membership_Agreement_10_Day_Pass.pdf file and the file you are uploading to know what's going on. docassemble tries to fit the graphics image into the bounding box of the "Digital Signature" that you create using Adobe Acrobat. Depending on the relative aspect ratios of the "Digital Signature" and the image, your image could appear smaller or larger.
from docassemble.
Makes sense. This is the PDF I'm working with. I'm using PDF Studio 2019 if that helps.
Membership Agreement 10 Day Pass.pdf
from docassemble.
Great, thank you!
from docassemble.
Related Issues (20)
- Variables with datatype: raw causing UnboundLocalError HOT 2
- Main page has link to Slack channel that appears expired HOT 3
- JSON representation of code generated fields containing choices results in error HOT 2
- Upgrade version of pdftk-java in docassemble-os HOT 2
- Warn users when the config has duplicate entries that override each other HOT 1
- show if and disable if on the same field behaves unexpectedly HOT 2
- oauth2client in DAOAuth is deprecated HOT 3
- API resume_url with secret HOT 3
- Packages menu doesn't work as expected when browsing a user's playground HOT 1
- numbers and currency formating decimals HOT 1
- Migration to linux/arm64 (rpi4 / Raspberry Pi 4) HOT 2
- Playground fails to load HOT 5
- On the recipe screen, I think you should add something to the description of idle.js implementation
- 2424 HOT 1
- Update redis-py package requirement to 5.0.2 HOT 1
- Setting new language doesn´t work HOT 4
- Interview datatype date is returning 'Bad date' in the downloded document HOT 5
- Error when configured for Azure Authentication HOT 6
- Error: AttributeError: 'str' object has no attribute 'signature' HOT 3
- Feature Request: seperate out services from Dockerfile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docassemble.