I’m using dompdf library to create PDF. Beside I want to merge another PDF(it is located at particular path) pages with newly created PDF.
Is there anyway to do this using dompdf or Do we have any other library?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Are you talking about overlaying one PDF on top of another or appending the pages of one document to another? DOMPDF doesn’t currently support either type of functionality because it is focused on HTML to PDF conversion. Due to this focus by the project you’re not likely to see any work put in to support the handling of existing PDFs anytime soon.
You would need to first render the HTML to PDF (maybe in two parts), then combine them using another tool like pdftk (system binary) or PDF Merger. I haven’t tried PDF Merger, but pdftk works like a champ.