jgrolemund / evoluspencil

Automatically exported from code.google.com/p/evoluspencil
0 stars 0 forks source link

Document in landscape mode exported in PDF in portrait mode #634

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a document with a landscape orientation (for instance 1052×774, a 
90dpi A4 format)
2. Document > Export Document > Export to PDF > Default Printing Template > 
Finish
3. The generated PDF is using a "Portrait" orientation.

What is the expected output? What do you see instead?
If the document is in landscape orientation, the PDF should also use a 
landscape orientation...

What version of the product are you using? On what operating system?
Pencil v2.0.5 (Linux version), Ubuntu Linux 14.04

Please provide any additional information below.
I looked up for the template, which on Linux is located in 
/usr/share/pencil/content/pencil/templates/Print/default.print, and I 
discovered that in Template.xml, the orientation is hardcoded:
<Property name="print.orientation">portrait</Property>

So I created an alternative Template using the landscape orientation (see 
attached document).

It might be a good idea to either:
1. Automatically use the correct orientation (based, for instance, on the 
width/height ratio used in the first page of the Pencil document)
2. Have a choice to select the format/orientation when exporting to PDF
3. Include the attached template in Pencil

Original issue reported on code.google.com by pierre.e...@gmail.com on 14 May 2014 at 9:38

Attachments: