Convert Anything to PDF
June 29, 2011 11:29 AM Subscribe
PDF-filter: I'm running a website that allows users to upload files. I'm looking for a converter that would allow User B to view a files uploaded by User A, even if User B doesn't have the same software used to develop the file. My guess is converting everything (that's not a simple image) to PDF would work, but my Google-fu is failing me and I can't find a PHP script or Apache module that will do this.
The classic example would be that User A uploads a WordPerfect file but User B doesn't have WordPerfect installed, yet I need User B to be able to view the file. I've been experimenting with
Scribd, but it's a Flash system so won't work on iOS devices (and I'm not a fan of the interface).
A more realistic example for me is that User A will upload an AutoCAD blue-printy type file and User B won't be able to view it at all, even if User B downloads it instead of tries to view it online.
posted by GatorDavid to computers & internet (5 answers total)
What do you mean by "everything"? There's not a general case solution for converting binary data from application A to a PDF. You need a program to render WordPerfect to PDF, AutoCAD to PDF, etc. Even these are kind of underdefined: PDF is a page description language: you set up a page in terms of its dimensions, etc. and then draw things like text and lines to it. I don't know anything about WordPerfect but my guess is that its binaries essentially store descriptions of the document along with formatting settings, but that WordPerfect actually relies on the WP application to render that document to the printer drivers (of which PDF would be one), and that it needs user input to do so (though you could probably get away with reasonable defaults most of the time). To reduce this to an absurd case, what if the user uploads an audio file? Or a filesystem image?
Long story short this is a way underspecced problem right now, and when you spec it more narrowly you are going to have to go on a case-by-case basis, filetype wise.
posted by jeb at 11:48 AM on June 29, 2011 [1 favorite]