pdffillerjs / pdffiller

Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.
MIT License
289 stars 114 forks source link

Non-ASCII characters not being filled in form #95

Open lagavuliner opened 4 years ago

lagavuliner commented 4 years ago

Hi, thank you for your script. I can't get the non-ASCII characters into the completed PDF, do you know how I can troubleshoot and/or fix this problem?

var pdfFiller = require('pdffiller'); var sourcePDF = "test/test.pdf"; var destinationPDF = "test/test_complete.pdf"; var data = { "firstName" : "String with some special characters čćšđž" };

pdfFiller.fillForm( sourcePDF, destinationPDF, data, function(err) { if (err) throw err; console.log("In callback (we're done)."); });

terrisgit commented 4 years ago

I'm going to try https://github.com/eemeli/pdf-form-fill

michaeldoubek commented 3 years ago

Same issue here for Czech characters

rbadr commented 3 years ago

Hello @snowlep @mikeoaklet 👋 Did you find a solution to your problem ? I'm encountering the same issue 😅

lagavuliner commented 3 years ago

@rbadr No, and I scrapped my project for other reasons so I didn't find a work-around.