@@ -163,15 +163,15 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
163163 case fitBox = " FitBox "
164164 }
165165
166- // Field of cacheHeaderFooterShapes . Container class for pdf save options.
167- private var _cacheHeaderFooterShapes : Bool ? = nil ;
166+ // Field of cacheBackgroundGraphics . Container class for pdf save options.
167+ private var _cacheBackgroundGraphics : Bool ? = nil ;
168168
169- public var cacheHeaderFooterShapes : Bool ? {
169+ public var cacheBackgroundGraphics : Bool ? {
170170 get {
171- return self . _cacheHeaderFooterShapes ;
171+ return self . _cacheBackgroundGraphics ;
172172 }
173173 set {
174- self . _cacheHeaderFooterShapes = newValue;
174+ self . _cacheBackgroundGraphics = newValue;
175175 }
176176 }
177177
@@ -247,6 +247,18 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
247247 }
248248 }
249249
250+ // Field of embedAttachments. Container class for pdf save options.
251+ private var _embedAttachments : Bool ? = nil ;
252+
253+ public var embedAttachments : Bool ? {
254+ get {
255+ return self . _embedAttachments;
256+ }
257+ set {
258+ self . _embedAttachments = newValue;
259+ }
260+ }
261+
250262 // Field of embedFullFonts. Container class for pdf save options.
251263 private var _embedFullFonts : Bool ? = nil ;
252264
@@ -485,13 +497,14 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
485497 }
486498
487499 private enum CodingKeys : String , CodingKey {
488- case cacheHeaderFooterShapes = " CacheHeaderFooterShapes " ;
500+ case cacheBackgroundGraphics = " CacheBackgroundGraphics " ;
489501 case compliance = " Compliance " ;
490502 case createNoteHyperlinks = " CreateNoteHyperlinks " ;
491503 case customPropertiesExport = " CustomPropertiesExport " ;
492504 case digitalSignatureDetails = " DigitalSignatureDetails " ;
493505 case displayDocTitle = " DisplayDocTitle " ;
494506 case downsampleOptions = " DownsampleOptions " ;
507+ case embedAttachments = " EmbedAttachments " ;
495508 case embedFullFonts = " EmbedFullFonts " ;
496509 case encryptionDetails = " EncryptionDetails " ;
497510 case exportDocumentStructure = " ExportDocumentStructure " ;
@@ -521,13 +534,14 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
521534 public required init ( from decoder: Decoder ) throws {
522535 try super. init ( from: decoder) ;
523536 let container = try decoder. container ( keyedBy: CodingKeys . self) ;
524- self . cacheHeaderFooterShapes = try container. decodeIfPresent ( Bool . self, forKey: . cacheHeaderFooterShapes ) ;
537+ self . cacheBackgroundGraphics = try container. decodeIfPresent ( Bool . self, forKey: . cacheBackgroundGraphics ) ;
525538 self . compliance = try container. decodeIfPresent ( Compliance . self, forKey: . compliance) ;
526539 self . createNoteHyperlinks = try container. decodeIfPresent ( Bool . self, forKey: . createNoteHyperlinks) ;
527540 self . customPropertiesExport = try container. decodeIfPresent ( CustomPropertiesExport . self, forKey: . customPropertiesExport) ;
528541 self . digitalSignatureDetails = try container. decodeIfPresent ( PdfDigitalSignatureDetailsData . self, forKey: . digitalSignatureDetails) ;
529542 self . displayDocTitle = try container. decodeIfPresent ( Bool . self, forKey: . displayDocTitle) ;
530543 self . downsampleOptions = try container. decodeIfPresent ( DownsampleOptionsData . self, forKey: . downsampleOptions) ;
544+ self . embedAttachments = try container. decodeIfPresent ( Bool . self, forKey: . embedAttachments) ;
531545 self . embedFullFonts = try container. decodeIfPresent ( Bool . self, forKey: . embedFullFonts) ;
532546 self . encryptionDetails = try container. decodeIfPresent ( PdfEncryptionDetailsData . self, forKey: . encryptionDetails) ;
533547 self . exportDocumentStructure = try container. decodeIfPresent ( Bool . self, forKey: . exportDocumentStructure) ;
@@ -552,8 +566,8 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
552566 public override func encode( to encoder: Encoder ) throws {
553567 try super. encode ( to: encoder) ;
554568 var container = encoder. container ( keyedBy: CodingKeys . self) ;
555- if ( self . cacheHeaderFooterShapes != nil ) {
556- try container. encode ( self . cacheHeaderFooterShapes , forKey: . cacheHeaderFooterShapes ) ;
569+ if ( self . cacheBackgroundGraphics != nil ) {
570+ try container. encode ( self . cacheBackgroundGraphics , forKey: . cacheBackgroundGraphics ) ;
557571 }
558572 if ( self . compliance != nil ) {
559573 try container. encode ( self . compliance, forKey: . compliance) ;
@@ -573,6 +587,9 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
573587 if ( self . downsampleOptions != nil ) {
574588 try container. encode ( self . downsampleOptions, forKey: . downsampleOptions) ;
575589 }
590+ if ( self . embedAttachments != nil ) {
591+ try container. encode ( self . embedAttachments, forKey: . embedAttachments) ;
592+ }
576593 if ( self . embedFullFonts != nil ) {
577594 try container. encode ( self . embedFullFonts, forKey: . embedFullFonts) ;
578595 }
@@ -635,15 +652,15 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
635652 public override func collectFilesContent( _ resultFilesContent : inout [ FileReference ] ) {
636653 }
637654
638- // Sets cacheHeaderFooterShapes . Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document.
639- public func setCacheHeaderFooterShapes ( cacheHeaderFooterShapes : Bool ? ) -> PdfSaveOptionsData {
640- self . cacheHeaderFooterShapes = cacheHeaderFooterShapes ;
655+ // Sets cacheBackgroundGraphics . Gets or sets a value determining whether or not to cache graphics placed in document's background .
656+ public func setCacheBackgroundGraphics ( cacheBackgroundGraphics : Bool ? ) -> PdfSaveOptionsData {
657+ self . cacheBackgroundGraphics = cacheBackgroundGraphics ;
641658 return self ;
642659 }
643660
644- // Gets cacheHeaderFooterShapes . Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document.
645- public func getCacheHeaderFooterShapes ( ) -> Bool ? {
646- return self . cacheHeaderFooterShapes ;
661+ // Gets cacheBackgroundGraphics . Gets or sets a value determining whether or not to cache graphics placed in document's background .
662+ public func getCacheBackgroundGraphics ( ) -> Bool ? {
663+ return self . cacheBackgroundGraphics ;
647664 }
648665
649666
@@ -719,6 +736,18 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
719736 }
720737
721738
739+ // Sets embedAttachments. Gets or sets a value determining whether or not to embed attachments to the PDF document.
740+ public func setEmbedAttachments( embedAttachments : Bool ? ) -> PdfSaveOptionsData {
741+ self . embedAttachments = embedAttachments;
742+ return self ;
743+ }
744+
745+ // Gets embedAttachments. Gets or sets a value determining whether or not to embed attachments to the PDF document.
746+ public func getEmbedAttachments( ) -> Bool ? {
747+ return self . embedAttachments;
748+ }
749+
750+
722751 // Sets embedFullFonts. Gets or sets a value indicating whether fonts are embedded into the resulting PDF documents.
723752 public func setEmbedFullFonts( embedFullFonts : Bool ? ) -> PdfSaveOptionsData {
724753 self . embedFullFonts = embedFullFonts;
0 commit comments