Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Save page as a PDF Button

Participant ,
Jun 06, 2008 Jun 06, 2008
Can anyone point me in the direction of a way that I can create a link on a PHP/MySQL page that allows the user to save the page as a PDF. I know they could save it as a PDF using their browser but not all browsers seem to offer that function.

I simply want a link that says save page as a PDF that they can click on.

Any suggestions how I go about it?


TOPICS
Server side applications
349
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 06, 2008 Jun 06, 2008
LATEST
> I simply want a link that says save page as a PDF that they can click on.
> Any suggestions how I go about it?

You can't save a PDF of the page as they see it in their web browser from
your web site, as your web server can't 'see' the page as they see it.

What you'd need to do is have a button on your web site that then calls a
server-side script and/or application that can render the web apge and then
produces a PDF from the content, then streams it back to the browser of the
person that clicked the link, where they could then save the PDF file.

I can't see this being a very useful feature for most folks surfing the web.
It might be useful for a niche audience such as a sales team or somethign,
but if that's the case, it's probably easier to install acrobat on their
machines instead.

-Darrel


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines