On 11/03/2010 03:53 PM, Frank Rogoyski wrote:
> Thanks. I downloaded the personal version of the converter. After looking at 
> your user guide java examples, I still can't figure out how I would set the 
> properties and pass an xsl-fo file to the converter from a PHP program.
>
> The java examples appear to be importing files (classes?) that weren't
downloaded.

XMLmind XSL-FO Converter engine is basically a set of Java or .NET
classes. How to invoke our engine using languages other than Java, C# or
VB.NET is not supported by XMLmind.



> 
> In our (PHP) web application, the user creates a quote for a customer then 
> exports it to PDF or Word, for presentation to the customer. 

We do this too.



> We currently have PHP programs to do both. The make_pdf program creates an 
> xsl-fo file and passes it to FOP. The make_word program is impenetrable, 
> because someone has dissected an encoded .doc file, included it in the PHP 
> module, and dynamically substitutes real data for %placeholders%, then 
> outputs the modified .doc file. That works fine, unless you have to change 
> something that is not in a place holder!
> 

XMLmind XSL-FO Converter is no different from FOP. If you managed to
integrate FOP in your PHP application, then you should be able to do it
for our product.

Alternatively, see below, we have a simpler, more elegant, more
reliable, solution (method [3]).



> Your converter looks like a good solution, but I would have to be able to 
> invoke it from a PHP module.
> 

In order to have PHP invoke some Java code, I see 3 solutions:

[1] Run a command-line executable. In our case, it's fo2rtf. More info.:
http://www.xmlmind.com/foconverter/_distrib/doc/user/command_line_java.html

[2] Embed a Java Virtual Machine in PHP. I have no experience with that
but I imagine this has been done before. May be your make_pdf works like
this.

[3] Send a HTTP GET or POST request from PHP (e.g. from Apache httpd +
mod_php) to an *ancillary* *server*. In our case, it's XMLmind XSL
Server. More info: http://www.xmlmind.com/foconverter/xsl_server.html

We use approach [3] on our own online store. Please take a few minutes
to give it a try. Please visit:

http://www.xmlmind.com/store/order.php

and fill the order form until you reach the buttons allowing to generate
a quote in PDF, RTF, WordprocessingML, .docx and .odt. See attached
screenshot.

<<attachment: order_form.png>>

 
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to