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

generateFDFTemplate fails if PDF Form field has value of '-----' #91

Open
ivan3065 opened this issue Dec 3, 2019 · 0 comments
Open

Comments

@ivan3065
Copy link

ivan3065 commented Dec 3, 2019

Snip from "dump_data_fields_utf8":

---
FieldType: Text
FieldName: some.fieldname
FieldFlags: 4194305
FieldValue: ----- 
FieldValueDefault: 10000
FieldJustification: Right
---

changing line 66 from
fields = stdout.toString().split("---").slice(1);
to
fields = stdout.toString().split(/^---$/m).slice(1);
solves the issue.

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

1 participant