/** * Get the version of PDFBox or unknown if it is not known. * * @return The version of pdfbox that is being used. */ public static String getVersion() { String version = org.apache.pdfbox.util.Version.getVersion(); if (version != null) { return version; } else { return "unknown"; } }
private static void usage() throws IOException { String version = Version.getVersion(); System.out.println("Usage : java org.apache.pdfbox.preflight.Validator_A1b [xml] [<mode>] <file path>"); System.out.println(); System.out.println(" * xml : if set, generate xml output instead of text"); System.out.println(" * <mode> : if set, <file path> must be a file containing the PDF files to parse. <mode> can have 2 values:"); System.out.println(" batch : generate xml result files for each PDF file in the list"); System.out.println(" group : generate one xml result file for all the PDF files in the list."); System.out.println("Version : " + version); }
/** * Get the version of PDFBox or unknown if it is not known. * * @return The version of pdfbox that is being used. */ public static String getVersion() { String version = org.apache.pdfbox.util.Version.getVersion(); if (version != null) { return version; } else { return "unknown"; } }
private static void usage() throws IOException { String version = Version.getVersion(); System.out.println("Usage : java org.apache.pdfbox.preflight.Validator_A1b [xml] [<mode>] <file path>"); System.out.println(); System.out.println(" * xml : if set, generate xml output instead of text"); System.out.println(" * <mode> : if set, <file path> must be a file containing the PDF files to parse. <mode> can have 2 values:"); System.out.println(" batch : generate xml result files for each PDF file in the list"); System.out.println(" group : generate one xml result file for all the PDF files in the list."); System.out.println("Version : " + version); }
private static void usage() throws IOException { String version = Version.getVersion(); System.out.println("Usage : java org.apache.pdfbox.preflight.Validator_A1b [xml] [<mode>] <file path>"); System.out.println(); System.out.println(" * xml : if set, generate xml output instead of text"); System.out.println(" * <mode> : if set, <file path> must be a file containing the PDF files to parse. <mode> can have 2 values:"); System.out.println(" batch : generate xml result files for each PDF file in the list"); System.out.println(" group : generate one xml result file for all the PDF files in the list."); System.out.println("Version : " + version); }