1

For my website I have created a view, where with the help of "Views Bulk Operations" a user can check some entities and with the help of 3d party library (PDFMerger) the pdf files, related to the selected nodes get merged. Now I need to initiate a download of the "merged file".

The merged file is located into following directory:

$pdf->merge('file', $_SERVER['DOCUMENT_ROOT']."/sites/all/files/pdf/Merge007.pdf");

In the documentation it is written that replacement of 'file' to 'download' should initiate the download, but it doesnt't. Could you please help me?

closed as off-topic by Clive Nov 16 '18 at 15:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on programming, PHP, SQL, etc. that do not relate directly to Drupal are off-topic here, but can be asked on Stack Overflow." – Clive
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Please ask questions about 3rd party libraries on Stack Overflow - we only deal with problems that require Drupal-specific expertise here. Many thanks – Clive Nov 16 '18 at 15:56
  • If you have the path, why not redirect the user to it? – rovr138 Nov 16 '18 at 20:49

Browse other questions tagged or ask your own question.