[reportlab-users] Saving annotations with Platypus
Chris Foster
cfoster at oda.state.or.us
Tue Feb 10 18:58:15 EST 2009
Thank you.
Your test code works fine and I re-implemented my DocTemplate subclass
to closely match the test code and it is now working. I can see the
results with the Mac Preview application BTW. However, I'm still
missing something subtle. I had to explicitly save the canvas. It
looks like this should have happened by default in _endBuild()?
On Feb 10, 2009, at 2:32 AM, Robin Becker wrote:
> Chris Foster wrote:
>> I'm passing a "subject" to a DocTemplate, but it doesn't seem to
>> stick. Is there something I need to do to explicitly save it to
>> the canvas?
>> _______________________________________________
> ......
> well I've just tried this in test_platypus_general.py. I added
> subject='test0' so that line 555 in func run lookes like
>
> doc =
> AndyTemplate(outputfile('test_platypus_general.pdf'),subject='test0')
>
> when I run the test the document test_platypus_general.pdf does
> have a subject of test0 (as viewed in the document properties).
> However, this is not a standard annotation, but a PDFInfo object
> which is a special dictionary that's part of the PDF trailer.
> --
> Robin Becker
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
More information about the reportlab-users
mailing list