I need a way to integrate these two functions. A solid click and drag example of click and drag
And PDFMerger PDFMerger
Im using PDFMerger and it works great
<?php
include ‘PDFMerger.php’;
$pdf = new PDFMerger;
$pdf->addPDF(‘testFile5.pdf’, ‘all’)
->addPDF(‘testFile57.pdf’, ‘all’)
->merge('download', 'samplepdfs/TEST2.pdf');
?>
It combines 2 pdfs easily.
The problem is that I need to combine these two functions.
I need the user to be able to select which pdfs they want to combine and I would love do this VIA drag and drop such as the link above.
Can anyone give me a nudge in the correct direction?
You just need to post data to your php script. In your jQuery example you have that field with comma seperated values which is usually hidden. Make sure that is inside a form. Then you just post the form with a submit button.
I’m sure you can write html code by yourself and php script should look something like that:
Of course you need to do more checking to ensure safety.