プロジェクト

全般

プロフィール

Vote #65149

完了

support attachment images in PDF export

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

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

100%

予定工数:
category_id:
39
version_id:
36
issue_org_id:
3261
author_id:
5374
assigned_to_id:
11192
comments:
39
status_id:
5
tracker_id:
2
plus1:
5
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When an issue is exported to PDF by using the "PDF" link at the end of the page the inline images which are attached to the issue and displayed on screen are not on the printout.

Only the wiki syntax for displaying the image is printed out like:

!attached_image!

Ideally the PDF export would contain those images as well so that any explanations of bugs which are supported by the images don't become incomprehensible.

See this issue as an example:
With inline images: http://www.redmine.org/issues/3100
No inline images: http://www.redmine.org/issues/3100.pdf

It would be great to get this as a feature as we use the PDF export a lot to give bug reports with screenshots back to external developers.


journals

I don't see any images in exported PDF files
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
can this be possible?
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
Exported pdf files have no value without the releated images!
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
This issue is too important to everyone.
+1
--------------------------------------------------------------------------------
There's another way to solve this one...
Is it possible to make a detour like export html or msg file can use imagea within contents...
It might be give more simple implementations...

sorry for my poor engilsh.
--------------------------------------------------------------------------------
I implemented include inline images in issue PDF export.

* need to rmagick.
** I tested rmagick 2.13.1(Cent OS 6) and 2.12.0(Windows XP)
* support image format : jpeg,png,gif (Extension is required.)
* support attachment image file.
<pre>
!bar.jpg!
</pre>
* support remote URI image file.
<pre>
!http://www.redmine.org/bar.jpg!
</pre>
* support Percent-encoding (URL encoding) URI image file.

* not support relative server path.
<pre>
!/foo/bar.jpg!
</pre>
* not support alignment.
<pre>
!>bar.jpg!
</pre>
* sorry, I am not test on JRuby environment. (but I think to work on JRuby environment without unit test.)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Sorry, I mistake upload "sample_beer.png" file. please use "beer.png" file.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
> sorry, I am not test on JRuby environment. (but I think to work on JRuby environment without unit test.)

I tested on JRuby 1.6.2(CentOS 6.0), today. but, I couldn't work RMagick on JRuby...
Sorry, I think that PDF export function with image can't support to JRuby. Because I think to don't work RMagick on JRuby.

* I rewrote unit test (test_rdm_pdf_iconv_cannot_convert_from_cp932) for JRuby.
(This unit test is not related to RMagick.)
* Deleted RAILS_DEFAULT_LOGGER for Rails 3.x compatibility. (change to Rails.logger)

The new patch (pdf_export_image_support_jruby_test_fix.patch) for trunk attached.
--------------------------------------------------------------------------------
This is a full patch for r7742.
r7742 has a #401 feature.
--------------------------------------------------------------------------------
This is a full patch for r7788.

--------------------------------------------------------------------------------
Won't r7806 break if RMagick is not available?
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Won't r7806 break if RMagick is not available?

Ok, it won't.

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

--------------------------------------------------------------------------------
This is a full patch for r7810.
--------------------------------------------------------------------------------
This is a patch for external url support.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I created new issue #9693 for external url images.
--------------------------------------------------------------------------------
Hi Toshi,

this Issue seems to be current in the actual stable-version 1.3.1.
When i try to export this issue to pdf the images aren't inline: http://www.redmine.org/issues/3100

--------------------------------------------------------------------------------
André vS wrote:
> Hi Toshi,
>
> this Issue seems to be current in the actual stable-version 1.3.1.
> When i try to export this issue to pdf the images aren't inline: http://www.redmine.org/issues/3100

www.redmine.org is not upgraded.
--------------------------------------------------------------------------------
Ah, i see! Thank you for your reply.
It doesn't seem to be working in my local installation (1.3.1).
Even if use the "masked" format; link enclosed by "!"

I'm using debian squeeze, having the actual version of imagemagick installed.

--------------------------------------------------------------------------------
You need to install rmagick.
On Redmine 1.3-stable, run "gem install rmagick".
--------------------------------------------------------------------------------
I've installed debian-packages imagemagick and (libmagickcore-dev or libmagickwand-dev).
One of libmagickcore-dev or libmagickwand-dev is required, otherwise gem install rmagick will fail.
rmagick is installed and active, as i can see under "administration" -> "Information"

But still it's not working for me. PDF-Exports come without images, but HTML-Exports do.
--------------------------------------------------------------------------------
Hello folks,

I use redmine 1.0.1 from debian stable repo.
Is it possible to create a patch for that version?
Thanks for your help in advance.
--------------------------------------------------------------------------------
I still don't see images in Redmine version 2.4
--------------------------------------------------------------------------------
Hi, redmine wiki can export pdf, but if there is image attached in the wiki, exported pdf cannot show the image, is it solved? I am using bitnami redmine 2.3.2, I cannot find solution about this, it is very urgent for us, for we are deciding if we can manage doc on redmine wiki, if pdf cannot show image, it is useless.

