endesive icon indicating copy to clipboard operation
endesive copied to clipboard

adding empty signature field

Open userJay opened this issue 3 years ago • 3 comments

Hello M32, I really like your projekt. I don‘t have a real issue just a silly question.

If I see it right your blank_form.pdf is made with reportlab. Can you tell me how you did it? I could not find it.

Thanks a lot in advance!

Jay

userJay avatar Feb 01 '22 21:02 userJay

Ask the author, I have no idea how it's done. @seneca-c

m32 avatar Feb 01 '22 23:02 m32

It was done using by directly operating on the canvas from reportlab.pdfgen. One of the members of the canvas is acroForm, which comes with support for some of the PDF form field types. Signature lines are unsupported.

This particular form relied upon both the normal textfield method of canvas and a special function to add the blank signature field. The signature field was generated by some test code that was heavily inspired by reportlab.pdfbase.acroform._textfield (note the underscore, this is the method that ReportLab uses internally to generate all their supported form fields), aided by having a copy of the PDF specs handy.

seneca-c avatar Feb 02 '22 04:02 seneca-c

Hi

Isn´t there a way to create the Signature lines with FPDF?

Thanks

marcionetopencombr avatar Aug 07 '22 23:08 marcionetopencombr