Easiest way to create a table with Zend_Pdf - php

What's the easyiest way to create a table with Zend_Pdf?
Until now, i realized tables with horizontal and vertical lines. Is there no other solution for tables?
Thank you.

There's this project in SF: http://zendpdftable.sourceforge.net/
However it's still not very practical, compared to other libraries.

I've also found a Zend_Pdf_Helper gitHub project that maybe can help someone.

From what i have read there is no easy way to do this. The closest you will get is by using the shape drawing primitives in the Zend_Pdf API or (probably better) by switching to another PDF library entirely.

XSL:FO combined with FOP handles tables very nicely. The downside is that it is an external too, seems to be slightly dated, and documentation for it is not the greatest. This posting of mine might help: http://grover.open2space.com/content/creating-pdf-code-fop

Related

What to use in place of EtherPad? Using php and mySql

I came across EtherPad but found out shortly afterwards that it has been shelved by Google.
Is there something else that I could use that allows people to collaborate on an online document? It must have version control.
Should I redevelop something instead?
Andre
Try Etherpad Lite, its much leighter than the original Etherpad
TypeWithMe is a slightly modified version of Etherpad. It's pretty darn good. Oh but, you need to view the document every once in a while or itll get wiped.
I'd recommend Google Docs. You can create new, upload existing, and collaborate online on files like documents, spreadsheets, presentations and drawings. Take a look at their Youtube page for a demonstration.
It seems like MobWrite http://code.google.com/p/google-mobwrite/ is a good solution. Just wish it had the versioning information etc that EtherPad had. Does anyone agree or have something better to embed in a PHP and mySQL website?
EtherPad is still available for buidling and deploying and it even have some seldom commits. If you want to use as an user, there are a few deployments of Etherpad (or perhaps modified versions of it) such as:
PiratePad
MoPad
Besides that, there is a quite comprehensive list of possibilities in this wikipedia entry for collaborative text editing software

Performing searches against large dictionaries using php

Currently I am trying to perform text searches against large dictionaries using php or mysql. Until now I haven't found the best way to do that. For example there is a Text:Scan module written in Perl
http://search.cpan.org/~iwoodhead/Text-Scan-0.28/Scan.pm
which is exactly what I need for php. If you are aware of some way to do that in php please share this knowledge with me! :)
Thanks for Your help!
As far as I understood, what you may need is something like Zend_Search_Lucene. You will get more information from http://framework.zend.com/manual/en/zend.search.lucene.overview.html
Have a look at Sphinx.
We are using it in one of our projects and it's serving well.
Moreover PHP has PECL extension for it.
MySQL has in-built support for full-text indexing and search:
here. This might be what you are looking for

drawing "good" graphs in php

I'm intrested in the best way to draw a graph: i have a network and i'd like to draw a map of it. I know how to use gd, but i don't know how to make this graph good for viewing: i mean no line crossing etc.
So, i guess there must be some tools or even php classes for doing this (maybe for graphviz dot?).
Any help will be great for me!
Well, maybe you could use the PEAR Image_GraphViz class?
Personally, I'd off-load the work of drawing the graph to the browser.
A good Javascript graphing library such as gRaphael can draw the graph using vector graphics (ie SVG), and can look much better than most static images generated by PHP, and can have features which static images can't, such as popups when you roll-over data points.
If you do it this way, all your PHP code has to supply is the graph data.
Hope that helps.
As you've laready hinted at, the quickest and simplest approach is to use graphviz. Given the abstraction provided by the dot language, there's little point in providing a PHP abstraction layer on top of it.
Use google!
http://code.google.com/apis/visualization/documentation/using_overview.html#load_your_libraries
They have great graphs. You just need to present the information in the right matter for google to understand. It's pretty simple.

draw binary tree with php

I'm looking for a good library / API to draw a binary tree using PHP.
I've tried using Image_GraphViz, but it doesn't seem to work. I've also looked at phpsyntaxtree, but its not documented.
Alternatively, I'm also looking for a jQuery plugin that does this. (just not this one because it has no documentation).
Thanks
My suggestion is to go with js, because vector graphs are nicer and you can add interactivity anytime.
Try raphael, a good (and perfectly documented) js graph library
homepage | tree graph demo
I still believe GraphViz is what you need. If you had a problem in using it, just post a question about the problem. It will be better than finding an alternative tool.

How to make a pdf file using PHP

How can I make a PDF file in PHP. What I want to make is a student list. So I want to query the database, get the information and give it to the user as a PDF when he clicks generate student list.
You have two good options first is the standard php library for manipulating pdf's: http://us2.php.net/pdf
Or you can use http://www.fpdf.org/. I would recommend the second.
Other options include:
www.pdflib.com
PEAR has the PEAR::File_PDF package.
There are are already many libraries available with PHP bindings. One that comes to mind is PDFLib (www.pdflib.com). If I am not mistaken there should even be a lite version that you can use for free. But just check it out.
Hope it helps
I use the ezPDF class. Lightweight, simple, easy to use, and handles most cases.
FPDF is a classical in the field. It seems it has limitations when handling Unicode (eg. Asian char sets), so there are libraries extending it (UFPDF, TCPDF...).

Categories