[Top][All Lists]
[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: |
Fri, 14 Jan 2011 23:23:14 +0000 |
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
>
- [Swftools-common] swf2pdf, Dmitry Kichenko, 2011/01/13
- Re: [Swftools-common] swf2pdf, Ricardo Pedroso, 2011/01/14
- Re: [Swftools-common] swf2pdf, Dmitry Kichenko, 2011/01/14
- Re: [Swftools-common] swf2pdf,
Ricardo Pedroso <=
- Re: [Swftools-common] swf2pdf, Dmitry Kichenko, 2011/01/14
- Re: [Swftools-common] swf2pdf, Ricardo Pedroso, 2011/01/20
- Re: [Swftools-common] swf2pdf, Dmitry Kichenko, 2011/01/20
- Re: [Swftools-common] swf2pdf, Ricardo Pedroso, 2011/01/20
- Re: [Swftools-common] swf2pdf, Dmitry Kichenko, 2011/01/21
- Re: [Swftools-common] swf2pdf, Ricardo Pedroso, 2011/01/21
- Re: [Swftools-common] swf2pdf, Dmitry Kichenko, 2011/01/21