Skip to content

Commit

Permalink
images a fonts - custom headers
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Mar 28, 2022
1 parent 740135f commit c2465eb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion content/document-definition-object/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,25 @@ var docDefinition = {
// is supported loading images via url from reference by name in images
image: 'snow'
},
{
image: 'strawberries'
},
],

images: {
mySuperImage: 'data:image/jpeg;base64,...content...',

// is supported loading images via url (https or http protocol)
snow: 'https://picsum.photos/seed/picsum/200/300'
snow: 'https://picsum.photos/seed/picsum/200/300',

// is supported loding images via url with custom headers
strawberries: {
url: 'https://picsum.photos/id/1080/367/267'
headers: {
myheader: '123',
myotherheader: 'abc',
}
}
}
};
```

0 comments on commit c2465eb

Please sign in to comment.