Download the PHP package jasta-fly/phpdfer without Composer
On this page you can find all versions of the php package jasta-fly/phpdfer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jasta-fly/phpdfer
More information about jasta-fly/phpdfer
Files in jasta-fly/phpdfer
Package phpdfer
Short Description Library for work with PDF files
License MIT
Informations about the package phpdfer
Phpdfer
Phpdfer - this library on PHP, for modify metadata in PFD files.
For start work with this library You must create instance of class PHPdfer
, and use method changeMetadata()
for
modify metadata in PDF files. This method accepts three arguments:
$pdf
- path to PDF file in which You need change metadata;$arMetadata
- array with metadata in which need include in PDF file;$logMode
- enables the mode in which the output of the CLI command is saved to a log file.
$arMetadata
can contained next elements:
TITLE
- title PDF file;AUTHOR
- author of the PDF file;SUBJECT
- short description content PDF file;KEYWORDS
- keywords describing content PDF file;MOD_DATE
- date modification PDF file;CREATION_DATE
- date creation PDF file;CREATOR
- creator PDF file.
After end work library will create new PDF file with prefix phpdfer_
, when into it will change metadata specified in
$arMetadata
.
Installation
Warning!
For work this library need install Ghostscript
in You operating system. You can check is this program installed,
running this command in CLI:
if in response You get version installed Ghostscrip
version:
this means that the program necessary for the library to work is installed, and You may continue use it. If you get next output:
this means that You must install Ghostscrip
in Your operating system, before continue work.