virtual void startPage(int pageNum, GfxState *state, double x1, double y1, double x2, double y2) ;
void endframe();
- void* getSWF();
+ void* get(char*name);
//----- get info about output device
finish();
return result->save(result, filename);
}
-void* SWFOutputDev::getSWF()
+void* SWFOutputDev::get(char*name)
{
finish();
- return result->get(result, "swf");
+ return result->get(result, name);
}
SWFOutputDev::~SWFOutputDev()
}
}
- if(charid<0) {
+ if(charid<0 && name) {
if(strcasecmp(name, "space")) {
msg("<warning> Didn't find character '%s' (c=%d,u=%d) in current charset (%s, %d characters)",
FIXNULL(name),c, u, FIXNULL((char*)current_font_id), current_gfxfont->num_glyphs);
return ret;
}
-void* swf_output_get(swf_output_t*swf)
+void* swf_output_get(swf_output_t*swf,char*name)
{
swf_output_internal_t*i= (swf_output_internal_t*)swf->internal;
- void* ret = i->outputDev->getSWF();
+ void* ret = i->outputDev->get(name);
return ret;
}