Skip to content

Commit 0d1ae52

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 93d0f8a + 29210b2 commit 0d1ae52

File tree

8 files changed

+38
-14
lines changed

8 files changed

+38
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [22.11.0] - Aspose Words Cloud for Dart 22.11 Release Notes
2+
3+
- Added 'EmbedAttachments' property for PdfSaveOptionsData class.
4+
5+
16
## [22.10.0] - Aspose Words Cloud for Dart 22.10 Release Notes
27

38
- Added 'CacheHeaderFooterShapes' property for PdfSaveOptionsData class.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Add this dependency to your *pubspec.yaml*:
2727

2828
```yaml
2929
dependencies:
30-
aspose_words_cloud: 22.10.0
30+
aspose_words_cloud: 22.11.0
3131
```
3232
3333
## Getting Started

lib/src/api_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ class ApiClient {
505505

506506
var httpRequest = http.Request(requestData.method, Uri.parse(requestData.url));
507507
httpRequest.headers['x-aspose-client'] = 'dart sdk';
508-
httpRequest.headers['x-aspose-client-version'] = '22.10';
508+
httpRequest.headers['x-aspose-client-version'] = '22.11';
509509
httpRequest.headers['Authorization'] = await _getAuthToken();
510510
if (requestData.headers != null) {
511511
httpRequest.headers.addAll(requestData.headers);

lib/src/models/csv_data_load_options.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ library aspose_words_cloud;
3030
import '../../aspose_words_cloud.dart';
3131

3232
/// Represents options for parsing CSV data.
33+
/// To learn more, visit the LINQ Reporting Engine documentation article.
3334
class CsvDataLoadOptions implements ModelBase {
3435
/// Gets or sets the character that is used to comment lines of CSV data.
3536
String _commentChar;

lib/src/models/pdf_save_options_data.dart

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ import '../../aspose_words_cloud.dart';
3131

3232
/// Container class for pdf save options.
3333
class PdfSaveOptionsData extends FixedPageSaveOptionsData {
34-
/// Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document.
35-
bool _cacheHeaderFooterShapes;
34+
/// Gets or sets a value determining whether or not to cache graphics placed in document's background.
35+
bool _cacheBackgroundGraphics;
3636

37-
bool get cacheHeaderFooterShapes => _cacheHeaderFooterShapes;
38-
set cacheHeaderFooterShapes(bool val) => _cacheHeaderFooterShapes = val;
37+
bool get cacheBackgroundGraphics => _cacheBackgroundGraphics;
38+
set cacheBackgroundGraphics(bool val) => _cacheBackgroundGraphics = val;
3939

4040

4141
/// Gets or sets the PDF standards compliance level for output documents.
@@ -83,6 +83,13 @@ class PdfSaveOptionsData extends FixedPageSaveOptionsData {
8383
set downsampleOptions(DownsampleOptionsData val) => _downsampleOptions = val;
8484

8585

86+
/// Gets or sets a value determining whether or not to embed attachments to the PDF document.
87+
bool _embedAttachments;
88+
89+
bool get embedAttachments => _embedAttachments;
90+
set embedAttachments(bool val) => _embedAttachments = val;
91+
92+
8693
/// Gets or sets a value indicating whether fonts are embedded into the resulting PDF documents.
8794
bool _embedFullFonts;
8895

@@ -381,10 +388,10 @@ class PdfSaveOptionsData extends FixedPageSaveOptionsData {
381388
pageIndex = null;
382389
}
383390

384-
if (json.containsKey('CacheHeaderFooterShapes')) {
385-
cacheHeaderFooterShapes = json['CacheHeaderFooterShapes'] as bool;
391+
if (json.containsKey('CacheBackgroundGraphics')) {
392+
cacheBackgroundGraphics = json['CacheBackgroundGraphics'] as bool;
386393
} else {
387-
cacheHeaderFooterShapes = null;
394+
cacheBackgroundGraphics = null;
388395
}
389396

390397
if (json.containsKey('Compliance')) {
@@ -440,6 +447,12 @@ class PdfSaveOptionsData extends FixedPageSaveOptionsData {
440447
downsampleOptions = null;
441448
}
442449

450+
if (json.containsKey('EmbedAttachments')) {
451+
embedAttachments = json['EmbedAttachments'] as bool;
452+
} else {
453+
embedAttachments = null;
454+
}
455+
443456
if (json.containsKey('EmbedFullFonts')) {
444457
embedFullFonts = json['EmbedFullFonts'] as bool;
445458
} else {
@@ -595,8 +608,8 @@ class PdfSaveOptionsData extends FixedPageSaveOptionsData {
595608
Map<String, dynamic> serialize() {
596609
var _result = <String, dynamic>{};
597610
_result.addAll(super.serialize());
598-
if (cacheHeaderFooterShapes != null) {
599-
_result['CacheHeaderFooterShapes'] = cacheHeaderFooterShapes;
611+
if (cacheBackgroundGraphics != null) {
612+
_result['CacheBackgroundGraphics'] = cacheBackgroundGraphics;
600613
}
601614

602615
if (compliance != null) {
@@ -638,6 +651,10 @@ class PdfSaveOptionsData extends FixedPageSaveOptionsData {
638651
_result['DownsampleOptions'] = downsampleOptions.serialize();
639652
}
640653

654+
if (embedAttachments != null) {
655+
_result['EmbedAttachments'] = embedAttachments;
656+
}
657+
641658
if (embedFullFonts != null) {
642659
_result['EmbedFullFonts'] = embedFullFonts;
643660
}

lib/src/models/xml_data_load_options.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ library aspose_words_cloud;
3030
import '../../aspose_words_cloud.dart';
3131

3232
/// Represents options for XML data loading.
33+
/// To learn more, visit the LINQ Reporting Engine documentation article.
3334
class XmlDataLoadOptions implements ModelBase {
3435
/// Gets or sets a flag indicating whether a generated data source will always contain an object for an XML root
3536
/// element. If an XML root element has no attributes and all its child elements have same names, such an object

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: aspose_words_cloud
22
description: This package allows you to work with Aspose.Words Cloud REST APIs in your Dart applications quickly and easily, with zero initial cost.
3-
version: 22.10.0
3+
version: 22.11.0
44
homepage: https://github.com/aspose-words-cloud/aspose-words-cloud-dart
55

66
environment:

test/page_setup/page_setup_tests.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class PageSetupTests
128128
final request = RenderPageRequest(
129129
remoteFileName,
130130
1,
131-
'bmp',
131+
'jpg',
132132
folder: remoteDataFolder
133133
);
134134

@@ -143,7 +143,7 @@ class PageSetupTests
143143
final request = RenderPageOnlineRequest(
144144
requestDocument,
145145
1,
146-
'bmp'
146+
'jpg'
147147
);
148148

149149
await context.getApi().renderPageOnline(request);

0 commit comments

Comments
 (0)