Jump to content

[SOLVED] Print php 2 pdf


emediastudios

Recommended Posts

I had some help on this site building a printer friendy file and it works great.

I wanted to know if there is a simple way to add two buttons to the bottom of the page.

1. print page. (i can do that one easily enough)

2. print to PDF ( this im not to sure about)

 

I know you can go to file-print-pdf, if you have acrobat installed.

But i wanted to know if i could eliminate that process and add a button instead.

Do i need to add a module to php to enable this? and change my php.ini file?

If so would i have to do the same again on my server? If so that would most likely be too much trouble.

 

I was told to add this to my page and i did

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="application/pdf" content="text/html; charset=utf-8" />

<title>Applications</title>

Link to comment
Share on other sites

What you would have to do would be generate that same page in PDF format (using the PDFLib module), then open that page in their browser. However, there's no way to print "directly to PDF". Printing really is just an image of the text. So you might be better just to offer a print.css so it prints out nicely.

The only reason to have PDF would be to pass around a digital copy once downloaded (or made available online).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.