http://qs321.pair.com?node_id=513413


in reply to PDF::Template redesign - I want your ideas!

No strictily related to the actualy code redesign: I just installed PDF::Template last night, and I have NO clue how to even start because there don't seem to be any examples at all. So for me, Examples of whatever you do choose as the layout. I like the XML layout, but it should be XML, not psuedo XML. psuedo XML does no one any good (i just mention this because the docs for PDF::Template say it isn't realy XML (not sure how true that is anymore).

I wonder if HTML could be used as the layout, is there some free HTML->Layout Tree converter that could be used? Just rambling in case it makes sense. Being able to design once in HTML and be done would be very pretty ;)

Err looking at the source shows an example now....Did you just add that?


___________
Eric Hodges $_='y==QAe=e?y==QG@>@?iy==QVq?f?=a@iG?=QQ=Q?9'; s/(.)/ord($1)-50/eigs;tr/6123457/- \/|\\\_\n/;print;
  • Comment on Re: PDF::Template redesign - I want your ideas!

Replies are listed 'Best First'.
Re^2: PDF::Template redesign - I want your ideas!
by dragonchild (Archbishop) on Dec 01, 2005 at 20:28 UTC
    Lack of documentation is definitely a problem with PDF::Template. The tests that are there show some ideas, but I have to go back to the source to remember how to do stuff.

    As for the layout, it's real XML - I use XML::Parser to parse it. The "pseudo" part of it comes from the fact that a childnode has access to the attributes of all its ancestor nodes. This scoping was so that you could specify something in the pdftemplate node (the root), such as H, and have all the children use that as their H. (This feature is actually one part of the performance problem I was speaking of.)


    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?