Hope to ge reply. Thanks.

Jun NAITOH wrote:
> I implemented include inline images in issue PDF export.
>
> * need to rmagick.
> ** I tested rmagick 2.13.1(Cent OS 6) and 2.12.0(Windows XP)
> * support image format : jpeg,png,gif (Extension is required.)
> * support attachment image file.
> [...]
> * support remote URI image file.
> [...]
> * support Percent-encoding (URL encoding) URI image file.
>
> * not support relative server path.
> [...]
> * not support alignment.
> [...]
> * sorry, I am not test on JRuby environment. (but I think to work on JRuby environment without unit test.)

--------------------------------------------------------------------------------
Hi,

Same problem. Images (png, jpg) with the inline syntax are not displayed in pdf export. It's a pity, so i use chrome or firefox plugins like "Print Friendly & PDF" but it is not convenient.

Environment:
Redmine version 2.2.3.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.12
Environment production
Database adapter MySQL
Redmine plugins:
redmine_people 0.1.6
--------------------------------------------------------------------------------
li an wrote:
> I am using bitnami redmine 2.3.2, I cannot find solution about this,

You should contact bitnami team.

*Do not post to closed issue with target version*.
--------------------------------------------------------------------------------
Hi, Sebastien,

I exported wiki page with html, and the image in the wiki page is such format "!https://xxx/redmine/attachments/download/xxx/f.png!", when exported html and saved to the local place of the PC, only if I login redmine, then open the html the image can be shown, if redmine is logged out, the image in the html cannot be shown.

And I use wkhtmltopdf to print redmine wiki exported html to pdf, the command is like "wkhtmltopdf C:\Users\xx\AppData\Local\Temp\design.html design.pdf", pdf file does not show image.

Is any way to transfer html with pdf with image displayed....?

sebastien lemaitre wrote:
> Hi,
>
> Same problem. Images (png, jpg) with the inline syntax are not displayed in pdf export. It's a pity, so i use chrome or firefox plugins like "Print Friendly & PDF" but it is not convenient.
>
> Environment:
> Redmine version 2.2.3.stable
> Ruby version 1.8.7 (x86_64-linux)
> Rails version 3.2.12
> Environment production
> Database adapter MySQL
> Redmine plugins:
> redmine_people 0.1.6

--------------------------------------------------------------------------------
Sorry, I wont' post under this closed issue later. But I do think it is not bitnami issue, redmine 2.3,2.2,2.4 does not solve that issue.

Toshi MARUYAMA wrote:
> li an wrote:
> > I am using bitnami redmine 2.3.2, I cannot find solution about this,
>
> You should contact bitnami team.
>
> *Do not post to closed issue with target version*.

--------------------------------------------------------------------------------
Hi li,

Sorry but I don't know. Your solution seems me more complicate than mine but why not.

li an wrote:
> Hi, Sebastien,
>
> I exported wiki page with html, and the image in the wiki page is such format "!https://xxx/redmine/attachments/download/xxx/f.png!", when exported html and saved to the local place of the PC, only if I login redmine, then open the html the image can be shown, if redmine is logged out, the image in the html cannot be shown.
>
> And I use wkhtmltopdf to print redmine wiki exported html to pdf, the command is like "wkhtmltopdf C:\Users\xx\AppData\Local\Temp\design.html design.pdf", pdf file does not show image.
>
> Is any way to transfer html with pdf with image displayed....?
>
> sebastien lemaitre wrote:
> > Hi,
> >
> > Same problem. Images (png, jpg) with the inline syntax are not displayed in pdf export. It's a pity, so i use chrome or firefox plugins like "Print Friendly & PDF" but it is not convenient.
> >
> > Environment:
> > Redmine version 2.2.3.stable
> > Ruby version 1.8.7 (x86_64-linux)
> > Rails version 3.2.12
> > Environment production
> > Database adapter MySQL
> > Redmine plugins:
> > redmine_people 0.1.6

--------------------------------------------------------------------------------
Hi Toshi,

Like Li sorry to re-post a closed issue but I think too that it is not a problem about bitnami. I use a turnkey machine. Even the online demonstration, I noticed this problem.

Toshi MARUYAMA wrote:
> li an wrote:
> > I am using bitnami redmine 2.3.2, I cannot find solution about this,
>
> You should contact bitnami team.
>
> *Do not post to closed issue with target version*.

--------------------------------------------------------------------------------
You should use <pre>!image.png!</pre> syntax.

Again, *Do not post to closed issue with target version*.
--------------------------------------------------------------------------------


related_issues

relates,Closed,69,Textilized description in PDF
relates,Closed,401,Add pdf export for WIKI page
relates,Closed,9533,Redmine Wiki Gchart LaTeX-style Formula plugin and PDF export
relates,Reopened,9693,support external url images in PDF

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

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

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

いいね!0
いいね!0