This post contains information about using latex-pax (see also this page) in Windows and Arch Linux.
latex-pax.C:\.pax.bat file with the following content.
@echo off
SETLOCAL
set CLASSPATH=C:\PDFBox-0.7.3\lib\PDFBox-0.7.3.jar;%CLASSPATH%
perl "C:\texlive\2024\texmf-dist\scripts\pax\pdfannotextractor.pl" %*
pax.bat <filename>.pdf to generate a <filename>.pax file that contains the PDF informations of <filename>.pdf.latex-pax is already installed.pdfbox by running yay -S pdfbox. You can also download PDFBox 0.7.3 and extract the downloaded ZIP file to /usr/share/java/usr/bin/pax file with the following content.
#!/bin/sh
PAX_JAR=/usr/share/texmf-dist/scripts/pax/pax.jar
# PDFBOX_JAR=/usr/share/java/PDFBox-0.7.3/lib/PDFBox-0.7.3.jar
PDFBOX_JAR=/usr/share/pdfbox/pdfbox.jar
java -cp $PAX_JAR:$PDFBOX_JAR pax.PDFAnnotExtractor "$@"
Also run chmod a+x /usr/bin/pax as root user to allow everyone to run the command pax.
pax <filename>.pdf to generate a <filename>.pax file that contains the PDF annotations of <filename>.pdf.