PDF generation isn't working
Reported by Marnen Laibow-Koser | March 9th, 2009 @ 10:43 PM
Attendance reports no longer generate usable PDF files, at least to Safari. Perhaps a Prawn upgrade will fix this.
Comments and changes to this ticket
-
Marnen Laibow-Koser March 12th, 2009 @ 01:43 PM
This appears to be caused by the split of Prawn into prawn and prawn-layout; the latter contained the table routines. However, the version of the Prawnto plugin we were using didn't know about Prawn layout, so I upgraded Prawnto.
That created another problem: current Prawnto has some Rails-2.2-specific stuff. I followed the patch in http://prawn.lighthouseapp.com/p... ; that should be removed when we go to Rails 2.2, but it will not do any harm.
-
Marnen Laibow-Koser March 12th, 2009 @ 01:50 PM
That solved the problem on the local dev machine, but not on the production server. There's gotta be more going on, possibly to do with the Search model.
-
Marnen Laibow-Koser March 15th, 2009 @ 12:16 AM
(from [26ed61c329d60e886aa17c0c636d1f71da16fed3]) Upgrade prawnto plugin and require both prawn and prawn-layout gems. [#16] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser March 15th, 2009 @ 12:16 AM
(from [331855de6ae254bcd7e0153f70d82672abe792a9]) Remove Prawnto from submodule status. [#16] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser March 15th, 2009 @ 12:16 AM
(from [0c7a607e7551664a9f9485592f921058455be9e6]) Add Prawnto so we can patch it to work with Rails 2.1 (see http://prawn.lighthouseapp.com/p... ) [#16] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser March 15th, 2009 @ 12:16 AM
(from [56b24822c5ec2cd4098be3097798a6aba1e6eda5]) Use a less intractable sorting algorithm. Oddly enough, this seems to be partly related to the PDF bug. [#16] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser March 15th, 2009 @ 01:02 AM
(from [dc838f12be4750c45e52fa86e74032405566c4a0]) Update PDF code for Prawn 0.4.0. [#16] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser March 15th, 2009 @ 01:03 AM
- State changed from open to resolved
Turns out there were a couple of interacting bugs.
-
There was a Permission record that somehow referred to a null User, which gave the PDF generation code conniption fits. I don't know how that could have happened, but I deleted it from the DB. (The sort routine changed in commit 56b24822c5ec2cd4098be3097798a6aba1e6eda5 was a red herring.)
-
Prawn 0.4.0 changed the API on Font#size and Font#height_of.
Fixed in beta 2.9.2. The PDF file is still pretty ugly, but at least it works.
-
Marnen Laibow-Koser May 29th, 2009 @ 02:19 AM
See #25 regarding removal of Prawn patch now that we're off Rails 2.1.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<p>This is the issue tracker for the Quorum calendar system. Also see our <a href="http://github.com/marnen/quorum2">Github repository</a> and our <a href="http://quorum2.sourceforge.net">project website</a>.</p>
<p>Please tag bug reports with <strong>bug</strong> and feature requests with <strong>feature</strong>. Use additional descriptive tags as necessary.</p>
People watching this ticket
Referenced by
- 16 PDF generation isn't working (from [26ed61c329d60e886aa17c0c636d1f71da16fed3]) Upgrade...
- 16 PDF generation isn't working (from [331855de6ae254bcd7e0153f70d82672abe792a9]) Remove ...
- 16 PDF generation isn't working (from [0c7a607e7551664a9f9485592f921058455be9e6]) Add Pra...
- 16 PDF generation isn't working (from [56b24822c5ec2cd4098be3097798a6aba1e6eda5]) Use a l...
- 16 PDF generation isn't working (from [dc838f12be4750c45e52fa86e74032405566c4a0]) Update ...
- 25 Remove Prawn patch for Rails 2.1 In the course of fixing #16, I applied the patch at http...