Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
dynabic-billing-team committed Nov 16, 2022
2 parents 93d0f8a + 29210b2 commit 0d1ae52
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [22.11.0] - Aspose Words Cloud for Dart 22.11 Release Notes

- Added 'EmbedAttachments' property for PdfSaveOptionsData class.


## [22.10.0] - Aspose Words Cloud for Dart 22.10 Release Notes

- Added 'CacheHeaderFooterShapes' property for PdfSaveOptionsData class.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add this dependency to your *pubspec.yaml*:

```yaml
dependencies:
aspose_words_cloud: 22.10.0
aspose_words_cloud: 22.11.0
```
## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion lib/src/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ class ApiClient {

var httpRequest = http.Request(requestData.method, Uri.parse(requestData.url));
httpRequest.headers['x-aspose-client'] = 'dart sdk';
httpRequest.headers['x-aspose-client-version'] = '22.10';
httpRequest.headers['x-aspose-client-version'] = '22.11';
httpRequest.headers['Authorization'] = await _getAuthToken();
if (requestData.headers != null) {
httpRequest.headers.addAll(requestData.headers);
Expand Down
1 change: 1 addition & 0 deletions lib/src/models/csv_data_load_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ library aspose_words_cloud;
import '../../aspose_words_cloud.dart';

/// Represents options for parsing CSV data.
/// To learn more, visit the LINQ Reporting Engine documentation article.
class CsvDataLoadOptions implements ModelBase {
/// Gets or sets the character that is used to comment lines of CSV data.
String _commentChar;
Expand Down
35 changes: 26 additions & 9 deletions lib/src/models/pdf_save_options_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ import '../../aspose_words_cloud.dart';

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

bool get cacheHeaderFooterShapes => _cacheHeaderFooterShapes;
set cacheHeaderFooterShapes(bool val) => _cacheHeaderFooterShapes = val;
bool get cacheBackgroundGraphics => _cacheBackgroundGraphics;
set cacheBackgroundGraphics(bool val) => _cacheBackgroundGraphics = val;


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


/// Gets or sets a value determining whether or not to embed attachments to the PDF document.
bool _embedAttachments;

bool get embedAttachments => _embedAttachments;
set embedAttachments(bool val) => _embedAttachments = val;


/// Gets or sets a value indicating whether fonts are embedded into the resulting PDF documents.
bool _embedFullFonts;

Expand Down Expand Up @@ -381,10 +388,10 @@ class PdfSaveOptionsData extends FixedPageSaveOptionsData {
pageIndex = null;
}

if (json.containsKey('CacheHeaderFooterShapes')) {
cacheHeaderFooterShapes = json['CacheHeaderFooterShapes'] as bool;
if (json.containsKey('CacheBackgroundGraphics')) {
cacheBackgroundGraphics = json['CacheBackgroundGraphics'] as bool;
} else {
cacheHeaderFooterShapes = null;
cacheBackgroundGraphics = null;
}

if (json.containsKey('Compliance')) {
Expand Down Expand Up @@ -440,6 +447,12 @@ class PdfSaveOptionsData extends FixedPageSaveOptionsData {
downsampleOptions = null;
}

if (json.containsKey('EmbedAttachments')) {
embedAttachments = json['EmbedAttachments'] as bool;
} else {
embedAttachments = null;
}

if (json.containsKey('EmbedFullFonts')) {
embedFullFonts = json['EmbedFullFonts'] as bool;
} else {
Expand Down Expand Up @@ -595,8 +608,8 @@ class PdfSaveOptionsData extends FixedPageSaveOptionsData {
Map<String, dynamic> serialize() {
var _result = <String, dynamic>{};
_result.addAll(super.serialize());
if (cacheHeaderFooterShapes != null) {
_result['CacheHeaderFooterShapes'] = cacheHeaderFooterShapes;
if (cacheBackgroundGraphics != null) {
_result['CacheBackgroundGraphics'] = cacheBackgroundGraphics;
}

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

if (embedAttachments != null) {
_result['EmbedAttachments'] = embedAttachments;
}

if (embedFullFonts != null) {
_result['EmbedFullFonts'] = embedFullFonts;
}
Expand Down
1 change: 1 addition & 0 deletions lib/src/models/xml_data_load_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ library aspose_words_cloud;
import '../../aspose_words_cloud.dart';

/// Represents options for XML data loading.
/// To learn more, visit the LINQ Reporting Engine documentation article.
class XmlDataLoadOptions implements ModelBase {
/// Gets or sets a flag indicating whether a generated data source will always contain an object for an XML root
/// element. If an XML root element has no attributes and all its child elements have same names, such an object
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: aspose_words_cloud
description: This package allows you to work with Aspose.Words Cloud REST APIs in your Dart applications quickly and easily, with zero initial cost.
version: 22.10.0
version: 22.11.0
homepage: https://github.com/aspose-words-cloud/aspose-words-cloud-dart

environment:
Expand Down
4 changes: 2 additions & 2 deletions test/page_setup/page_setup_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class PageSetupTests
final request = RenderPageRequest(
remoteFileName,
1,
'bmp',
'jpg',
folder: remoteDataFolder
);

Expand All @@ -143,7 +143,7 @@ class PageSetupTests
final request = RenderPageOnlineRequest(
requestDocument,
1,
'bmp'
'jpg'
);

await context.getApi().renderPageOnline(request);
Expand Down

0 comments on commit 0d1ae52

Please sign in to comment.