swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] swf2pdf


From: Ricardo Pedroso
Subject: Re: [Swftools-common] swf2pdf
Date: Thu, 20 Jan 2011 11:24:01 +0000

On Fri, Jan 14, 2011 at 11:49 PM, Dmitry Kichenko
<address@hidden> wrote:
> 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?

Sorry for late reply.
As I said before it is possible, but if you want that text be
converted as text it will involve some work.
At the moment doing the changes I said it will render text as shapes,
shapes as shapes and bitmaps
as bitmaps.

Note that not all swfs will work, the one generated by pdf2swf will
for sure work as I state above.

Ricardo

> On 2011-01-14, at 6:23 PM, Ricardo Pedroso wrote:
>
>> On Fri, Jan 14, 2011 at 10:00 PM, Dmitry Kichenko
>> <address@hidden> 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 <address@hidden> wrote:
>>>
>>>> On Thu, Jan 13, 2011 at 7:27 PM, Dmitry Kichenko
>>>> <address@hidden> 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
>>>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]