Skip to content

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

Description

@ivan3065

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions