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...