Creating pdf files in php - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > PHP » Creating pdf files in php


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 08-04-2006   #1 (permalink)
Ankita
Member
 
Join Date: Jul 2006
Age: 25
Posts: 53
Default Creating pdf files in php

Hi all
I am generating order report in my website in pdf format.I am using the following test code for this :-

PHP Code:
<?php
$pdf 
pdf_new();
pdf_open_file($pdf"C:\bennyboy.pdf");
 
pdf_set_info($pdf"Author""Ben Shepherd");
pdf_set_info($pdf"Title""Creating a pdf");
pdf_set_info($pdf"Creator""Ben Shepherd");
pdf_set_info($pdf"Subject""Creating a pdf");
pdf_begin_page($pdf595842);
 
$arial pdf_findfont($pdf"Arial""host"1);
pdf_setfont($pdf$arial14);
 
pdf_show_xy($pdf"<Type your info here>",50400);
$gif_image pdf_open_gif($pdf"baseball.gif");
 
pdf_place_image($pdf$gif_image2003001.0);
pdf_close_image($pdf$gif_image);
 
pdf_end_page($pdf);
pdf_close($pdf);
Is this code is correct or some one knows some other code for this?
Ankita is offline   Reply With Quote


Old 10-12-2006   #2 (permalink)
ScottHughes
Senior Member
 
Join Date: Sep 2006
Age: 22
Posts: 460
Default Re: Creating pdf files in php

At quick glance, I don't see any problem with this code. It should work for your project, whatever that is.
__________________
ScottHughes is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Subdomains walter Site and Server Administration 5 10-12-2006 11:38 AM
creating the Portal phpstart Site and Server Administration 10 08-02-2006 06:10 PM
Help with creating a view connor Site and Server Administration 0 07-04-2006 07:28 PM
Creating Your Own RSS Feed Sysko Forum Management 3 03-19-2006 09:46 PM
Creating an community Syncratic. Forum Management 0 03-09-2006 11:12 PM


footer left
All times are GMT. The time now is 09:15 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Property for sale in Spain | File Host | Internet Advertising | Credit Cards | Loans

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49