Git Product home page Git Product logo

Comments (5)

jhpyle avatar jhpyle commented on July 23, 2024 1

@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.

aphelionz avatar aphelionz commented on July 23, 2024

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:

image

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.

jhpyle avatar jhpyle commented on July 23, 2024

@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.

aphelionz avatar aphelionz commented on July 23, 2024

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.

aphelionz avatar aphelionz commented on July 23, 2024

Great, thank you!

from docassemble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.