Thanks to you and Matthias for the help! Currently, it looks like I'm stumbling on the same stone trying to follow either advice. In both cases, when compiling gfx2gfx and pdf2pdf, I get an undefined symbol "gfxdevice_pdf_init", which is defined just fine in lib/devices/pdf.h and included in both gfx2gfx.c and pdf2pdf.c. Just to check, I tried copying the function header right in the body of gfx2gfx but it still complains it doesn't know about it.
I'm certain it's something stupid.. :/ D On 2011-01-20, at 6:46 PM, Ricardo Pedroso wrote: > On Thu, Jan 20, 2011 at 3:44 PM, Dmitry Kichenko > <[email protected]> wrote: >> Thanks for the reply! The "text as shapes" route might be good enough in my >> case. Where should I look to get started? >> > > You should compile a recent version of SWFTools check if you end up > with a tool in src named pdf2pdf. > > Than you should change in src/swfrender.c > gfxdevice_render_init(dev); > to > gfxdevice_pdf_init(dev); > > and in this piece of code also in src/swfrender.c: > > for(t=1;t<=doc->num_pages;t++) { > if(!is_in_range(t, pagerange)) > continue; > gfxpage_t* page = doc->getpage(doc, t); > dev->startpage(dev, page->width, page->height); > page->render(page, dev); > dev->endpage(dev); > page->destroy(page); > break; > } > > Just comment this last break; > > > Ricardo
