johnsmith153 Posted October 22, 2008 Share Posted October 22, 2008 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 More sharing options...
discomatt Posted October 22, 2008 Share Posted October 22, 2008 I would take the PDF method myself, as you have direct control over resolution/sizing. Link to comment https://forums.phpfreaks.com/topic/129612-printable-page/#findComment-671948 Share on other sites More sharing options...
johnsmith153 Posted October 22, 2008 Author Share Posted October 22, 2008 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 More sharing options...
discomatt Posted October 22, 2008 Share Posted October 22, 2008 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 More sharing options...
johnsmith153 Posted October 22, 2008 Author Share Posted October 22, 2008 Looks like PDF it is then. Thanks for the help. Link to comment https://forums.phpfreaks.com/topic/129612-printable-page/#findComment-672044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.