static int pagepos = 0;
static double caplinewidth = 3.0;
+static int zoom = 72; /* xpdf: 86 */
static void printInfoString(Dict *infoDict, char *key, char *fmt);
static void printInfoDate(Dict *infoDict, char *key, char *fmt);
x1 = x;
y1 = y;
state->transform(x, y, &x1, &y1);
-
+
Unicode u=0;
if(_u)
u = *_u;
msg("<debug> drawChar(%f,%f,c='%c' (%d),u=%d <%d>) CID=%d name=\"%s\"\n",x,y,(c&127)>=32?c:'?',c,u, uLen, font->isCIDFont(), FIXNULL(name));
- x1 = (int)(x1+0.5);
- y1 = (int)(y1+0.5);
-
+ /*x1 = (int)(x1+0.5);
+ y1 = (int)(y1+0.5);*/
+
int ret = swfoutput_drawchar(&output, x1, y1, name, c, u);
}
swffilename = value;
} else if(!strcmp(name, "caplinewidth")) {
caplinewidth = atof(value);
+ } else if(!strcmp(name, "zoom")) {
+ zoom = atoi(value);
} else {
swfoutput_setparameter(name, value);
}
void pdfswf_enablezlib() { pdfswf_setparameter("enablezlib", "1"); }
void pdfswf_setoutputfilename(char*_filename) { swffilename = _filename; }
void pdfswf_insertstop() { pdfswf_setparameter("insertstoptag", "1"); }
+
void pdfswf_jpegquality(int val) {
char tmp[32];
sprintf(tmp, "%d", val);
for(t=0;t<pagepos;t++)
{
currentpage = pages[t];
- doc->displayPage((OutputDev*)output, currentpage, /*dpi*/72, /*rotate*/0, /*doLinks*/(int)1);
+ doc->displayPage((OutputDev*)output, currentpage, /*zoom*/zoom, /*rotate*/0, /*doLinks*/(int)1);
}
}
int pdfswf_numpages()