tpisto / pdf-fill-form

Fill PDF forms and return either filled PDF or PDF created from rendered page images.
MIT License
227 stars 48 forks source link

Changing font size? #64

Closed 98avin closed 5 years ago

98avin commented 5 years ago

Rendered text is too big for the container fields, and all the written characters are not visible. Is there a parameter I can pass into the writeAsync function that lowers the font size (and other characteristics like bolding, type, etc.)? In addition, is there a way to just overlay the text on the field instead of trying to fit it properly?

I saw that it was suggested to install poppler-data for better font support, but can't find anything elaborating on that. Thanks

98avin commented 5 years ago

Never mind, I found earlier that this is actually set in the pdf itself. who knew