I have a PDF file that I want to convert to PowerPoint using .NET. What is the best tool for the job? The most important part of the conversion is that it looks as similar to the source as possible. Well, that and it can be done programmaticly.
- A PDF, or many different PDFs? PDF is just a container, for text, images, vector graphics, etc.carillonator– carillonator2009-12-01 14:30:24 +00:00Commented Dec 1, 2009 at 14:30
- Either or. I use websupergoo and I can use that to strip PDFs into many sections or merge multiple sections into one.diadem– diadem2009-12-01 14:41:33 +00:00Commented Dec 1, 2009 at 14:41
- Oh, I see what you are asking. The PDF is generated dynamically by the server based on the user's request. It's not a single static file.diadem– diadem2009-12-01 14:42:24 +00:00Commented Dec 1, 2009 at 14:42
- Could you maybe just make the server generate PPT files directly instead of PDF files? That is if you have control over that process of course.Svish– Svish2009-12-07 09:16:40 +00:00Commented Dec 7, 2009 at 9:16
- The convertapi.com provides PDF to PowerPoint Api.Tomas– Tomas2012-01-27 15:58:20 +00:00Commented Jan 27, 2012 at 15:58
Add a comment |
2 Answers
You have a few options:
- Keep generating images, but using a more detailed representation, like EMF format, as Office seems to like it; I used to save a worksheet image as EMF, to compress it as EMZ and paste it inside a Word document using large DPI size, with (almost) no loss.
- To use a commercial component to convert from PDF to HTML, like Aspose.Recognition for .NET
- Since you're creating your PDF dynamically, you can also to create your PPT using Open XML API. If you don't have Office 2007 installed into your client machines, you'll need to download Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats
4 Comments
Jørn Schou-Rode
+1, and for the last point you might want to add another reference to Aspose for their PowerPoint API (aspose.com/categories/.net-components/aspose.slides-for-.net/…)
diadem
Thank you so much. I'm researching these options now. I'm starting with WebSuperGoo. The EMF is vectorized but some text is rotated 90 degrees. This doesn't happen with png/jpg/etc, so I'm e-mailing them about it.
diadem
There's only 18 hours left. Marking as answer to make sure you get credit where credit is due.
Rubens Farias
@diadem, tyvm! just hitted cap today =)
That's a pretty rough question. My suggestion would be to render the PDF pages as images, and stick the images in slides inside of powerpoint.
This is definitely do-able programatically.
3 Comments
diadem
That's actually what i do right now, but the users are not happy with it. People want to use PowerPoint files as presentations. That means it will be up in big projectors with wall sized screens and all that jazz. Since this method uses images instead of truetype fonts and the like, people can't zoom in without pixelization. That's why I'm looking for a true conversion.
jgallant
I don't know of anything that will do this. If you were to code this from scratch, it would take a long time to do. I don't know what the market is like for PDF->PPT conversion tools, but you might be able to sell it when your done :)
diadem
Sell it? It'd be more like this xkcd.com/664 . What about HTML to PPT generators?