2

I'm wondering is this is possible or not? Suppose i have div containing 10 Questions,Options and Answers. Now,if user want to copy content of that div he has to manually select and copy the content using mouse and paste on his editor(Ms Word or some other editors).

But what i want is when user clicks the download button the content gets copied to the pdf(or other file) file and can be downloaded.

2
  • yes u can do it. .just go through fpdf Commented Nov 1, 2012 at 6:18
  • please, check the answer you liked, this is only good for your own reputation later.. Commented Nov 3, 2012 at 12:10

4 Answers 4

1

You need to use fpdf for that

Here's a nice tutorial of how to create a pdf file using PHP

Reference

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

Comments

1

FPDF is probably the best library to create PDF's in PHP

Check out fpdf website here : http://www.fpdf.org/

Best for Multiple layers of text/images Watermarks Barcodes much more

Do check out the Scripts section in the website

Comments

1

Great PDF lib for creating PFDs is mpdf just try example, you would be amazed how easy it is: http://www.mpdf1.com/

Comments

1

i think, you need fpdf lib.

to create txto other similiar file from the content of the page:

  • open/create file
  • read_page = read the page content
  • file_put_content(read_page)
  • file is ready to download

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.