How-to articles, tricks, and solutions about PDF

correct PHP headers for pdf file download

To download a PDF file in PHP, you will need to use the appropriate HTTP headers.

How to Count the Pages in a PDF File with PHP

PHP provides a range of extensions and functions for getting the number of pages in a PDF document. Let’s check out the most efficient ones, here.

Merge PDF files with PHP

There are several ways to merge PDF files using PHP.

Saving file into a prespecified directory using FPDF

To save a file using FPDF, you can use the "Output" method.

Upload DOC or PDF using PHP

To upload a DOC or PDF file using PHP, you will need to use the move_uploaded_file function.