|
Versionshinweise |
22.1, 21.2.06, 21.1.11 |
||
|---|---|---|---|
Code
Groovy
close(PresentationDocument document)
Beschreibung
Beendet die Bearbeitung der übergebenen Präsentationsdatei. Es erfolgt ein internes Aufräumen der verwendeten Ressourcen. Diese Methode sollte nach dem Zugriff auf eine Präsentationsdatei immer aufgerufen werden.
Parameter
-
document
Repräsentiert die Präsentationsdatei
Beispiele
Groovy
IPresentationResult openResult = PresentationUtils.openFile("C:\\Work\\myFirstPresentation.pptx");
if (!PresentationUtils.isSuccessful(openResult))
{
/** handle error code */
return;
}
PresentationDocument presentation = null;
try
{
presentation = PresentationUtils.getPresentationDocument(openResult);
...
PresentationUtils.save(presentation);
}
finally
{
PresentationUtils.close(presentation);
}