Issues...

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
cramer
Posts: 32
Joined: Wed Mar 26, 2014 2:41 am

Issues...

Post by cramer » Mon Jul 27, 2015 9:02 pm

Hello,

I am running into issues and not sure what the problem is.
If I run the doc viewer using default page size and display the pages load fairly quickly but as soon as I try to do anything via toolbar, such as change the page mode it takes a very long time and do not have any indication that anything is happening, as the wait indicator is not doing anything.
All files being loaded come from a share on the local computer with full access.

Link to a video showing the issues - https://drive.google.com/file/d/0Bz22KH ... sp=sharing

Environment
Visual Studio 2010 - VB asp.net 4.0 web site - Windows 7 Pro SP1 - IIS 7.5.7600.16385
GDPictures release version 11.2.11

Relevant source code
ASPX

Code: Select all

<body style="overflow: hidden; margin: 0; height: 100%;">
	<form id="form1" runat="server" style="width: 100%; height: 100%;">
	
	<div id="divViewer" style="width: 89%; height: 900px; float: right; border: 1px solid;">
		<cc1:docuvieware id="DocuVieware1" runat="server" height="100%" width="100%" />
	</div>
	</form>
	<script type="text/javascript">
		function loadDocument(doc)
		{
			if (doc) { DocuViewareAPI.PostCustomServerAction('DocuVieware1', true, 'load', decodeURIComponent(doc), null, null); }
		}
	</script>
</body>
ASPX.VB

Code: Select all

Public Class WebForm1
	Inherits System.Web.UI.Page

	Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
		If Me.IsPostBack = False Then
			With Me.DocuVieware1
				.CacheFolder = Factory.GetImageTempPath(True)
				.Timeout = -1
				.CollapsedSnapIn = True
				.ShowThumbnailsSnapIn = False
				.ShowTextSearchSnapIn = False
				.ShowAnnotationsSnapIn = False
				.ShowBookmarksSnapIn = False
				.EnableFileUploadButton = False
				.EnableLoadFromUriButton = False
				.EnableSaveButton = True
				.AllowPrint = True
				.EnablePrintButton = True
				.PrintQuality = GdPicture11.WEB.PrintQuality.VeryHigh
				.EnablePagesNavigationButtons = True
				.EnableZoomButtons = True
				.EnableRotateButtons = True
				.EnablePageViewButtons = True
				.EnableFitWidthButton = True
				.EnableFitPageButton = True
				.EnableZoom100Button = True
				.EnableMouseModeButtons = False
				.EnableFullScreenButton = False
			End With

			Me.LoadImages()
		End If
	End Sub

	Private Sub LoadImages()
		Dim imageFiles As New List(Of String)
		' load list here...
		If imageFiles.Count > 0 Then Me.LoadDocument(Me.DocuVieware1, imageFiles.Item(0))
	End Sub

	Private Function LoadDocument(viewer As GdPicture11.WEB.DocuVieware, path As String) As Boolean
		Dim returnValue As Boolean = False
		If path <> "" Then
			path = HttpUtility.UrlDecode(path)
			Debug.WriteLine("Load - " & path)
			returnValue = (viewer.LoadFromStream(New IO.FileStream(path, IO.FileMode.Open, IO.FileAccess.Read), True, IO.Path.GetFileName(path)) = GdPicture11.GdPictureStatus.OK)
		End If
		Return returnValue
	End Function

	Private Sub DocuVieware1_CustomAction(sender As Object, e As GdPicture11.WEB.CustomActionEventArgs) Handles DocuVieware1.CustomAction
		If Me.LoadDocument(e.docuVieware, e.args.ToString) = False Then
			e.docuVieware.Close()
			If e.args.ToString <> "" Then
				e.message = New GdPicture11.WEB.DocuViewareMessage("Could not access/display the file " & IO.Path.GetFileName(e.args.ToString), icon:=GdPicture11.WEB.DocuViewareMessageIcon.Warning)
			Else
				e.message = New GdPicture11.WEB.DocuViewareMessage("No file specified.", icon:=GdPicture11.WEB.DocuViewareMessageIcon.Error)
			End If
		End If
	End Sub
End Class

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Issues...

Post by Loïc » Tue Jul 28, 2015 6:59 pm

Hi,

It seems to be a bitmap rendering perf leak.
Do you have this problem with PDF or raster format (tiff, jpeg, png...)?

Which browser are you using?
Does the problem persists by using latest Chrome or FF version?

Kind regards,

Loïc

cramer
Posts: 32
Joined: Wed Mar 26, 2014 2:41 am

Re: Issues...

Post by cramer » Tue Jul 28, 2015 7:11 pm

Loïc wrote: It seems to be a bitmap rendering perf leak.
Do you have this problem with PDF or raster format (tiff, jpeg, png...)?
The image used in example was a 300dpi 1bit indexed group 4 tiff
so any other suggestions or fixes could try?
Loïc wrote: Which browser are you using?
Does the problem persists by using latest Chrome or FF version?
Was using IE 11.0.9
Will test and let you know.

Thanks

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Issues...

Post by Loïc » Tue Jul 28, 2015 7:49 pm

another important test to do is to try with a PDF document.

cramer
Posts: 32
Joined: Wed Mar 26, 2014 2:41 am

Re: Issues...

Post by cramer » Tue Jul 28, 2015 9:43 pm

using IE 11
Mine - pdf works fine, tiffs has the lag issue
demo project (GdPicture.NET 11\Samples\ASP.NET\DocuVieware\aspnet-webform_app) - pdf work fine, tiff has the lag issue

using chrome 44.0.2403.107 m
Mine - viewer does not show up on page in browser, but step through code and it is appears to be loading documents.
demo project (GdPicture.NET 11\Samples\ASP.NET\DocuVieware\aspnet-webform_app) - pdfs and tiffs load fine

Any help appreciated.

Thanks.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Issues...

Post by Loïc » Tue Jul 28, 2015 10:00 pm

OK thanks. Could you share your tiff document with our team?
You can create a ticket here to keep materials under privacy: https://www.gdpicture.com/support/getting-support-from-our-team

cramer
Posts: 32
Joined: Wed Mar 26, 2014 2:41 am

Re: Issues...

Post by cramer » Tue Jul 28, 2015 10:07 pm

No need for a ticket...it is attached.
Attachments
6ED0A20F-E958-4D79-89EF-4067E8681B82_002.TIF
6ED0A20F-E958-4D79-89EF-4067E8681B82_002.TIF (4.5 KiB) Viewed 6384 times

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Issues...

Post by Loïc » Wed Jul 29, 2015 12:53 pm

OK I understood. The problem occurs when you run the IIS debugger with Internet Explorer.
If you select another browser everything should run normally.
In production the problem do not occurs.

That said, we will try to find a solution for the next minor release.

Kind regards,

Loïc

cramer
Posts: 32
Joined: Wed Mar 26, 2014 2:41 am

Re: Issues...

Post by cramer » Wed Jul 29, 2015 5:03 pm

Will test it out.

Thanks

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Issues...

Post by Loïc » Fri Jul 31, 2015 3:27 pm

Hello,

We've just published the new version fixing this issue.

Let me know if you encounter any other problem.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest