473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Creating PDFs in PHP

Hello all,

I'm using 1 and 1 to host a website. I'm needing to create a PDF file
dynamically using data from one of my MySQL databases, but it looks
like 1 and 1 doesn't support the PDFlib library. I've also tried using
some third-party software that can connect to a database over the
network, but 1 and 1 doesn't allow connections to their databases
outside of 1 and 1 sites.

Does anyone know of any other options I have? For example, is there a
way I could somehow include the PDFlib library in my web space and
reference it from my PHP scripts or does it have to be compiled in?

Thanks in advance!

Dec 28 '06 #1
6 2561
First GOOGLE IS YOU FRIEND. Now recite that 10 times and continue on.

1and1 dose not allow connection to your database from any other source
then their web servers (not sure if they restrict it also to only where
you site is being hosted, I should try that though). This is simply for
security and a good policy in my mind.

As for you PDF problem you need to find a PDF creator that is just
users a base class (that is said really badly but have a look at the
links below). Hopefully one of the following will do what you need:

http://sourceforge.net/projects/pdf-php

http://www.ros.co.nz/pdf/

(first 2 links on a Google search with "pdf php")

Dec 28 '06 #2
On 28 Dec 2006 07:34:23 -0800, mv******@gmail.com wrote:
First GOOGLE IS YOU FRIEND.
So is proofreading. :-)

Not that _I_ ever screw up.........
Dec 28 '06 #3

mv******@gmail.com schrieb:
http://www.ros.co.nz/pdf/
Especially this lib works nice and doesn't require to know much about
PDF.

I'd propose to start using this lib.

Dec 28 '06 #4
Thanks for the suggestions. Just to let everyone know, both links
posted are for the same PDF creator and it worked perfectly.

By the way, I know Google is my friend... but I'd rather see what
people are using and recommend.

Thanks!

On Dec 28, 8:34 am, mvand...@gmail.com wrote:
First GOOGLE IS YOU FRIEND. Now recite that 10 times and continue on.

1and1 dose not allow connection to your database from any other source
then their web servers (not sure if they restrict it also to only where
you site is being hosted, I should try that though). This is simply for
security and a good policy in my mind.

As for you PDF problem you need to find a PDF creator that is just
users a base class (that is said really badly but have a look at the
links below). Hopefully one of the following will do what you need:

http://sourceforge.net/projects/pdf-php

http://www.ros.co.nz/pdf/

(first 2 links on a Google search with "pdf php")
Dec 28 '06 #5

Bryan wrote:
Thanks for the suggestions. Just to let everyone know, both links
posted are for the same PDF creator and it worked perfectly.

By the way, I know Google is my friend... but I'd rather see what
people are using and recommend.

Thanks!

On Dec 28, 8:34 am, mvand...@gmail.com wrote:
First GOOGLE IS YOU FRIEND. Now recite that 10 times and continue on.

1and1 dose not allow connection to your database from any other source
then their web servers (not sure if they restrict it also to only where
you site is being hosted, I should try that though). This is simply for
security and a good policy in my mind.

As for you PDF problem you need to find a PDF creator that is just
users a base class (that is said really badly but have a look at the
links below). Hopefully one of the following will do what you need:

http://sourceforge.net/projects/pdf-php

http://www.ros.co.nz/pdf/

(first 2 links on a Google search with "pdf php")
fPDF (http://www.fpdf.org) it's great too.

Dec 29 '06 #6

I have been using FPDF mainly because it has available for it FPDI
which lets you include other PDFs in FPDF (for filling PDF forms, etc.)

FPDF
http://www.fpdf.org/

FPDI
http://fpdi.setasign.de/

Dec 29 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Dave Karmens | last post by:
I fire the following code on Index Server (different obj) and it returns a PDFs no problem, but when I change the object to use the MSSearch for Site Server I don't get any PDFs. Anything in the...
3
by: John | last post by:
Hi Is there an activex or something else available that will allow converting of access reports into PDFs programmatically from within access? Thanks Regards
0
by: musicloverlch | last post by:
I used to be able to create PDFs, automatically save them to a file, and mail them out to people. This was on Access 97 with Windows NT. We've changed to Windows XP and Access 2003. Doesn't work...
2
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
1
by: spammy | last post by:
Hi all, Im having difficulty serving synamically generated PDFs to clients via asp.net. Im using crystal reports to generate them. In my page load I have the following: private void...
1
by: Jumping until blue | last post by:
I'm confused ... and need some advice Here is what I want to do: I have a number of files, mostly text files formatted using Markdown syntax but also pdfs and other types of files, that are...
1
by: Adrian | last post by:
Using: Mysql 5.0.15 php 5.1.6 apache 2.2.3 I am trying to create a download link for various pdfs which I have stored in a mysql DB. I am having trouble with the header fields when clicking...
7
by: Zeb | last post by:
Hi all I've developed a shopping cart in C# and to allow moderators to upload product images, news images and downloadable PDFs, the app creates a folder for each product. I start out with the...
5
by: Aryan | last post by:
Hi, I am using C# with framework 2.0 and creating PDF files on-fly, along with this I am using Windows 2003 Server. I am using Byte to take the data input and then save into pdf format on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.