Hi @naga,
Thanks for your patience. Looks like we need to clarify the code sample a bit more on our end. You’d need to specify a port number if you’re using localhost
or you can provide a relative path based on your web server.
Double check what your port # is when building/running your Angular project. By default I think it’s 4200.
const imageSource = 'http://localhost:4200/path/to/img.png';
// const imageSource = '/relative/path/to/image.png';
// const imageSource = 'https://publicurl.com/img.png';
tool.setStandardStamps([
‘Approved’,
‘AsIs’,
imageSource
]);
For reference, I was able to get it working with this sample using a relative path:
const { documentViewer } = instance.Core;
const tool = documentViewer.getTool('AnnotationCreateRubberStamp');
// Your relative path will most likely be different.
// Don't expect this to work for you.
const pathToLogo = '/envs/blank/logo.png';
tool.setStandardStamps([
'Approved',
'AsIs',
pathToLogo,
]);
Let me know how this works for you! I’ll add the documentation improvement to our backlog.
Thanks,
Adam