News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Builder.com.au:
Generating PDF Files with PHP and FPDF
February 20, 2008 @ 08:42:00

The Builder.com.au website has a new tutorial posted today that looks at the dynamic creation of a web standard (PDF files) inside of a PHP script.

An alternative way of generating PDF files with PHP is using FPDF, a free PHP class containing a number of functions for creating and manipulating PDFs. The key word here is free. You are free to download and use this class or customise it to fit your needs. In addition to being free, it's also simpler to use than PDFlib. The PDFlib needs to be installed as an extension in your PHP package, whereas FPDF can just be included in your PHP script and it's ready to use

They show how to use the FPDF library to make some simple files - setting the title, author, adding images and text, etc. There's even a little bit there at the end about adding new pages to make more complex documents simple.

0 comments voice your opinion now!
pdflib fpdf generate tutorial free library


DevShed:
Positioning Strings with the show_xy() Method in PDF Documents with PHP 5
November 27, 2007 @ 11:16:00

DevShed is finishing off their series looking at building PDF documents in PHP 5 with this new tutorial covering the positioning of strings inside the document. They've already shown how to add them (and images) to your file in previous articles of the series.

This last installment of the series will be entirely focused on using a handy method that naturally belongs to the "PDFlib" library, called "show_xy()", which allows you to display complete blocks of text at different positions within a given PDF document, by using only a couple of X,Y coordinates.

They modify their PDFLib library they've been developing over the course of the series to handle the insertion of the text and placing it on the page. They also include an example of inserting blocks of text the same way.

0 comments voice your opinion now!
showxy method pdflib php5 tutorial document showxy method pdflib php5 tutorial document


DevShed:
Building PDF Documents with PHP 5
October 30, 2007 @ 12:02:00

DevShed gets another new series kicked off in this new article - an introduction to creating PDF documents with PHP5:

In this series of articles I'll show you how to start using the "PDFlib" package to build basic PDF documents. In upcoming articles I'll cover other important characteristics, like including images into a PDF file, displaying blocks of text, and drawing basic shapes.

You'll need to be familiar with object oriented programming to understand most of this tutorial, but that's only really to get a handle on using the PDFlib library. They create some sample PDF files with it - one containing a simple string on an A4 page and another on a larger A5 page format.

0 comments voice your opinion now!
php5 build tutorial pdf document pdflib php5 build tutorial pdf document pdflib


ThinkPHP Blog:
Creating press-ready PDF documents on the fly including individual barcodes
July 08, 2006 @ 07:25:37

In this new post on the ThinkPHP blog, Jason Easter demonstrates how, with the help of the PDFlib library for PHP, you can create "press-ready PDF documents" whenever you need to (including barcodes).

Often people would like to create a PDF in offset quality out of a big bunch of addresses and create a barcode for each address. Sure, you could do this using the serial-letter-function in Word or any PHP library - the problem is that you have to stick to special standards, e. g. using CMYK colorspace and the like.

There may be other good solutions for that. Anyway, now let's talk about doing that by using PDFLib - in the lite (and therefor free) version.

His example uses the "lite" version of the library and JPGraph to create the barcodes. They create the barcode first (from a value passed in the $_GET string), then insert it into the PDF defined by the code they provide. They even show how to add additional text and an image to round out the look of the newly minted PDF.

0 comments voice your opinion now!
pdf dynamic press-ready barcodes tutorial pdflib jpgraph pdf dynamic press-ready barcodes tutorial pdflib jpgraph



Community Events





Don't see your event here?
Let us know!


laravel install api podcast library deployment symfony bugfix language introduction series voicesoftheelephpant release opinion tips list community framework package interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework