@@ -19750,6 +19750,22 @@ namespace aspose::words::cloud::models {
1975019750 /*
1975119751 * PdfSaveOptionsData implementation
1975219752 */
19753+ inline std::string pdfSaveOptionsDataAttachmentsEmbeddingModeToString(aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode value)
19754+ {
19755+ if (value == aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode::NONE) return "None";
19756+ if (value == aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode::ANNOTATIONS) return "Annotations";
19757+ if (value == aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode::DOCUMENT_EMBEDDED_FILES) return "DocumentEmbeddedFiles";
19758+ throw aspose::words::cloud::ApiException(400, L"Invalid enum value");
19759+ }
19760+
19761+ inline aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode pdfSaveOptionsDataAttachmentsEmbeddingModeFromString(const std::string& value)
19762+ {
19763+ if (value == "None") return aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode::NONE;
19764+ if (value == "Annotations") return aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode::ANNOTATIONS;
19765+ if (value == "DocumentEmbeddedFiles") return aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode::DOCUMENT_EMBEDDED_FILES;
19766+ throw aspose::words::cloud::ApiException(400, L"Invalid enum value");
19767+ }
19768+
1975319769 inline std::string pdfSaveOptionsDataComplianceToString(aspose::words::cloud::models::PdfSaveOptionsData::Compliance value)
1975419770 {
1975519771 if (value == aspose::words::cloud::models::PdfSaveOptionsData::Compliance::PDF17) return "Pdf17";
@@ -19909,6 +19925,9 @@ namespace aspose::words::cloud::models {
1990919925 {
1991019926 FixedPageSaveOptionsData::toJson(jsonIfc);
1991119927 ::nlohmann::json& json = *((::nlohmann::json*)jsonIfc);
19928+ if (this->m_AttachmentsEmbeddingMode) {
19929+ json["AttachmentsEmbeddingMode"] = pdfSaveOptionsDataAttachmentsEmbeddingModeToString(*(this->m_AttachmentsEmbeddingMode));
19930+ }
1991219931 if (this->m_CacheBackgroundGraphics) {
1991319932 json["CacheBackgroundGraphics"] = *(this->m_CacheBackgroundGraphics);
1991419933 }
@@ -20005,6 +20024,11 @@ namespace aspose::words::cloud::models {
2000520024 {
2000620025 FixedPageSaveOptionsData::fromJson(jsonIfc);
2000720026 ::nlohmann::json& json = *((::nlohmann::json*)jsonIfc);
20027+ if (json.contains("AttachmentsEmbeddingMode") && !json["AttachmentsEmbeddingMode"].is_null()) {
20028+ this->m_AttachmentsEmbeddingMode = std::make_shared< aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode >(
20029+ pdfSaveOptionsDataAttachmentsEmbeddingModeFromString(json["AttachmentsEmbeddingMode"].get< std::string >())
20030+ );
20031+ }
2000820032 if (json.contains("CacheBackgroundGraphics") && !json["CacheBackgroundGraphics"].is_null()) {
2000920033 this->m_CacheBackgroundGraphics = std::make_shared< bool >(
2001020034 json["CacheBackgroundGraphics"].get< bool >()
@@ -20207,6 +20231,17 @@ namespace aspose::words::cloud::models {
2020720231
2020820232 }
2020920233
20234+ std::shared_ptr< aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode > PdfSaveOptionsData::getAttachmentsEmbeddingMode() const
20235+ {
20236+ return this->m_AttachmentsEmbeddingMode;
20237+ }
20238+
20239+ void PdfSaveOptionsData::setAttachmentsEmbeddingMode(std::shared_ptr< aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode > value)
20240+ {
20241+ this->m_AttachmentsEmbeddingMode = value;
20242+ }
20243+
20244+
2021020245 std::shared_ptr< bool > PdfSaveOptionsData::getCacheBackgroundGraphics() const
2021120246 {
2021220247 return this->m_CacheBackgroundGraphics;
@@ -22717,6 +22752,9 @@ namespace aspose::words::cloud::models {
2271722752 if (this->m_ImlRenderingMode) {
2271822753 json["ImlRenderingMode"] = saveOptionsDataImlRenderingModeToString(*(this->m_ImlRenderingMode));
2271922754 }
22755+ if (this->m_UpdateAmbiguousTextFont) {
22756+ json["UpdateAmbiguousTextFont"] = *(this->m_UpdateAmbiguousTextFont);
22757+ }
2272022758 if (this->m_UpdateCreatedTimeProperty) {
2272122759 json["UpdateCreatedTimeProperty"] = *(this->m_UpdateCreatedTimeProperty);
2272222760 }
@@ -22773,6 +22811,11 @@ namespace aspose::words::cloud::models {
2277322811 saveOptionsDataImlRenderingModeFromString(json["ImlRenderingMode"].get< std::string >())
2277422812 );
2277522813 }
22814+ if (json.contains("UpdateAmbiguousTextFont") && !json["UpdateAmbiguousTextFont"].is_null()) {
22815+ this->m_UpdateAmbiguousTextFont = std::make_shared< bool >(
22816+ json["UpdateAmbiguousTextFont"].get< bool >()
22817+ );
22818+ }
2277622819 if (json.contains("UpdateCreatedTimeProperty") && !json["UpdateCreatedTimeProperty"].is_null()) {
2277722820 this->m_UpdateCreatedTimeProperty = std::make_shared< bool >(
2277822821 json["UpdateCreatedTimeProperty"].get< bool >()
@@ -22833,6 +22876,7 @@ namespace aspose::words::cloud::models {
2283322876
2283422877
2283522878
22879+
2283622880 }
2283722881
2283822882 std::shared_ptr< bool > SaveOptionsData::getAllowEmbeddingPostScriptFonts() const
@@ -22912,6 +22956,17 @@ namespace aspose::words::cloud::models {
2291222956 }
2291322957
2291422958
22959+ std::shared_ptr< bool > SaveOptionsData::getUpdateAmbiguousTextFont() const
22960+ {
22961+ return this->m_UpdateAmbiguousTextFont;
22962+ }
22963+
22964+ void SaveOptionsData::setUpdateAmbiguousTextFont(std::shared_ptr< bool > value)
22965+ {
22966+ this->m_UpdateAmbiguousTextFont = value;
22967+ }
22968+
22969+
2291522970 std::shared_ptr< bool > SaveOptionsData::getUpdateCreatedTimeProperty() const
2291622971 {
2291722972 return this->m_UpdateCreatedTimeProperty;
0 commit comments