r20300 by fschmid - PDF-Import: setup document layout correctly for double paged documents

scribus-commit scribus-commit at lists.scribus.net
Sun Aug 2 10:12:11 UTC 2015


Author: fschmid
Date: Sun Aug  2 10:12:11 2015
New Revision: 20300

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20300
Log:
PDF-Import: setup document layout correctly for double paged documents

Modified:
    trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp

Modified: trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20300&path=/trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp Sun Aug  2 10:12:11 2015
@@ -862,10 +862,18 @@
 							m_Doc->pdfOptions().PageLayout = PDFOptions::SinglePage;
 						else if (pgl == Catalog::pageLayoutOneColumn)
 							m_Doc->pdfOptions().PageLayout = PDFOptions::OneColumn;
-						else if (pgl == Catalog::pageLayoutTwoColumnLeft)
+						else if ((pgl == Catalog::pageLayoutTwoColumnLeft) || (pgl == Catalog::pageLayoutTwoPageLeft))
+						{
+							m_Doc->resetPage(1);
+							m_Doc->setPageSetFirstPage(1, 0);
 							m_Doc->pdfOptions().PageLayout = PDFOptions::TwoColumnLeft;
-						else if (pgl == Catalog::pageLayoutTwoColumnRight)
+						}
+						else if ((pgl == Catalog::pageLayoutTwoColumnRight) || (pgl == Catalog::pageLayoutTwoPageRight))
+						{
+							m_Doc->resetPage(1);
+							m_Doc->setPageSetFirstPage(1, 1);
 							m_Doc->pdfOptions().PageLayout = PDFOptions::TwoColumnRight;
+						}
 					}
 					else
 					{




More information about the scribus-commit mailing list