Export Issue to PDF

Added by Robson Junior 28 days ago

Hello,
I trying to exports those Issues/Tasks documents to PDF from link on end page (Export Atom | PDF), and I receive the log report the RBPDF error. Most probably the users are insert the HTML table in document.
Thanks.

# ruby bin/about

Environment:
  Redmine version                4.2.3.stable
  Ruby version                   2.5.9-p229 (2021-04-05) [x86_64-linux]
  Rails version                  5.2.6
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.10.2
  Git                            2.27.0
  Filesystem                     
Redmine plugins:
  no plugin installed

log/production.log

[...]
Completed 500 Internal Server Error in 1489ms (ActiveRecord: 48.6ms)

ActionView::Template::Error (RBPDF error: writeHTMLCell Error.):
    1: <%= raw issue_to_pdf(@issue, :journals => @journals) %>

lib/redmine/export/pdf.rb:95:in `RDMwriteFormattedCell'
lib/redmine/export/pdf/issues_pdf_helper.rb:238:in `block in issue_to_pdf'
lib/redmine/export/pdf/issues_pdf_helper.rb:217:in `each'
lib/redmine/export/pdf/issues_pdf_helper.rb:217:in `issue_to_pdf'
app/views/issues/show.pdf.erb:1:in `_app_views_issues_show_pdf_erb__2546968644900324285_70234097649180'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Replies (1)

RE: Export Issue to PDF - Added by John Klein 14 days ago

Robson Junior wrote:

Hello,
I trying to exports those Issues/Tasks documents to PDF from link on end page (Export Atom | PDF), and I receive the log report the RBPDF error. Most probably the users are insert the HTML table in document.
Thanks.

[...]

log/production.log

[...]

Great post, thanks.

(1-1/1)