Defect #36515

Images with absolute Path / URL not exported to PDF

Added by Malte Blanck 10 months ago. Updated 9 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:PDF export
Target version:-
Resolution: Affected version:4.2.3

Description

Images get exported to PDF (From Wiki / Ticket)

If you use the syntax with the complete Image URL the Image doesn't appear on the PDF.

image.png (5.37 KB) Malte Blanck, 2022-01-25 07:14

Export_test.pdf (94.6 KB) Malte Blanck, 2022-03-02 23:53

History

#1 Updated by Malte Blanck 10 months ago

This one won't work:


!https://www.redmine.org/attachments/download/28741/image.png!

It appears though, that in Redmine.org Images are generally not exported to PDF.

#2 Updated by Alexander Meindl 10 months ago

I can confirm this problem for pdf export.

This works for html output and pdf export:

!image.png!

This works for html output, but not for pdf export:

!https://myredmine.com/attachments/download/28741/image.png!

I suppose the problem is that rbpdf cannot access to these files. Wysiwyg editors like redmine_wysiwyg_editor insert absolute URLs (it would be nice, if they would insert relative urls).

But I think, that html and pdf output should be the same in general.

Tested with:

  • Redmine 4.2.3
  • Ruby 2.7.5
  • No plugins

#3 Updated by Marius BALTEANU 9 months ago

Is it working when the attachment is public?

#4 Updated by Malte Blanck 9 months ago

Marius BALTEANU wrote:

Is it working when the attachment is public?

Nope, same issue...

But I am not 100% sure wether or not i set the Project completly Public.
I just toogled the "public" Checbox on the Projects Configuration page.

Also available in: Atom PDF