-
-
Notifications
You must be signed in to change notification settings - Fork 101
Description
Describe the bug
Failed to merge PDF with footer when installing libraries manually..
To reproduce
- Manually place JSignPdf.jar in /opt/libresign.
- Set correct ownership and permissions (www-data:www-data, 755)
- Installed java,pdftk from debian repositories
- Set the path manually
- php occ config:app:set libresign jsignpdf_path --value "/opt/libresign/jsignpdf-2.3.0/JSignPdf.jar"
- php occ config:app:set libresign java_path --value "/usr/bin/java"
- php occ config:app:set libresign pdftk_path --value "/usr/bin/pdftk"
Expected behavior
LibreSign should merge the PDF with the footer successfully, even if the libraries were installed manually instead of "occ libresign:install --all"
Screenshots
Environment information
- Nextcloud version: Nextcloud Hub 10(31.0.5)
- LibreSign version: 11.6.0
- PHP version: 8.2.28
- OS: debian 12 (bookworm)
- Java: openjdk 17.0.17
- JSignPdf version: 2.3.0
- pdftk: pdftk port to java 3.3.2 a Handy Tool for Manipulating PDF Documents
root@nextcloud:/var/www/nextcloud# php occ config:app:get libresign java_path
/usr/bin/java
root@nextcloud:/var/www/nextcloud# php occ config:app:get libresign pdftk_path
/usr/bin/pdftk
root@nextcloud:/var/www/nextcloud# php occ config:app:get libresign jsignpdf_path
/opt/libresign/jsignpdf-2.3.0/JSignPdf.jar
root@nextcloud:/var/www/nextcloud#
Additional context
For java, pdftk, and jsignpdf, the “Invalid hash of binary files” error is expected because I manually set the paths instead of using occ libresign:install --all, so the verification fails. However, this should not be a problem since the paths are correctly set. I didn’t want to install these libraries through LibreSign because they are already installed on my system from repositories except jsignpdf and I want to use them.
Does it have to be installed through occ libresign:install --all? If not, what could be the possible issues?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status