Download the PHP package einfacharchiv/unpack-pdf-attachments without Composer
On this page you can find all versions of the php package einfacharchiv/unpack-pdf-attachments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download einfacharchiv/unpack-pdf-attachments
More information about einfacharchiv/unpack-pdf-attachments
Files in einfacharchiv/unpack-pdf-attachments
Package unpack-pdf-attachments
Short Description Save PDF attachments to your disk where you can use them
License MIT
Homepage https://github.com/einfachArchiv/unpack-pdf-attachments
Informations about the package unpack-pdf-attachments
Save PDF attachments to your disk
Authors sometimes supplement their documents with additional electronic resources. For example, a document that displays large tables of data might also provide the reader with a matching Excel spreadsheet to work with. PDF's file attachment feature is an open-ended mechanism for packing any electronic file into a PDF like this. These attachments can be associated with the overall document or with individual pages. You can unpack PDF attachments to your disk using Acrobat, Reader, or this unpack-pdf-attachments package. After unpacking an attachment, you can view and manipulate it independently from the PDF document.
einfachArchiv is a German SaaS product to organize your documents in one place and meet all legal requirements. You'll find us on our website.
Requirements
Behind the scenes this package leverages PDFtk. You can verify if the binary is installed on your system by running this command:
If it is installed, it will return the path to the binary.
To install the binary you can use this command on Ubuntu or Debian:
Installation
You can install this package via Composer. Run the following command:
Usage
Unpacking attachments from a PDF is easy.
By default, this package unpacks all PDF attachments into the same directory.
Or easier:
Sometimes you may want to use pdftk options. To do so you can set them up using the setOptions
method.
Or as the second parameter to the unpackAttachments
static method:
If the pdftk
command is located elsewhere, pass its binary path to the constructor:
Or as the third parameter to the unpackAttachments
static method:
Contributing
Contributions are welcome.
We accept contributions via Pull Requests on Github.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improvement? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
If you've found a security issue, please email [email protected] instead of using the issue tracker.
Happy coding!
Credits
License
The MIT License (MIT). Please see License File for more information.