problems with open()
in
Integration and Hardware
•
2 years ago
Hi,
I want to convert PDFs to TXTs with pdftotext on a MAC. It runs fine from the terminal but I cannot find a way to make it work with open(). It opens up pdftotext AND the PDF but what I want is to use the PDF file as an argument for pdftotext.
Thanks
Erik
I want to convert PDFs to TXTs with pdftotext on a MAC. It runs fine from the terminal but I cannot find a way to make it work with open(). It opens up pdftotext AND the PDF but what I want is to use the PDF file as an argument for pdftotext.
- File dir;
- String[] dateien;
- void setup() {
- dir = new File("/Users/erik/Desktop/planpdfs");
- dateien = dir.list();
- for (int i=0; i<dateien.length; i++) {
- String[] aufruf = {"/usr/local/bin/pdftotext", "/Users/erik/Desktop/planpdfs/"+dateien[i]};
- open(aufruf);
- }
- }
Thanks
Erik
3