Project

General

Profile

Actions

Feature #69

closed

Textilized description in PDF

Added by Balazs Dan over 16 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Toshi MARUYAMA
Category:
PDF export
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed

Description

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


Files

textileissue.pdf (1.97 KB) textileissue.pdf Balazs Dan, 2008-02-03 10:50
wiki_test_sample.txt (2.83 KB) wiki_test_sample.txt wiki test sample Jun NAITOH, 2011-06-29 16:43
wiki_test_sample.pdf (402 KB) wiki_test_sample.pdf wiki test sample result Jun NAITOH, 2011-06-29 16:43
pdf.rb_r6129.patch (2.34 KB) pdf.rb_r6129.patch Jun NAITOH, 2011-06-29 16:43
tcpdf.rb_r6129.patch (25 KB) tcpdf.rb_r6129.patch Jun NAITOH, 2011-06-29 16:43
japanese.rb_r6129.patch (2.35 KB) japanese.rb_r6129.patch Jun NAITOH, 2011-06-29 16:43
chinese.rb_r6129.patch (2.33 KB) chinese.rb_r6129.patch Jun NAITOH, 2011-06-29 16:43
korean.rb_r6129.patch (2.43 KB) korean.rb_r6129.patch Jun NAITOH, 2011-06-29 16:43
jruby-win-en.pdf (439 KB) jruby-win-en.pdf Toshi MARUYAMA, 2011-08-18 13:43

Related issues

Related to Redmine - Feature #3261: support attachment images in PDF exportClosedToshi MARUYAMA2009-04-29

Actions
Related to Redmine - Defect #8737: Broken line of long issue description on issue PDF.ClosedToshi MARUYAMA2011-07-02

Actions
Related to Redmine - Feature #6280: Multi-issue PDF exportNew2010-09-03

Actions
Related to Redmine - Defect #61: Broken character encoding in pdf exportClosedToshi MARUYAMA

Actions
Related to Redmine - Defect #4787: Gannt to PNG - CJK (Chinese, Japanese and Korean) characters appear as ?ClosedToshi MARUYAMA2010-02-10

Actions
Has duplicate Redmine - Defect #1785: View PDF : New Issue when opened in PDF, the description is shown with html tagsClosed2008-08-13

Actions
Has duplicate Redmine - Feature #2731: PDF issues export and formated contentClosed2009-02-12

Actions
Has duplicate Redmine - Defect #3139: <pre> is not rendered in PDFClosed2009-04-08

Actions
Has duplicate Redmine - Feature #6922: Issues PDF export looses formating Closed2010-11-17

Actions
Has duplicate Redmine - Feature #925: Better formatting in issue reports (respect wiki markup)Closed2008-03-25

Actions
Actions #1

Updated by Gumer Coronel Pérez about 16 years ago

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?

Actions #2

Updated by Gumer Coronel Pérez about 16 years ago

Here you are the patch (broken)

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)
Actions #3

Updated by colin moock over 15 years ago

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?

Actions #4

Updated by Fabian Buch almost 15 years ago

The same applies for numbers. If referred to in comments it's hard to find if it's only printed as "#".

Actions #5

Updated by Frank Helk over 13 years ago

+1

Effect is still alive in 1.0.1. Seen "bold" format in description appearing in PDF as

*bold*

Actions #6

Updated by Frank Helk over 13 years ago

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 ?

Actions #7

Updated by Ez Dakit about 13 years ago

+1

Actions #8

Updated by Ian DeFazio about 13 years ago

+1

Actions #9

Updated by Toshi MARUYAMA almost 13 years ago

  • Category set to PDF export
Actions #10

Updated by Etienne Massip almost 13 years ago

  • Target version set to Candidate for next major release
Actions #11

Updated by Mister Vince almost 13 years ago

Images are also not shown in PDF export. Could it be possible to add it to PDF ?

Actions #12

Updated by Jun NAITOH over 12 years ago

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.

not implement html (wiki)tag

  • image tag
  • align tag
  • toc
Actions #13

Updated by Toshi MARUYAMA over 12 years ago

  • Assignee set to Toshi MARUYAMA
Actions #14

Updated by Toshi MARUYAMA over 12 years ago

  • Tracker changed from Defect to Feature
Actions #15

Updated by Toshi MARUYAMA over 12 years ago

  • Target version changed from Candidate for next major release to 1.3.0
  • % Done changed from 0 to 70

I have finished code review. Great job!!

Actions #16

Updated by Jun NAITOH over 12 years ago

Thank you!

Actions #17

Updated by Toshi MARUYAMA over 12 years ago

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.

Actions #18

Updated by Go MAEDA about 5 years ago

  • Has duplicate Feature #925: Better formatting in issue reports (respect wiki markup) added
Actions

Also available in: Atom PDF