前の記事 ≪:PHPカンファレンスでのYahoo!JAPANスライドショー「PHP at Yahoo! JAPAN」
次の記事 ≫:WordPress関連まとめリスト

ZendFramworkライブラリ「Zend_Pdf」チュートリアル

2007年09月09日-はてなブックマーク

スポンサード リンク
[PR] 英単語を忘却曲線アプリを使って超効率よく記憶する方法
Zend_Pdf tutorial
The Zend_Pdf component of the Zend Framework is intended to allow you to create or manipulate PDF documents from within your applications.

ZendFramworkライブラリ「Zend_Pdf」チュートリアル。
Zend_PdfによってPDFを作成するコード等が紹介されています。

// Create new PDF
$pdf = new Zend_Pdf();

// Add new page to the document
$page = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
$pdf->pages[] = $page;

// Set font
$page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 20);

// Draw text
$page->drawText('Hello world!', 100, 510);

ZendFramework利用の際は使えるので覚えておきましょう。

スポンサード リンク

By.KJ : 2007年09月09日 12:05 livedoor Readerで購読 Twitterに投稿

間違いの指摘をしていただける方はメール、あるいはTwitter/FBでお願いします(クリック)