Jump to content

Printable Page


johnsmith153

Recommended Posts

This IS PHP related.

 

I am looking at the best way to do a printable page.

 

All my pages are very unique, where it is important I have ultimate control over what is printed. It isn't just a news story. I will be printing info where presentation is important. Changes to print are quite a bit compared to on screen.

 

(1) Use PHP to generate PDF, which opens and user prints that page

(2) Change style sheet (I feel with all the changes I need this would be difficult)

(3) Use <link rel="alternate" media="print" href="etc..."/> which I prefer as I can just duplicate pages and make changes

 

Any ideas? I prefer 3, but I get the impression that this is not considered a recommended way.

Link to comment
https://forums.phpfreaks.com/topic/129612-printable-page/
Share on other sites

I haven't yet even looked at pdf, but I guess this is a lot more work than <link rel="alternate" media="print" href="etc..."/> ?

 

Time is precious!

 

I have just tried my <link rel="alternate" media="print" href="etc..."/> method in Firefox and Opera and it doesn't seem to work. I thought it did in Firefox, but not in Opera??

 

Any other opinions would be great.

Link to comment
https://forums.phpfreaks.com/topic/129612-printable-page/#findComment-671953
Share on other sites

You gotta find a balance. Sadly, if getting it to look a specific way is top priority, it's going to be time-consuming.

 

Using markup to generate printable pages leaves many interpretations and has many variables client-side. The result on one computer could differ significantly than on another.

 

PDF is by far your best bet.

Link to comment
https://forums.phpfreaks.com/topic/129612-printable-page/#findComment-671987
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.