Hello,
Hi,
Hi again,
Hello,
As we need annotation and viewer feature both, we are referencing GroupDocs.Annotation for .NET 2.1.1 and using “Groupdocs.Web.Annotation.dll”.
We are facing several issues which are as below
Issues:
· printButtonClick.groupdocs is not getting fired· Arabic content is not rendered properly and displays junk characters
· Is there a way to change file name on “downloadButtonClick.groupdocs”?
@using Groupdocs.Web.UI
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section groupdocs {
@Html.CreateViewerScriptLoadBlock().LoadJquery(false).LoadJqueryUi(false)
}
@(Html.ViewerClientCode()
.TargetElementSelector("#viewer-widget")
.EnableRightClickMenu(false)
.ShowThumbnails(false)
.ShowFolderBrowser(false)
.ShowSearch(false)
.ShowViewerStyleControl(false)
.SupportTextSelection(true)
.UseHtmlBasedEngine(true)
.ShowHeader(true)
.PreloadPagesCount(1)
.EnableStandardErrorHandling(true)
.IgnoreDocumentAbsence(true)
.ZoomToFitWidth()
.ShowDownload(true)
.ShowPrint(true)
.FilePath("Scanner Integration.docx")
)
<div id="viewer-widget" class="groupdocs_viewer_wrapper grpdx" style="width: 100%; height: 100%;" >
</div>
<script>
$(function () {
var containerElement = $("#viewer-widget");
//document complete event fired
containerElement.groupdocsViewer("on", "documentLoadCompleted.groupdocs",
function (e) {
alert("documentLoadCompleted event fired");
});
//download button click
containerElement.groupdocsViewer("on", "downloadButtonClick.groupdocs",
function (e, zoom) {
alert("Download button was clicked");
});
//print button click
containerElement.groupdocsViewer("on", "printButtonClick.groupdocs",
function (eventDescr, pdfPrintingMode) {
alert('Print button was clicked using ' + (pdfPrintingMode ? 'PDF' : 'HTML') + '-printing mode.');
});
});
</script>
We need to use viewer, annotation and signature together. If you can provide such demo which uses all these 3 features together then that will be really helpful.
I have attached pdf file and other related filefor which we are getting issue along with this post.
Hi,
Hi,
· Arabic content is not rendered properly and displays junk characters
· Is there a way to change file name on “downloadButtonClick.groupdocs”?
Hi,
Hi,
Hi,
Hi,
Hi,
As per your suggestion I have removed the Annotation library from my solution and added Viewer library of version 2.19.0. Still I am facing the same issue for print button click event. I have created another demo project where I have added Viewer library instead of Annotation. I have placed the demo project at https://www.dropbox.com/s/d62272jt12bkoen/GroupdocsViewerDemo_05_03_2016.zip?dl=0.
- “printsBottonClick.groupdocs” is not getting fired
- Is there any way to change file name on "downloadButtonClick.groupdocs"
Thanks,
Hi Aradhana,
Hi,
Hi,