CC=codebot
http://codereview.appspot.com/193069
This commit is contained in:
Mathieu Lonjaret 2010-02-04 02:05:03 -08:00 committed by Russ Cox
parent 2d6da3763e
commit d9e047e5d5
8 changed files with 139 additions and 53 deletions

View file

@ -12,12 +12,6 @@
#include <bio.h>
#include "page.h"
typedef struct PDFInfo PDFInfo;
struct PDFInfo {
GSInfo gs;
Rectangle *pagebbox;
};
static Image* pdfdrawpage(Document *d, int page);
static char* pdfpagename(Document*, int);
@ -97,6 +91,7 @@ initpdf(Biobuf *b, int argc, char **argv, uchar *buf, int nbuf)
d->drawpage = pdfdrawpage;
d->pagename = pdfpagename;
d->fwdonly = 0;
d->type = Tpdf;
if(spawngs(&pdf->gs, "-dDELAYSAFER") < 0)
return nil;