galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.15k stars 169 forks source link

Adding Font References to FormXObject #297

Open glennt opened 6 years ago

glennt commented 6 years ago

Hello,

I'm working on trying to create checkboxes from scratch by replicating the dictionary structure. Is there a way to add a font reference to the Resources dictionary that defines the appearance?

I'm creating the "Yes" FormXObject using pdfWriter.createFormXObject but am not sure what to do after that. Attached is an image of the structure I'm trying to build.

Thanks. checkbox_pdf_structure

youssef-lr commented 5 years ago

Have you figured this out? I need to accomplish something similar.