Appearance
@shbernal/pptxgenjs / index / DataOrPathProps
Interface: DataOrPathProps
Defined in: core-interfaces.ts:60
Reusable optional data/path fields. Use DataOrPathRequiredProps for APIs that require at least one source.
Extended by
Properties
data?
optionaldata?:string
Defined in: core-interfaces.ts:74
base64-encoded string
- Useful for avoiding potential path/server issues
Example
ts
'image/png;base64,iVtDafDrBF[...]=' // pre-encoded image in base-64path?
optionalpath?:string
Defined in: core-interfaces.ts:67
URL or relative path
Example
ts
'https://onedrives.com/myimg.png` // retrieve image via URL
@example '/home/gitbrent/images/myimg.png` // retrieve image via local path