Feature #6851

Change PDF page size

Added by Eric Gallimore about 9 years ago. Updated 5 months ago.

Status:NewStart date:2010-11-08
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:PDF export
Target version:-
Resolution:

Description

By default, when exporting issues (or anything else) to a PDF file in Redmine, it creates a PDF file with A4 page sizes.

In some countries (such as the US), letter size paper is commonly used instead of A4 paper, and it is more convenient to print PDF files with letter-sized pages.

RFPDF supports the following page sizes:
  • a3
  • a4
  • a5
  • letter
  • legal

You can trivially modify the default paper size by editing source:trunk/vendor/plugins/rfpdf/lib/rfpdf/fpdf.rb (line 58). However, I suspect that this should be done by reading an administrative setting in source:trunk/lib/redmine/export/pdf.rb and changing the function call on line 35, thus allowing the user to set the default paper size from the administration area.

I'm afraid that properly adding a configuration variable is beyond my abilities

History

#1 Updated by Tobias Dussa almost 7 years ago

Beyond the obvious capability to switch between usual paper sizes (say, A4 and letter), this issue has another aspect:

When printing a gantt chart for a more complex project, A4 just will not do. It would be great if it was possible to print such charts on, say, A0.

RFPDF seems to support this in principle; patching lib/redmine/export/pdf.rb produces A0 pages. However, this obviously is not a very general solution to the problem.

#2 Updated by Toshi MARUYAMA almost 7 years ago

  • Category changed from Administration to PDF export

#3 Updated by Tobias Dussa over 5 years ago

Are there any news on this issue?

#4 Updated by Fabián Rodríguez 5 months ago

On Debian 9.9 and Redmine 3.3.1, editing /usr/share/redmine/lib/redmine/export/pdf.rb and changing "a0" to "letter" at line 33 I was able to the the format I needed.

Also available in: Atom PDF