Home > Archive > PHP Pear > May 2005 > Re: [PEAR] XMLfo2pdf
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] XMLfo2pdf
|
|
| Dan Rossi 2005-05-03, 3:58 pm |
| I just checked the sample, it says u need java compiled into php isnt
this an experimental extension ? I dont think this will go down well
with a production server ?
On 03/05/2005, at 5:10 PM, Dan Rossi wrote:
> Hi there I am looking at using this package to do a possible xsl
> transformation to display a formatted html layout in a pdf to avoid
> having to draw the pdf. Its suppose to show a printable view of an
> entry so i send the data from the database in xml then transform it
> with the xsl. Anyway it has no documentation apart from APi docs, my
> question is, does the xsl have to be special fo formatted ?
> I'm not familiar with fo therefore is there examples of setting one up
> ?
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
| |
| Dan Rossi 2005-05-03, 3:58 pm |
| Hmm the last cvs update was 2 years ago, I found something similar,
saves the pain of manually drawing grids with fpdf, it uses fpdf but
has its own xsl style markup language :)
http://pdml.sourceforge.net
Anyone seen this before ?
| |
| Dan Rossi 2005-05-05, 3:57 pm |
| I have developed working from the examples a java app that streams the
binary data to standard output, the default one however requires u to
save the file then readfile, this removes that process and u just have
to passthru, It would seem highly logical to implement that into
XMLfo2pdf therefore I will give it a go. I also found a tool called
html2fo which will convert pure html to a FO file for reading. There is
also an xslt stylesheet on the web called xhtml2fo.xsl it requires a
bit of work, still yet to get that working with a pure html file. So
there are two possibilities here, one generating the fo then passing it
to the java app, another sending the contents of the html file as an
argument ?? together with that xsl file, it transforms and spits back
the pdf as standard output. However i still need to tweak some loggin
that goes on to System.out !
On 05/05/2005, at 10:57 AM, James Carr wrote:
> Well, you could just install the commandline version of apache XSL-FOP
> and use a pipe or some other method to execute it and generate the
> pdf. XSL-FO is a standard though, I am suprised someone hasn't written
> a pure php version (to memory expensive perhaps?).
>
> I wrote a small parser that converts an xml document into an object
> that you can set text to named fields, and generate a pdf, but it's
> pretty adhoc and designed pretty much for generating application
> forms.
>
>
> On 5/3/05, Dan Rossi <pear@electroteque.org> wrote:
>
|
|
|
|
|