FS#73939 - pdftk may require community/java-commons-lang for certain tasks

Attached to Project: Community Packages
Opened by Tim Jones (tsj) - Wednesday, 23 February 2022, 23:53 GMT
Last edited by Jonas Witschel (diabonas) - Thursday, 24 February 2022, 10:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
pdftk command dump_data_fields fails without community/java-commons-lang installed

Additional info:
* package version(s)
community/pdftk 3.3.2-1

Steps to reproduce:

1. Get a pdf with some fields, eg
$ curl https://www.irs.gov/pub/irs-pdf/f8949.pdf

2. Dump fields with pdftk
$ pdftk f8949.pdf dump_data_fields
Error: could not load a required library for this operation.
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils
Make sure that bcprov and commons-lang3 are installed and included in the
classpath. See also https://gitlab.com/pdftk-java/pdftk/issues/2.
No output created.

After installing community/java-commons-lang 3.12.0-1 pdftk produces useful output instead of error
This task depends upon

Closed by  Jonas Witschel (diabonas)
Thursday, 24 February 2022, 10:50 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Thursday, 24 February 2022, 00:12 GMT
Which is why it's already listed.

java-commons-lang (optional) - burst, dump_data, dump_data_fields and update_info operation support

Loading...