プロジェクト

全般

プロフィール

Vote #74578

未完了

Include image thumbnails with PDF export

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
39
version_id:
0
issue_org_id:
15296
author_id:
89341
assigned_to_id:
0
comments:
10
status_id:
1
tracker_id:
2
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I have a page with a thumbnail of an attached image. In the wiki it shows correctly:

p=.

マクロ thumbnail の実行中にエラーが発生しました (添付ファイル Project_Report_JN_0925_1025_2013.png が見つかりません)

When I export this as a PDF it looks like this:

attachment:Project_Report_JN_0925_1025_2013.pdf

The HTML export does it wrong too (it adds a link to a file with absolute path and the attached file is not downloaded!)

attachment:Project_Report_JN_0925_1025_2013.html


journals

My image link seems to be wrong above. So here again:
!Project_Report_JN_0925_1025_2013.png!
--------------------------------------------------------------------------------
Even if I don't use the thumbnail macro like this (works in the wiki-view):
<pre>
p=. !{width: 600px}Database_legend.png!
</pre>

It does not work:
attachment:Project_Report_JN_0925_1025_2013-3.pdf
--------------------------------------------------------------------------------
Even the standard export of Safari looks "better" (has the image):
attachment:Project_Report_JN_0925_1025_2013_safari_export.pdf
--------------------------------------------------------------------------------
I have fixed the description. You were using a reference to image "Database_legend.png" while you've uploaded "Project_Report_JN_0925_1025_2013.png". You can see that when using the correct filename it's possible to make use of the thumbnail macro here on redmine.org.
Are you able to edit your note-1 to remove the duplication of the image?

Also, this not only applies to wiki page pdf export but also to other pdf exports, esp. like issue pdf export. So I've changed the subject to be more generic.

I'll change the tracker too. This hasn't been part of any (public) design or whatsoever for the implemented pdf export features as far as I know.
--------------------------------------------------------------------------------
I couldn't edit my post, I knew that I did something wrong with the name of the file (that's why I posted it again). But using the thumbnail feature seems not to work in the tracker: during a 'save' it says that the macro is not available, but with !! and the {width=600px} css it worked. But this would be another bug, wouldn't it?
--------------------------------------------------------------------------------
Johannes Neubauer wrote:
> I couldn't edit my post, I knew that I did something wrong with the name of the file (that's why I posted it again). But using the thumbnail feature seems not to work in the tracker: during a 'save' it says that the macro is not available, but with !! and the {width=600px} css it worked. But this would be another bug, wouldn't it?

Is there any update on this i have the same issue.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Is there any solution to this?
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,23463,Inline images with custom CSS style are not displayed in exported PDF

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

いいね!0
いいね!0