Jump to content

how can i output multiple single PDFs using TCPDF?


sashavalentina

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 2 weeks later...
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. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.