@@ -31,11 +31,11 @@ import '../../aspose_words_cloud.dart';
3131
3232/// Container class for pdf save options.
3333class 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 }
0 commit comments