473,480 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is there a simple PDF class that converts HTML output pdf file?

123 New Member
Expand|Select|Wrap|Line Numbers
  1. $pdf->Cell(10,7,'test test test test test',1,0,'L');
  2.  
  3.  
Let say if i draw a table like above, since the string are longer than the width as i set (10), then some words will display out of the table.

it seem fpdf quite difficult to use, any simple pdf class
which able to use simple code like html to output pdf file? use html to draw a table seems much more easier than fpdf.
Sep 1 '10 #1
1 2495
Niheel
2,460 Recognized Expert Moderator Top Contributor
You can use dopdf from google:
http://code.google.com/p/dompdf/
dompdf is an HTML to PDF converter. At its heart, dompdf is (mostly) CSS 2.1 compliant HTML layout and rendering engine written in PHP. It is a style-driven renderer: it will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements. It also supports most presentational HTML attributes.

PDF rendering is currently provided either by PDFLib or by a bundled version the R&OS CPDF class written by Wayne Munro. (Some important changes have been made to the R&OS class, however). In order to use PDFLib with dompdf, the PDFLib PECL extension is required. Using PDFLib improves performance and reduces the memory requirements of dompdf somewhat, while the R&OS CPDF class, though slightly slower, eliminates any dependencies on external PDF libraries.
Mar 1 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

17
2637
by: FDYocum | last post by:
I am having problems with a Web site that I've designed and I am grinding my teeth in frustration. The pages are built around a table with four cells. The first cell is spanned two rows and is...
1
2442
by: Job Lot | last post by:
Is there anyway to draw table in Windows Forms? I want to draw Web Forms style (html) table? thanx
2
2768
by: Richard Williamson | last post by:
Hi all, I have a problem designing the tables for a leasgue table calculating database. The current structure is this (irrelavent bits omitted) tabTeam(TeamID, TeamName) ------ ...
2
1379
by: Pieter Claassen | last post by:
But, last few questions if I may: Here is a test program that compiles and works #include <search.h> #include <stdio.h> #include <string.h> typedef struct {
16
2489
by: AA | last post by:
I am trying to print a table of what integer corresponds to what character. Can someone please tell me what is wrong with this code? #include <stdio.h> int main() { char line; /* each...
5
1566
by: Opa | last post by:
Hi Guys I'm having trouble getting a value from a hash table based on a key that I have added The key is the handle to a socket and the value is an instance of a class called SckClientHandler...
3
1473
by: Bob Day | last post by:
Using VS 2003, VB.NET, SQL MSDE.. I am stumped. I have a datagrid with a parent/child relationship between two tables. If I add 200 rows from code in the same win form to the child table with...
2
3107
by: dan heskett | last post by:
I am owner-drawing a listbox, in an attempt to create a nice list with some custom "fields" and text layout. Essentially it works, but I must be missing something big, conceptually, because I...
2
2365
by: clickon | last post by:
I am confused about the way in which asp:table objects work. When a control is within an asp table it generally appears to be in the scope of the tables parent control. E.g. if i have a page that...
2
4347
by: NithyaMM | last post by:
Hi, Draw table using line between rows and Columns Help me
0
7041
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
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7084
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
5337
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
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.