]> git.sesse.net Git - webpdf/blob - index.html
Back out the OO.o native file formats. It seems OO.o likes to be really unpredictable...
[webpdf] / index.html
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE
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">
6   <head>
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" />
12   </head>
13   <body>
14     <h1>PDF converter</h1>
15
16     <div class="boxes">
17       <div class="info">
18         <h2>Last updated</h2>
19         <p id="lastupdated">August 7th, 2005</p>
20       </div>
21
22       <div class="nav">
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">&copy; 2005 <a href="mailto:sgunderson@bigfoot.com">Steinar H. Gunderson</a>.</span></p>
27       </div>
28     </div>
29
30     <form method="post" action="createpdf.pl" enctype="multipart/form-data">
31       <table>
32         <tr>
33           <th>File:</th>
34           <td><input type="file" name="input" /></td>
35         </tr>
36         <tr>
37           <th>PDF preset:</th>
38           <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>
45             </select>
46           </td>
47         </tr>
48         <tr>
49           <th colspan="2">
50             <input type="submit" value="Make PDF" />
51           </th>
52         </tr>
53       </table>
54     </form>
55
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>
63
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>
67
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
75       file.)</p>
76
77     <p>The converter can currently handle the following formats, autodetected
78       by file extension <em>only</em>:</p>
79
80     <ul>
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>.</li>
84       <li>Microsoft Word (.doc), Excel (.xls) and PowerPoint (.ppt), via
85         <a href="http://www.openoffice.org">OpenOffice.org</a> (could be
86         slightly sketchy at times, let me know if it's broken).</li>
87       <li>Lots of different programming-related formats (.c, .pl, .js, etc.),
88         via <a href="http://www.vim.org/">Vim</a>.</li>
89     </ul>
90
91     <p>If somebody knows a good way of getting a Gecko-based browser to
92       convert from an URL or HTML file to PostScript (on the command line),
93       please let me know; I'd guess HTML would be the most-wanted format
94       missing. :-)</p>
95
96     <h2>Source code</h2>
97
98     <p>I've had a few requests for the source code, so I put it online in
99       an <a href="http://arch.sesse.net/index.cgi/sgunderson@bigfoot.com--2005/webpdf--mainline--1.0">Arch archive</a>.
100       If you're not familiar with Arch, don't despair, here's how with
101       either tla or bazaar:</p>
102
103     <h3>Using tla</h3>
104     
105     <pre>tla register-archive sgunderson@bigfoot.com--2005 http://arch.sesse.net/sgunderson@bigfoot.com--2005
106 tla get sgunderson@bigfoot.com--2005/webpdf--mainline--1.0 webpdf/</pre>
107
108     <h3>Using bazaar</h3>
109
110 <pre>baz get http://arch.sesse.net/sgunderson@bigfoot.com--2005/webpdf--mainline--1.0 webpdf/</pre>
111   </body>
112 </html> 
113