pdfannotextractor launch script is missing "-jar" flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
texlive-extra (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
pdfannotextractor is a script that is part of the pax package that is part of texlive-latex-extra : https:/
The default installation throws this error:
$ pdfannotextractor --debug submission.pdf
PDFAnnotExtractor 0.1l, 2012/04/18 - Copyright (c) 2008, 2011, 2012 by Heiko Oberdiek.
* CLASSPATH: []
* is_win: [0]
* Which kpsewhich: [/usr/bin/
* Backticks: [kpsewhich --progname pdfannotextractor --format texmfscripts pax.jar]
* Exit code: [0/success]
* pax.jar: [/usr/share/
* pdfbox.jar: [/usr/share/
* Which java: [/usr/bin/java]
* System: [java /usr/share/
Error: Could not find or load main class .usr.share.
Caused by: java.lang.
* Exit code: [1]
The problem is that the classpath is not properly configured to use the jar. Simply adding the "-jar" flag solves the problem:
$ java -jar /usr/share/
* Processing file `submission.pdf' ...
In the code, pdfannotextract
sub launch_pax () {
check_prg $prg_java, 1;
my @cmd = ($prg_java);
push @cmd, $path_jar_pax;
push @cmd, @ARGV;
debug 'System', "@cmd";
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Thank you for your bug report, there are some discussions about that utility on Debian /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 670040
https:/