I'm trying to use pdftk to split a folder containing pdf files into their constituent pages. Here is my code:
~/MCO/MCOs$ for file in *.pdf; do pdftk "$file" burst; done
The command itself does not seem to be incorrect, but I get a java error as follows:
Unhandled Java Exception in create_output():
Unhandled Java Exception in main():
java.lang.NullPointerException
at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.16)
at java.lang.Throwable.getStackTrace(libgcj.so.16)
at java.lang.Throwable.stackTraceString(libgcj.so.16)
at java.lang.Throwable.printStackTrace(libgcj.so.16)
at java.lang.Throwable.printStackTrace(libgcj.so.16)
There seems to be some recognition of this issue, but it is unclear how/if it has been resolved.
I'm trying to get my output such that for an example file 'ad.pdf' is split into 'ad.pdf_01' and 'ad.pdf_02' if it contains two pages.