Free Support Forum - groupdocs.com

Rendering problem


#1

Hello Team,



Can you please let me know how to solve the problem with rendering in 4-page pdf document - viewer is displaying strange empty squares where should be no content?



<%= Html.ViewerClientCode().EnableRightClickMenu()

.TargetElementSelector("#test")

.Stream(ms, id.ToString(), extension, name, false, null)

//.FilePath(“Alpine Due Diligence.pdf”)

.EnableRightClickMenu(false)

.ShowThumbnails(false)

.OpenThumbnails(false)

//.Layout(ViewerMode.OnePageInRow)

.ZoomToFitWidth()

.Width(970)

.Height(800)

.DownloadPdfFileIfPossible(false)

//.PreloadPagesCount(1)

.UseHtmlBasedEngine(true)

.ShowDownload(false)

//.ShowPrint(false)

.SupportTextSelection(false)

//.Watermark(“test watermark”)

.ShowFolderBrowser(false)

.ShowHeader(false)

.ShowPaging(false)

//.PreloadPagesCount(1)

.ShowViewerStyleControl(false)

.UseVirtualScrolling(false)

%>





Thank you!


#2

Hello Deric,


We are sorry to hear that you have such issue. In addition to the code that you have shared could you please also share with us next:

1. Version of the Viewer library
2. If possible document example - that we can check it
3. Which .NET FrameWork version you use?
4. Which browser you use?

Thank you.



#3

Hello Pavel,



Please find the attached document that has a problem.

I have tested with 2.11.1 & 2.14.0 version of Viewer.dll with same results. Same happens in Chrome 44.0 & IE11. Net version is 4.5.



From log.txt:



Local time:08/25/2015 11:45:08, UTC time:08/25/2015 09:45:08 Starting saving a stream to 51d1c356-488c-4be8-a8c3-cbf226a02d97

Local time:08/25/2015 11:45:08, UTC time:08/25/2015 09:45:08 Result file path: temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Local time:08/25/2015 11:45:08, UTC time:08/25/2015 09:45:08 Stream downloaded successfully

Local time:08/25/2015 11:45:11, UTC time:08/25/2015 09:45:11 ViewDocument

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf



Local time:08/25/2015 11:45:14, UTC time:08/25/2015 09:45:14 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:1_0.png



Local time:08/25/2015 11:45:14, UTC time:08/25/2015 09:45:14 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:220c8966-0000-0000-0000-000000000000.woff



Local time:08/25/2015 11:45:15, UTC time:08/25/2015 09:45:15 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:1861b106-0000-0000-0000-000000000000.woff



Local time:08/25/2015 11:45:16, UTC time:08/25/2015 09:45:16 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:2_1.png



Local time:08/25/2015 11:45:16, UTC time:08/25/2015 09:45:16 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:18a17e7b-0000-0000-0000-000000000000.woff



Local time:08/25/2015 11:45:17, UTC time:08/25/2015 09:45:17 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:d893e165-0000-0000-0000-000000000000.woff



Local time:08/25/2015 11:45:22, UTC time:08/25/2015 09:45:22 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:3_2.png



Local time:08/25/2015 11:45:23, UTC time:08/25/2015 09:45:23 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:73b1eda7-0000-0000-0000-000000000000.woff



Local time:08/25/2015 11:45:23, UTC time:08/25/2015 09:45:23 GetResourceForHtml

Root Storage Path:D:/Temp/

Processing Folder Path:

Document Path:temp\S\51d1c356-488c-4be8-a8c3-cbf226a02d97.pdf

Resource Path:bf092e84-0000-0000-0000-000000000000.woff


#4

Hello Denic,


Thank you for the document example. We have reproduced your issue. We have created a bug ticket which will be resolved by our product team. When we will have any news for you - we will notify you here.

As a temporary solution you can try to use .UseHtmlBasedEngine(false) - in this mode document rendered well.

Sorry for the inconvenience.

#5

Thank you, Pavel!


#6

You are welcome.


Best regards.