开发者

how can i make a HTML submit button which hand you/generate a PDF?

开发者 https://www.devze.com 2022-12-21 23:02 出处:网络
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

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

精彩评论

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

关注公众号