Skip to content

Commit 6ac67b1

Browse files
SDK regenerated by CI server [ci skip]
1 parent 882bebd commit 6ac67b1

File tree

4 files changed

+106
-2
lines changed

4 files changed

+106
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
1717
- Read & write access to Document Object Model.
1818
- Thread safe
1919

20+
## Enhancements in Version 25.4
21+
22+
- Added 'AttachmentsEmbeddingMode' property for PdfSaveOptionsData class.
23+
- Added 'UpdateAmbiguousTextFont' property for SaveOptionsData class.
24+
25+
2026
## Enhancements in Version 25.2
2127

2228
- Added 'IdPrefix' property for HtmlFixedSaveOptionsData and SvgSaveOptionsData class.

include/aspose_words_cloud/models/pdf_save_options_data.h

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ namespace aspose::words::cloud::models {
3838
class PdfSaveOptionsData : public FixedPageSaveOptionsData
3939
{
4040
public:
41+
/// <summary>
42+
/// Gets or sets a value determining how attachments are embedded to the PDF document.
43+
/// Default value is None and attachments are not embedded.
44+
/// PDF/A-1, PDF/A-2 and regular PDF/A-4 (not PDF/A-4f) standards do not allow embedded files.
45+
/// None value will be used automatically.
46+
/// </summary>
47+
enum class AttachmentsEmbeddingMode
48+
{
49+
NONE,
50+
ANNOTATIONS,
51+
DOCUMENT_EMBEDDED_FILES
52+
};
53+
4154
/// <summary>
4255
/// Gets or sets the PDF standards compliance level for output documents.
4356
/// </summary>
@@ -145,6 +158,23 @@ namespace aspose::words::cloud::models {
145158
void abstractFixedPageSaveOptionsData() override {}
146159
void abstractSaveOptionsData() override {}
147160

161+
/// <summary>
162+
/// Gets or sets a value determining how attachments are embedded to the PDF document.
163+
/// Default value is None and attachments are not embedded.
164+
/// PDF/A-1, PDF/A-2 and regular PDF/A-4 (not PDF/A-4f) standards do not allow embedded files.
165+
/// None value will be used automatically.
166+
/// </summary>
167+
ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode > getAttachmentsEmbeddingMode() const;
168+
169+
/// <summary>
170+
/// Gets or sets a value determining how attachments are embedded to the PDF document.
171+
/// Default value is None and attachments are not embedded.
172+
/// PDF/A-1, PDF/A-2 and regular PDF/A-4 (not PDF/A-4f) standards do not allow embedded files.
173+
/// None value will be used automatically.
174+
/// </summary>
175+
ASPOSE_WORDS_CLOUD_EXPORT virtual void setAttachmentsEmbeddingMode(std::shared_ptr< aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode > value);
176+
177+
148178
/// <summary>
149179
/// Gets or sets a value determining whether or not to cache graphics placed in document's background.
150180
/// Default value is true and background graphics are written to the PDF document as an xObject. When the value is false background graphics are not cached. Some shapes are not supported for caching(shapes with fields, bookmarks, HRefs). Document background graphic is various shapes, charts, images placed in the footer or header,
@@ -244,7 +274,7 @@ namespace aspose::words::cloud::models {
244274
/// false value will be used automatically.
245275
/// Embedding attachments is not supported when encryption is enabled. false value will be used automatically.
246276
/// </summary>
247-
[[deprecated("This property will be removed in the future.")]]
277+
[[deprecated("Obsolete, please use AttachmentsEmbeddingMode instead.")]]
248278
ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< bool > getEmbedAttachments() const;
249279

250280
/// <summary>
@@ -255,7 +285,7 @@ namespace aspose::words::cloud::models {
255285
/// false value will be used automatically.
256286
/// Embedding attachments is not supported when encryption is enabled. false value will be used automatically.
257287
/// </summary>
258-
[[deprecated("This property will be removed in the future.")]]
288+
[[deprecated("Obsolete, please use AttachmentsEmbeddingMode instead.")]]
259289
ASPOSE_WORDS_CLOUD_EXPORT virtual void setEmbedAttachments(std::shared_ptr< bool > value);
260290

261291

@@ -522,6 +552,7 @@ namespace aspose::words::cloud::models {
522552

523553

524554
protected:
555+
std::shared_ptr< aspose::words::cloud::models::PdfSaveOptionsData::AttachmentsEmbeddingMode > m_AttachmentsEmbeddingMode;
525556
std::shared_ptr< bool > m_CacheBackgroundGraphics;
526557
std::shared_ptr< aspose::words::cloud::models::PdfSaveOptionsData::Compliance > m_Compliance;
527558
std::shared_ptr< bool > m_CreateNoteHyperlinks;

include/aspose_words_cloud/models/save_options_data.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,17 @@ namespace aspose::words::cloud::models {
184184
ASPOSE_WORDS_CLOUD_EXPORT virtual void setImlRenderingMode(std::shared_ptr< aspose::words::cloud::models::SaveOptionsData::ImlRenderingMode > value);
185185

186186

187+
/// <summary>
188+
/// Gets or sets a value indicating whether the font attributes will be changed according to the character code being used.
189+
/// </summary>
190+
ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< bool > getUpdateAmbiguousTextFont() const;
191+
192+
/// <summary>
193+
/// Gets or sets a value indicating whether the font attributes will be changed according to the character code being used.
194+
/// </summary>
195+
ASPOSE_WORDS_CLOUD_EXPORT virtual void setUpdateAmbiguousTextFont(std::shared_ptr< bool > value);
196+
197+
187198
/// <summary>
188199
/// Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
189200
/// Default value is false.
@@ -262,6 +273,7 @@ namespace aspose::words::cloud::models {
262273
std::shared_ptr< aspose::words::cloud::models::SaveOptionsData::DmlRenderingMode > m_DmlRenderingMode;
263274
std::shared_ptr< std::wstring > m_FileName;
264275
std::shared_ptr< aspose::words::cloud::models::SaveOptionsData::ImlRenderingMode > m_ImlRenderingMode;
276+
std::shared_ptr< bool > m_UpdateAmbiguousTextFont;
265277
std::shared_ptr< bool > m_UpdateCreatedTimeProperty;
266278
std::shared_ptr< bool > m_UpdateFields;
267279
std::shared_ptr< bool > m_UpdateLastPrintedProperty;

src/models.cpp

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)