I think it is time to post to pdfsam's forum. Post the string for the playing the jar file or the bat file. You can set q="" to not include the quotes.
e.g.
Sub Test()
Dim pdfsam As String, pdfFiles As String, pdfsamStr As String
Dim q As String
q = """"
pdfsam = "cmd /c java -jar " & q & _
"C:\Documents and Settings\Nashl\Desktop\pdfsam-1.0.3-out\lib\" & _
"pdfsam-console-1.1.5e.jar" & q
pdfFiles = "-f F:\Temp\temp.pdf"
pdfOut = "-o F:\Temp\"
pdfsamStr = pdfsam & " -p 1 " & pdfFiles & " " & pdfOut & " -s SPLIT"
debug.print pdfsamStr
Shell pdfsamStr, vbNormalFocus
End Sub
Copy the Immediate window's contents to the pdfsam forum. You might find a clue on the forum but I did not. They had one thread where an xml file is set which is what the bat file does.
I got the zip error when I tried using the bat file. Here it is:
Sub TestBat()
Dim pdfsam As String, pdfFiles As String, pdfsamStr As String
Dim pdfOut As String, q As String
q = ""
pdfsam = "cmd /k java -jar " & q & _
"C:\MyFiles\pdfsam\1.0.3\bin\" & _
"run-console.bat" & q
pdfFiles = "-f " & q & "C:\MyFiles\pdfsam\1.0.3\doc\pdfsam-1.0.0-tutorial.pdf" & q
pdfOut = "-o " & q & "c:\temp" & "\" & q
pdfsamStr = pdfsam & " " & pdfFiles & " " & pdfOut & " -p ken.pdf -s BURST split"
Debug.Print pdfsamStr
Shell pdfsamStr, vbNormalFocus
End Sub