0

I have a html page which contains a <div></div> section. There is a link, I would like when someone click on the Link to generate a PDF which contains exactly the div section content.

How can I handle that in PHP or JavaScript?

1

2 Answers 2

1

check the php pdf functions here

Sign up to request clarification or add additional context in comments.

1 Comment

+1, but note that it relies on a third-party library, which requires a commercial licence to use all its features. (see php.net/manual/en/pdf.requirements.php for more details)
1

There are several options, but TCPDF seems to be quite good.

Its a PHP class for generating PDF documents.

Good ratings on the web, and it looks like it's under active development as well. Worth having a look at.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.