Skip to content
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

php-pdftoppm creates subfolders #5

Open
trondhuso opened this issue Nov 4, 2020 · 1 comment
Open

php-pdftoppm creates subfolders #5

trondhuso opened this issue Nov 4, 2020 · 1 comment

Comments

@trondhuso
Copy link

For some odd reason I am experiencing that php-pdftopng creates subfolders which look very temporary

This command:
pdftoppm -png ../../filestore/input/pdf/foo.pdf ../../filestore/input/png/foo.pdf

Returns the expected foo.pdf-01.png file

where as running php-pdftopng in a php script creates a temporary folder with a name like this: pdftoppm5fa286f1a94c0
and with a file inside it saying -01.png for instance

@zielinskila
Copy link

For some odd reason I am experiencing that php-pdftopng creates subfolders which look very temporary

This command:
pdftoppm -png ../../filestore/input/pdf/foo.pdf ../../filestore/input/png/foo.pdf

Returns the expected foo.pdf-01.png file

where as running php-pdftopng in a php script creates a temporary folder with a name like this: pdftoppm5fa286f1a94c0
and with a file inside it saying -01.png for instance

Late on board, but I currently had the same problem, when you look at the source code there's no option to change that behavior.
For my needs I created a quick fork which supports $filename variable - you can pass any you want, and it will create just files (without creating subfolder with uniqid) under selected destination, if you don't, script will act as originally intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants