プロジェクト

全般

プロフィール

Vote #76676

完了

PDF export does not determine picture (.png) height correctly

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

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

0%

予定工数:
category_id:
39
version_id:
105
issue_org_id:
20591
author_id:
134248
assigned_to_id:
0
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
90
ステータス-->[Closed]

説明

When exporting a redmine page as PDF. Somehow the height of pictures (.png) is not determined correctly. When there are more pictures on a page, in the PDF export these are laying on top of each other (see example in attachment).


journals

I have created issue.
https://github.com/naitoh/rbpdf/issues/25
--------------------------------------------------------------------------------
Marwijn Hessel wrote:
> When exporting a redmine page as PDF.
> Somehow the height of pictures (.png) is not determined correctly.
> When there are more pictures on a page, in the PDF export these are laying on top of each other (see example in attachment).

I can't reproduced.
Can you have reproduced pictures?

--------------------------------------------------------------------------------
There is no relation with the used pictures and this issue.
When exporting to PDF the height of any picture is incorrect.
Sometimes they will be placed on top of each other, sometimes there is one picture per page (when multiple does fit).
I tried different picture formats (like BMP, JPG, PNG), it does not change a thing ...

When looking into the produced HTML code of redmine, the picture height (and width) is not mentioned in the <img> tag. Which should be accordingly to W3C (http://www.w3schools.com/tags/tag_img.asp).
This is only guessing if this has any relation with this issue (but it is no correct HTML).

When printing the page all goes well, pictures are on the place where they should be.

--------------------------------------------------------------------------------
I reproduced this problem.
This is the bug of rbpdf with PNG alpha channel picture.
--------------------------------------------------------------------------------
This problem fixed by rbpdf 1.18.7.
please bundle update.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I have updated rbpdf to 1.18.7 in trunk, 3.1-stable, 3.0-stable and 2.6-stable, thanks.
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0