Add stamps in the list of stamp annotations
Hi,
Can I ask if there are ways I can add stamps in the list of stamp annotations in the vue pdf viewer with using the custom stamp setting? I want to add my own stamps in the list.
Hoping for your response. Thanks.
SIGN IN To post a reply.
5 Replies
1 reply marked as answer
AA
Akshaya Arivoli
Syncfusion Team
October 1, 2020 01:09 PM UTC
Hi Gracey,
Thank you for contacting Syncfusion support.
We can add the custom stamps in the PDF Viewer using the customStampSettings, and isAddToMenu is used to add the custom stamp in the dropdown.
|
viewer.customStampSettings = { customStamps: [{ customStampImageSource: "", customStampName: "image" }], isAddToMenu: true }; |
Please try it and revert us with more details about your requirement, if you still have concerns. These details will be helpful for us to investigate further and assist you better.
Regards,
Akshaya
SH
Shannara
October 2, 2020 01:34 AM UTC
Hi Akshaya,
This is the current code of my component:
Thank you so much for your response. I just like to ask help on how can I use this code inside my vue component?
viewer.customStampSettings = { customStamps: [{ customStampImageSource: "", customStampName: "image" }], isAddToMenu: true }; |
This is the current code of my component:
<template>
<ejs-pdfviewer id="pdfViewer" ref="viewer" :serviceUrl="serviceUrl" :documentPath="documentPath"></ejs-pdfviewer>
</template>
<script>
import {
PdfViewerPlugin,
Toolbar,
Magnification,
Navigation,
LinkAnnotation,
BookmarkView,
ThumbnailView,
Print,
TextSelection,
TextSearch,
Annotation,
FormFields
} from "@syncfusion/ej2-vue-pdfviewer";
export default {
data() {
return {
serviceUrl:
"http://localhost:62978/pdfviewer",
documentPath: "",
viewer: null
};
},
provide: {
PdfViewer: [
Toolbar,
Magnification,
Navigation,
LinkAnnotation,
BookmarkView,
ThumbnailView,
Print,
TextSelection,
TextSearch,
Annotation,
FormFields
]
},
AA
Akshaya Arivoli
Syncfusion Team
October 2, 2020 11:17 AM UTC
Hi Gracey,
Thank you for your update
We have created the sample in the Vue and shared the same in the below link,
Please try it and revert us if you need further assistance.
Regards,
Akshaya
Marked as answer
SH
Shannara
October 2, 2020 01:46 PM UTC
Hi,
Again thank you so much for your support. It really helps a lot. I already solved the problem. Thank you.
AA
Akshaya Arivoli
Syncfusion Team
October 5, 2020 09:32 AM UTC
Hi Shannara,
Thank you for your update. We are glad to know that the reported issue is resolved. Please revert us if you need any further assistance in feature.
Regards,
Akshaya
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
- Marked answer
-
SH Shannara
- Oct 1, 2020 02:04 AM UTC
- Oct 5, 2020 09:32 AM UTC