WebViewer Version:
10.3.0
Do you have an issue with a specific file(s)?
No.
Can you reproduce using one of our samples or online demos?
No.
Are you using the WebViewer server?
No.
Does the issue only happen on certain browsers?
No.
Is your issue related to a front-end framework?
No.
Is your issue related to annotations?
No.
Please give a brief summary of your issue:
(Think of this as an email subject)
How can I download including Watermark?
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
This sample code cannot be downloaded with Watermark included.
private viewerInstance: WebViewerInstance;
webviewer({fullAPI: true, enableRedaction: true, ...})
.then((instance: WebViewerInstance) => {
this.viewerInstance = instance;
const { documentViewer } = instance.Core;
documentViewer.setWatermark({
// Draw diagonal watermark in middle of the document
diagonal: {
fontSize: 25, // or even smaller size
fontFamily: 'sans-serif',
color: 'red',
opacity: 50, // from 0 to 100
text: 'Watermark'
},
});
}
clickDownload = () => {
//
// this download file nothing watermark
//
this.viewerInstance.UI.downloadPdf({
filename: 'test.pdf',
includeAnnotations: true,
flatten: true,
flags: this.viewerInstance.Core.SaveOptions.LINEARIZED,
});
}
I Checked thiese documents.
Best Regards.
Please provide a link to a minimal sample where the issue is reproducible:
I was able to reproduce the issue with the watermark.
There seems to be an issue with the shouldDrawOverAnnotations option in the setWatermark API. Once I removed this line, I was able to download the file with the watermark.
I have add this issue to our backlog to be reviewed by the product team on a later date.
I was able to reproduce this issue. There seems to be a problem with adding a watermark using the UI after adding one programatically. I will add this to our backlog and let the product team know about this as well.