略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDF_get_buffer

2024-05-05

PDF_get_buffer

(PHP 4 >= 4.0.5, PECL pdflib >= 1.0.0)

PDF_get_bufferGet PDF output buffer

说明

PDF_get_buffer ( resource $p ) : string

Fetches the buffer containing the generated PDF data.

add a note add a note

User Contributed Notes 2 notes

up
1
jorgepedret at gmail dot com
11 years ago
This function can only be used when you are writing a file to memory and not to a physical file. Otherwise you will get an error like this one: Don't fetch buffer contents when writing to file.
up
1
cookiekid at gmail dot com
13 years ago
If you plan to use get_buffer() you have to call open_file() with an
empty filename.

官方地址:https://www.php.net/manual/en/function.pdf-get-buffer.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3