Feature #69
closedTextilized description in PDF
Added by Balazs Dan over 17 years ago. Updated over 13 years ago.
100%
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
Updated by Gumer Coronel Pérez almost 17 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?
Updated by Gumer Coronel Pérez almost 17 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)
Updated by colin moock over 16 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?
Updated by Fabian Buch over 15 years ago
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 14 years ago
+1
Effect is still alive in 1.0.1. Seen "bold" format in description appearing in PDF as
*bold*
Updated by Frank Helk about 14 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 ?
Updated by Etienne Massip over 13 years ago
- Target version set to Candidate for next major release
Updated by Mister Vince over 13 years ago
Images are also not shown in PDF export. Could it be possible to add it to PDF ?
Updated by Jun NAITOH over 13 years ago
- File wiki_test_sample.txt wiki_test_sample.txt added
- File wiki_test_sample.pdf wiki_test_sample.pdf added
- File pdf.rb_r6129.patch pdf.rb_r6129.patch added
- File tcpdf.rb_r6129.patch tcpdf.rb_r6129.patch added
- File japanese.rb_r6129.patch japanese.rb_r6129.patch added
- File chinese.rb_r6129.patch chinese.rb_r6129.patch added
- File korean.rb_r6129.patch korean.rb_r6129.patch added
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 13 years ago
- Tracker changed from Defect to Feature
Updated by Toshi MARUYAMA over 13 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!!
Updated by Toshi MARUYAMA over 13 years ago
- File jruby-win-en.pdf jruby-win-en.pdf added
- Status changed from New to Closed
- % Done changed from 70 to 100
- Resolution set to Fixed
- 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 almost 6 years ago
- Has duplicate Feature #925: Better formatting in issue reports (respect wiki markup) added