Having read over the ruby pdf generation (simple reporting) options, I
think Pdf::Writer will do just fine…
…if the following is possible
On page 13 of (the really expansive) ::Writer manual, Replacement Tags
Before I jump into this tomorrow, I’m hoping for some triage sage
Finally, the question : “Would utilizing Replacement Tags be a suitable
solution for injecting ActiveRecord contents (datafields, etc) ?”
From the aforementioned page "
Replacement tags will replace the tag with a value computed by the
callback. It may perform additional processing, but no location
information is provided to the callback. The return from this callback
must be the string that will replace the tag. A replacement tag looks
like this in text:
<r:xref name=“FontFamilies” label=“title” />
If so, then the PWD format would be a reasonable solution for generating
database driven reports; Injecting row level data on each callback -
this implies that I can retain a static reference to a row.
There are no code samples (that I could see) to help out, but on the
demo page there is a ominous note:
“code.rb: An example of a custom text formatting tag. Note that this tag
doesnâ??t quite work as it should because of an as-yet unidentified bug in
PDF::Writerâ??s tag handling code.”
Will I encounter this bug?
Any takers? Thank you for any suggestions or lookouts.
Austin, if you’re out there I’d appreciate your thoughts.