Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdffiller-stream doesn't seem to work with accents. #11

Open
kiskalaci opened this issue Aug 11, 2020 · 5 comments
Open

pdffiller-stream doesn't seem to work with accents. #11

kiskalaci opened this issue Aug 11, 2020 · 5 comments

Comments

@kiskalaci
Copy link

My issue is that, when I use accents within the map such as {Név: "Patient2"}, the form fields will not get filled out. Whereas when I don't use any accents, then it works as intended. I'm I missing something or is this a bug .

Initially I was using the original pdffiller package and this issue was not present.

@Sparticuz
Copy link
Owner

@klaczi Is the issue present when using jasonphillips/pdffiller-stream? Are you saying the field doesn't get filled out with the accent? Or you are using a regex to map the Field names to your json object?

I haven't quite gotten my fork up to standards for public release yet. That's why the npm package is under my namespace, still testing and moving a lot of code around.

@kiskalaci
Copy link
Author

I've only tried your fork atm. It does get filled out, but with random text and characters which I could no comprehend. Currently I'm trying out hummus js but pdffiller - stream seemed interesting. Thanks for the fast reply :) !

@Sparticuz
Copy link
Owner

Sparticuz commented Aug 13, 2020 via email

@gitowiec
Copy link

gitowiec commented Nov 27, 2020

Here is my way to deal with accents
https://stackoverflow.com/questions/65037718/what-is-the-perfect-way-to-fill-acroforms-using-cli-linux-tool-or-nodejs-module
TL;DR;
You have to pass need_appearances to psdtk which excludes the use of flatten - sink or swim :(

@Sparticuz
Copy link
Owner

Ok, I'll look into adding that as an option soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants