+ Reply to Thread
Results 1 to 2 of 2

Thread: open PDF

  1. #1

    open PDF

    Hey can any one know how can we open new aor existing PDF file using PHP..?

  2. .
  3. #2

    download php_pdf.dll & copy it into PHP folder.
    Code:
    <?php 
    // create handle for new PDF document 
    $pdf = pdf_new(); 
    
    // open a file 
    pdf_open_file($pdf, "philosophy.pdf"); 
    
    // start a new page (A4) 
    pdf_begin_page($pdf, 595, 842); 
    
    // get and use a font object 
    $arial = pdf_findfont($pdf, "Arial", "host", 1); pdf_setfont($pdf, $arial, 10); 
    
    // print text 
    pdf_show_xy($pdf, "ABC", 50, 730); 
    pdf_show_xy($pdf, "XYZ", 100, 730); 
    
    // end page 
    pdf_end_page($pdf); 
    
    // close and save file 
    pdf_close($pdf); 
    ?>

  4. The Following User Says Thank You to sanky12ka4 For This Useful Post:

    Avss (10-03-2009)

  5. .
+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Who will win the Australlian Open?
    By nikon in forum General Discussion
    Replies: 1
    Last Post: 01-24-2009, 09:37 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
profitable webmaster resources
© 2010, vBulletin Solutions, Inc. All Rights Reserved. All designated trademarks and brands are the property of their respective owners. Use of this Website constitutes acceptance of our Terms and Conditions and Privacy Policy.

 

Content Relevant URLs by vBSEO