PdfSaveOptions.CacheBackgroundGraphics
PdfSaveOptions CacheBackgroundGraphics property. Gets or sets a value determining whether or not to cache graphics placed in documents background.
PdfSaveOptions.CacheBackgroundGraphics property
Gets or sets a value determining whether or not to cache graphics placed in document’s background.
public bool CacheBackgroundGraphics { get; set; }
Remarks
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, well as background and border of a page.
Examples
Shows how to disable caching graphics placed in document’s background.
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.CacheBackgroundGraphics = false;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "PdfSaveOptions.CacheBackgroundGraphics.pdf", pdfSaveOptions)
.Execute();
See Also
- class PdfSaveOptions
- namespace Wordize.Saving
- assembly Wordize