Hello,
We encounter some problems with spesific documents in viewer. For now i spotted three problem.
First i’m using viewer 2.12.0. Also i’ve tried 2.15.1 about an hour ago but i didn’t have a chance to test problems. Because you’ve changed your Aspose components versions and we’ve talked about it before. We are using Aspose too and our dll’s overrides, viewers embedded Aspose dlls. Could you send me new list of Aspose dll’s versions?
Problem 1—
When i try to open “1.pdf” i get an error and error says “Parameter is not valid.” I know .net throws this error when your image is corrupted. I try to change viewers “UsePngImagesForHtmlBasedEngine” parameter. If i set it true, this error occurs. If i set it false there is no problem. Also when i set it true, viewer cannot create Cache folder. I think it can not create png image from pdf.
I’m also added error’s image as "error1.png"
My viewer configuration is like;
var v = GDocsViewer.Viewer.ClientCode().TargetElementSelector("#divHTML5ViewerContainer").ShowFolderBrowser(false)
.Stream(stream, filenameWithoutExtention, extention, displayFilename, false).EnableRightClickMenu(false)
.DownloadPdfFileIfPossible(true)
.Layout(GDocsViewer.ViewerMode.ScrollView)
.OpenThumbnails(false)
.PreloadPagesCount(1, true, ConvertWordDocumentsCompletely)
.PreventTouchEventsBubbling()
.SearchHighlightColor("#9c9", "lime")
.ShowDownload(true)
.ShowDownloadErrorsInPopup(true)
.ShowFolderBrowser(false)
.ShowHeader(true)
.ShowImageWidth(false)
.ShowPaging(true)
.ShowPrint(true)
.ShowSearch(true)
.ShowThumbnails(true)
.ShowViewerStyleControl(true)
.ShowZoom(true)
.SupportPageReordering(false)
.SupportPageRotation(true)
.SupportTextSelection(true)
.UseHtmlBasedEngine(true, true, true, true)
.ZoomToFitWidth()
.Locale("tr-TR");Problem2----
}
When i opened 2.xlsx, viewer cannot display it correctly. You can see the distortion in "error2.png"
Also my viewer config is same as first one.
Problem3----
3.xls can open and view correctly. But if SupportPageRotation is set true, and if you try to download or print document. You get an error like error3.png. But before download or print operation, if you rotate document there will be no error when you try to download or print document. Its not about document's rotation, i tried this senario and it didnt throw error; first rotate image clockwise, then rotate it back you wont get error.