プロジェクト

全般

プロフィール

Vote #68574

未完了

Change PDF page size

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
PDF export_39
対象バージョン:
-
開始日:
2010/11/08
期日:
進捗率:

0%

予定工数:
category_id:
39
version_id:
0
issue_org_id:
6851
author_id:
9427
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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


journals

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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Are there any news on this issue?
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Just did this with redmine 4.1.0. Went to:

/usr/share/redmine/lib/redmine/export/pdf.rb

Found the following line:

super(orientation, 'mm', 'A4')

Changed the 'A4' to 'letter'. Had to restart redmine, and now my pdf's are 8.5 x 11.
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリPDF export_39 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0