sashavalentina Posted July 30, 2021 Share Posted July 30, 2021 Hi, I have a table of content in my page. For each row it has a check box. How do i achieve the function of when i click on submit button, those rows which are checked will be downloaded as a single pdf file. For example, for each checked row is a PDF file here. Suppose if i checked for 5 rows , 5 PDFs will be downloaded. Can i know how can i achieve this? Or is it not possible to do that for TCPDF library? If it is possible, i would appreciate if you guys could give me hints or some reading documentation to achieve this function. I have no idea how should i search for the solution for this function. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/313454-how-can-i-output-multiple-single-pdfs-using-tcpdf/ Share on other sites More sharing options...
Barand Posted July 30, 2021 Share Posted July 30, 2021 If all the PDFs are destined for the same user you could write multiple documents to one file, starting each on a new page. If they need to be separate then you could write them to the server as individual files and return links to those files. The documentation may tell you if you can download multiple, individual files - if you can find it. The only documentation I have found is the function comments in the class source file itself. Surely the worst documented package out there. Their site links you to manual search feature. Attempting to search for "TCPDF manual" resuts in a list of just about every manual (domestic appliances, cars, components, heart monitors etc etc) that has been produced in PDF format. Not helpful. Quote Link to comment https://forums.phpfreaks.com/topic/313454-how-can-i-output-multiple-single-pdfs-using-tcpdf/#findComment-1588716 Share on other sites More sharing options...
requinix Posted July 30, 2021 Share Posted July 30, 2021 Are you asking about how to download five separate PDF files? As in my browser says "this site is trying to download multiple files" and I acknowledge and then it downloads five files? Or to combine them together into one single PDF file that comes with one single download action? Quote Link to comment https://forums.phpfreaks.com/topic/313454-how-can-i-output-multiple-single-pdfs-using-tcpdf/#findComment-1588717 Share on other sites More sharing options...
sashavalentina Posted August 11, 2021 Author Share Posted August 11, 2021 On 7/30/2021 at 7:57 PM, requinix said: Are you asking about how to download five separate PDF files? As in my browser says "this site is trying to download multiple files" and I acknowledge and then it downloads five files? Or to combine them together into one single PDF file that comes with one single download action? I'm sorry that my question is unclear. What i want is to show multiple PDFs in one pdf files, so when i clicked on the download button on the PDF view, I can download a multiple pages of PDFs at the same time. Quote Link to comment https://forums.phpfreaks.com/topic/313454-how-can-i-output-multiple-single-pdfs-using-tcpdf/#findComment-1589010 Share on other sites More sharing options...
ginerjm Posted August 11, 2021 Share Posted August 11, 2021 Is this the same issue you posted about last Sunday that Barand and I both tried to answer for you? Quote Link to comment https://forums.phpfreaks.com/topic/313454-how-can-i-output-multiple-single-pdfs-using-tcpdf/#findComment-1589015 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.