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?
It's quick and easy to merge PDF files into a single document with the Adobe Acrobat online tool. Just add your files, merge them, and you're done. Merging multiple files into one PDF lets you store and review them more easily.
Select the PDF you want to insert and click Open. In the Insert Pages dialog box, specify where to insert the document (before or after the first or last page, or a designated page). Click OK. To leave the original PDF intact as a separate file, choose Save As, and type a new name for the merged PDF.
Hello, we would like to generate a PDF file with attached files inside it ( embeded ). Is it possible to do with dompdf? This is unfortunately first possible with PDF file version 1.7 and dompf implements 1.3. It would be good to increase the version but we first need to eveluate which changes this needs on our side.
You can also add an existing file to an opened PDF. Drag the file icon directly into the Page Thumbnails panel in the navigation pane. You can insert one or more pages of selected content copied from any application into an existing PDF.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With