ActivePDF-like Reports w/ Apache?
Martin71a asks: "I have recently been tasked with managing our website. I come from a mainframe and VB background and have a team of 3 people to work with. Our manager is having us switch from IIS to an Apache web server later this year. In the more immediate future, I need a solution to distribute print to our customers through our website. Previously, we had developed our reports using HTML, but we need more professional looking reports with more basic printing functionality, such as paging, built in. We have been testing ActivePDF in which we develop the reports in Crystal then use ActivePDF to send [those reports] to a virtual PDF printer, which allows the user to view them. We like the solution because it doesn't require our customer to download anything, other than a PDF viewer. We've also experimented with Crystal Enterprise, although it was an older version that required either a Java plug-in, or ActiveX download. My concern is that AcitvePDF does not appear to be supported for an Apache server. Does any know of a similar solution that would be appropriate for an Apache server?"
Use PHP for your report generation and use its PDFlib support to output the final result to a PDF file, which you then shuffle off to the user. Et voila!
Damien
http://www.fpdf.org/ it is a completely contained PDF system for PHP. I haven't used it a lot but I've heard it is a lot more sane to use than PDF Lib plus it doesn't require you to compile in the library.
You might look into Stellent, we started using it here at my office and it works pretty good.
The phone is ringing, I cannot linger, watch out butt here comes my finger.
With the outrageous cost of Crystal, you'll probaly find that even after training your people in PHP (which isn't a very difficult language IMHO) you'll have saved a bundle of money.
Conformity is the jailer of freedom and enemy of growth. -JFK
There are tons of Perl, PHP, and other packages out there for creating PDF files from some sort of input. I found everything you'd need here at http://sourceforge.net/search/. Just do a search for "PDF" like I did. I *know* you'll find something there. Sourceforge.net and google.com are your friends! Hope this helps!
Nobodies Prefect
Tidbits for Techs Technology Blog
I work at a large bank. We had reports we needed to produce in PDF format with nice graphics. We tried many solutions including print-to-HTML from Excel, Crystal Reports, Ephiphany, and Insightful's S-Plus.
The best solution for a compact format was a scripted solution (VBA / COM) that prints XLS, DOC, PPT, etc. to a file with thus creating a postscript file, then using ghostscript to convert
S-Plus required lots of programming and display was not compact enough. Ephiphany likewise. Crystal has a HUGE HUGE IMMENSE VAST WAY-BIG Learning curve and still didn't do what we wanted. Alas.
For all it's worth.
-- Kevin J. Rice, justanyone.com
Unitarian Church: Freethinkers Congregate!
I use FOP in a production environment. Look at Cocoon. Roll your own XSL solution. Build the reports in OpenOffice.
Save yourself a few bucks.
illegitimii non ingravare
Take a look at Apache FOP, although your starting documents would have to be XML. The pros: buzzword compliant, and the project has a name similar to an old Soundgarden song!!
You should already know that Crystal reports for VB is garbage, well guess what the shit continues in their servers and other products as well! Even the version that comes with .NET is total crap!
Built on our popular Java PDF library, the Report Writer adds functionality including:
Get away from teh evils of Adobe and PDF - use real formats, formats that are interoperable, open, and friendly to informaton sharing.
Not only a Troll but an AC Troll at that!
(PDF is an open standard)
We are also using FOP.
You can get thouroughly anal about positioning, attributes, etc.
We are using it to generate Product spec sheets, provide a more "polished" look to invoices, order status inquiries... all sorts of stuff.
The really nice thing is that because it's java, you can start messing with it now, then have a pretty simple conversion when you upgrade to apache.
John
If Crystal is running the report, then just set up a samba box with printpdf (see this site for some more info.
Works great. It's free. Infinitely configurable.
"But actually trying to use m4 as a general-purpose langage would be deeply perverse" --ESR
You don't indicate whether the PDF generation needs to be dynamic.
In either case, Ghostscript will produce a PDF for you, from a PS (Postscript) data source. A fairly trivial transformation.
This leaves "printing" to a Postscript printer, which Windows, Unix *and* Mainframe is capable of.
I assume that since you have (somehow) "outgrown" HTML encoding and features, that you probably need somewhat more advanced formatting than most direct PDF generation libraries will (easily) provide.
I also assume that you want to reduce furture maintainance. With these two goals in mind, the PS->PDF transformation is most reasonable, giving you the flexibility to choose how to "print" the PS.
Ratboy.
Just another "Cubible(sic) Joe" 2 17 3061
I've been using this for the past year and its worked great. I use it with apache, php and mysql. A department has begun using it for their reports and is very happy.
http://www.fpdf.org/
Apache FOP and IText are great solutions.
Even the oldest version of Crystal Enterprise (version 8 - before that the product was know as Crystal Info) doesn't need to use a Java or ActiveX plugin - it can output straight to HTML and DHTML - though it might not be the prettiest web pages you've ever seen.
Saying that, Enterprise has never been anythng other than a complete pain to use and I would find it hard to recommend it to anyone.
Tk
At some point, somewhere, the entire internet will be found to be illegal.
I use a combination of PHP and pdflatex for report generation. I don't think there is a solution that gets you more "professional looking" output.
You could use Jasper Reports to design and create reports based on any JDBC datasource.
To work on your apache server you will need to install apache-tomcat. Of course if you have never programmed in Java you might be better off looking at one of the PHP solutions mentioned elsewhere.
Have you evaluated CSS for the output?
It's possible to switch "media" (from screen to print), and do absolute layout, without a second library.
No vector art, but for layout, it can be done.
S
Another option that makes for flexible and interactive reports is to output a spreadsheet document rather than a PDF, complete with calculated fields and modifiable fields that allow the user to experiment with options (where appropriate). If you format them well, spreadsheets can print very nicely.
You can generate documents in Microsoft Excel format using the Jakarta POI HSSF API, and of course OpenOffice Calc files are just XML documents zipped up with a manifest, easy to produce with just about any toolset.
Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
It is not my software. We just happen to use it and it works very well for PDF reports. You pass a JSP the XML and you get a nice PDF report.
It's not Crystal Reports, by any means. It comes without all that baggage :-)
Reportman.sourceforge.net
I use this in production at the hospital where I work. The project is mature, full featured, and free. It can work basicly as a Free replcement for Crystal.
I did something similar with the iText libraries for java. Generate PDF's to your heart's content-- place text and images into the page, flatten it, and *pop* out comes your document.
I used to work in the Health Care biz, and for all of our enterprise reporting (including reports sent out to customers as well as internal use) we used Actuate. http://www.actuate.com/
The good: Actuate is a very robust, powerful report generating machine. It is relatively simple to get the basics, but some more of the advanced features and such might take some time to get. The real plus is that it natively generates DHTML, Excel, and PDF - and does a good job with each.
The bad: This monster is written around a very old (maybe version 3?) visual basic engine. As a result there is some quirky behavior and such. I believe it is ridiculously expensive to purchase as well, so that may end up being prohibitive for you.
I don't really know how well it would fit your needs, and I certainly am not trying to pitch it, just that I hadn't heard of it when I got hired on, and I think it is a relatively unknown product that can do some pretty great things. I know a lot of the state agencies are using it, as well as several big banks, healthcare and even Yahoo! uses it for their clients. It certainly wouldn't hurt to check it out.
If I understand your requirements correctly, you may want to investigate the use of Python (in the form of Apache's mod_python) along with the ReportLab tools.
You can find a nice article detailing its usage here
The PDF spec is open, and fairly simple. I wrote my own PDF output code in less than a week, with the benefit that the PDFs were much smaller than those generated by general-purpose converters.
You have not been "tasked" with something, because task is not a verb
The rest of your question is obviously crap, because you don't know enough english to form a question properly.
Your apache install probably already has python enabled for cgi. You might consider modpython, which adds the interpreter in for quicker load times.
Share and Enjoy!
That's a complete load of shit. You are the one who is wrong:
You've probably never seen a dictionary before, so I'll help you out. See that little 'v.' before the word? Imagine this: that 'v' stands for 'verb'! What are the odds? BTW, that little 'tr.' means that the word 'task' is not just any kind of verb, but that it's a transitive verb. But don't worry about what that means; there are probably too many syllables in that word 'transitive' anyway.
If you're going to be an asshole, at least make sure that you're right first.
You now have a web service you can all anywhere. Stick your apache server on the firewall with 2 nics. One nic it can use to call the webservice and the other it can use to serve requests. If you dont want it on the firewall, you can put it outside the firewall and use ipsec to secure the point from the webserver to your firewall. It works great for us.
Only 'flamers' flame!
Does slashdot hate my posts?
Take a look at ReportMill. I've used it in several projects to generate PDF reports and it's always come through like a champ. Not cheap, but worth every penny.
--Paul
Take a look at Apache Cocoon . Here are samples that are converted to PDF, on the fly, using Cocoon.
Consensus is good, but informed dictatorship is better
Make your reports in HTML format (shouldn't be hard), then use HTMLdoc to convert it to PDF. It's the most painless solution I know (no API to learn, no XML language to master, no complex installation to perform)
I wrote quite a bit of code to do Sodipodi SVG files as templates into PDF using FPDF.. Theres quite a long description on my blog with Code and example usage and the svg files
The current code had chinese language support and some support for vector graphics (lines and boxes work perfectly ok)
Taking PHP to the next level: phpmole, php codedoc, php-gtk pear installer, DataObjects for php, ldap schema viewer and