commit 3fe680b69a7565a64a36380fc56cf4c3c0a7e0e5
parent 2a71f764bb99efbf0ad6eba6115e5b2f5152bfbd
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Tue, 7 Nov 2017 21:20:49 +0300
[print] in pdf rotate page orientation for landscape pages
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/lib/leaflet.control.printPages/pdf.js b/src/lib/leaflet.control.printPages/pdf.js
@@ -44,6 +44,7 @@ function recPage(serialNum, width, height) {
/Parent 2 0 R
/MediaBox [0 0 ${width} ${height}]
/Contents ${contentRecId} 0 R
+/Rotate ${width > height ? 90 : 0}
/Resources <<
/XObject << /Im${serialNum} ${imageRecId} 0 R >>
/ProcSet [ /PDF /Text /ImageC ]