1 <?xml version="1.0" encoding="UTF-8" ?>
3 html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
4 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
7 <title>PDF converter : sesse.net</title>
8 <meta name="description" content="Easily and freely create PDFs -- no strings attached" />
9 <link rel="stylesheet" href="http://www.sesse.net/sesse.css" type="text/css" />
10 <link rev="made" href="mailto:sgunderson@bigfoot.com" />
11 <meta name="MSSmartTagsPreventParsing" content="TRUE" />
14 <h1>PDF converter</h1>
19 <p id="lastupdated">August 5th, 2005</p>
23 <p><a href="sitemap.html">Site map</a> :
24 <a href="index.html">Home</a> :
25 <a href="search.html">Search</a><br />
26 <span class="copy">© 2005 <a href="mailto:sgunderson@bigfoot.com">Steinar H. Gunderson</a>.</span></p>
30 <form method="post" action="createpdf.pl" enctype="multipart/form-data">
34 <td><input type="file" name="input" /></td>
39 <select name="preset">
40 <option value="default">Default</option>
41 <option value="screen">Screen (72dpi, no embedded fonts)</option>
42 <option value="ebook">eBook (150dpi)</option>
43 <option value="printer">Printer (300dpi)</option>
44 <option value="prepress">Prepress (300dpi, better JPEG quality)</option>
50 <input type="submit" value="Make PDF" />
56 <p>This is an “anything to PDF” converter, not unlike what you get
57 from <a href="http://createpdf.adobe.com/">Adobe's PDF Online service</a>,
58 but completely free and running entirely on free software. It is also
59 completely without any kind of warranty or uptime guarantees -- I'll
60 try to do my best keeping it up, but in case people start dumping
61 multi-gigabyte jobs etc. on it regularily I might just not be able to
62 do that. Please be nice :-)</p>
64 <p>Note that there is minimal security involved; if I feel like it, I
65 might even take a look at what people are processing. <strong>Do not submit
66 any sensitive data!</strong></p>
68 <p>The converter is currently based on <a href="http://www.ghostscript.com/">GPL
69 GhostScript</a> 8.01 (yes, a bit old); everything is pushed through it in one form or the
70 other (if only for image recompression etc.). The PDF presets match
71 exactly those in GhostScript itself -- see the
72 <a href="http://www.cs.wisc.edu/~ghost/doc/cvs/Ps2pdf.htm#Options">table
73 of options</a> for more details. (Note that anything except “default”
74 will override whatever input parameters there are in the input PostScript
77 <p>The converter can currently handle the following formats, autodetected
78 by file extension <em>only</em>:</p>
81 <li>PostScript (.ps) and Encapsulated PostScript (.pdf), via GS directly</li>
82 <li>Plain text (.txt), via mpage</li>
83 <li>BMP (.bmp), PNG (.png), JPEG (.jpg/.jpeg), XPM (.xpm), via <a href="http://www.imagemagick.com">ImageMagick</a>
84 (somewhat odd image placement for now due to bugs in Debian sarge's
85 version of ImageMagick).</li>
86 <li>Microsoft Word (.doc), Excel (.xls) and PowerPoint (.ppt), via
87 <a href="http://www.openoffice.org">OpenOffice.org</a> (could be
88 slightly sketchy at times, let me know if it's broken).</li>
89 <li>Lots of different programming-related formats (.c, .pl, .js, etc.),
90 via <a href="http://www.vim.org/">Vim</a>.</li>
93 <p>If somebody knows a good way of getting a Gecko-based browser to
94 convert from an URL or HTML file to PostScript (on the command line),
95 please let me know; I'd guess HTML would be the most-wanted format
100 <p>I've had a few requests for the source code, so I put it online in
101 an <a href="http://arch.sesse.net/index.cgi/sgunderson@bigfoot.com--2005/webpdf--mainline--1.0">Arch archive</a>.
102 If you're not familiar with Arch, don't despair, here's how with
103 either tla or bazaar:</p>
107 <pre>tla register-archive sgunderson@bigfoot.com--2005 http://arch.sesse.net/sgunderson@bigfoot.com--2005
108 tla get sgunderson@bigfoot.com--2005/webpdf--mainline--1.0 webpdf/</pre>
110 <h3>Using bazaar</h3>
112 <pre>baz get http://arch.sesse.net/sgunderson@bigfoot.com--2005/webpdf--mainline--1.0 webpdf/</pre>