How to initiate “Download” of the file?
up vote
0
down vote
favorite
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?
pdf download drupal-8 lib
add a comment |
up vote
0
down vote
favorite
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?
pdf download drupal-8 lib
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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?
pdf download drupal-8 lib
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?
pdf download drupal-8 lib
pdf download drupal-8 lib
asked Nov 21 at 11:27
koal
192
192
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53411113%2fhow-to-initiate-download-of-the-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown