I'd actually be fine if I could keep graphics as graphics when going from SWF to PDF. Also, I suspect some of the SWFs actually do have fonts/type in them rather than graphics. Would a conversion of those from SWF to PDF be possible? On 2011-01-14, at 6:23 PM, Ricardo Pedroso wrote:
> On Fri, Jan 14, 2011 at 10:00 PM, Dmitry Kichenko > <[email protected]> wrote: >> I do mind, unfortunately (for me). Is it possible to preserve the text >> and graphics in vector? > > After looking to the source I think text and shapes are render to shapes > and bitmaps render as bitmaps > > If you want to render text as text you should look at function > textcallback in lib/readers/swf.c > and try to modify it to render text as text. > > I think it will not be trivial, but go for it ;) > > Ricardo > >> D >> >> On 2011-01-14, at 16:45, Ricardo Pedroso <[email protected]> wrote: >> >>> On Thu, Jan 13, 2011 at 7:27 PM, Dmitry Kichenko >>> <[email protected]> wrote: >>>> Looks like I have no luck sending emails to the mailing list today. >>>> Attempt number 3: >>>> Would like to resurrect a bit of an old question.. >>>> >>>> I have a bunch of SWFs created with pdf2swf along with some possibly >>>> authored with Flash (they contain audio clips) but all are otherwise >>>> static 1-frame clips. I would like to convert them to PDF. I have some >>>> knowledge of C, so if you guys aren't too busy, I'd appreciate a few >>>> pointers on how to write swf2pdf. >>> >>> If you don't mind to have each pdf page as an image you can modify >>> swfrender.c like: >>> >>> around line 165, change: >>> >>> gfxdevice_render_init(dev); >>> >>> to >>> gfxdevice_pdf_init(dev); >>> >>> and around line 186 remove the break instruction >>> in the for loop. >>> >>> you will need to have swftools compiled with pdflib, I'm using this: >>> http://www.pdflib.com/download/pdflib-family/pdflib-lite-7/ >>> >>> >>> Ricardo >>
