PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Mixed page orientation in MigradocViewer (with fix) https://forum.pdfsharp.net/viewtopic.php?f=3&t=3540 |
Page 1 of 1 |
Author: | MariusIonut [ Tue Feb 07, 2017 1:39 pm ] |
Post subject: | Mixed page orientation in MigradocViewer (with fix) |
Having mixed pages in the document results in the viewer having the orientation of the first page for the rest of the document. Fix in DocumentPreview.xaml.cs in DdlUpdated() for (int pageNumber = 1; pageNumber <= pageCount; pageNumber++) { try { size96 = GetSizeOfPage(1, out pageWidth, out pageHeight); change to for (int pageNumber = 1; pageNumber <= pageCount; pageNumber++) { try { size96 = GetSizeOfPage(pageNumber, out pageWidth, out pageHeight); |
Author: | Thomas Hoevel [ Tue Feb 07, 2017 3:48 pm ] |
Post subject: | Re: Mixed page orientation in MigradocViewer (with fix) |
Hi! Thanks for the feedback and the fix - looks like a copy'n'paste error. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |