package DocsExamples.File_formats_and_conversions.Save_options;

import DocsExamples.DocsExamplesBase;
import com.aspose.words.Document;
import com.aspose.words.RtfSaveOptions;
import org.testng.annotations.Test;

@Test
public class WorkingWithRtfSaveOptions extends DocsExamplesBase {
    @Test
    public void savingImagesAsWmf() throws Exception {
        //ExStart:SavingImagesAsWmf
        //GistId:5b273ed7ba940f81b6a42a3a78609316
        Document doc = new Document(getMyDir() + "Document.docx");

        RtfSaveOptions saveOptions = new RtfSaveOptions();
        saveOptions.setSaveImagesAsWmf(true);

        doc.save(getArtifactsDir() + "WorkingWithRtfSaveOptions.SavingImagesAsWmf.rtf", saveOptions);
        //ExEnd:SavingImagesAsWmf
    }
}
