PHP 手册
上一页 |  | 下一页

# cpdf_save_to_file

(PHP 3 >= 3.0.8, PHP 4, PHP 5 <= 5.0.4)

cpdf_save_to_file -- Writes the pdf document into a file

## 说明

bool cpdf_save_to_file ( int pdf_document, string filename )

Outputs the PDF document into a file if it has been created in memory.

This function is not needed if the PDF document has been open by specifying a filename as a parameter of cpdf_open().

## 参数

`pdf_document`

  The document handle, returned by cpdf_open().

`filename`

  The path to the saved PDF document

## 返回值

如果成功则返回 `TRUE`，失败则返回 `FALSE`。

## 参见

cpdf_output_buffer()
cpdf_open()

上一页 | 起始页 | 下一页
cpdf_rotate | 上一级 | cpdf_save