プロジェクト

全般

プロフィール

Vote #62067

完了

Textilized description in PDF

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

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

100%

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

説明

When exporting an issue then textile symbols (under description and history) appear in PDF files without formatting!


journals

Here you are the patch (broken)

<pre>
Index: app/helpers/ifpdf_helper.rb
=================================================================
==
--- app/helpers/ifpdf_helper.rb (revisión: 1034)
+++ app/helpers/ifpdf_helper.rb (copia de trabajo)
@@ -22,6 +22,7 @@

class IFPDF < FPDF
include GLoc
+ include RFPDF
attr_accessor :footer_date

def initialize(lang)

Cambios de propiedades en app/views/issues
_________________________________________________________________
__
Nombre: svn:ignore
+ .index.rfpdf.swp

Index: app/views/issues/_pdf.rfpdf
=================================================================
==
--- app/views/issues/_pdf.rfpdf (revisión: 1034)
+++ app/views/issues/_pdf.rfpdf (copia de trabajo)
@@ -61,7 +61,9 @@
pdf.Cell(35,5, l(:field_description) + ":")
pdf.SetFontStyle('',9)
pdf.MultiCell(155,5, issue.description,"BR")
-
+
+ pdf.write_html(Redmine::WikiFormatting.to_html(issue.descrip
tion))
+
pdf.Line(pdf.GetX, y0, pdf.GetX, pdf.GetY)
pdf.Line(pdf.GetX, pdf.GetY, 170, pdf.GetY)
</pre>

--------------------------------------------------------------------------------
I've try fix this bug using RFPDF#write_html method
in views/issues/_pdf.rpdf to format issue.description.

RFPDF#write_html method appear to be broken (html styles doesn't
work, almost for me)

For use write_html method we have to include RFPDF
in ifpdf_helper.rb

Any idea?
--------------------------------------------------------------------------------
i noticed this defect too. exporting an issue to PDF produces unformatted text, with original formatting characters such as ".h1" shown verbatim. any update on this bug?
--------------------------------------------------------------------------------
The same applies for numbers. If referred to in comments it's hard to find if it's only printed as "#".
--------------------------------------------------------------------------------
+1

Effect is still alive in 1.0.1. Seen *"bold"* format in description appearing in PDF as <pre>
*bold*
</pre>
--------------------------------------------------------------------------------
Sorry for posting again: Just tried to get THIS ticket as PDF. Got the same behaviour, so the problem is still alive in 1.0.2.

Seems to need some attention ?
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
Images are also not shown in PDF export. Could it be possible to add it to PDF ?
--------------------------------------------------------------------------------
I implemented wiki formatting for Description and Notes.
and I expanded Description field.

Mister Vince wrote:
> Images are also not shown in PDF export. Could it be possible to add it to PDF ?

Sorry, I didn't implement show of images in this patch.
but I think to possible.

h2. not implement html (wiki)tag

* image tag
* align tag
* toc
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
I have finished code review. Great job!!
--------------------------------------------------------------------------------
Thank you!
--------------------------------------------------------------------------------
I finished tests on following environments.
* Linux(Fedora13) CRuby and JRuby,
* Japanese Windows Mingw Ruby and JRuby 1.6.2.

I attach the PDF which has a revision comment on Windows + JRuby.
--------------------------------------------------------------------------------

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


related_issues

relates,Closed,3261,support attachment images in PDF export
relates,Closed,8737,Broken line of long issue description on issue PDF.
relates,New,6280,Multi-issue PDF export
relates,Closed,61,Broken character encoding in pdf export
relates,Closed,4787,Gannt to PNG - CJK (Chinese, Japanese and Korean) characters appear as ?
duplicates,Closed,1785,View PDF : New Issue when opened in PDF, the description is shown with html tags
duplicates,Closed,2731,PDF issues export and formated content
duplicates,Closed,3139,<pre> is not rendered in PDF
duplicates,Closed,6922,Issues PDF export looses formating
duplicates,Closed,925,Better formatting in issue reports (respect wiki markup)

Admin Redmine さんがほぼ2年前に更新

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

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

いいね!0
いいね!0