Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1005263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:15:59+00:00 2026-05-16T08:15:59+00:00

I have a PHP program that reads from the database and generated formatted sheets.

  • 0

I have a PHP program that reads from the database and generated formatted sheets. The sheet is one for each person in the database. So, I thought the best way is to convert each into a PDF because this way I don’t have to worry about headers, footers and the margins that the printer adds automatically.

I have used DOMPDF for this task but found that I need to generate one PDF per person because it constantly crashes complaining not enough memory. That is fine, except for now one will have to click links one by one to retrieve the all the PDFs.

Is there a better way to achieve this task? Is there a better HTML to PDF library around? If not, maybe there is a way to combine all the individual PDFs into one?

If I had to forget about the HTML to PDF convertor, that means I will write PDF directly. Most of the PDF libraries in PHP seems to require you to completely forget about the document structures, and write everything as texts. Not sure if that’s a good thing.

thanks a lot,
YJ

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:16:00+00:00Added an answer on May 16, 2026 at 8:16 am

    I recommend to use TCPDF or html2pdf. And if you want to merge your pdfs into one, use pdftk.

    To merge your pdfs into one pdf using pdftk:

     passthru("pdftk 1.pdf 2.pdf etc.pdf output merge.pdf");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C++ program that needs to take data from a PHP script,
I have a PHP program that has been written keeping in mind a single
I have a SQL update statement I am running from inside a PHP program.
I have been making a program that creates multiple CSV's from another source CSV
I have this shell program that I want to execute by php. The problem
I have computer, A, with a PHP program that connects and manipulates DB in
I have written php program and uploaded on server. I want run this program
I have a membership program written with PHP and using mysql where users input
I have php code that puts some values into an Array as follows: $hunter=addslashes($MessageArray[1]);
I have php script that creates a temporary watermark image for users that are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.