プロジェクト

全般

プロフィール

Vote #72864

完了

Support for PNG with alpha channel in pdf export

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
39
version_id:
81
issue_org_id:
12447
author_id:
67547
assigned_to_id:
0
comments:
13
status_id:
5
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The /vendor/plugins/rfpdf/tcpdf.rb, port of "FPDF":http://www.fpdf.org, not work with png with alpha channel. The latest version of www.fpdf.org (1.7.1) is now able to do that, and an update to the ported class, will be really appreciated.


journals

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Might be of some help: https://code.google.com/p/pyfpdf/source/detail?r=6d269f7474c6.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I have written a patch for r12228 by porting https://code.google.com/p/pyfpdf/source/detail?r=6d269f7474c6
However, interlacing and 16-bit depth are not supported yet.

--------------------------------------------------------------------------------
Here is a backported plugin by monkey patching: https://github.com/t-yuki/redmine_pdf_export_backports
--------------------------------------------------------------------------------
Has the patch provided by Yukinari been validated with newer versions of Redmine? We are on 2.3.4 stable. Thank you for helping to address this 16-bit PNG issue.
--------------------------------------------------------------------------------
Applied the patch in my test environment but saw no change. I loaded the Redmine PDF Export Backports plugin which granted the ability to export as HTML but PDF is still unable to render. Any ideas on how to resolve? Thank you.
--------------------------------------------------------------------------------
**Update**

I have loaded the plugin provided by Yukinari https://github.com/t-yuki/redmine_pdf_export_backports and was able to resolve the PDF export issue. In order to export PDF's, the short syntax of declaring an image must be used. For example:

"!myimage.png!" *without quotes*

We were using the long syntax of declaring the entire URL string. Adjusting the syntax allowed images to display properly in PDF exports.

Thank you Yukinari for your help with this.
--------------------------------------------------------------------------------
Fixed by #17570.
--------------------------------------------------------------------------------
It is great!! I tested under redmine 2.3.2, and tested with alpha channel png, now exported pdf can display that type of png normal. thanks.

Yukinari TOYOTA wrote:
> Here is a backported plugin by monkey patching: https://github.com/t-yuki/redmine_pdf_export_backports

--------------------------------------------------------------------------------


related_issues

relates,Closed,14599,Support 16-bit depth PNG images in PDF export

Admin Redmine さんが3年以上前に更新

  • カテゴリPDF export_39 にセット
  • 対象バージョン2.6.0_81 にセット

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

いいね!0
いいね!0