PDF Printing -- silentPrint

Hi,

I have been using silentPrint https://pradiptab.wordpress.com but after moving to 2024.12 I am getting an error

var fileName = 'PDFDocument'
var printDocument = new Packages.org.apache.pdfbox.pdmodel.PDDocument.load( fileName)

Error
org.mozilla.javascript.EvaluatorException: Java class “org.apache.pdfbox.pdmodel.PDDocument” has no public instance field or method named “load”

Do I need to download pdfbox and if so where should it be installed, or I am not calling it properly?

Thanks.

Sounds like pdfbox library has been changed to a different version.
You should be able to see that in the jar file (or maybe pdfbox has function to retrieve the version)
Then lookup the javadocs for that version and fix whatever needs a fix in this version.

Hi Marc,

Thanks for the suggestion, will give to a go!