Aspose::Words::Saving::DoclingSaveOptions::get_RenderNonImageShapes method

DoclingSaveOptions::get_RenderNonImageShapes method

Gets or sets a value indicating whether non-image shapes should be rendered and written to the output Docling JSON document.

bool Aspose::Words::Saving::DoclingSaveOptions::get_RenderNonImageShapes() const

Examples

Shows how to save a document into a Docling JSON format.

auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Rendering.docx");

auto saveOptions = System::MakeObject<Aspose::Words::Saving::DoclingSaveOptions>();
saveOptions->set_SaveFormat(Aspose::Words::SaveFormat::Docling);
// Set to true to render non-image shapes and include them in the output.
// Set to false (default) to exclude non-image shapes from the output.
saveOptions->set_RenderNonImageShapes(true);

doc->Save(get_ArtifactsDir() + u"DoclingSaveOptions.DoclingJson.json", saveOptions);

See Also