|
From: | Luis Eduardo Atala Gonzalez |
Subject: | Re: [Swftools-common] Help to use gfx and rfx in python |
Date: | Tue, 29 Jun 2010 17:37:12 -0400 |
27/06/2010 01:12, Ricardo Pedroso write :But I need to customize the swf output, replace some part by specific actionscript.
On Sat, Jun 26, 2010 at 2:11 PM, kgart<address@hidden> wrote:
Hi,To have pdf2swf same behaviour implemented in python, you don't need
I'm a beginner with python and so with swftools python modules.
I would like to make a "pdf2swf" python script that do the same thing
than the pdf2swf command.
This will be a great example of use of gfx and SWF module for python, and
a good start to make a custom output of a swf file.
But I have no idea how to use these modules.
SWF python module
gfx is enough
I don't find anything in gfx that I can use to do this. No ?That's just a begin. SWF script is a wrapper from librxfswf, but there is no documentation either.
I don't find enough Documentation to help me so I try the mailing-list.I'm blank here too, maybe some day I will dig into SWF python module.
At the end of the mail the initial script that correctly run but build an
empty swf.
For example "def fillbitmap(self,outline, image, matrix, colortransform): "
And what are the type of each parameters of every method of theI don't understand what you mean here.
"PassThrough" object ?
What are outline, image, matrix, colortransform ?
Where are can find documentation on those types.
How can I do an image.save("somepicture.jpg") ?You mean that actually, we can't rebuild and complete swf from a pdf with it ?
I have this start : (By the way : drawChar is writing drawchar (lower c) inIt seems to me that gfx module is far from complete, especially the PassThrough.
the gfx tutorial, and it make segmentation fault.)
So it's an "unofficial" module ? Will it be difficult to keep it compatible in future ?
Sometimes ago I did a compatible implementation (and more complete, I guess)
of the gfx python module using cython.
I did it because I want to learn cython and gfx was familiar for me.
I can provide it, if you or anybody wants.
Ricardo
kgart
[Prev in Thread] | Current Thread | [Next in Thread] |