addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

PowerPoint or PDF Generation using PHP

From: Dave M.
Sent on: Sunday, February 21, 2010 2:31 AM
Hey guys,

I need to figure out the best way to generate some Letter size pages based on a template that will contain a header (full bleed background shapes), footer, some absolutely positioned images, a few text boxes, and some tabular data.

So far I've looked at these technologies:

PHPLiveDocx - doesn't support background images or colored shapes, so I am ruling it out, although it's a neat service
PHPPowerPoint - started out with a great idea, but the project seems to be dead, and it doesn't support colored shapes, vertical slide orientation, or tabular data
TCPDF - looks like a good option, but can't decide between this and FPDF
FPDF - same as TCPDF
PSLib - This would be okay, but we'd still have to add the extra step of converting to PDF using ghostscript or distiller...

And a handful of other options that didn't really seem like a good fit. Ideally, I would like to generate Microsoft Office files so they can manually edit them if they need to, but it looks like there's no straightforward way to do it, so I've been looking at PDF alternatives.

I saw one suggestion for getting dynamic images into documents generated using PHPLiveDocx, where they treat the .docx file as a zip, extract a placeholder image out, and replace it with a new image, and then zip it back up.?That seems like it might work, but it doesn't feel like the right way to go.?

Any thoughts would be greatly appreciated. Thanks,

Dave Morris

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy