https://bugs.documentfoundation.org/show_bug.cgi?id=99668
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |[email protected], | |[email protected] Ever confirmed|0 |1 --- Comment #1 from Julien Nabet <[email protected]> --- I'm not sure to understand your test. You noticed (and I agree you), that DocumentConverter needs 4 args, not 3. But you tried this: "/home/user/projects/test" "pdf" "pdf" "/tmp/" (your program with 3 args) What about this: "/home/user/projects/test" "<directory which contain original files>" "pdf" "pdf" "/tmp/" ? For the moment the only patch would be: diff --git a/odk/examples/java/DocumentHandling/DocumentConverter.java b/odk/examples/java/DocumentHandling/DocumentConverter.java index fe0460c..022ae4d 100644 --- a/odk/examples/java/DocumentHandling/DocumentConverter.java +++ b/odk/examples/java/DocumentHandling/DocumentConverter.java @@ -170,7 +170,7 @@ public class DocumentConverter { * and the wanted extension */ public static void main( String args[] ) { - if ( args.length < 3 ) { + if ( args.length < 4 ) { System.out.println("usage: java -jar DocumentConverter.jar " + "\"<directory to convert>\" \"<type to convert to>\" " + "\"<extension>\" \"<output_directory>\""); @@ -207,7 +207,7 @@ public class DocumentConverter { // origin document sExtension = args[2]; - // Getting the given type to convert to + // Getting the output directory sOutputDir = args[3]; // Starting the conversion of documents in the given directory Stephan: since it concerns UNO+Java, thought you might be interested in this one. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
