Project

General

Profile

Actions

Feature #69

closed

Textilized description in PDF

Feature #69: Textilized description in PDF

Added by Balazs Dan over 19 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Toshi MARUYAMA
Category:
PDF export
Target version:
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 10 (1 open — 9 closed)

Related to Redmine - Feature #3261: support attachment images in PDF exportClosedToshi MARUYAMAActions
Related to Redmine - Defect #8737: Broken line of long issue description on issue PDF.ClosedToshi MARUYAMAActions
Related to Redmine - Feature #6280: Multi-issue PDF exportNewActions
Related to Redmine - Defect #61: Broken character encoding in pdf exportClosedToshi MARUYAMAActions
Related to Redmine - Defect #4787: Gannt to PNG - CJK (Chinese, Japanese and Korean) characters appear as ?ClosedToshi MARUYAMAActions
Has duplicate Redmine - Defect #1785: View PDF : New Issue when opened in PDF, the description is shown with html tagsClosedActions
Has duplicate Redmine - Feature #2731: PDF issues export and formated contentClosedActions
Has duplicate Redmine - Defect #3139: <pre> is not rendered in PDFClosedActions
Has duplicate Redmine - Feature #6922: Issues PDF export looses formating ClosedActions
Has duplicate Redmine - Feature #925: Better formatting in issue reports (respect wiki markup)ClosedActions

Updated by Gumer Coronel Pérez almost 19 years ago Actions #1

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?

Updated by Gumer Coronel Pérez almost 19 years ago Actions #2

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)

Updated by colin moock over 18 years ago Actions #3

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?

Updated by Fabian Buch over 17 years ago Actions #4

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

Updated by Frank Helk about 16 years ago Actions #5

+1

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

*bold*

Updated by Frank Helk about 16 years ago Actions #6

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 ?

Updated by Ez Dakit almost 16 years ago Actions #7

+1

Updated by Ian DeFazio almost 16 years ago Actions #8

+1

Updated by Toshi MARUYAMA over 15 years ago Actions #9

  • Category set to PDF export

Updated by Etienne Massip over 15 years ago Actions #10

  • Target version set to Candidate for next major release

Updated by Mister Vince over 15 years ago Actions #11

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

Updated by Jun NAITOH over 15 years ago Actions #12

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

Updated by Toshi MARUYAMA over 15 years ago Actions #13

  • Assignee set to Toshi MARUYAMA

Updated by Toshi MARUYAMA over 15 years ago Actions #14

  • Tracker changed from Defect to Feature

Updated by Toshi MARUYAMA over 15 years ago Actions #15

  • 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!!

Updated by Jun NAITOH over 15 years ago Actions #16

Thank you!

Updated by Toshi MARUYAMA over 15 years ago Actions #17

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.

Updated by Go MAEDA over 7 years ago Actions #18

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

Also available in: PDF Atom