setPdfInformation

setPdfInformation

ADVANCED / PREMIUM TRIAL

Sets information into a PDF document.

Description
public setPdfInformation (string $source, string $target, [array $options])

Sets PDF information.

Parameters

source

Path to the PDF document.

target

Path to the output PDF.

options

The possible keys and values are:

key Type Description
annotations bool Import annotations (links, comments and others). Default as false.
author string Author.
creator string Creator.
keywords string Keywords.
subject string Subject.
title string Title.
Exceptions

File doesn't exist.

Code samples

Example #1

Release notes
  • phpdocx 17.5:
    • new method.