[PHP] Fw: PHP Documentation Format, Is it possible to provide PDF file too?

Hi guys,

Is there anybody can help me with the following issue?

Thanks

···

David

From: Chen David weiweidavidcb@hotmail.com

Sent: Wednesday, December 11, 2024 16:56
To: php-general@lists.php.net php-general@lists.php.net
Subject: PHP Documentation Format, Is it possible to provide PDF file too?

Hi guys,

First of all, thank you very much for your great efforts and contribution to the coding community.

I am teaching myself coding and trying to learn PHP, and i found out PHP documentation is either in many html files or chm format. I tried to convert to pdf format which is more friendly to users to make notes or print out for learning. Since CHM is outdated and the conversion tools i found are way too old and can’t do the conversion right.

My question would be: Is it possible to provide a copy of documentation in PDF format on website for downloading?

I also tried to convert the many HTML files to many PDF files using Adobe acrobate, but then i found out i have to place them in right order, and there are over 11000pages.

I even tried to find out tools to split the CHM file into smaller files then i can use the online tool to convert them to PDF, but there is file size limitation on such websites.

The searching for a right tool to convert chm to pdf and converting the chm file to pdf took a lot of time but none of them works out.

And i can see many other coding languages provide PDF file documentations, would it be too much trouble to add an option of PDF documentation file on your website for downloading?

Again, really appreciate your generous contribution to the coding world and wish you have a wonderful day!

Best regards

David Chen

On 12/12/2024 02:17, Chen David wrote:

My question would be: Is it possible to provide a copy of documentation in PDF format on website for downloading?

It may be helpful if you can tell us why you specifically want PDF format.

Under Documentation > Documentation Downloads you can find a number of easy-to-download formats, including "single file HTML", which should be easier to convert to PDF while maintaining navigation:

Given the size of the file you'll almost certainly need to download a html-to-pdf conversion tool rather than using a web-based tool. Unfortunately I don't have any suggestions here. I did try "print to PDF" in Chrome on Windows but that ran out of memory for me generating the print preview.

(For the more adventurous) The PHP documentation is built using PHD, which lists PDF as a supported output format:

Altho there's a pending PR from 2022 to "fix PDF generation", suggesting this might be currently broken:

Documentation for building the PHP docs can be found in the doc-base repository:

If you need further help, I would suggest posting to the docs mailing list, or the php-doc channel on the https://phpc.chat/ community Discord