Project

General

Profile

Actions

Defect #20591

closed

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

Added by Marwijn Hessel over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
PDF export
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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


Files

on-top.png (202 KB) on-top.png Marwijn Hessel, 2015-08-21 14:03
Vocam_IDE_Logging.png (8.3 KB) Vocam_IDE_Logging.png Marwijn Hessel, 2015-09-15 08:24
ExampleProjectEditing.png (105 KB) ExampleProjectEditing.png Marwijn Hessel, 2015-09-15 08:24
Actions #1

Updated by Toshi MARUYAMA over 8 years ago

  • Status changed from New to Confirmed
Actions #2

Updated by Jun NAITOH over 8 years ago

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?

Actions #3

Updated by Marwijn Hessel over 8 years ago

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.

Actions #4

Updated by Jun NAITOH over 8 years ago

I reproduced this problem.
This is the bug of rbpdf with PNG alpha channel picture.

Actions #5

Updated by Jun NAITOH over 8 years ago

This problem fixed by rbpdf 1.18.7.
please bundle update.

Actions #6

Updated by Toshi MARUYAMA over 8 years ago

  • Priority changed from Urgent to Normal
  • Target version set to 2.6.8
Actions #7

Updated by Toshi MARUYAMA over 8 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed

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

Actions

Also available in: Atom PDF