Categories: php, laravel

In laravel How i can split a pdf file(more then 1 page) into multiple pdf file? [closed]

1 answer

I mean useing laravel if i have 10 page pdf, i want each page separated 10 pdf file. With laravel. I am looking for a package. can anyone help? what laravel package is out there?

All answers to this question, which has the identifier 61236900

The best answer:

You can do it with pdf-tk ( I use it in my Laravel project via console.

sudo apt-get --yes install pdftk 

Or use another command if you have another OS.

After install you can easily split your pdf document

pdftk foo-bar.pdf cat 1-12 output foo.pdf pdftk foo-bar.pdf cat 13-end output bar.pdf 

I suppose you have class for work with pdf document. You can use eval function for running pdftk command in your console.

Last questions

how do i remove the switch on my home screen?
how to edit the JS date and time to update atuomatically?
How to utilize data stored in a multidimensional array
Powermockito not mocking URL constructor in URI.toURL() method
Android Bluetooth LE Scanner only scans when phone's Location is turned on in some devices
docker wordpress container can't connect to mysql container
How can I declare a number in java that is more than 64-bits? [duplicate]
Optaplanner solutionClass entityCollectionProperty should never return null error when simple JSON object passed to controller
Anylogic, get the time a pedestrain is in a queue
How do I fix this syntax issue with my .flex file?
Optimizing query in PHP
How to find the highest number of a column and print two columns of that row in R?
Ideas on “Error: Type is referenced as an interface from”?
JCIFS SmbFile.exists() and SmbFile.isDirectory() return false when it exists and I can listFiles()
PHP total order
Laravel booking system design
neural net - undefined column selected
How to indicate y axis does not start from 0 in ggplot?
Fragments in backStack
Spinner how to change the data