Vote #81799
未完了Images with absolute Path / URL not exported to PDF
0%
説明
Images get exported to PDF (From Wiki / Ticket)
!image.png!
If you use the syntax with the complete Image URL the Image doesn't appear on the PDF.
journals
This one won't work:
!https://www.redmine.org/attachments/download/28741/image.png!
<pre>
!https://www.redmine.org/attachments/download/28741/image.png!
</pre>
It appears though, that in Redmine.org Images are generally not exported to PDF.
--------------------------------------------------------------------------------
I can confirm this problem for pdf export.
This works for html output and pdf export:
<pre>
!image.png!
</pre>
This works for html output, but not for pdf export:
<pre>
!https://myredmine.com/attachments/download/28741/image.png!
</pre>
I suppose the problem is that "rbpdf":https://github.com/naitoh/rbpdf cannot access to these files. Wysiwyg editors like "redmine_wysiwyg_editor":https://github.com/taqueci/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
--------------------------------------------------------------------------------
Is it working when the attachment is public?
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------