Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: PDF::Template redesign - I want your ideas!

by eric256 (Parson)
on Dec 01, 2005 at 20:46 UTC ( #513432=note: print w/replies, xml ) Need Help??


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

If you stick with XML as the base template language, then couldn't you realy build a TT plugin that helps output that XML in an easier way? Then if you want real power you can go to the XML, but if you want ease you can use TT.

$more_options > $less_options unless time_to_develop($more_options) > life_of(%universe)

___________
Eric Hodges $_='y==QAe=e?y==QG@>@?iy==QVq?f?=a@iG?=QQ=Q?9'; s/(.)/ord($1)-50/eigs;tr/6123457/- \/|\\\_\n/;print;

Replies are listed 'Best First'.
Re^3: PDF::Template redesign - I want your ideas!
by eric256 (Parson) on Dec 01, 2005 at 20:48 UTC

    One last thought from me. What about using some subset of DIVs from HTML so that HTML Editors could be used to generate PDF templates? I'm not sure I like that idea much, but using an existing layout scheme has advantages in the forms of existing editors, and disadvantages (like the fact that HTML sucks and we all know it ;) )


    ___________
    Eric Hodges $_='y==QAe=e?y==QG@>@?iy==QVq?f?=a@iG?=QQ=Q?9'; s/(.)/ord($1)-50/eigs;tr/6123457/- \/|\\\_\n/;print;
      What about using some subset of DIVs from HTML so that HTML Editors could be used to generate PDF templates?

      Do you mean WYSIWYG HTML editors?

      The problem I see with this is that HTML DIVs are useless without CSS, which is where things get really messy. It is also worth mentioning that PDFs are very "page" centric, and those pages are of a constrained size, which doesn't match well with HTML and it's "take up as much space as needed" layout approach. Having written plenty of PDF "pagination" code, I know this can be trickier than it seems, and is not always easy to generalize.

      -stvn
Re^3: PDF::Template redesign - I want your ideas!
by stvn (Monsignor) on Dec 01, 2005 at 21:08 UTC

    I considered this, however, I am not sure you gain anything more than the complexity you are introducing. It is basically using TT as a macro language for XML (which it already is). But how useful this might be to the user, I am not sure. However, in the depths of the "compiler" I could see using TT to do things like "unrolling loops" or something like that.

    -stvn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://513432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-10-23 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (87 votes). Check out past polls.

    Notices?