Skip to content

Read only fields filling #33

@cryo28

Description

@cryo28

Our project prepopulates a few pdf forms taken from 3rd-parties by the means of ActivePdftk. In some of such forms there are a few "readonly" fields which we nevertheless need to be populated. However, this cannot be done with ActivePdfktk without patching it, because it silently ignores all attempts to set a value to readonly field

https://github.com/tcocca/active_pdftk/blob/master/lib/active_pdftk/field.rb#L224
https://github.com/tcocca/active_pdftk/blob/master/lib/active_pdftk/form.rb#L87

PDFTK is fine filling readonly fields on its own.

It would be great if ActivePdftk would allow to populate readonly fields.

I'd be happy to come up with a pull requests. I'd like to discuss whether read_only? check can be removed from the mentioned above lines of code or should the code contain some different methods instead of set and value= to assign values for read only fields?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions