Type Alias: AutomizerParams
AutomizerParams =
object
Defined in: src/types/types.ts:49
Properties
archiveType?
optionalarchiveType?:ArchiveParams
Defined in: src/types/types.ts:73
Use 'fs' if you want to extract all archive contents to disc. ArchiveParams.mode defaults to 'jszip'.
assertRelatedContents?
optionalassertRelatedContents?:boolean
Defined in: src/types/types.ts:114
Pptx-automizer can try to add any missing related content that could not be handled properly by "addElement" or "addMaster" or one of their subroutines. This probably fixes corrupted pptx files.
autoImportSlideMasters?
optionalautoImportSlideMasters?:boolean
Defined in: src/types/types.ts:101
Turn this to true if you always want to import all required slide masters. You don't need to adjust with slide.useSlideLayout, but it will have a negative impact on performance. It is highly recommended to activate autoImportSlideMasters in case your loaded templates have different sets of slideMasters & -layouts.
cleanup?
optionalcleanup?:boolean
Defined in: src/types/types.ts:123
Eventually remove all unnecessary files from archive.
cleanupPlaceholders?
optionalcleanupPlaceholders?:boolean
Defined in: src/types/types.ts:128
Remove all unused shape placeholders from slide. Set to false when you are using slide.mergeIntoSlideLayout.
compression?
optionalcompression?:number
Defined in: src/types/types.ts:77
Zip compression level 0-9
continueOnError?
optionalcontinueOnError?:boolean
Defined in: src/types/types.ts:153
By default, a throwing modification callback or an unresolvable element selector fails the run loudly with a typed error. Set to true to restore the lenient behavior: log a warning, skip the failing modification and continue.
logger?
optionallogger?:ILogger
Defined in: src/types/types.ts:146
Inject a custom logger to route library output into your own
logging stack. Defaults to a console logger filtered by verbosity.
Use NullLogger to keep the library completely silent.
mediaDir?
optionalmediaDir?:string
Defined in: src/types/types.ts:68
Path to media directory, in case you need to import additional files. You can set a path here. Load files with Automizer.loadMedia
outputDir?
optionaloutputDir?:string
Defined in: src/types/types.ts:63
Prefix for the output files for Automizer instance.
You can set a path here.
pptxGenJs?
optionalpptxGenJs?:PptxGenJS
Defined in: src/types/types.ts:86
If you require another version of pptxGenJs, you can e.g. use your customized library.
presTemplates?
optionalpresTemplates?:AutomizerFile[]
Defined in: src/types/types.ts:92
Array of template files to be loaded on initialization. If files are Buffer or Uint8Array, they will be named 0.pptx, 1.pptx, ... according to their order in the array.
removeExistingSlides?
optionalremoveExistingSlides?:boolean
Defined in: src/types/types.ts:119
Delete all existing slides from rootTemplate before automation starts.
rootTemplate?
optionalrootTemplate?:AutomizerFile
Defined in: src/types/types.ts:81
Pass an AutomizerFile directly and skip loadRoot().
showIntegrityInfo?
optionalshowIntegrityInfo?:boolean
Defined in: src/types/types.ts:108
In case you encounter weird pptx messages on opening a created presentation, you can turn this to true. It will log a message on missing related contents and help you to locate where it is. Use this along with "assertRelatedContents" to auto-fix broken relations.
statusTracker?
optionalstatusTracker?:StatusTracker["next"]
Defined in: src/types/types.ts:133
statusTracker will be triggered on each appended slide. You can e.g. attach a custom callback to a progress bar.
templateDir?
optionaltemplateDir?:string
Defined in: src/types/types.ts:53
Prefix for all template files. You can set a path here.
templateFallbackDir?
optionaltemplateFallbackDir?:string
Defined in: src/types/types.ts:58
Specify a fallback directory if template file was not found in templateDir.
useCreationIds?
optionaluseCreationIds?:boolean
Defined in: src/types/types.ts:93
verbosity?
optionalverbosity?:Verbosity
Defined in: src/types/types.ts:140
Set logging verbosity of the default console logger. 0: errors only 1: errors and warnings (default) 2: everything, including info (e.g. on import & append)