Forum How do I...?

Call Prince from PHP - Example of working app

petrarco123
Hi,

I try since days to perform what should be a quite simple task: triggering the generation of the pdf when clicking on a button on the frontend but I'm totally stuck.

I learn mostly by looking at open source projects, and checking how it's done, but for Prince, there is absolutely no such thing.

I would be glad to make it with a perl script, but the samples displayed on 'Prince Samples' are not helpful at all, since the Perl script that trigger the generation is not displayed anywhere, not even in the repo whereas it is the most important part.

I'm talking about this script:

<form name="order" method="post" action="/cgi-bin/fruitstand.pl">


So, here is my question: Does anyone has an example of a page, even a <h1>Hello World</h1> with a button where the button would trigger the pdf generation?

Many thanks in advance for your help!