PHP library for printing landscape

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chemlight
    New Member
    • Jan 2009
    • 33

    PHP library for printing landscape

    I seem to remember from somewhere that there is a PHP library for converting a php page into an image, and rotating it for printing in landscape. I haven't been able to find anything on google, or bytes. A lot of chatter about the @page CSS properties (which don't work). Not what I need though...

    A point in the right direction would be appreciated.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    if you have a windows server, you can use the COM extension.

    Comment

    • chemlight
      New Member
      • Jan 2009
      • 33

      #3
      Thanks. I've got a Mac for development, and running ubuntu for our server.

      The answer I found was php GD library, and was also able to find a great walkthrough for the install.



      obviously applies only to OSX, but its helpful in case anyone in my situation runs across this. The only thing - before you follow the instructions make the following directories:

      /usr/local/man
      /usr/local/man/man1

      or the libjpeg will fail with error 71.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        I'm using the MacPorts installation (Apache/MySQL/PHP) this pretty much covers everything (despite being always up-to-date).

        Macs are great

        Comment

        • chemlight
          New Member
          • Jan 2009
          • 33

          #5
          One more question relating to this topic. Are there any good starter tutorials for the php GD library? I've found some...php.net has the manual, but I'm looking for a starting point that gets me into it quickly, and then I can spend more time looking at all the details.

          Comment

          Working...