508509510511512513514515
XCloseable xCloseable = unoCast(XCloseable.class, component); xCloseable.close(true); component.dispose(); } catch (Exception e) { throw new ImpressException(e); } }
522523524525526527528529
XStorable xStorable = unoCast(XStorable.class, component); xStorable.storeAsURL(xStorable.getLocation(), null); // Attention : ne pas utiliser la methode store, elle verole le // fichier } catch (Exception e) { throw new ImpressException(e); } }
546547548549550551552553
printOpts[0] = new PropertyValue(); printOpts[0].Name = "Wait"; printOpts[0].Value = true; xPrintable.print(printOpts); } catch (Exception e) { throw new ImpressException(e); } }
571572573574575576577578
String pdfLocation = docLocation.substring(0, docLocation .lastIndexOf('.')) + ".pdf"; xStorable.storeToURL(pdfLocation, convertProperties); } catch (Exception e) { throw new ImpressException(e); } }