Hello,
I have recently updated from GroupDocs Viewer 17.12 to 18.5
I have it in a solution that I am debugging on Windows 10 using Visual Studio 2017. I have the code deployed to Windows Server 2012.
The following code only returns the first 2 pages of any pdf I give it. I want all the pages. It used to give me all the pages. How can I get it to do that again?
HttpPostedFileBase file = Request.Files[0];
Stream stream = file.InputStream;
byte[] attachmentData = attachmentData = new byte[file.ContentLength + 1];
stream.Read(attachmentData, 0, file.ContentLength);
ViewerConfig config = new ViewerConfig()
{
CachePath = cachePath,
EnableCaching = true
};
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
HtmlOptions htmlOptions = new HtmlOptions();
htmlOptions.IsResourcesEmbedded = true;
htmlOptions.PdfOptions.EnablePreciseRendering = true;
htmlOptions.JpegQuality = 100;
htmlOptions.EnableMinification = true;
htmlOptions.ShowHiddenPages = true;
htmlOptions.PdfOptions.ImageQuality = ImageQuality.High;
List<PageHtml> pages = htmlHandler.GetPages(stream, adminPortalViewModel.FileName, htmlOptions);