Micro Niche Builder

    

Closed Thread
Results 1 to 2 of 2

Thread: open PDF

  1. #1

    Default open PDF

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


  2. Micro Niche Builder

  3. #2

    Default

    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)

Closed Thread

Similar Threads

  1. Who will win the Australlian Open?
    By nikon in forum General Discussion
    Replies: 1
    Last Post: 01-24-2009, 10: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