Please give a brief summary of your issue:
I have same annotation in database not in document. Now I want to implement the download functionality without loading the web viewer UI.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible:
Hello, Iâm AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
To implement the download functionality without loading the WebViewer UI, you can directly manipulate the PDF document using Apryseâs server-side capabilities or APIs. This way, you can merge annotations stored in your database with the document and prepare it for download.
Some things you can try:
Use the Apryse WebViewer Server API to fetch and manipulate the PDF document directly.
Utilize the server-side API to merge annotations stored in your database with the document in XFDF format.
Prepare the document for download by converting it to a desired format using the server-side API.
Use the GetPDF API endpoint to convert the document to PDF format and send it to the client for download.
That why Iâm getting error. Is there any way through which I can use ocument.getElementById(Apryse.viewerId))
.then((instance) => {
window.webViewerInstance = instance; in downloadPdf method
Iâm not sure I understand your desired workflow. The downloadPdf() API is under our UI namespace and works by downloading the file currently in the viewer. You can find our full guide for saving/downloading a document here: https://docs.apryse.com/web/guides/basics/save
If you are trying to open a document in a new tab, the first code snippet (the one with window.open) should be sufficient.
Please provide the following to investigate further:
A screenshot of the error mentioned
Can you reproduce the issue on our latest release (Version 11.3)
I want to open the document in new tab without loading the apryse webviewer UI. Iâm able to load to that but the issue is in note type annotation, when user hover the comment is not visible. I have try official demo site there on hover comment is visible.
If you would like to use our SDK without having a visible viewer, we would not recommend instantiating WebViewer on an element which has âdisplay: noneâ. You can find out why we donât recommend this here: https://docs.apryse.com/web/guides/best-practices#preload-webviewer
From there, you can use the guide we previously provided on fetching file data without a viewer in order to implement the download feature desired. You can find that guide here for your convenience: https://docs.apryse.com/web/guides/get-file-data-without-viewer
Let us know if you have any questions about the guides provided.
Best Regards,
Jacob Romano Carlsen
Web Development Support Engineer Apryse Software Inc.