PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Little Bug in WPF DocumentViewer http://forum.pdfsharp.com/viewtopic.php?f=3&t=1125 |
Page 1 of 1 |
Author: | MH_2106 [ Fri Apr 02, 2010 11:16 am ] |
Post subject: | Little Bug in WPF DocumentViewer |
If you use the DocumentViewer with a document, which has mixed orientation (landscape and portrait) the pages are shown in the format of the first page. To fix it, it is only a little change in documentViewer.aspx.cs in DdlUpdate you have to change Code: for (int pageNumber = 1; pageNumber <= pageCount; pageNumber++) { try { size96 = GetSizeOfPage(1, out pageWidth, out pageHeight); to Code: for (int pageNumber = 1; pageNumber <= pageCount; pageNumber++) { try { size96 = GetSizeOfPage(pageNumber, out pageWidth, out pageHeight); and you have the right format of all pages... |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |