Good afternoon,

On 6/03/10 at 4:51 PM +0800, Lupin Deterd <[email protected]> wrote:

I'm using View::PDF::Reuse to create/generate pdf, and though it
successfully create one but it's empty, following is code/template.
-- template/receipt.tt2 --

[% pdf.prFont('Helvetica-Bold') %]
[% pdf.prFontSize(50) %]


[% y = 500 %]
[% FOREACH item IN list %]
[% pdf.prText(100,y,item) %]
[% y = y - 13 %]
[% END %]

Try printing something other than `item`, eg. just a simple scalar "test value", to ensure you're not simply printing blank values.

Also, try ending with pdf.prPage(). I was having problems with blank PDFs and that may have fixed it; I can't recall exactly, I tried heaps of methods before getting it all working right with multi-page PDFs.


Charlie

--
   Ꮚ Charlie Garrison ♊ <[email protected]>
   〠 PO Box 141, Windsor, NSW 2756, Australia

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to