[FX.php List] Creating a PDF label and show on a web page

Andrew Denman adenman at tmea.org
Fri Jun 26 10:01:34 MDT 2009


If you have the PHP installed from php.net, I believe it comes with the GD dll; you just need to enable it in php.ini.    In the [Extensions] section of php.ini, uncomment the line 'extension=php_gd2.dll' or add it if it is not there.  The dll file should be located in the 'ext' or 'extensions' folder wherever you installed PHP.

Andrew Denman

From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of John Funk
Sent: Friday, June 26, 2009 7:36 AM
To: FX.php Discussion List
Subject: Re: [FX.php List] Creating a PDF label and show on a web page

Yes I did see the the limits, I will have to think twice. The system I am writing is for one particular customer but will be distributed eventually. I do not want to have a system implementation nightmare, the installs need to be neat and tidy including the web services. For now I cannot use a Mac server (Apache). Is there and easy (for a non windows expert like me) way to install GD on iis?


On 6/26/09 1:59 AM, "Steve Winter" <steve at bluecrocodile.co.nz> wrote:
Hi John,

Looks a nice option... I do note that it says in the read-me that it's only been tested for IE6, which likely means that when you try and use it in 'proper' browsers that it won't quite display correctly so you might have to do a bit of mucking about to get it cross-browser compatible... (hence the advantage of the GD/image based class I was suggesting, since it generates an image which you can embed within HTML, but which will always display the same (admittedly it won't display at all if the user has images turned off ;-)

Best wishes
Steve

On 26 Jun 2009, at 02:47, John Funk wrote:
Thanks for the tips, I found html barcodes by Mark Ryan at:
http://phpclasses.elib.com/browse/package/3603.html, a php class for making
barcodes. Seems to work good.
John


On 6/25/09 4:01 PM, "Dale Bengston" <dbengston at tds.net> wrote:
Hi John,

The easiest way to get GD is to go to entropy.ch and get Mark
Liyanage's build of PHP and use it instead of the default one. It
works great, and includes GD, among many other things.

Now, back to FPDF, which is also what I use to create PDF from PHP.
FPDF is great for doing this, and very precise. Also, there is an
extension for FPDF called FPDI that allows you to open a pre-made PDF
template, draw data on it with FPDF and save it out. It's double cool.

FPDF allows you to place graphics, which is how I'd handle the bar
codes. You could use other PHP graphics creators (like the one Steve W
recommended) to save your bar codes as image files and place them with
FPDF.

Hope this helps,
Dale



  --
Dale Bengston
Streamline Studio, LLC
www.streamline-studio.com <http://www.streamline-studio.com><http://www.streamline-studio.com>


On Jun 25, 2009, at 1:33 PM, John Funk wrote:
The barcode number will be in the database but the forms created in
FileMaker will not be used for the same purpose as the html forms.
Thanks for the lookout..


On 6/25/09 1:17 PM, "Joel Shapiro" <jsfmp at earthlink.net> wrote:
Hi John

Just a thought:
If you plan to have barcodes in the database, they could be different
than the barcodes generated by this PHP script, so you'd probably
want to check on that.

Best,
-Joel


On Jun 25, 2009, at 11:00 AM, John Funk wrote:
I like this idea, any tips on how to use to shorten my learning
curve?
It looks like I put the barcode.php in my site folder and in the
html of my label place the barcode like an image but use <IMG
SRC="barcode.php?barcode=HELLO&quality=75"> wth parameters?
Seems simple enough.....
Could I put barcode.php in my includes folder?
Thanks,
John Funk


On 6/25/09 12:36 PM, "Steve Winter" <steve at bluecrocodile.co.nz>
wrote:
The other thing which you could look at is a bar-code image
creation class (like http://www.sid6581.net/cs/php-scripts/
barcode/ pretty old now, but still works really well ;-) and then
simply generate the label in pure HTML rather than using a pdf at
all...

_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list

_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list


_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list


_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list


_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list



Steve Winter
steve at bluecrocodile.co.nz <mailto:steve at matatirosolutions.co.uk><mailto:steve at matatirosolutions.co.uk>
m: +44 77 7852 4776
3 Calshot Court, Channel Way
Ocean Village, Southampton SO14 3GR


________________________________
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090626/57f6df9e/attachment-0001.html


More information about the FX.php_List mailing list