hello,

i wrote a java application to start the pdftool "concat_pdf" from the inside
of my application. therefore i use the runtime.getruntime().exec(...) in
which the files i would like to concatenate where chosen by a jfilechooser. 
.
File f1 = chooser1.getSelectedFile();
File f2 = chooser2.getSelectedFile();
.
.
.
String file1 = f1.getAbsolutePath()+" ";
String file2 = f2.getAbsolutePath()+" ";
.
.
.
Process p = Runtime.getRuntime().exec("cmd /c java -cp lib/itext-1.2.jar
com.lowagie.tools.concat_pdf"+file1+file2+"result.pdf");
everything works quite as well, but in the case that i choose a file with a
path like c:\check\ab c\test.pdf it won´t work on a windows system!

i think it is a problem of the blank/spaces in the path!

how should a path to work correctly look like?
how could i change the path of the file to work perfectly? 

thanks

3k 


-- 
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to