how can i make a HTML submit button which hand you/generate a PDF?
Example provided would be helpful. 开发者_如何学编程
use iText. its a great library. you have to hack a lot together if your pdf grows, but overall very handy
http://itextpdf.com/
basic document creation:
Document document = new Document();
try {
PdfWriter.getInstance(document,
new FileOutputStream("HelloWorld.pdf"));
document.open();
document.add(
new Paragraph("Hello World"));
} catch (Exception e) {
// handle exception
}
}
document.close();
While this will probably get migrated, your best bet would be implementing something like Zend_Pdf.
精彩评论