Describe the bug
When you set permissions in pdftk if number of permissions are more then one, pdftk return error about unexpected data in output section.
For example:
Error: Unexpected data in output section:
FillIn CopyContents
Exiting.
Errors encountered. No output created.
Done. Input errors, so no output created.
It occurs when permission array passed in spawn like concatenated string.
Describe the bug When you set permissions in pdftk if number of permissions are more then one, pdftk return error about unexpected data in output section. For example:
It occurs when permission array passed in spawn like concatenated string.
To Reproduce Steps to reproduce the behavior:
Expected behavior Create a pdf file with proper permissios without error.