开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