Command line interface of .NET suite for PDFBox™. NetPDF is a comprehensive suite of libraries and tools to use PDFBox™ and .NET side-by-side.
$ dotnet add package MASES.NetPDFCLI[!IMPORTANT] The dotnet tool needs a JRE/JDK installed within the system (see JVM identification)
To use the CLI interface (NetPDFCLI) runs a command like the following:
netpdf -i
[!IMPORTANT] If the previous command raises the error described in Intel CET and NetPDF, the only solution is to apply the following workaround (within an elevated shell) and disable CET:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\netpdf.exe" /v MitigationOptions /t REG_BINARY /d "0000000000000000000000000000002000" /f
docker run ghcr.io/masesgroup/netpdf -i
docker run masesgroup/netpdf -i
netpdf accepts the following command-line switch:
Plus other switches available at Command line switch page.
One of the most important command-line switch is JVMPath and it is available in JCOBridge switches: it can be used to set-up the location of the JVM library (jvm.dll/libjvm.so) if JCOBridge is not able to identify a suitable JRE installation.