10/24/2017 - 1:12 PM

// For complete examples and data files, please go to
ConversionHandler conversionHandler = new ConversionHandler(Utilities.getConfiguration());
conversionHandler.ConversionProgress.add(new ConversionProgressHandler() {
     // Here is the implementation of the conversion progress handler method
     public void invoke(ConversionProgressEventArgs args) {
	   System.out.println("Conversion progress: {"+args.getProgress()+"}");
  PdfSaveOptions saveOptions = new PdfSaveOptions();
  String resultPath = conversionHandler.<String>convert(fileName, saveOptions); 
  System.out.println("The conversion finished. The result can be located here: "+resultPath+". Press <<ENTER>> to exit.");