Feature #69
Textilized description in PDF
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | PDF export | |||
Target version: | 1.3.0 | |||
Resolution: | Fixed |
Description
When exporting an issue then textile symbols (under description and history) appear in PDF files without formatting!
Related issues
Associated revisions
PDF: import Japanese rfpdf patch for textilized PDF (#69).
Contributed by Jun NAITOH.
PDF: import Korean rfpdf patch for textilized PDF (#69).
Contributed by Jun NAITOH.
PDF: import Chinese rfpdf patch for textilized PDF (#69).
Contributed by Jun NAITOH.
PDF: import rfpdf tcpdf patch for textilized PDF (#69).
Contributed by Jun NAITOH.
PDF: add 'ln' parameter for drawing lines at RDMMultiCell() (#69).
Contributed by Jun NAITOH.
PDF: use RDMMultiCell for drawing lines of issue description (#69).
Contributed by Jun NAITOH.
PDF: add new "RDMwriteHTMLCell" method for textilized PDF (#69).
Contributed by Jun NAITOH.
PDF: support textilized issue description on issue (#69).
Contributed by Jun NAITOH.
PDF: support textilized journal notes on issue (#69).
Contributed by Jun NAITOH.
PDF: support textilized changeset comments (revision log) on issue (#69).
History
#1
Updated by Gumer Coronel Pérez about 15 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)
#2
Updated by Gumer Coronel Pérez about 15 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?
#3
Updated by colin moock over 14 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?
#4
Updated by Fabian Buch almost 14 years ago
The same applies for numbers. If referred to in comments it's hard to find if it's only printed as "#".
#5
Updated by Frank Helk over 12 years ago
+1
Effect is still alive in 1.0.1. Seen "bold" format in description appearing in PDF as
*bold*
#6
Updated by Frank Helk over 12 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 ?
#7
Updated by Ez Dakit about 12 years ago
+1
#8
Updated by Ian DeFazio about 12 years ago
+1
#9
Updated by Toshi MARUYAMA almost 12 years ago
- Category set to PDF export
#10
Updated by Etienne Massip almost 12 years ago
- Target version set to Candidate for next major release
#11
Updated by Mister Vince over 11 years ago
Images are also not shown in PDF export. Could it be possible to add it to PDF ?
#12
Updated by Jun NAITOH over 11 years ago
- File wiki_test_sample.txt
added
- File wiki_test_sample.pdf added
- File pdf.rb_r6129.patch
added
- File tcpdf.rb_r6129.patch
added
- File japanese.rb_r6129.patch
added
- File chinese.rb_r6129.patch
added
- File 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
#13
Updated by Toshi MARUYAMA over 11 years ago
- Assignee set to Toshi MARUYAMA
#14
Updated by Toshi MARUYAMA over 11 years ago
- Tracker changed from Defect to Feature
#15
Updated by Toshi MARUYAMA over 11 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!!
#16
Updated by Jun NAITOH over 11 years ago
Thank you!
#17
Updated by Toshi MARUYAMA over 11 years ago
- File 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.
#18
Updated by Go MAEDA almost 4 years ago
- Duplicated by Feature #925: Better formatting in issue reports (respect wiki markup) added