Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: pdf_open - Manual
[go: Go Back, main page]

PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<pdf_open_tiffpdf_place_image" width="11" height="7"/>
view the version of this page
Last updated: Tue, 21 Dec 2004

pdf_open

(PHP 3>= 3.0.6, PHP 4 , PHP 5)

pdf_open -- 古い関数: 新規の pdfオブジェクトをオープンする

説明

int pdf_open ( int file)

pdf_open()関数は、古い関数であるため、 pdf_new()pdf_open_file()を代わりに使用して下さい。

pdf_new(), pdf_open_file()も参照下さい。



add a note add a note User Contributed Notes
pdf_open
andre at tomdeedom dot com
03-Oct-2001 06:57
Wel pdf_open() could give a problem use pdf_new() and pdf_open_file() in combination with echo ""; do not forget to echo 'cause the pdf 'll stay empty in that case :)

axample:
<?php
$pdf
= pdf_new();

pdf_open_file($pdf);
pdf_begin_page($pdf, 595, 842);
pdf_set_font($pdf, "Times-Roman", 30, "host");
pdf_set_value($pdf, "textrendering", 1);
pdf_show_xy($pdf, "A PDF document created in memory!", 50, 750);
pdf_end_page($pdf);
pdf_close($pdf);

$data = pdf_get_buffer($pdf);

header("Content-type: application/pdf");
header("Content-disposition: inline; filename=test.pdf");
header("Content-length: " . strlen($data));

echo
$data;
?>

<pdf_open_tiffpdf_place_image" width="11" height="7"/>
 Last updated: Tue, 21 Dec 2004
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This mirror generously provided by: HappySize, Inc.
Last updated: Sat Jan 15 06:11:01 2005 JST