Re: [houston-php] PowerPoint or PDF Generation using PHP

From: Clint V.
Sent on: Monday, February 22, 2010 10:26 AM
OpenOffice supports server mode.? Microsoft Office is not recommended to be driven directly from another service (i.e. through COM) specifically the web.? This is mentioned multiple times on the MSDN.? This means you can go the PHP->COM->Office route, but you end up with all kinds of issues.? That is why headless OpenOffice works better.

I know they have good python scripting support as the VB of OpenOffice, but you can try it out and see what you can get done with PHP.

I have used FPDF and it is good as long as you don't want to do a large report from it.? That may have been fixed in current releases though.? AFAIK it won't do hundreds of pages.? TCPDF may handle this better.? Sounds like you want a PowerPoint though.

One question I have to throw out there is why you want to use PowerPoint?? It is not normally a report format.? What do you stand to gain from PowerPoint that PDF won't give you?? If they are 8.5 x 11 I think your going to have your user print these, which is what PDF was designed for.? Are you trying to avoid the user having to install Acrobat?

On Sun, Feb 21, 2010 at 9:48 AM, Dave Morris <[address removed]> wrote:
I just went back and read my original note, and I realized I didn't describe it very well. I have attached an image of basically what I want to do. There are place holders in there for tabular data, images, captions, a title, etc... and it all fits onto an 8.5x11 sheet of paper. The goal is to be able to programmatically generate hundreds of these pages on the fly based on data coming from a database, including the images.?

And one of the things that's throwing me off is the need for those rectangle shapes in the header of the document that stretch all the way to the edge of the page. I actually have a working demo using TCPDF, but I'd really like to create a PowerPoint file if possible.

I'm not trying to create this in HTML and convert it into a PowerPoint or PDF file. I'm trying to generate the PowerPoint or PDF file format straight from PHP code.?The rest of this project is written in PHP on ZendServer so we are ideally looking for a PHP-based solution for consistency, and open source-ness, of course.

Does that make more sense? Thanks for your help,

Dave


On Sun, Feb 21, 2010 at 8:28 AM, Daniel Scott Smith <opened.to@gmail.com> wrote:
Hey Dave.

Just checking, but I don't really get exactly what it is you're trying to do.

When you're saying generate letter size pages, you mean you're trying
to generate letter size content from web based stuff to print?

Or you're trying to create letter sized web pages?

And, from your choice of php, you're looking for an open source
alternative? Is there some setup of serving/saving the content already
set up, ie MS server, or lamp, etc?

Wondering,

Dan

On Sun, Feb 21, 2010 at 2:31 AM, Dave Morris <[address removed]> wrote:
> 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
> http://dave.showviz.net/
> http://3dcamphouston.com/
>
>
>
>
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on
> this mailing list ([address removed])
> This message was sent by Dave Morris ([address removed]) from Houston PHP
> Users Group.
> To learn more about Dave Morris, visit his/her member profile
> To unsubscribe or to update your mailing list settings, click here
>
> Meetup, PO Box 4668 #37895 New York, New York[masked] |
> [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
http://www.meetup.com/houston-php-users-group/
This message was sent by Daniel Scott Smith (opened.to@gmail.com) from Houston PHP Users Group.
To learn more about Daniel Scott Smith, visit his/her member profile: http://www.meetup.com/houston-php-users-group/members/10893483/
To unsubscribe or to update your mailing list settings, click here: http://www.meetup.com/houston-php-users-group/settings/
Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]




--




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Dave Morris ([address removed]) from Houston PHP Users Group.
To learn more about Dave Morris, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

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