in reply to HTML and SVG to PDF
I'm aware you say you "can't use any external application". However, you may actually be able to do so. (Disclaimer: you don't really give a reason why this won't work, so I'm going to assume it can.)
First off, a brief point about the mentality of unix, where perl derives much of its design from. That is, do one thing and do it well. There are programs out there that do pdf conversions, do that well, and that's all they do. There is significant advantage to using them: they work, they're efficient, and you don't need to debug them.
Next. No one says that you need to create an HTML file and tell the user to call html2ps. Or to create an XML file and tell the user to call fop. You can create the HTML or XML files, and call html2ps or fop yourself. Automatically. With no user intervention. Yes, you'll have an external dependancy. But the output of your program is still a simple PDF. You can concentrate, then, on aspects of your application that are directed towards content without worrying about how to embed SVG into PDF or anything silly like that. Let the converters deal with those details. Do your job, do it well, and leave parts that aren't relevant to your problem to others.
You'll save a lot of time that way. ;-) You may incorporate those other programs into your solution, but they aren't really part of the problem you're solving, which is to get information to the proper users. Concentrate on that. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML and SVG to PDF
by josera (Beadle) on Aug 02, 2005 at 14:48 UTC | |
by holli (Abbot) on Aug 02, 2005 at 15:10 UTC | |
by calin (Deacon) on Aug 03, 2005 at 06:48 UTC |