Home > PHP > Function > PDF > PDF_attach_file()

PDF_attach_file()

PDF_attach_file - Add file attachment for current page [deprecated]

Syntax

bool PDF_attach_file (resource $pdfdoc, float $llx, float $lly, float $urx, float $ury, string $filename, string $description, string $author, string $mimetype, string $icon)

Arguments

  • pdfdoc - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • llx - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • lly - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • urx - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • ury - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • filename - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • description - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • author - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • mimetype - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • icon - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().

Description

Adds a file attachment annotation. Returns TRUE on success or FALSE on failure.

Version

PHP 4.0.5, PECL pdflib >= 1.0.0

Return value