-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdftk does not like multiple character handles #1
Comments
Thank you for pointing that out, I'll try to fix this issue asap, however i'm quite busy right now so feel free to contribute! |
The newer version of pdftk, 2+, allows multiple letter handles. Since most versions of pdftk installed with package managers will have older versions, perhaps the factory constructor should have an optional second parameter, version? Then the specifically affected methods can provide functionality for different versions. // Create a new factory instance, give it your path to pdftk binary
// You can optionally add the pdftk version of your binary if you are not using the most recent version
$factory = new \Shuble\Slurpy\Factory('/path/to/pdftk', '1.44'); |
keep compatibility with previous version of pdftk
Thank you for this. You should add the option to the documentation as well. By the way, excellent wrapper! |
Using pdftk 1.44, it seems to balk with two letter handles. A sample dump data fields command that fails.
The documentation for pdftk indicates they should only be one letter:
"Input files can be associated with handles, where a handle is a single, upper-case letter"
The text was updated successfully, but these errors were encountered: