Re: [Swftools-common] more options for swfrender..?
On Mon, Mar 21, 2011 at 6:39 PM, Michael Geary listm...@gearyweb.com wrote: hi folks, can anyone tell me if there are undocumented options for swfrender? It doesn't appear that I can control anything about output resolution, which page(s) are rendered, etc. As it currently appears to work, it's not very useful... You can use, eg: swfrender -X 200 -Y 200 file.swf or swfrender --width 200 --height 200 file.swf Just look at the beginning of src/swfrender.c Ricardo
Re: [Swftools-common] BUG: swfextract with transparent jpeg
On Thu, Mar 17, 2011 at 8:08 AM, Udo Decker rene...@web.de wrote: Hi, However swfrender just renders fine (without alpha channel though), so, in order to get it working, I removed the lines 764-792 (handlejpeg(TAG*tag)), and replaced the code with: try to apply this changes in lib/modules/swfbits.c: https://github.com/rpedroso/swftools/commit/5219125de80361b51a42d0f5ba5da907b083c5d3 and then compile and run swfrender and let me know if the transparency is correctly handled. Ricardo
Re: [Swftools-common] Problems with generated SWF
On Mon, Feb 21, 2011 at 8:07 PM, jo...@winpath.com wrote: First, THANKS so much to Chris, Hans and Michael! I was surprised to get such good advice so quickly! I tried setting the Flash version to 10 but that did not help. Here is the command line I used, pdf2swf -T 10 brochure.pdf -o brochure.swf My test file is only a single page PDF with text, graphics and a hyperlink. The file PDF2SWF produces works fine in a browser and I can load it into a Flash/AS3 project at runtime with no issues. Does that flipbook needs a xml with the pages definition? Are you trying to run local or via HTTP? The flipbook that you have is here in this list: http://activeden.net/searches?term=flipbooktype=files If you tell which one, may help? Ricardo
Re: [Swftools-common] swf2pdf
On Sun, Feb 20, 2011 at 8:18 PM, Dominik Balogh domin...@gmail.com wrote: I have a mult-page SWF file created using SWF2PDF with rfxview.swf Flash page flipping template. I need to decompile it back to a multi page PDF. I've followed the steps mentioned here but only first page is retrieved in the output PDF file with errors in the job log. What's the correct usage suggest by Ricardo then? swfrender 123.swf -o 123.pdf? try with: gfx2gfx file.swf -o file.pdf Ricardo
Re: [Swftools-common] revisiting AVM1 to AVM2 conversion
On Thu, Feb 17, 2011 at 9:34 PM, Michael Geary listm...@gearyweb.com wrote: hi folks, so, this is just killing me. I have found several references to the topic of converting an AVM1 file to an AVM2 file, but i still have not been able to nail this. I have read this: 1) http://www.mail-archive.com/swftools-common@nongnu.org/msg02757.html and this: 2) http://www.mail-archive.com/swftools-common@nongnu.org/msg05977.html I think I know what is happening. When you do: swfdump some-avm2.swf will will get after the header something like: [045] 4 FILEATTRIBUTES as3 in some-avm1.swf you will have or not (FILEATTRIBUTES tag is only mandatory to swf = 8): [045] 4 FILEATTRIBUTES When swfcombine detects that there is actionscript 2 (AVM1) than will refuse to set the as2 bit on FILEATTRIBUTE tag. It probably worked before swftools 0.9.0 You can foul swfcombine with a dirty hack. Just comment this piece of code in lib/rfxswf.c, around line 1655: if(has_version_8_action !has_version_9_action) flags = ~FILEATTRIBUTE_AS3; and now you can do: swfcombine -d -F9 avm1.swf -o avm2.swf Be aware that avm2.swf still can contains actionscript2, but will be ignored by the player. So, i'm going crazy here. Hope not :) Ricardo
Re: [Swftools-common] revisiting AVM1 to AVM2 conversion
Errata: When swfcombine detects that there is actionscript 2 (AVM1) than will refuse to set the as2 bit refuse to set the as3 bit on FILEATTRIBUTE tag.
Re: [Swftools-common] buggy pdf2sw conversion?
2011/2/12 Pablo Rodríguez oi...@web.de: On 02/12/2011 12:10 AM, Chris wrote: On Fri, 11 Feb 2011 21:49:55 +0100 Pablo Rodríguezoi...@web.de wrote: And there is the issues that I cannot explain: why advancing slides is almost negligible and going back takes so long? I think I can. The quote given below is from the page 29 of the SWF File Format Spec v10: snip 'The contents of the first frame are the cumulative effect of performing all of the control tag operations before the ShowFrame Tag ..' which is the point when you see the rendered result on-screen, 'The contents of the second frame are the cumulative effect of performing all of the control tag operations from *the beginning of the file to the second* ShowFrame Tag, and so on.' /snip Now you know why there is a massive delay. It's a bit like having to re- read all the currently read pages of a book, just to assimilate the next one. If it happens to be relatively large book ( file ), then not to put a finer point on it, you are up jolly old this creek without the aid paddle. Thanks for your patient explanation, Chris. But I'm afraid I miss something essential, because I don't get it. If frame displaying is cumulative, advancing frames should be slower than going back to previous frames, because there is (one or more frames) less to read. And this isn't the case. No. As I understand when you go back the flashplayer need to read all the frames starting from frame 1 until the one to be displayed. Do the conversion of the pdf with: pdf2swf -O1 file.pdf or -O2 or -O3 and see if that helps with the backward issue Ricardo
Re: [Swftools-common] AW: drop shadow text error
On Sat, Feb 12, 2011 at 7:03 PM, Chris list_s...@mavdns.net wrote: On Sat, 12 Feb 2011 18:57:06 +0100 Martin Grabmann mar...@grabmann.biz wrote: Should I maybe provide you the pdf source file? By all means. You never know your luck. If really is a troublesome pdf, and you are sure the issue is a direct result of using SWFTools, and not outside interference, then Matthias would probably be interested in taking a look at the pdf. Also, it will help if you provide your SWFTools version: $ pdf2swf -V Ricardo
Re: [Swftools-common] buggy pdf2sw conversion?
On Sat, Feb 12, 2011 at 10:54 PM, Chris list_s...@mavdns.net wrote: On Sat, 12 Feb 2011 21:51:27 + Ricardo Pedroso rmdpedr...@gmail.com wrote: going back to previous frames, because there is (one or more frames) less to read. And this isn't the case. No. As I understand when you go back the flashplayer need to read all the frames starting from frame 1 until the one to be displayed. You read the Format specification page too then? There's more.. ;o) Didn't read that part, I just read parts of it when I need some info. But the quote you post makes sense and explains what is happennig. Do the conversion of the pdf with: pdf2swf -O1 file.pdf or -O2 or -O3 Yes, I've been meaning to ask.. What exactly do those three parameters do Ric? Not documented. They are shortcuts to: O1) -s poly2bitmap O2) -s poly2bitmap -s bitmapfonts O3) -s poly2bitmap -s bitmapfonts -s ignoredraworder For example when using -O2 we can reduce the number of assets for each frame. Each frame will have only one bitmap to display or at worst will additionally have some buttons for the links You can try to convert with -O1 and with no parameters into different files than compare the output of swfdump of each one. Compare for example the frame 18 (the one with a bunch of guns, skulks - could not be more appropriated - just kills some flashplayer's performance :) ) With no parametes there are a bunch of tags just after SHOWFRAME 17 until the SHOWFRAME 18. With -O1 you only have: [01c] 2 REMOVEOBJECT2 removes object from depth 0001 [014] 29929 DEFINEBITSLOSSLESS defines id 0093 image 841x595 (8 bpp) [002]41 DEFINESHAPE defines id 0094 [01a] 5 PLACEOBJECT2 places id 0094 at depth 0001 [001] 0 SHOWFRAME 18 (00:01:07,894) The later is lighter to the player. And when we go backward the player needs to begins on frame1 and process all tags until it reaches the desired frame to be able to give you a correct display. Note that this is just my conclusion after a little research that was triggered by the quote you post from the swf specification. So take it with a little of salt. I may be wrong but I guess I'm not ;) Ricardo
Re: [Swftools-common] buggy audio embedding in swfc-0.9.1?
On Tue, Feb 8, 2011 at 8:58 AM, Chris list_s...@mavdns.net wrote: On Tue, 8 Feb 2011 01:02:16 + Ricardo Pedroso rmdpedr...@gmail.com wrote: 2011/2/7 Pablo Rodríguez oi...@web.de: Is this intended or is it a bug? If this is intended, is there any way to get the old settings working? Just guessing... Is it possible that your 0.9.0 is compile with lame enable and 0.9.1 is not? In any event, why would libmp3lame affect the encoding of a wave file? libmp3lame is a mp3 encoder, so I was thinking that swfc could be taken a wav and automaticaly convert to an mp3. But I take a quick look at the code and it seems that was not the case. A wav will be defined as a wav and a mp3 as a mp3 in the resulting swf. So my guessing was wrong. :-/ Ricardo
Re: [Swftools-common] buggy audio embedding in swfc-0.9.1?
2011/2/7 Pablo Rodríguez oi...@web.de: Hi there, I don't know whether this is already known, but .wav audio embedding in swfc with .sound audio sound.wav outputs bigger files using version 0.9.1 than with previous 0.9.0 version. Using the same .sc file (and the same files), output from 0.9.1 is 98MB instead of 11MB from 0.9.0. Is this intended or is it a bug? If this is intended, is there any way to get the old settings working? Just guessing... Is it possible that your 0.9.0 is compile with lame enable and 0.9.1 is not? Ricardo
Re: [Swftools-common] 100% CPU load with slides with synced sound
2011/2/7 Pablo Rodríguez oi...@web.de: Hi there, I have created a presentation with the same script I generated other Flash presentations (http://www.ousia.tk/freeculture.php and http://www.ousia.tk/orphanworks.php). But I'm experiencing a problem with the presentation I've created. When the presentation is loaded, CPU load is 100% all the time and that renders the presentation itself not very responsive and sync is lost. The script can be found at http://www.ousia.tk/script.sc. I don't think this is the culprit, because it is the same script as the one in presentations that work fine. set fps=1 in your script.sc What is happen is that flashplayer is looping between frame 5 and 6. So make it loop slower. Ricardo
Re: [Swftools-common] Text format changes when scaling SWF file
On Wed, Feb 2, 2011 at 12:34 PM, Dieudon Egstorf d.egst...@publitas.com wrote: Dear Support, I am experiencing a problem with a certain PDF or SWF file. When we convert the PDF (which can be downloaded with the link below) the format of the text of the SWF file is wrong when this is viewed at 100%. When we scale the SWF to 150% the text is displayed correct. The problem is that the prices in the document should be italic. At 100% of the size the prices are not italic. If you can try convert to flash version 7 or 9 : pdf2swf file.pdf -T7 -o file.swf or pdf2swf file.pdf -T9 -o file.swf For me with flash version 7 and 9 it seems correct, but not with flash version 8. I don't know if it is a pdf2swf or a flash player rendering issue. Ricardo
Re: [Swftools-common] Text format changes when scaling SWF file
Looked at the swf file in your zip. The red ( foreground ) text in the large flashed prices is in a different position to white ( shadow ) text. But, this is the case no matter what the zoom status happens to be. I did a simple convert on the supplied pdf, i.e. pdf2swf -o pages.swf pages.pdf Hi Chris, can you try with -T8? Ricardo
Re: [Swftools-common] linknameurl versus internallinkfunction externallinkfunction
2011/1/31 John Georgiou jge...@optimedia.gr Hi all, I use the latest PDF2SWF version 2011-01-23-1815, and I've noticed that: when I use -s internallinkfunction=handleInternalLink -s externallinkfunction=handleExternalLink the functions work great, but when I use -s linknameurl -s internallinkfunction=handleInternalLink -s externallinkfunction=handleExternalLink I can not use the functions anymore is this a bug, or do I make something wrong? Seems a bug to me. If you are able to compile from source, just comment some code. Around line 1877 of lib/devices/swf.c in drawlink function change: if(i-config_linknameurl) { actions1 = 0; actions2 = 0; } to: //if(i-config_linknameurl) { //actions1 = 0; //actions2 = 0; //} swftools-0.9.0 doesn't seems to have this, for me, bug. Ricardo
Re: [Swftools-common] swf2pdf
On Fri, Jan 21, 2011 at 4:54 PM, Dmitry Kichenko dmitrykiche...@gmail.com wrote: 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.. :/ I think pdflib is missing in your system. This one works for me: http://www.pdflib.com/download/pdflib-family/pdflib-lite-7/ After installing I think you need to do: ./configure make Ricardo
Re: [Swftools-common] interesting challenge, willing to pay for a solution
On Wed, Jan 19, 2011 at 4:26 PM, Michael Geary listm...@gearyweb.com wrote: hi folks, i'm in one of those cases where swftools gets me *really* close to a solution, but i have some unusual requirements that interfere. It's entirely possible that what i need isn't really possible, but you guys have already demonstrated some things with swftools that I wouldn't have thought possible, so i'm putting this out there. If a solution could be provided by customizing the source of swftools, i'm willing to pay someone to do that, assuming it doesn't exceed my budget. Here's the situation: I have several PDF books that i'm turning into SWFs. They are children's books, so for the most part, there's a full-page graphic with a couple of text fields on top of it. I need to produce one swf per page, which i know i can do, but I also need all the *text* on the page to be placed into a named movieclip. I need the ability at runtime to toggle the visibility of the text. Unfortunately, it actually goes even one step further. In the lower left and right-hand corners there are page numbers. These text instances should *not* be included in the movieclip that contains the rest of the text on the page. That is, when i turn off the visibility of the text on the page, we don't want to hide the page numbers. I think I can work a solution. It's not very hard. Tell me if you still interested. If you can/want donate to SWFTools it will be excellent. Ricardo
Re: [Swftools-common] swf2pdf
On Thu, Jan 20, 2011 at 3:44 PM, Dmitry Kichenko dmitrykiche...@gmail.com 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
Re: [Swftools-common] swf2pdf
On Thu, Jan 13, 2011 at 7:27 PM, Dmitry Kichenko dmitrykiche...@gmail.com 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
Re: [Swftools-common] PolyToBitmap problem
On Fri, Jan 14, 2011 at 8:35 AM, Dieudon Egstorf d.egst...@publitas.com wrote: Hello there, At the link below you can find a PDF that will crash at the polytobitmap option. I can not find the problem with this PDF and would like to ask if someone else can find the problem with this PDF. If neccesary I can provide more PDF's with the same problem. http://depositfiles.com/files/aleymjn9l I did a test with your pdf and it didn't crashed pdf2swf. What version are you using ? What OS? (Windows, Linux, ...) (32bits, 64bits) Ricardo
Re: [Swftools-common] pdf2swf PDF hyperlinks not being parsed
On Fri, Jan 14, 2011 at 8:32 PM, Max max.nachlin...@gmail.com wrote: Hello, PDF2SWF is a great library! In fact I've only recently run across a PDF which it hasn't parsed perfectly. I've a PDF with a few links that pdf2swf is not parsing, here's the command I'm using to transform the PDF. pdf2swf test.pdf -z -T 9 -G -s linknameurl -o Page_%.swf I've uploaded a dump of the -v output of this command, the resulting SWF files, and the test.PDF file to: http://www.maxnachlinger.com/download/testPdf.zip The links at the top-left of the 1st page (and on each subsequentl page) to www.actionscriptcheatsheet.com and the mailto link to i...@seantheflashguy.com are not being parsed. Thanks for your help and for this great tool! it doesn't seems to be real links, at least I open with evince and and they are normal text. Ricardo
Re: [Swftools-common] swf2pdf
On Fri, Jan 14, 2011 at 10:00 PM, Dmitry Kichenko dmitrykiche...@gmail.com 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 rmdpedr...@gmail.com wrote: On Thu, Jan 13, 2011 at 7:27 PM, Dmitry Kichenko dmitrykiche...@gmail.com 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
Re: [Swftools-common] AS3
On Wed, Jan 5, 2011 at 9:02 AM, Jason ja...@clipclic.com wrote: Hi Ricardo Almost a good call ! Building all that on frame 2 doesn't work. But in each movie clip, I do not get the error if I place the code on frame 2 of the movie clip... Am assuming that when the code is on frame 1, it is called befote the object 'exists'... Any ideas for the movie clips ? Sorry no ideias. Did you already solve the problem? You can always send me the files and I will try to figure it out. But no promises that I can make it. Ricardo
Re: [Swftools-common] git clones and reporting bugs
2011/1/4 Pablo Rodríguez oi...@web.de: I understood that the mailing list was the proper place to report them, but This mailing list *is* the proper place to report. Until further notice. - from Matthias of course ;) this requires that mainly Matthias picks it and fixes it. Anyone can pick it, fix and make the patch available and then it's only a matter of wait and pray for patch be accepted. :-) Ricardo
Re: [Swftools-common] git clones and reporting bugs
2011/1/5 Chris list_s...@mavdns.net: On Tue, 04 Jan 2011 23:18:29 +0100 Pablo Rodríguez oi...@web.de wrote: I have a question on where should I report the bugs. Is there no bug reporting service, such as the one in github, so that bug reports don't get lost in the list? Would the use of a simple tracking/reporting system be a little OTT? It's not a bad ideia but I think it would be another layer of work. Things can be messy in any system if there is no constant maintenance, even more when anyone in the world can register and submit. Just my 2 cents Ricardo
Re: [Swftools-common] FlexPaper - search not working
On Wed, Jan 5, 2011 at 12:08 AM, Tim Berman berman@gmail.com wrote: Hi, I've converted a bunch of pdfs to swfs using pdf2swf on windows. Everything is working great except when I view the PDFs using FlexPaper the search field doesn't work. It says no results despite the word I'm searching for appearing in the text. In the PDF2SWF options I have selected the viewer to be no viewer Flash Version 8, and on the quality tab I have chosen insert full fonts into SWF file to be yes. The text is all selectable and can be copied and pasted fine, but the search doesn't work. Any ideas or pointers? I make a quick test and it worked for me using. I used flexpaper 1.2.4 You have to give us some more information about your versions (flexpaper and swftools at least) and/or provide the problematic PDF. Are you, per chance, converting everything to bitmap? Or are you converting fonts to fonts. Ricardo
Re: [Swftools-common] AS3
I attached a shell script that I use when testing. Forget to attach swfextract_as3_test.sh Description: Bourne shell script
Re: [Swftools-common] New Dev Snapshot - swftools-2010-12-28-2143
On Tue, Jan 4, 2011 at 3:39 PM, Chris list_s...@mavdns.net wrote: On Tue, 4 Jan 2011 01:34:35 + Ricardo Pedroso rmdpedr...@gmail.com wrote: using my clone of swftools repository at https://github.com/rpedroso/swftools/commits/master A recent addition I see Ricardo. Is this git repo intended to mirror/complement the existing git, or perhaps eventually replace it? This is just a clone where I can submit my changes, and then if Matthias accept them he just have to pull them. I will keep my clone up to date with the official one. In fact there is another swftools clone in github from another guy. Just search swftools on github. Anyone can just make a clone. Probably there are more clones out there... But keep in mind that the real one is git://git.swftools.org/swftools Ricardo
Re: [Swftools-common] AS3
On Tue, Jan 4, 2011 at 1:58 PM, Jason ja...@clipclic.com wrote: Hi Ricardo I have got that working. Thanks a BILLION Great. Is that because you patched swfc and swfextract... and the -3 is only needed in the first two ? The -3 is for swfextract only and be aware that it could never be in the official distribution. I will clarify what that patch does. The files patched are swfc.c and swfextract.c swfc.c: the changes are a backport of what is already in the repository, is the inclusion of as3name in .swf command. So you will have that feature in future releases. swfextract: the change is adding a switch (-3) to be able to extract the actionscript 3 code. In other word is to swfextract not ignore SYMBOLCLASS and DOABC tags. I mademy own 'bad' by having two installs... and patching only one. Yep, I could be more clear, but sometimes I have some difficults to explain for 2 reasons: 1. Its very clear to me ;) 2. English is not my mother language. But I have no idea where PEAR installs swftools. you can see where is installed with: $ which swfc $ which swfextract or using type instead of which $ type swfc Ricardo
Re: [Swftools-common] New Dev Snapshot - swftools-2010-12-28-2143
On Tue, Jan 4, 2011 at 5:11 PM, Chris list_s...@mavdns.net wrote: On Tue, 4 Jan 2011 17:02:16 + Ricardo Pedroso rmdpedr...@gmail.com wrote: On Tue, Jan 4, 2011 at 3:39 PM, Chris list_s...@mavdns.net wrote: On Tue, 4 Jan 2011 01:34:35 + Ricardo Pedroso rmdpedr...@gmail.com wrote: using my clone of swftools repository at https://github.com/rpedroso/swftools/commits/master A recent addition I see Ricardo. Is this git repo intended to mirror/complement the existing git, or perhaps eventually replace it? This is just a clone where I can submit my changes, and then if Matthias accept them he just have to pull them. I will keep my clone up to date with the official one. If these clones are to stay, and are kept in sync with the main repo ( that of Matthias ) perhaps a small mention on the wiki as being alternative download sites, might be in order? Sincerely, I don't know if this should or not end up in wiki. I don't mind either. I leave that up to you :) But if you want to include it - regarding to my own clone - just mention that this is someone else clone/fork/branch/whatever that make sporadic contributions to swftools. But for sure it is a convenient way of viewing commits history. The other clone that I found on github is a little outdated. Regards, Ricardo
Re: [Swftools-common] AS3
On Tue, Jan 4, 2011 at 7:33 PM, Jason ja...@clipclic.com wrote: One last remaining tweak that I will sleep on tonight (it is 11.30 pm here) This error in debug player : TypeError: Error #1010: A term is undefined and has no properties. at audience_fla::Symbol4_9/frame1() All the movie clips extracted play fine and respect the code... But the error appears on the extracted files, but not on the original. This last sentence I think it should be read like, But the error appears on the combined files, but not on the original, right? Try to include them in frame 2, something like this: .flash filename=as3-allclips.swf background=white bbox=300x250 version=9 fps=24 .frame 2 .swf animClip0 as3-clip0.swf as3name=as3_fla.animationClip_1 .put animClip0 .swf animClip1 as3-clip1.swf as3name=as3_fla.textClip_3 .put animClip1 .swf animClip2 as3-clip2.swf .put animClip2 .end Or at least, delay the offending one into frame 2 or so. See if that helps. Ricardo
Re: [Swftools-common] AS3
On Mon, Jan 3, 2011 at 6:37 AM, Jason ja...@clipclic.com wrote: Hi Ricardo I hadn't seen your eply - I wasn't getting the mailing list emails. Thought everyoine was on holiday. Here are the files The FLAs and swf are clearly marked AS2 and AS3 The 3 clips in each shoudln't loop as there is a stop action on the last frame of each. As you can see, those extracted from an AS2 file work fine. extracted AS2 file, when combined, ignore the stop actions If you combine them in flash version 8 they should work correctly too. But I'm guessing that you are combine them into flash =9 extracted AS3 files ignore the stop action extracted AS3 file, when combined, ignore the stop actions You are right, swfextract doesn't extract as3 code. That's why you lose those stops. Not sure what you can make of this. I did some little hacking in swftools-0.9.1 source and I was able to correctly combine them. But I'm not sure about the robustness of this hack. What I've done was, to let swfextract extract the as3 code and symbols. But those code and symbols will be repeated in all extracts and when combined again it will be repeated too. You can check this with: swfdump -a file.swf and then search for tags SYMBOLCLASS and DOABC I am a long-term Flash developer. But not so good at messing with *nix installs ! If you system has all the necessary dependencies, it is as simple as: $ tar xxvf swftools-0.9.1.tar.gz $ cd swftools-0.9.1 $ ./configure $ make You don't need to make install. All the tools will be in the swftools-0.9.1/src directory Then, if everything went ok, download the patch attached into swftools-0.9.1 and do: $ patch -p0 swfextract_as3.patch $ make And finally you can combined them with swfc: .flash filename=as3-allclips.swf background=white bbox=300x250 version=9 fps=24 .swf animClip0 as3-clip0.swf as3name=as3_fla.animationClip_1 .put animClip0 .swf animClip1 as3-clip1.swf as3name=as3_fla.textClip_3 .put animClip1 .swf animClip2 as3-clip2.swf .put animClip2 .end I think I didn't forget anything. Regards, Ricardo === modified file 'src/swfc.c' --- src/swfc.c 2010-12-11 01:47:25 + +++ src/swfc.c 2011-01-03 23:59:22 + @@ -2058,7 +2058,7 @@ return 1; } -void s_includeswf(const char*name, const char*filename) +void s_includeswf(const char*name, const char*filename, const char*as3name) { int f; SWF swf; @@ -2128,6 +2128,13 @@ swf_FreeTags(swf); s_addcharacter(name, id, tag, r); + +if(*as3name) { +tag = swf_InsertTag(tag, ST_SYMBOLCLASS); +swf_SetU16(tag, 1); +swf_SetU16(tag, id); +swf_SetString(tag, as3name); +} incrementid(); } SRECT s_getCharBBox(const char*name) @@ -3847,9 +3854,10 @@ const char*name = lu(args, name); const char*filename = lu(args, filename); const char*command = lu(args, commandname); +const char*as3name = lu(args, as3name); if(!strcmp(command, shape)) warning(Please use .swf instead of .shape); -s_includeswf(name, filename); +s_includeswf(name, filename, as3name); return 0; } @@ -4163,7 +4171,7 @@ {{flash, c_flash, bbox=autocrop background=black version=6 fps=50 name= filename= @compress=default @change-sets-all=no @export=1 @mainclass=}, {frame, c_frame, n=plus1 name= @cut=no @anchor=no}, // import type stuff - {swf, c_swf, name filename}, + {swf, c_swf, name filename as3name=}, {shape, c_swf, name filename}, {jpeg, c_image, name filename quality=80%}, {png, c_image, name filename}, === modified file 'src/swfextract.c' --- src/swfextract.c 2010-12-11 01:47:25 + +++ src/swfextract.c 2011-01-03 23:37:23 + @@ -57,6 +57,8 @@ int numextracts = 0; char *outputformat = NULL; +char as3code = 0; + struct options_t options[] = { {o,output}, @@ -191,6 +193,10 @@ outputformat = val; return 1; } +else if(!strcmp(name, 3)) { +as3code = 1; +return 0; +} else { printf(Unknown option: -%s\n, name); exit(1); @@ -408,6 +414,9 @@ if(!used[swf_GetPlaceID(srctag)]) copy = 0; } +if(as3code (srctag-id == ST_DOABC || srctag-id == ST_SYMBOLCLASS)) { +copy = 1; +} if(copy) { TAG*ttag = (TAG*)malloc(sizeof(TAG));
Re: [Swftools-common] New Dev Snapshot - swftools-2010-12-28-2143
On Mon, Jan 3, 2011 at 8:35 PM, JL jle...@gmail.com wrote: Hello, I see that a recent DEV Snapshot (swftools-2010-12-28-2143 ) was recently posted. Is there any documentation or list published that details any changes/fixes? I took a peak at the Help listing and did not see anything that stood out as being different from latest stable release. The best bet, I guess will be clone the git repository: $ git clone git://git.swftools.org/swftools and then: $ git log to see commits history. Alternatively you can check those commits history in a more friendly way using my clone of swftools repository at https://github.com/rpedroso/swftools/commits/master I know it's not the same as having a summary of the changes, but better than nothing. And don't forget you have the source ;) Ricardo
Re: [Swftools-common] AS3
On Mon, Dec 27, 2010 at 4:07 PM, Jason ja...@clipclic.com wrote: Hi My second question is : Using sc I have imported swf upto AS2, and had the code work fine. .flash background=blue bbox=160x600 version=10 .swf animClip0 adExample_animationClip.swf .put animClip0 x=0 y=0 scalex=54% scaley=54% .swf textClip0 adExample_textClip0.swf .put textClip0 x=0 y=0 scalex=54% scaley=54% .swf textClip1 adExample_textClip1.swf .put textClip1 x=80 y=550 scalex=54% scaley=54% .end The above code works a treat When I swirch the code in adExample_animationClip.swf to AS3, it simply ignores the code... Is AS3 supported ? If so, what am I missing ? Hi, I'm not sure about this but I think you will need an as3name in your .swf command. Something like this: .swf animClip0 adExample_animationClip.swf as3name=blahblah But that as3name is not available in current stable version nor in current development snapshot. You will have to wait for the next release, or you have to patch your copy, or grad the git version (not always easy to compile) I did a quick test with an as3 swf produced with Adobe Flash (I think - I grab it from somewhere) and with an as3 made with swfc - it worked. To be sure, if you could send some small and working samples, I will be glad to test it. Ricardo
Re: [Swftools-common] Character problem in PDF2swf
On Fri, Dec 17, 2010 at 11:32 AM, Dieudon Egstorf d.egst...@publitas.comwrote: Dear reader, We are experiencing some problems with a certain font. For some reason the A character in the PDf is converted wrong with PDF2swf. The font is HelveticaNeueLTPro-MdCn and is embedded in the PDF. My guess is that you are exporting to flash version 8 or 9. If you do not require those flash versions try to export to flash version 7 or 6. In current swftools git version, exporting to flash 8 or 9, the problem seems to be fixed. Regards, Ricardo
Re: [Swftools-common] SWFTools Media Player 0.6 beta
On Fri, Dec 17, 2010 at 5:06 PM, Chris list_s...@mavdns.net wrote: It lives... ;o) http://wiki.swftools.org/index.php/SWFTools_Media_Player I Chris, I took a quick look and I like what I see. Of course there is always, as everything else in our life, room for improvements specificaly the cosmetic one. But I can understand that you may have some troubles at graphic/layout design, because I have it too, more than I would like. I propose that if someone has some skills in graphics arena, that donate a little time to create some nice widgets. Chris I appreciate your efforts... Regards, Ricardo
Re: [Swftools-common] pdf2swf skip images
On Sat, Dec 11, 2010 at 4:49 AM, Chris list_s...@mavdns.net wrote: On Sat, 11 Dec 2010 02:26:45 + Ricardo Pedroso rmdpedr...@gmail.com wrote: Is it possible to convert a pdf to a swf and to ignore all images contained in the pdf ? No, but... it can be easily done developing a filter. A filter is a feature that appear only in version 0.9.1 and I think it's not documented. In which case, perhaps a few lines posted at an appropriate position on the SWFTools wiki, would be a very good idea? Yep, but it should go in first place into pdf2swf -h. I don't know why it's not in pdf2swf help page. One reason could be that Matthias don't have the feature in the state he wants, so don't officially support - I don't know... just guessing. By the way I just found the filters when trying to solve Guillaume Simard specific problem. I just found also that there is a textonly parameter that is already in the development snapshots but not in 0.9.1 that can be used like this: pdf2swf -s textonly doc.pdf It will render only the text. Ricardo
Re: [Swftools-common] pdf2swf skip images
On Fri, Dec 10, 2010 at 7:58 PM, Guillaume Simard gui...@gmail.com wrote: Hi, Is it possible to convert a pdf to a swf and to ignore all images contained in the pdf ? No, but... it can be easily done developing a filter. A filter is a feature that appear only in version 0.9.1 and I think it's not documented. if you are able to compile your own copy of swftools I can send you a patch against 0.9.1. The patch simply creates a new filter to do what you want. If you know a little of C you can do it yourself. Just check lib/filters/* and lib/gfxfilter.h and lib/gfxfilter.c Ricardo
Re: [Swftools-common] File contains pbm pictures (masked)
On Mon, Nov 15, 2010 at 2:17 PM, Mike Huffman mhuff...@astecunderground.com wrote: I’m having a problem converting pdf to swf. I get an error that “File contains pbm pictures (masked), . . .file not created.” can you copypaste the relevant output? What swftools version are you using? can you provide the offending pdf or one with similar problems? Regards, Ricardo
Re: [Swftools-common] bug embedding video SWF?
2010/10/26 Pablo Rodríguez oi...@web.de: Hi there, Matthias kindly posted in this list an example on how to embed an SWF video into another SWF (thread starting from http://lists.nongnu.org/archive/html/swftools-common/2008-11/msg00148.html), which I use as: .flash filename=this-land.swf bbox=841x545 version=7 fps=50 background=#002600 .swf movie thisland.swf .frame 1 .put movie .stop movie .action: movie._x = (Stage.width - movie._width) / 2; movie._y = (Stage.height - movie._height) / 2; .end .frame 2 .del movie .end I have used this method to embed two movies at the presentation at http://www.ousia.tk/freeculture.php. But with the following movie with sound (http://www.ousia.tk/thisland.swf), compiling the code above, the output doesn't play (http://www.ousia.tk/this-land.swf). You are stopping the movie, just change: .stop movie to: .stop You can try code below, too: .flash filename=this-land.swf bbox=841x545 version=7 fps=50 background=#002600 .swf movie thisland.swf .sprite container .put movie .action: movie._x = (Stage.width - movie._width) / 2; movie._y = (Stage.height - movie._height) / 2; .end .end .frame 1 .put container .stop .end or: .flash filename=this-land.swf bbox=841x545 version=7 fps=50 background=#002600 .swf movie thisland.swf .frame 1 .put movie .action: movie._x = (Stage.width - movie._width) / 2; movie._y = (Stage.height - movie._height) / 2; .end .end Regards, Ricardo
Re: [Swftools-common] Re: SWFTools Media Player..
On Thu, Oct 21, 2010 at 10:02 AM, Chris list_s...@mavdns.net wrote: On Fri, Oct 8, 2010 at 5:43 PM, Chris addr...@hidden wrote: Cheers Ricardo. So far there's approx 350 lines of scrappy swfc/as2 code that does the job. Really needs reworking/trimming to make it sensible, as they were originally my doodlings with sound, etc. I'm currently working on the graphics ( not my best forte, that is if I have one ), as someone has kindly donated a sprite sheet. Let's see how I get on with it, eh? I did have a page hold button in the player for incrementally loading a document-style swf, however that seems like overkill, i.e. adding one more thing that a 'media player' should'nt really have, especially since it is probably duplicating what you've already done. If you want to crit the code, and tell me where I've been ( or am being ) silly, you're more than welcome! ;o) Hi Chris, Where can I find the code? Ricardo
Re: [Swftools-common] XPDF vulnerability
On Tue, Oct 19, 2010 at 8:25 PM, Matthias Kramm matth...@scribd.com wrote: I've been thinking about the Fedora and Debian issues. Another option for swftools to get re-included would be to split the project in two, one (swftools) for all the tools that actually have something to do with SWF/Flash, like wav2swf, swfc, as3compile etc., and one for all the document conversion tools like swfrender, gfx2gfx, pdf2swf, pdf2pdf etc. Obviously, there's some overlap, but xpdf would only be needed in the latter project. This separation make sense to me. This way linux distros can include in their repos the SWF/Flash part without xpdf concerns Probably doesn't make any difference but you have my vote on this. Ricardo
Re: [Swftools-common] Re: SWFTools Media Player..
On Fri, Oct 8, 2010 at 5:43 PM, Chris list_s...@mavdns.net wrote: Two saying Yea, is good enough. It'll force me to lean a bit more about the two different 'flash' formats as I brush off the increasing rustiness, and who know, maybe we'll end up extending SWFTools further. Make me the third ;) I will help in all I can. Ricardo
[Swftools-common] gpdf2swf feedback
I would like to have some feedback about gpdf2swf. I plan to restart working on it again, so I would like to make a TODO list as a guide. Ricardo
[Swftools-common] Another SWF Viewer
I was teaching myself as2/swfc a little bit more and for that I establish a real objective: Make a swf viewer for pdf2swf ... -o out%.swf converted docs, in other words a swf file per pdf page. I think the viewer (I call it progressive_viewer) has reached at a point that can be usefull for other, at least to be used as a guide to as2/swfc. I need some more testing and, as usual, some feedback. You can try a demo in: http://r-pedroso.appspot.com/ The code, you can checkout from svn checkout http://rmdp.googlecode.com/svn/trunk/progressive_viewer progressive_viewer or just look at it at: http://code.google.com/p/rmdp/source/browse/ Ricardo
Re: [Swftools-common] Possible bug with as3compile?
On Mon, Aug 16, 2010 at 9:56 PM, Bryan Ross bryanjamesr...@gmail.com wrote: I'm no longer on my Linux box. I can post the version tomorrow morning, but it's whatever's in the Lucid repositories. Lucid as 0.9.0. It was corrected after this release. You may want to compile 0.9.1 Ricardo
Re: [Swftools-common] swfc video
There is anything else possible here? Any help will be much appreciated. Try this: .flash filename=video_as2.swf fps=24 bbox=900x500 background=grey version=8 .action: video_nc = new NetConnection(); video_nc.connect(null); video_ns = new NetStream(video_nc); video_holder.attachVideo(video_ns); video_ns.play('600.flv'); video_holder._x=50; video_holder._y=50; .end .video video_holder 400 400 .put video_holder .end
Re: [Swftools-common] swfc video
On Tue, Aug 3, 2010 at 10:49 PM, iosif budulai ibudu...@yahoo.ca wrote: Hi, I am trying to get .flv video streaming to work with swfc. .flash filename=video.swf fps=24 bbox=900x500 background=grey version=8 .action: video_nc = new NetConnection(); video_nc.connect(null); video_ns = new NetStream(video_nc); video_holder = new Video(); video_holder.attachNetStream(video_ns); video_ns.play('600.flv'); video_holder._x=50; video_holder._y=50; .end .end What I get working from this is only the sound. If I remove all the lines with video_holder the result is the same, only sound. The problem I guess here is the video object. What I found out is that even in Adobe Flash you can't create the video object only with actionscript 2: http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=Part3_Using_V2_Components_1.html Video streaming with flex: http://livedocs.adobe.com/flex/201/langref/flash/media/Video.html#includeExamplesSummary Ming videostreaming example: http://www.gazbming.com/ Here I can't find the correspondence of this line $stream = new SWFVideoStream(); in swfc. I am not sure this feature exist in swfc and I am not sure this can be created with actionscript 2 alone. There is any solution to this or any work around? Regards, Iosif Jens Michel Gens have a bunch of swfc samples (http://jeanmichel.gens.free.fr/swfc/) This one is for video, but in as3 - http://jeanmichel.gens.free.fr/swfc/video.sc Ricardo
Re: [Swftools-common] Trouble when gfx rendering a protected PDF file. Application exits.
On Wed, Jul 21, 2010 at 9:11 PM, Chris Pugh nisse...@googlemail.com wrote: Hi, Unfortunately I'm not familiar with the gfx module, however here's a couple of suggestions, from taking ab brief look at, http://www.swftools.org/gfx.html Use, getInfo(...) Like Chris pointed, use getInfo See example code attached. It's a modification of your sample. Ricardo import sys import gfx class PDFProtected(Exception): pass doc = gfx.open(pdf, sys.argv[1]) if doc.getInfo(oktocopy) == no: if doc.getInfo(oktoprint) == yes: doc.setparameter('asprint', '1') else: raise PDFProtected(PDF does not allow copy nor print) text = gfx.PlainText() for pagenr in range(1,doc.pages+1): page = doc.getPage(pagenr) text.startpage(page.width, page.height) page.render(text) text.endpage() text.save(document_fulltext.txt) length = len(open(document_fulltext.txt, 'r').read()) print length
Re: [Swftools-common] flex paper viewer
On Tue, Jun 29, 2010 at 1:34 PM, Gunivortus Goos gunivortus.g...@boudicca.de wrote: Hello, might be, this is for Ricardo.. tried the flex paper viewer local.. When it is on the screen and I click at the full screen icon it the top, just an empty new browser window is opened. Going back to the settings for this viewer, nothing is changed in the output when I change the 'scale' or the 'fit page on load' option. It seems, nothing makes the viewer bigger. I suppose your are talking about gpdf2swf I will take a look this weekend. Regards, Ricardo
Re: [Swftools-common] Help to use gfx and rfx in python
On Tue, Jun 29, 2010 at 6:33 PM, kgart kg...@free.fr wrote: 27/06/2010 01:12, Ricardo Pedroso write : 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 So it's an unofficial module ? Will it be difficult to keep it compatible in future ? It's more a private module. It never went out of my hard drive ;) If you know python and love python I think it will be not to hard to maintaining. - Cython is very python like. Ricardo
Re: [Swftools-common] Help to use gfx and rfx in python
On Tue, Jun 29, 2010 at 10:37 PM, Luis Eduardo Atala Gonzalez luis.at...@gmail.com wrote: I was also trying it, and it is not finished or documented very well, Ricardo, could you provide it somewhere See attachment. I only tested in Linux. I dont know if it's your platform. If not you are on your own ;) You wil need cython. I used the cython-devel, more precisely this revision: http://hg.cython.org/cython-devel/rev/c51d72368335 Steps to compile: - edit setup.py and change SWFTOOLS_DIR variable accordingly - python setup.py build_ext --inplace you will need to previous compile swftools and have libgfxpdf.a, libgfxswf.a, librfxswf.a, libgfx.a, libocr.a, libbase.a in SWFTOOLS_DIR/lib Then you can go to tests directory and run some tests. Note that I've done this to learn cython. If you have troubles, just ask. Ricardo gfx.tar.gz Description: GNU Zip compressed data
Re: [Swftools-common] Help to use gfx and rfx in python
On Sat, Jun 26, 2010 at 2:11 PM, kgart kg...@free.fr wrote: Hi, 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. To have pdf2swf same behaviour implemented in python, you don't need SWF python module gfx is enough I don't find enough Documentation to help me so I try the mailing-list. At the end of the mail the initial script that correctly run but build an empty swf. I'm blank here too, maybe some day I will dig into SWF python module. And what are the type of each parameters of every method of the PassThrough object ? I don't understand what you mean here. I have this start : (By the way : drawChar is writing drawchar (lower c) in the gfx tutorial, and it make segmentation fault.) It seems to me that gfx module is far from complete, especially the PassThrough. 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
Re: [Swftools-common] FlashExtractor
On Mon, Jun 21, 2010 at 9:19 AM, Chris Ohmstede chrislinu...@gmail.com wrote: Hi, I've been using swfextract for a while and, being lazy as I am, finally wrote a gui front end for it so I won't have to write any more scripts. In the spirit of open source, I've released it onto sourceforge. Here's the link if you're interested: https://sourceforge.net/projects/flashextractor/ I didn't tried yet, but I will. Many thanks for sharing. I pretty much use Linux exclusively any more so that's the only OS I've used it in. I suppose it would work in any OS with GTK+ and gnome libraries installed but no guarantees. Anyway, hope you find it useful. I also have Linux as my primary OS. But if you want to reach a wider audience you probably should go with, for eg, wxWidgets or FLTK (both c++). In this way you could reach also Mac OS X and Windows users. Just my 2 cents Regards, Ricardo
Re: [Swftools-common] Problem converting a pdf to swf
2010/6/24 John Georgiou jge...@optimedia.gr: Hi all, I have the attached PDF page127.pdf from a customer of mine. I tryied all the possible command line switches to convert it to swf, but the result is problematic This pdf is somewhat strange, because I could open it sucessfull only with adobe reader. I tried with evince, xpdf (chrashed) and foxitreader Ricardo
Re: [Swftools-common] Problematic PDF
On Mon, Jun 14, 2010 at 1:14 AM, Aaron Greenspan aar...@thinkcomputer.com wrote: Ricardo, I'm positive I'm using 0.9.1. I just downloaded and installed it. -rw-r--r-- 1 root root 2649789 Jun 5 23:24 swftools-0.9.1.tar.gz You don't need to install to test it. Can you just do: $ cd swftools-0.9.1 $ ./configure $ make $ src/pdf2swf /path/to/3348.pdf It will create a 3348.swf in the current directory. Can you send the resulting swf. I may be wrong, but the one that you made available seems to be created, at very best, with swftools 0.8.1 Ricardo
Re: [Swftools-common] Thank you and one quesstion
On Sun, Jun 13, 2010 at 9:35 AM, Roohullah Afzali r.afz...@gmail.com wrote: Hi, First at all I should thanks for creating, developing and sharing SWFTools software. but i have a question that is when SWFTools Supported Flash Player 10 (or support TLF Text Component) because my language is 'Dari' need UTF-8 support. I think swftools already has utf8 support. Can you be more specific and explain what is not working for you? Ricardo
Re: [Swftools-common] Problematic PDF
On Sun, Jun 13, 2010 at 10:31 PM, Aaron Greenspan aar...@thinkcomputer.comwrote: Hi, I've tried to convert this PDF to an SWF with each version up to 0.9.1 now: http://www.thinklink.com/shared/logos/3348.pdf No matter how hard I try, it loses the left-most rectangle. Are you sure that you tried with swftools 0.9.1? I tried with 0.9.0 and 0.9.1 and the left most rectangle disappears only with 0.9.0 With 0.9.1 everything seems ok. Ricardo
Re: [Swftools-common] each page in version flash 9
On Fri, Jun 4, 2010 at 6:10 PM, Cyril D. web...@gmail.com wrote: excellent ! thanks a lot Ricardo, i'm waiting this... There is another snapshot release. Can you try it ? Ricardo 2010/6/4 Ricardo Pedroso ricardo.pedr...@netvisao.pt On Fri, Jun 4, 2010 at 8:14 AM, Cyril D. web...@gmail.com wrote: Hi, thanks to the last release, the gui gpdf2swf allow now to create a swf per page, and that is just super ! I don't know who i must thanking, but thanks, thanks, thanks ! Otherwise, I've just a little problem with this function : if i set flash player 9 in the option window, than i choose One Page per File in the save menu and clicking all pages, gpdf2swg doing the job well except one thing : the first swf is in flash 9 format, but all the other are in flash 6. Thanks for reporting. I didn't notice before. I had prepare a patch to solve it. I will send it to Matthias I most likely will be fix in next release. If you detect some other issues, please report asap. According to Matthias a stable release is to be available soon and it will be good sort out all issues we can. Regards, Ricardo
Re: [Swftools-common] each page in version flash 9
On Fri, Jun 4, 2010 at 8:14 AM, Cyril D. web...@gmail.com wrote: Hi, thanks to the last release, the gui gpdf2swf allow now to create a swf per page, and that is just super ! I don't know who i must thanking, but thanks, thanks, thanks ! Otherwise, I've just a little problem with this function : if i set flash player 9 in the option window, than i choose One Page per File in the save menu and clicking all pages, gpdf2swg doing the job well except one thing : the first swf is in flash 9 format, but all the other are in flash 6. Thanks for reporting. I didn't notice before. I had prepare a patch to solve it. I will send it to Matthias I most likely will be fix in next release. If you detect some other issues, please report asap. According to Matthias a stable release is to be available soon and it will be good sort out all issues we can. Regards, Ricardo
Re: [Swftools-common] Poly2bitmap problems - images disappears!
2010/5/13 Petr Hájek hajek_p...@centrum.cz: Hi, thanks a lot for your answer. I don't understand it! I'm using this version (http://swftools.org/swftools-2010-02-06-1900.exe), in windows, and almost everything disappears. Here you can look on my results: http://www.thdesign.eu/_catalogue/pages/ I don't know where is the problem - look at page 5 - there is almost empty page :( I try it on Win Vista, on Win7, and on WinServer 2008 and everywhere same problems. Here are my results with the same command line, I just removed the -p switch two process all pages: http://69.64.92.113/_catalogue/ but again I'm using a pdf2swf from git repository on linux and everything seems fine. I tried with an older version of swftools (2009-04-01-0957) on linux and it seems that everithing is ok, too. Don't know what can be happen to you. Ricardo
Re: [Swftools-common] Poly2bitmap problems - images disappears!
2010/5/12 Petr Hájek hajek_p...@centrum.cz: Hi, I've big problem with conversion pdf2swf using poly2bimap. Lots of images and vector graphic disappears! I use this code (for example): pdf2swf.exe -p1-5 -T9 -f -t -s zoom=72 -s jpegquality=75 -s ignoredraworder -s poly2bitmap -s disablelinks catalogue.pdf -o page_%%.swf on this catalogue: http://www.thdesign.eu/_catalogue/ Run pdf2swf a than look on swf pages 2-5, almost everything disappears. :( What version of swftools are you using? I run the same command on the same pdf and nothing disappear, at least to my eyes. I tested with git version of swftools in linux. if you are not using the latest development version, give it a try (http://swftools.org/swftools-2010-02-06-1900.exe) Ricardo
Re: [Swftools-common] Wishes for the GUI
On Fri, May 7, 2010 at 5:07 PM, Gunivortus Goos gunivortus.g...@boudicca.de wrote: Hi! This may be in particular for Ricardo and Matthias, and for Chris, with who I just had a short private mail exchange It was Chris, who motivated me, to post this to the list. :-) You don't have to be afraid of posting ;) There are a few viewers in the GUI, none of them really sophisticated. They do not really fit to the design of my sites and they don't have options to change parts of the design. Therefore I like to have the options to - see a more book-alike use of the viewer (page flipping) - the options to choose for one or two pages at the screen (as a book) - option to (de)activate a page flipping sound - change the colors of the viewer-frame - change text, size, form and colors of the buttons - have an option to put on or off some background music - the option for smooth zooming with the mouse It seems to me that all of this points are in the scope of a viewer and not directly in the scope of gpdf2swf conversion tool. If you know any swf viewer that can be used, let me know. I can try to add it to gpdf2swf. Then, for the html page which the GUI creates, I like to have the option to add some html things, before the page is created. again to make it fit to the design of a site. You can modify the rfx template by editing the viewers/rfx.py and change the string variable html_template. You just have to pay attention when change the template to some vars in the form of %(var_name)s I can guide you in this task if you need. I'm asking this here, because I'm not a coder, I'm a real Windows user, using preferrably WYSIWYG tools and wizards. (I've quite some step-by- step flash wizards. to create photoalbums, newstickers,, menu builders, swf/flv streaming, textscrollers and complete site designers). But I do promote the tools I like. :-) Hope to get positive resonance. If you have some spare time, you can make some testing, times to times and report any misbehavior, I will fix them. Also I would like to get some features requests about gpdf2swf tool itself, not about viewers. Regards, Ricardo
Re: [Swftools-common] SWF file size and quality
On Tue, May 11, 2010 at 12:28 AM, Ian Scott ian.sc...@manoova.com wrote: I knew it wasn't pdf2swf's fault given the web agency's track record. I'm wondering what they could have screwed up while integrating and setting up pdf2swf within the application so that I can have a more efficient conversation with them. It must be something pretty serious in order to blow up the file size by a factor 10 while reducing image quality. Just a hint, but you could check: if the swfs that the web app produce are compressed. You can analyse the swf's with swfdump and swfextract. Probably you can find where are the diferences. Also, if you can post some swf examples for both cases it will be easier for someone assist you. Ricardo
Re: [Swftools-common] gpdf2swf : export each page to an individual swf
On Tue, May 4, 2010 at 3:47 PM, Cyril D. web...@gmail.com wrote: Hi, i just would like to know if it's possible to create a swf for each page of a pdf with Gpdf2swf GUI (last release 2010-02-06) ? i'm not able to run this in command line, i'm a graphiste.. ;) Thanks you very much for your help, and thanks Matthias for you dev Such feature is not implemented in the gui version. You may, like Chris said, select a page and convert, select another one and convert, and so on, but it's not practical if you have a lot of pages in the document. I've prepared a hack using the app plugin infrastructure, you can find it attached that will convert each page in a swf file. Like I said it's a hack and not very well tested. Just copy the file into the SWFTools\gpdf2swf\viewers and restart the app. Then go to edit-options-viewer and select the single pages. Converting the document you will end up with each page in a separated swf file. You will end up with the normal each page in a frame( all pages in a swf file), too. It's a limitation that cannot be avoided without change some core funcionality. Be aware, also, that the quality options are only applied to the normal each page in a frame. Let me know if it worked for you. If someone else try, I would like to have some feedback. Regards, Ricardo #!/usr/bin/env python # -*- coding: UTF-8 -*- # # gpdf2swf.py # graphical user interface for pdf2swf # # Part of the swftools package. # # Copyright (c) 2008,2009 Matthias Kramm kr...@quiss.org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ from wx.lib.pubsub import Publisher from gui.fields import Choose import time import gfx order = 0 type = core name = uSingle Pages desc = (u'Each PDF page will be one SWF file. Also, the `normal` single ' udocument, each page in a seperate frame, will be created.\n uPlease not that the quality options will be applied only to the `normal` single document.) swf_options = [ Choose(flashversion, uFlash version:, (u4, 4, u5, 5, u6, 6, u7, 7, u8, 8, u9, 9), 2), Choose(transparent, uMake SWF file transparent:, (uno, 0, uyes, 1), 0), ] viewer_options = [] from gui.plugin import Plugin class SinglePages(Plugin): def __init__(self, swf, filename): for opt in swf_options: swf.setparameter(opt.name, str(opt.value)) self.__swf = gfx.SWF() self.__filename = filename Publisher.subscribe(self.page_saved, SWF_PAGE_SAVED) for opt in swf_options: self.__swf.setparameter(opt.name, str(opt.value)) def page_saved(self, message): form = '.%%0%dd.swf' % len(str(message.data['pages'])) filename = self.__filename.replace('.swf', form % message.data['pagenr']) self.__swf.save(filename) self.__swf = gfx.SWF() for opt in swf_options: self.__swf.setparameter(opt.name, str(opt.value)) def init(swf, filename): return SinglePages(swf, filename) from wx.lib.embeddedimage import PyEmbeddedImage preview = PyEmbeddedImage( iVBORw0KGgoNSUhEUgAAAGYAAABmCAIAAAC2vXM1AXNSR0IArs4c6QAADGNJREFU eNrtXX1MFEcU36/74LwDvByNnIqaFL9ORU2MEUNtE6AVIxWjFuN30ESNTWtiIhpBTVDSNk2j Jq3RfvxhNPEPg2kaVFo1ChgNKQo5vURRMIBIICdwX9zt7Gz/eHZc9/aWQ45DcN8fl7nZudmZ t++9+b33ZucoSqN3IPFtwhhjjKFAPiOR9GooFBJFsaCgYGyzi4t5j8FgcNOmTTt37kQIMQxD URRN0/BgaJom/KUoimEYuCR9eLIaqIQC/DxSA7hKWkZqI72LtDK8K+ntBEFgWbaxsXH37t2x ZxnG+OOPP87MzBx78mU2m4dFymiaDgQCgiAghFiWlT1bQRDu3bvX09MjCEJmZqbVagVxE0WR YRhBEMhDhkqMMRSgHmPMsizIKZGOuElZX1/fsLAMWAATk7IM7vr8+fOtW7du27YtFArNmzfv o48+Ar6wLBsKhfR6vUw9WZaFq+QrQojjuDgrJtwa7AwnNRYy2wEF2dVIhoYsI7L1RCp9oijy PL9w4cJDhw5RFNXW1rZz506DwZCbm9vX11dZWWmxWIqLi5OSkn744Qe/39/Z2bl+/fp//vmH oqiSkpLk5OSff/65trZ2woQJpaWl48ePVxxwNOOM1D7S3KVzYeJsDoxGY0NDw9dff11eXt7S 0nLz5s29e/euWLEiJyenrKwsFAqdPn163Lhxf/75544dOwoKCg4cOFBaWmqz2a5evXrnzp0r V678+uuvHMedOHEC7GacocVrKQsXY1Ip/VQxXqRA2hOSqUMwGJwxY0ZpaSnHcU+fPs3Kypo6 dWogEPjxxx9tNpvdbne73R6PZ8mSJbNmzfL5fNnZ2Varddq0aZ2dnRjjQCDwxx9/6PX6GTNm yMYmHWSkAUfZOHzu0unEXjFlJLuKEMIYp6SkwDi8Xi/G2O1219fXnzt3rqyszOv1iqLo8/l4 ng8Gg4FAQBTFQCAQDAYXLlx4/vz5vLy8cePGQW+wMsRNMYdLymQke1BWq3X58uWgUDabLScn h6Zpu92+bdu2Y8eOTZ06ddKkSXq9Pjs7m2XZ1NTUTz75hKIoh8PR2dnpcDi2bt1aXl5uNps3
Re: [Swftools-common] gpdf2swf : export each page to an individual swf
On Thu, May 6, 2010 at 2:15 AM, Ricardo Pedroso rmdpedr...@gmail.com wrote: On Tue, May 4, 2010 at 3:47 PM, Cyril D. web...@gmail.com wrote: Hi, i just would like to know if it's possible to create a swf for each page of a pdf with Gpdf2swf GUI (last release 2010-02-06) ? i'm not able to run this in command line, i'm a graphiste.. ;) Thanks you very much for your help, and thanks Matthias for you dev I've prepared a hack using the app plugin infrastructure, you can find it attached that will convert each page in a swf file. Like I said it's a hack and not very well tested. Just copy the file into the SWFTools\gpdf2swf\viewers and restart the app. Then go to edit-options-viewer and select the single pages. Sorry, but I noticed now that this is not working as I expected. Regards, Ricardo
Re: [Swftools-common] version 1.0?
I'm going to jump into this one... On Wed, Apr 21, 2010 at 1:37 AM, Akshat Singh singh.aks...@gmail.com wrote: Dont seem to know how to reach Matthias. It would be great if you/Matthias can help establish a dialogue on how and what I can do to further the development through time/donation. One think you can do is watch this list and try to fix bugs that others post. I've already did that and I intend to continue doing it, as time permit. You can clone the swftools git repository and when you fix something just send the patch as an attachment to this list - Matthias will see it for sure Other think I've done too was, when I first came to swftools I noticed about a GUI for pdf2swf but in my opinion the interface could be a little bit more polished so I ask Matthias and rewrite it. And by the way, one of the best methods that I found to learn about an opensource project, was trying to help others when they have troubles to accomplish something. This way, forces me to run after a real objective. You will be surprised, I hope, about how powerful this method is. Judging about the amount of post, Chris is using this method too :) - For USA fellows, I hope nobody patent this method :D Once again sorry for posting here but I really want to contribute. It only depends on you. Regards, Ricardo
Re: [Swftools-common] GCC error while building Python bindings
On Fri, Mar 19, 2010 at 9:15 PM, Jamie Begin jjbe...@gmail.com wrote: I posted a couple days ago about the build failing when compiling the Python bindings due to a missing lib/art directory. I didn't realize that I had grabbed the development version rather than the stable release. The release version apparently does have the directory, so that problem is resolved. However I have a new one... I'm running into the same problem mentioned in this thread: http://www.mail-archive.com/swftools-common@nongnu.org/msg04229.html (which is that the build errors out). My config.log: http://pastebin.com/UmWYJrgm Looking to your config.log it's seems that you have some missing libraries. rica...@laptop:~/tmp$ grep cannot find config.log /usr/bin/ld: cannot find -lungif /usr/bin/ld: cannot find -lgif /usr/bin/ld: cannot find -lfontconfig /usr/bin/ld: cannot find -lGL /usr/bin/ld: cannot find -lGLU /usr/bin/ld: cannot find -lglut /usr/bin/ld: cannot find -lmp3lame GL, GLU and glut are not necessary. mp3lame is optional, I think The others, I think, they all are necessary to build swftools You have also this 2 lines in config.log: configure:9944: checking for Python.h configure:10070: result: nope If you want to build the python module you need python devel package. Search in your distro repository if you have the development packages for those above. It's seems that you are using redhat or some redhat based disto, if so, try to search for package-devel and install them, eg: yum search python-devel yum install python-devel Regards, Ricardo
Re: [Swftools-common] Swftools Version Numbering
On Wed, Mar 17, 2010 at 10:22 PM, Matt Pearce mattpea...@interlingospanish.com wrote: Thanks Chris, The developer snapshot 2008-07-27-1136 would have been released July 27, 2008. But not sure if that corresponds to version 0.5.0, 0.6.0, etc. I looked through at the Downloads , ChangeLog, and archives sections of the website, but there are no dates associated with each version release. I'd like to identify changes and fixes since that version. I'm trying to make a case for upgrading to a more recent version given the features and fixes in 0.9.0 of PDF2SWF. you can parse the git log like this: $ git log|grep -B2 version.*0\.[0-9]\.[0-9]|grep -v ^$ and you will get the following output: Date: Fri Apr 17 17:24:34 2009 +0200 small bugfixes, bumped version to 0.9.0 -- Date: Sat Jan 6 22:29:16 2007 + new version will be 0.8.0 -- Date: Sat Aug 6 10:14:49 2005 + changed version to 0.7.0 -- Date: Sun Feb 6 16:55:16 2005 + * bumped version to 0.6.3 -- Date: Fri Oct 8 17:45:29 2004 + upgraded version to 0.6.2. -- Date: Fri Aug 20 17:20:40 2004 + version is now 0.6.1. -- Date: Sat Aug 14 13:31:17 2004 + version is now 0.6.0. -- Date: Sat Aug 17 09:45:58 2002 + version is now 0.4.2. -- Date: Mon Jul 22 16:15:08 2002 + version is now 0.4.1. -- Date: Wed May 22 18:31:02 2002 + version 0.3.1. -- Date: Mon May 20 17:53:07 2002 + * version is now 0.3.0 -- Date: Tue Mar 5 13:02:11 2002 + * version is now 0.2.3 -- Date: Sun Dec 16 13:59:20 2001 + version is now 0.2.1 -- Date: Wed Nov 21 16:53:06 2001 + version is now 0.1.2. -- Date: Sun Nov 4 19:30:48 2001 + version is now 0.1.1 -- Date: Fri Nov 2 14:49:35 2001 + set version to 0.1.0. -- Date: Sun Oct 28 23:48:02 2001 + version is now pre0.1.0. We need the 3rd digit for patches, so we -- Date: Sat Oct 27 21:02:07 2001 + version is now pre0.0.3 -- Date: Tue Oct 23 22:22:06 2001 + version is 0.0.2 now -- Date: Tue Oct 23 17:45:22 2001 + changed version to 0.0.2 Regards, Ricardo
Re: [Swftools-common] Swftools Version Numbering
On Wed, Mar 17, 2010 at 11:31 PM, Ricardo Pedroso rmdpedr...@gmail.com wrote: On Wed, Mar 17, 2010 at 10:22 PM, Matt Pearce mattpea...@interlingospanish.com wrote: Thanks Chris, The developer snapshot 2008-07-27-1136 would have been released July 27, 2008. But not sure if that corresponds to version 0.5.0, 0.6.0, etc. I looked through at the Downloads , ChangeLog, and archives sections of the website, but there are no dates associated with each version release. I'd like to identify changes and fixes since that version. I'm trying to make a case for upgrading to a more recent version given the features and fixes in 0.9.0 of PDF2SWF. you can parse the git log like this: $ git log|grep -B2 version.*0\.[0-9]\.[0-9]|grep -v ^$ Making grep more tolerant: $ git log|grep -B2 0\.[0-9]\.[0-9]|grep -v ^$ we have: Date: Fri Apr 17 17:24:34 2009 +0200 small bugfixes, bumped version to 0.9.0 -- Date: Sun Mar 18 18:29:16 2007 + added 0.8.1 changes -- Date: Sat Jan 6 22:29:16 2007 + new version will be 0.8.0 -- Date: Sat Sep 10 12:29:47 2005 + fixed 0.7.0 compilation problem -- Date: Sat Aug 6 10:14:49 2005 + changed version to 0.7.0 -- Date: Sun Feb 6 16:55:16 2005 + * bumped version to 0.6.3 -- Date: Fri Oct 8 17:45:29 2004 + upgraded version to 0.6.2. -- Date: Tue Aug 24 18:44:27 2004 + added 0.6.1 changes. -- Date: Fri Aug 20 17:20:40 2004 + version is now 0.6.1. -- Date: Sat Aug 14 13:31:17 2004 + version is now 0.6.0. -- Date: Fri Feb 6 18:50:36 2004 + Version is now 0.5.0 -- Date: Wed Apr 16 19:22:17 2003 + added swfc again- 0.4.4 is tagged. -- Date: Wed Apr 16 18:56:20 2003 + removed swfc for 0.4.4 release. -- Date: Wed Apr 16 18:53:34 2003 + removed swfc (for 0.4.4 release). -- Date: Wed Jan 8 18:02:22 2003 + Version is now 0.3.4; do not add /usr/local/include to CPPFLAGS -- Date: Sat Aug 17 09:45:58 2002 + version is now 0.4.2. -- Date: Mon Jul 22 16:15:08 2002 + version is now 0.4.1. -- Date: Sun Jun 16 21:30:24 2002 + Version is now 0.4.0. -- Date: Wed May 22 18:31:02 2002 + version 0.3.1. -- Date: Mon May 20 17:53:07 2002 + * version is now 0.3.0 -- Date: Tue Mar 5 13:02:11 2002 + * version is now 0.2.3 -- Date: Wed Jan 16 20:14:46 2002 + Version is now 0.2.2. -- Date: Sun Dec 16 13:59:20 2001 + version is now 0.2.1 -- Date: Mon Dec 3 20:27:52 2001 + Version is now 0.2.0 -- Date: Wed Nov 21 16:53:06 2001 + version is now 0.1.2. -- Date: Sun Nov 4 19:30:48 2001 + version is now 0.1.1 -- Date: Fri Nov 2 14:49:35 2001 + set version to 0.1.0. -- Date: Sun Oct 28 23:48:02 2001 + version is now pre0.1.0. We need the 3rd digit for patches, so we -- Date: Sat Oct 27 21:02:07 2001 + version is now pre0.0.3 -- Date: Tue Oct 23 22:22:06 2001 + version is 0.0.2 now -- Date: Tue Oct 23 17:45:22 2001 + changed version to 0.0.2 -- Date: Mon Oct 22 15:48:28 2001 + added items from 0.0.2.
Re: [Swftools-common] how to change the python that is used by swftools
On Tue, Feb 16, 2010 at 8:05 PM, Norman Khine nor...@khine.net wrote: hello, i tried: $ ./configure --prefix=$HOME PYTHON=$HOME/bin/python but this does not work. Is there a more direct way to choose which python to use? You can try the setup.py in the root directory of swftools source : $HOME/bin/python setup.py build $HOME/bin/python setup.py install or try export PATH with (assuming bash here): $ export PATH=$HOME/bin:$PATH and probably configure will use your HOME python, I'm not sure -- % .join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ,adym,*)uzq^zqf ] ) Nice signature, I like it :) Ricardo
Re: [Swftools-common] Python module, change Flash version?
On Thu, Feb 11, 2010 at 10:01 AM, Gustavo Frei gustaf...@gmail.com wrote: Hi, I have a simple question (i think): How do I change what Flash version the output swf will have in the Python module (gfx)? I know that when using in command line it is like pdf2swf -T9 but what do i write to get T9 in Python module? If I recall, something like this should do it: swf = gfx.SWF() swf.setparameter(flashversion, 9) Ricardo
Re: [Swftools-common] errors building swftools - No rule to make target `xpdf-*tar.gz', needed by `xpdf/Gfx.cc'. Stop
On Sat, Jan 30, 2010 at 3:17 AM, Norman Khine nor...@khine.net wrote: hello, i just checkout out the latest source form the git repository, but get this error when i run %make % git pull origin master % ./configure --prefix=$HOME/usr/local/swftools % make ... gcc -c -DHAVE_CONFIG_H -I/opt/local/include -I/Users/khine/usr/local/swftools/include -I/opt/local/include/freetype2 -I/opt/local/include -Ilame -Ilib/lame -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer as3/assets.c -o as3/assets.o ar r librfxswf.a modules/swfaction.o modules/swfbits.o modules/swfbutton.o modules/swfcgi.o modules/swfdraw.o modules/swfdump.o modules/swffilter.o modules/swffont.o modules/swfobject.o modules/swfrender.o modules/swfshape.o modules/swfsound.o modules/swftext.o modules/swftools.o modules/swfalignzones.o rfxswf.o drawer.o lame/psymodel.o lame/fft.o lame/newmdct.o lame/quantize.o lame/takehiro.o lame/reservoir.o lame/quantize_pvt.o lame/vbrquantize.o lame/encoder.o lame/id3tag.o lame/version.o lame/tables.o lame/util.o lame/bitstream.o lame/set_get.o lame/VbrTag.o lame/lame.o h.263/dct.o h.263/h263tables.o h.263/swfvideo.o action/assembler.o action/compile.o action/lex.swf4.o action/lex.swf5.o action/libming.o action/swf4compiler.tab.o action/swf5compiler.tab.o action/actioncompiler.o as3/abc.o as3/pool.o as3/files.o as3/opcodes.o as3/code.o as3/registry.o as3/builtin.o as3/parser.tab.o as3/tokenizer.yy.o as3/scripts.o as3/compiler.o as3/import.o as3/expr.o as3/common.o as3/initcode.o as3/assets.o ar: creating archive librfxswf.a ranlib librfxswf.a cd pdf;make libgfxpdf make[2]: *** No rule to make target `xpdf-*tar.gz', needed by `xpdf/Gfx.cc'. Stop. make[1]: *** [libgfxpdf.a] Error 2 make: *** [all] Error 2 Do: Download xpdf (xpdf-3.02.tar.gz) and put the tarball in lib/pdf then do in lib/pdf: $ perl inject-xpdf.pl xpdf-3.02.tar.gz then make again. Ricardo
Re: [Swftools-common] New version of SWFTools?
On Sat, Jan 30, 2010 at 8:53 AM, German Geek geek...@gmail.com wrote: You say the GIT repository is very recent. Can one compile it though with a simple ./configure make ? It would be great for us because we use the pdf2swf tool extensively. ++Tim Hinnerk Heuer++ As long as you have all the dependencies installed, it should be easy to compile. Just try and ask for help if you need. Ricardo
Re: [Swftools-common] how to import other classes in swfc or as3compile
On Wed, Jan 6, 2010 at 3:48 PM, jean-michel.voicechat_fan jeanmichel.g...@free.fr wrote: is it possible to import .as file in swfc or as3compile sources with import statement ? Yes, at least in as3compile, and I guess that it's possible with swfc. See sample attached for as3compile Regards, Ricardo import_pkg_as3.tar.gz Description: GNU Zip compressed data
Re: [Swftools-common] SWFC .put file
On Thu, Dec 17, 2009 at 1:35 PM, LivingDocs lis...@livingdocs.de wrote: thank you, Philippe! But what, if I don't know the size of my background-swf? This is created with PDF2SWF and I do not know exactly the size... You can query pdf file for it's size: pdf2swf -I file.pdf or query the swf file: swfdump -XY file.swf Ricardo
Re: [Swftools-common] SwfTool Install - CentOS5.4 - no way to define 64 bit integer problem
On Mon, Dec 7, 2009 at 3:46 PM, Kevin Callahan ke...@mapmyfitness.com wrote: Good Morning, Thanks for the quick reply. I verified that I do have libjpeg. To ensure that it wasn’t corrupt I reinstalled it using yum. Removed: libjpeg.i386 0:6b-37 Installed: libjpeg.i386 0:6b-37 Question: is libjpeg 7 required? does 6b37 work with it? I compiled swftools 0.9.0 in CentOS 5 (32bits) without any problems using the stock jpeglib6 It's weird that in your system it's asking for libjpeg7. Do you have libjpeg-devel installed to? (yum install libjpeg-devel) Sorry but I don't know what else can be. One think you can do is install a clean CentOS system, for example, in a virtual machine and see if the problem persists. Here is some specs of my CentOS testing server and pdf2swf: The only think I have to compile from source was lame(instaled on /usr/local) [r...@srv4 install]# ldd swftools-0.9.0/src/pdf2swf linux-gate.so.1 = (0x00748000) libmp3lame.so.0 = /usr/local/lib/libmp3lame.so.0 (0x00e73000) libungif.so.4 = /usr/lib/libungif.so.4 (0x004a9000) libjpeg.so.62 = /usr/lib/libjpeg.so.62 (0x004bb000) libz.so.1 = /usr/lib/libz.so.1 (0x00a7b000) libfreetype.so.6 = /usr/lib/libfreetype.so.6 (0x00416000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x00329000) libm.so.6 = /lib/libm.so.6 (0x00a52000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x00b64000) libc.so.6 = /lib/libc.so.6 (0x008ec000) libgif.so.4 = /usr/lib/libgif.so.4 (0x00a39000) /lib/ld-linux.so.2 (0x008ce000) libX11.so.6 = /usr/lib/libX11.so.6 (0x00224000) libXau.so.6 = /usr/lib/libXau.so.6 (0x00b24000) libXdmcp.so.6 = /usr/lib/libXdmcp.so.6 (0x00b1c000) libdl.so.2 = /lib/libdl.so.2 (0x00a33000) [r...@srv4 install]# uname -a Linux srv4 2.6.18-164.2.1.el5 #1 SMP Wed Sep 30 12:55:19 EDT 2009 i686 athlon i386 GNU/Linux [r...@srv4 install]# cat /etc/redhat-release CentOS release 5.4 (Final) Is there a stable RPM package for centos5.4 (i386) for this? For libjpeg7 I think not, at least on official repos. Ricardo
Re: [Swftools-common] Really basic AS3 question
On Mon, Dec 7, 2009 at 11:32 AM, Matthew Ayres solar.granulat...@gmail.com wrote: I've made some changes to swfc to support export objects (sprites and buttons) to as3. Patch against git and samples attached I had chengedthe syntax of commads: .flash - added a maincalss= If you do not include this mainclass parameter your mainclass should be the first public class. .button added a as3name= .sprite added a as3name= It would be nice if someone can test and give some feedback. This way we can give some pressure for matthias to include this feature in swftools. ;) Patched, installed tested with great result! Brilliant work, Ricardo! Great. :) It did produce a warning about whitespace errors, but nothing seemed to come of it. I suppose that is when you compile a source .sc ... Can you provide a sample where this happens, to see if I can track it down. Ricardo
Re: [Swftools-common] SwfTool Install - CentOS5.4 - no way to define 64 bit integer problem
On Sun, Dec 6, 2009 at 11:44 PM, Kevin Callahan ke...@mapmyfitness.com wrote: Morning, I’ve been trying to install 0.9.0 on centos 5.4 and running into issues. Swftools 0.8.1. was installed fine and I believe I have all the required libraries: lame, lame-devel, t1lib, etc. I’ve tried searching for those with similar problems but there are no answers: http://lists.gnu.org/archive/html/swftools-common/2009-07/msg00105.html http://lists.gnu.org/archive/html/swftools-common/2009-07/msg00037.html http://lists.gnu.org/archive/html/swftools-common/2009-07/msg00106.html http://lists.gnu.org/archive/html/swftools-common/2009-07/msg00035.html I’ve attached both the config.log and the results of my “make” Here’s my system: [r...@localhost swftools-0.9.0]# uname -a Linux localhost.localdomain 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux The gist of the error is ./configure runs and then when I make, it outputs: make[1]: Entering directory `/opt/alfresco/swftools-0.9.0/lib/pdf' g++ -DHAVE_CONFIG_H -I/usr/include/freetype2 -I/usr/include/fontconfig -I /usr/include/lame -g ../../src/pdf2swf.c GFXOutputDev.o InfoOutputDev.o BitmapOutputDev.o FullBitmapOutputDev.o pdf.o fonts.o xpdf/GHash.o xpdf/GList.o xpdf/GString.o xpdf/gmem.o xpdf/gfile.o xpdf/FoFiTrueType.o xpdf/FoFiType1.o xpdf/FoFiType1C.o xpdf/FoFiBase.o xpdf/FoFiEncodings.o xpdf/OutputDev.o xpdf/PDFDoc.o xpdf/Error.o xpdf/Stream.o xpdf/Object.o xpdf/Decrypt.o xpdf/Array.o xpdf/XRef.o xpdf/Dict.o xpdf/Parser.o xpdf/Lexer.o xpdf/Outline.o xpdf/PDFDocEncoding.o xpdf/Catalog.o xpdf/Link.o xpdf/GlobalParams.o xpdf/JBIG2Stream.o xpdf/Page.o xpdf/JPXStream.o xpdf/JArithmeticDecoder.o xpdf/Gfx.o xpdf/GfxFont.o xpdf/CMap.o xpdf/CharCodeToUnicode.o xpdf/PSTokenizer.o xpdf/FontEncodingTables.o xpdf/BuiltinFont.o xpdf/BuiltinFontTables.o xpdf/GfxState.o xpdf/Function.o xpdf/Annot.o xpdf/NameToCharCode.o xpdf/UnicodeMap.o xpdf/SecurityHandler.o xpdf/SplashOutputDev.o xpdf/SplashFont.o xpdf/SplashState.o xpdf/Splash.o xpdf/SplashBitmap.o xpdf/SplashClip.o xpdf/SplashPattern.o xpdf/SplashFontEngine.o xpdf/SplashFontFile.o xpdf/SplashFontFileID.o xpdf/SplashScreen.o xpdf/SplashPath.o xpdf/SplashXPath.o xpdf/SplashXPathScanner.o xpdf/SplashFTFontEngine.o xpdf/SplashFTFontFile.o xpdf/SplashFTFont.o ../libgfxswf.a ../libgfx.a ../librfxswf.a ../libbase.a -o pdf2swf -L/usr/local/lib -lmp3lame -lglut -lGLU -lGL -lungif -ljpeg -lz -lm -lfontconfig -lfreetype In file included from ../../src/../lib/./bitio.h:23, from ../../src/../lib/rfxswf.h:37, from ../../src/pdf2swf.c:41: ../../src/../lib/./types.h:36:2: error: #error no way to define 64 bit integer ../../src/../lib/./types.h:39:2: error: #error don't know how to define 32 bit integer ../../src/../lib/./types.h:42:2: error: #error don't know how to define 16 bit integer ../../src/../lib/./types.h:45:2: error: #error don't know how to define 8 bit integer make[1]: *** [pdf2swf] Error 1 make[1]: Leaving directory `/opt/alfresco/swftools-0.9.0/lib/pdf' make: *** [all] Error 2 Looking to config.log your problem is with libjpeg. In config.log you have: configure:6564: ./conftest ./conftest: error while loading shared libraries: libjpeg.so.7: cannot open shared object file: No such file or directory Did you compile libjpeg or installed from yum? It seems that you compile it, try run ldconfig and then ./configure; make again. Ricardo
Re: [Swftools-common] Using Swftools - Performance - Large pdf files many pages?
On Wed, Nov 25, 2009 at 10:59 PM, Ric Clarke r...@webkeg.com wrote: 2. When the resulting swf file loads, am I right in thinking it has to load the complete file before it shows the first page? Has anyone experimented with a way of only loading the page that is being viewed? I think you are right, swf file must be fully loaded before starting showing a page, but you can convert a pdf file to several swf's, just put a % in output filename: pdf2swf file.pdf -o file%.swf Then you can build a viewer that loads one swf at a time as user request them. Ricardo
Re: 答复: [Swftools-common] SWFC crashes encounter ed on Linux
On Tue, Nov 17, 2009 at 2:45 AM, WU Liang wuli...@augustatek.com wrote: Thanks for your response, Ricardo! I checked the output of ulimit -a, but I can see no big differences from yours. Here is the comparison: Yesterday I tested on a linux 32bits and it didn't crash. Today I was able to test with a linux 64bits and swfc crash like you reported. Ricardo
Re: [Swftools-common] SWFC crashes encountered on Linux
On Mon, Nov 16, 2009 at 11:29 AM, WU Liang wuli...@augustatek.com wrote: Hi, nice guys, I just ran into a crash when using SWFC to compile a SWF file. The source image is downloaded from: http://www.swftools.org/swftools-2009-08-24-2042.tar.gz I just checked the Win32 version; it works fine. I put some printfs in the function readToken() where SWFC crashed. Seemingly the crash occurred in the C lib function strlen(). Refer to the script file I used for your information. It crashes if str_3096 and more variables are added to the script, but it works fine within str_3095. I tested many times. Similar results were produced. Seemingly there is a buffer limit somewhere. It's working for me, it didn't crash with 3096+ vars Maybe it's worth to check your environment limits with: ulimit -a This is the output of my laptop, for you to compare with yours: rica...@laptop:~$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 20 file size (blocks, -f) unlimited pending signals (-i) 16382 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size(512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited file locks (-x) unlimited Regards, Ricardo
Re: [Swftools-common] problem compiling swftools on red hat
On Mon, Nov 16, 2009 at 3:57 AM, Ryan Hafen rha...@gmail.com wrote: Thanks for the replay - and thanks for your work on swftools - it's great. I should have offered more specifics. My situation is a little unique because I need to install it in my directory as I do not have root access on this machine. I have successfully installed jpeglib and freetype (and lame if that matters) to /home/uname/local, and I configure with this command: See if this helps: http://lists.gnu.org/archive/html/swftools-common/2009-09/msg00076.html Ricardo
Re: [Swftools-common] Getting page count from SWF
On Thu, Nov 12, 2009 at 10:00 PM, Chris Pugh nisse...@googlemail.com wrote: I'm not sure that this information is given by any of the swftools commands. When you use pdt2swf to convert a pdf, then the resulting swf usually has one frame per page. So, the total number of pages equals the total number frames. In actionscript you can get the total number of frames in a movie by using totalframes, as in, myMovie.totalframes You can get the total frames, also, with: swfdump -f file.swf In python you can do: import gfx swf = gfx.open(swf, file.swf) print swf.pages In C: /* Compile with: gcc -c swfpages.c -o swfpages.o gcc swfpages.o -o swfpages path/to/librfxswf.a path/to/libbase.a -lz */ #include stdio.h #include path/to/rfxswf.h int main (int argc,char ** argv) { SWF swf; int f; f = open(file.swf, O_RDONLY|O_BINARY); swf_ReadSWF(f, swf); printf(%d\n, swf.frameCount); close(f); return 0; } Ricardo
Re: [Swftools-common] wrong positioning
2009/10/30 Pablo Rodríguez oi...@web.de: Hi there, I have the following script; .flash filename=first.swf bbox=800x600 version=7 fps=12 .outline fscreen_outline: M 409.38739,212.82563 L 398.29364,215.70063 L 395.44989,226.76313 L 397.57489,224.63813 L 401.32489,228.38813 L 411.01239,218.73188 L 407.26239,214.95063 L 409.38739,212.82563 z M 488.57489,212.82563 L 490.69989,214.95063 L 486.94989,218.73188 L 496.60614,228.38813 L 500.38739,224.63813 L 502.51239,226.76313 L 499.66864,215.70063 L 488.57489,212.82563 z M 433.79364,228.38813 C 421.17283,228.38813 411.01239,235.91438 411.01239,245.26313 L 411.01239,267.76313 C 411.01239,277.11188 421.17283,284.63811 433.79364,284.63813 L 464.16864,284.63813 C 476.78945,284.63813 486.94989,277.11186 486.94989,267.76313 L 486.94989,245.26313 C 486.94989,235.91438 476.78945,228.38813 464.16864,228.38813 L 433.79364,228.38813 z M 401.35614,284.63813 L 397.57489,288.38813 L 395.44989,286.26313 L 398.29364,297.32563 L 409.38739,300.20063 L 407.26239,298.07563 L 411.01239,294.29438 L 401.35614,284.63813 z M 496.60614,284.63813 L 486.94989,294.29438 L 490.69989,298.07563 L 488.57489,300.20063 L 499.66864,297.32563 L 502.51239,286.26313 L 500.38739,288.38813 L 496.60614,284.63813 z .end .outline fulls_outline: M 411.01239,200.26313 L 486.94989,200.26313 C 507.98458,200.26313 524.91864,212.80688 524.91864,228.38813 L 524.91864,284.63813 C 524.91864,300.21938 507.98458,312.76313 486.94989,312.76313 L 411.01239,312.76313 C 389.9777,312.76313 373.04364,300.21938 373.04364,284.63813 L 373.04364,228.38813 C 373.04364,212.80688 389.9777,200.26313 411.01239,200.26313 z .end .filled fscreen outline=fscreen_outline fill=#969696ff color=#969696ff .filled fulls outline=fulls_outline fill=#64646496 color=#64646496 .frame 1 .put fscreen .stop fscreen .put fulls .stop fulls .action: slide_height=Stage.height; slide_width=Stage.width; fscreen._x = (slide_width-fscreen._width)/2; fscreen._y = (slide_height-fscreen._height)/2; fulls._x = (slide_width-fulls._width)/2; fulls._y = (slide_height-fulls._height)/2; .end .end I'm trying to set the fscreen and fulls in the center of the presentation, but it doesn't work. What am I doing wrong here? (Just in case it might help, the outline is copied from http://www.ousia.tk/fullscreen.svg.) Try this: .flash filename=first.swf bbox=800x600 version=7 fps=12 .outline fscreen_outline: M 409.38739,212.82563 L 398.29364,215.70063 L 395.44989,226.76313 L 397.57489,224.63813 L 401.32489,228.38813 L 411.01239,218.73188 L 407.26239,214.95063 L 409.38739,212.82563 z M 488.57489,212.82563 L 490.69989,214.95063 L 486.94989,218.73188 L 496.60614,228.38813 L 500.38739,224.63813 L 502.51239,226.76313 L 499.66864,215.70063 L 488.57489,212.82563 z M 433.79364,228.38813 C 421.17283,228.38813 411.01239,235.91438 411.01239,245.26313 L 411.01239,267.76313 C 411.01239,277.11188 421.17283,284.63811 433.79364,284.63813 L 464.16864,284.63813 C 476.78945,284.63813 486.94989,277.11186 486.94989,267.76313 L 486.94989,245.26313 C 486.94989,235.91438 476.78945,228.38813 464.16864,228.38813 L 433.79364,228.38813 z M 401.35614,284.63813 L 397.57489,288.38813 L 395.44989,286.26313 L 398.29364,297.32563 L 409.38739,300.20063 L 407.26239,298.07563 L 411.01239,294.29438 L 401.35614,284.63813 z M 496.60614,284.63813 L 486.94989,294.29438 L 490.69989,298.07563 L 488.57489,300.20063 L 499.66864,297.32563 L 502.51239,286.26313 L 500.38739,288.38813 L 496.60614,284.63813 z .end .outline fulls_outline: M 411.01239,200.26313 L 486.94989,200.26313 C 507.98458,200.26313 524.91864,212.80688 524.91864,228.38813 L 524.91864,284.63813 C 524.91864,300.21938 507.98458,312.76313 486.94989,312.76313 L 411.01239,312.76313 C 389.9777,312.76313 373.04364,300.21938 373.04364,284.63813 L 373.04364,228.38813 C 373.04364,212.80688 389.9777,200.26313 411.01239,200.26313 z .end .filled fscreen outline=fscreen_outline fill=#969696ff color=#969696ff .filled fulls outline=fulls_outline fill=#64646496 color=#64646496 .frame 1 .put fscreen pin=center .stop fscreen .put fulls pin=center .stop fulls .action: slide_height=Stage.height/2; slide_width=Stage.width/2; fscreen._x = slide_width; fscreen._y = slide_height; fulls._x = slide_width; fulls._y = slide_height; .end .end the key here is pin=center in .put command pin can have the following values: center bottom-center top-center top-left top-right bottom-right bottom-left left-center right-center Ricardo
Re: [Swftools-common] issue with an object
2009/10/31 Pablo Rodríguez oi...@web.de: Hi there, I have an SWFC source file, such as the one bellow. I wrote an .filled .outline (fscreen and fscreen_outline), but it isn't properly centered and setting it .visible to 0 erases all content in stage. I don't know what I can be doing wrong, since a similar object is properly centered and properly erased. See if the following script is what you want: .flash filename=min-fscreen.swf version=7 fps=12 .outline fscreen_outline: M 62.78125 18.703125 L 43.367188 23.734375 L 38.390625 43.09375 L 42.109375 39.375 L 48.671875 45.9375 L 65.625 29.039062 L 59.0625 22.421875 L 62.78125 18.703125 z M 199.71875 18.703125 L 203.4375 22.421875 L 196.875 29.039062 L 213.773438 45.9375 L 220.390625 39.375 L 224.109375 43.09375 L 219.132812 23.734375 L 199.71875 18.703125 z M 83.125 45.9375 C 73.429688 45.9375 65.625 53.742188 65.625 63.4375 L 65.625 133.4375 C 65.625 143.132812 73.429688 150.9375 83.125 150.9375 L 179.375 150.9375 C 189.070312 150.9375 196.875 143.132812 196.875 133.4375 L 196.875 63.4375 C 196.875 53.742188 189.070312 45.9375 179.375 45.9375 L 83.125 45.9375 z M 48.726562 150.9375 L 42.109375 157.5 L 38.390625 153.78125 L 43.367188 173.140625 L 62.78125 178.171875 L 59.0625 174.453125 L 65.625 167.835938 L 48.726562 150.9375 z M 213.773438 150.9375 L 196.875 167.835938 L 203.4375 174.453125 L 199.71875 178.171875 L 219.132812 173.140625 L 224.109375 153.78125 L 220.390625 157.5 L 213.773438 150.9375 z .end .outline fulls_outline: M 17.5 0 L 245 0 C 254.695312 0 262.5 7.804688 262.5 17.5 L 262.5 179.375 C 262.5 189.070312 254.695312 196.875 245 196.875 L 17.5 196.875 C 7.804688 196.875 0 189.070312 0 179.375 L 0 17.5 C 0 7.804688 7.804688 0 17.5 0 z .end .filled fscreen outline=fscreen_outline fill=#969696ff color=#969696ff .filled fulls outline=fulls_outline fill=#64646496 color=#64646496 .button fs_button .show fulls as=idle .show fulls as=area .show fulls as=hover .show fulls as=pressed .on_release: Stage[displayState] = fullScreen; .end .end .swf first_slide orphanworks-first.swf .frame 1 .put first_slide pin=center .stop first_slide .put fscreen pin=center .stop fscreen .put full_screen=fs_button pin=center .stop full_screen .end Ricardo
Re: [Swftools-common] swfTools on Mac
On Tue, Oct 27, 2009 at 10:26 AM, LivingDocs lis...@livingdocs.de wrote: Hello, I installed swfTools on Mac OS X the way it is described in the FAQs. This works very nice! But Mac port installs swfTools 0.8.1. Isn't there a newer version? And how to install this? I'm not a mac user but according to macport site, they have 0.9.0: http://www.macports.org/ports.php?by=namesubstr=swftools Ricardo
Re: [Swftools-common] Seg fault running pdf2swf 0.90 on linux
On Fri, Oct 30, 2009 at 12:40 AM, Matthias Kramm kr...@quiss.org wrote: On Sun, Oct 25, 2009 at 11:51:59PM -0400, Alex DeNeui al...@docverse.com wrote: I'm getting a segfault when running pdf2swf 0.90 on linux with a PDF generated by Microsoft Office. The source PDF is available at http://drop.io/jipwqvo/asset/foo-pdf. That URL gives me a 404. The url it's working for me, I've just downloaded. try this big link instead: http://drop.io/download/4aea3aaa/3e829c763e80caa1051ed230a9aa4cd34f0be449/c96f80c0-a405-012c-6f24-f6aa05e9a33b/ca950700-a405-012c-dce6-f198268a49fa/v2/original_content Ricardo
Re: [Swftools-common] AS3 bytecode and IE
On Thu, Oct 22, 2009 at 10:44 AM, jean-michel.voicechat_fan jeanmichel.g...@free.fr wrote: thank you again ricardo el gran salvador your script gives WIN 6,0 on IE the download of flashplayer was not changing anything ( it says succesfull but it is not ) to solve the problem you need to download the DLM DownLoad Manager from adobe first there is a lot of post on this problem after my FP version was 10,... and now my AS3 flash generated by swfc works nice news I hope that information will help I think you will need to uninstall flash first. See if this help: http://kb2.adobe.com/cps/141/tn_14157.html Ricardo
Re: [Swftools-common] swftools error
On Thu, Oct 22, 2009 at 12:57 PM, Ramya Rengamani ramyad...@gmail.com wrote: Hi, Am getting the following error when I “make pdf2swf” in Ubuntu. Inititally it was working fine, received error only when I recompile pdf.cc with “g++ -c pdf.cc”. r...@linuxramya:/home/test/swftools-0.9.0/src# make pdf2swf g++ -DHAVE_CONFIG_H pdf2swf.o -o pdf2swf ../lib/libpdf.a ../lib/devices/polyops.o ../lib/devices/swf.o ../lib/librfxswf.a ../lib/libgfx.a ../lib/libbase.a -L/usr/local/lib -lungif -ljpeg -lz -lm -lfreetype -lz -lstdc++ pdf2swf.o: In function `args_callback_option': pdf2swf.c:(.text+0xfab): undefined reference to `gfxsource_pdf_create' pdf2swf.o: In function `main': pdf2swf.c:(.text+0x1c72): undefined reference to `gfxsource_pdf_create' collect2: ld returned 1 exit status make: *** [pdf2swf] Error 1 try this: $ cd /home/test/swftools-0.9.0/ $ make distclean $ ./configure $ make $ sudo make install (optional - will install in /usr/local) Ricardo
Re: [Swftools-common] AS3 class usage
On Tue, Oct 20, 2009 at 6:19 AM, jean-michel.voicechat_fan jeanmichel.g...@free.fr wrote: ok this question is solved by the example of ricardo it will be nice that this example will appear on swftools site that will help a lot of people wishing to use AS3 if ricardo don t mind of course Not a problem, everyone can use it for anything, part of it is copypaste/adapted from adobe livedocs Ricardo Matthias Kramm a écrit : On Mon, Oct 19, 2009 at 09:50:03AM +0200, jean-michel.voicechat_fan jeanmichel.g...@free.fr wrote: hello i have add a reply to really basic AS3 question ( it was in fact a question) in this post matthias has explained that it will be possible to put some class definition in a sc file but i have tried to put a class definition without success into a .action: section always a syntax error on the class name may be i am doing a mistake matthias can you give a very short example how to set a class definition in action: section It should look like this: .action: public class MyMovie extends flash.display.MovieClip { function MyMovie() { // ... } } .end Matthias
Re: [Swftools-common] AS3 bytecode and IE
On Wed, Oct 21, 2009 at 7:59 PM, jean-michel.voicechat_fan jeanmichel.g...@free.fr wrote: Matthias Kramm a écrit : On Wed, Oct 21, 2009 at 01:04:43PM +0200, jean-michel.voicechat_fan jeanmichel.g...@free.fr wrote: Hello my generated code with swfc or haxe does not work on Internet Explorer I very much doubt that Haxe doesn't work on Internet Explorer in general, so my guess would be that there's something wrong with your Flash Plugin in your IE. Matthias i suppose also that a problem with IE and Flash player but i am not able to find it i keep you in touch try this code in both browsers and check if you have the same flash version: .flash filename=flver.swf bbox=200x50 version=6 fps=12 background=#66 .edittext flver width=200 height=20 size=18pt color=black text= align=left .frame 1 .action: ver = System.Capabilities.version; trace(ver); //trace(eval($version)); flver.text = ver; .end # end action .put flver x=10 y=10 .end # end frame 1
Re: [Swftools-common] Really basic AS3 question
On Sat, Oct 17, 2009 at 9:08 AM, jean-michel.voicechat_fan jeanmichel.g...@free.fr wrote: hello matthias i have tried to put a class syntax on the top of .action: statement but i have a syntax error i have just wrapped a small piece of working code the syntax error pointer points on the class name it seems like class statement is not taken into account is something missing ? I was hunting this for sometime too. Today I was able to make it work (tested only with swftools-2009-08-24-2042), see attachment. It's a simple test editor. You can change bold, italic, underline with 3 buttons or with context menu (mouse right click) The magic here is to define a dynamic class Richard and Jean, if you find other ways of doing, please let me know Hope this will be useful, Ricardo as3_test.sc Description: Binary data
Re: [Swftools-common] 0.9.0 osx 10.5 build
On Sat, Oct 17, 2009 at 3:23 PM, Eric Priou erixtek...@gmail.com wrote: Le 16 oct. 09 à 17:48, Matthias Kramm a écrit : On Thu, Oct 15, 2009 at 08:03:46PM +0200, Eric Priou erixtek...@gmail.com wrote: I can't get the 0.9.0 version to compile on darwin ix86. Here the make error : ld: in ../libgfxswf.a, archive has no table of contents collect2: ld returned 1 exit status make[1]: *** [pdf2swf] Error 1 make: *** [all] Error 2 Try compiling the git version- that should work better. Unfortunatly it fails, but at a different point : make[2]: *** No rule to make target `xpdf-*tar.gz', needed by `xpdf/Gfx.cc'. Stop. make[1]: *** [libpdf.a] Error 2 make: *** [all] Error 2 Any clue ? See the last paragraph of: http://lists.gnu.org/archive/html/swftools-common/2009-10/msg00032.html Ricardo
Re: [Swftools-common] Can i Call pdf2swf exe from Java program
On Wed, Oct 14, 2009 at 1:43 PM, sachinchakote sachinchak...@gmail.com wrote: Hi Can i call pdf2swf exe file without any problem from a java program, I recently tried to call pdf2swf on PDF file of size 800 MB but the java program hangs after converting 300 pages When i run the same file against standalone pdf2swf file it worked fine any idea why it could fail ? Just guessing... probably you are running out of memory. JVM (Java Virtual Machine) has some parameters to set how much memory to use. Check them. Ricardo
Re: [Swftools-common] allowDomain(*) / allowInsecureDomain(*) in generated swfs
On Fri, Oct 2, 2009 at 9:48 PM, Matthias Kramm kr...@quiss.org wrote: On Fri, Oct 02, 2009 at 03:12:24PM +0200, Mixotic i...@mixotic.net wrote: i want to host my pdf2swf generated swfs on a different server than my main application. in order to do this the flash security model expects the line allowDomain(*) / allowInsecureDomain(*) in the loaded swf. is there any way to include this line into the pdf2swf generated swfs? allowDomain(*) is automatically included in any Flash 9 SWFs generated by pdf2swf. Probably you will need a crossdomain.xml file on each different server/domain Just google for crossdomain flash. Some reference: http://kb2.adobe.com/cps/142/tn_14213.html http://www.petefreitag.com/item/595.cfm Ricardo
Re: [Swftools-common] jpegdpi and ppmsubpixels obsolete in version 9
2009/9/29 Víctor Hugo victor...@gmail.com: Hi Ricardo thanks for your reply. I use both parameters jpegquality to reduce the quality a bit and jpegdpi to reduce the pixels of pictures. If I put 72 in jpegsubpixels don´t transform anything, I need set parameter to 1 or 0.5 to have changes in SWF. I need know what is the transformation between 72 in jpegdpi and 1 or 0,5 in jpegsubpixels. On my previous post I think I did misunderstood / made some confusions. You can check this: http://www.mail-archive.com/swftools-common@nongnu.org/msg02636.html http://www.mail-archive.com/swftools-common@nongnu.org/msg02640.html http://www.mail-archive.com/swftools-common@nongnu.org/msg02226.html This can be an interesting reading too: http://www.scantips.com/no72dpi.html http://www.scantips.com/basics1a.html You can check -s parametes (http://wiki.swftools.org/index.php/Pdf2swf_-s_parameters) Specifically, the zoom and multiply Ricardo
Re: [Swftools-common] pdf2swf problem
On Thu, Sep 24, 2009 at 6:34 PM, Ricardo Pedroso rmdpedr...@gmail.comwrote: On Thu, Sep 10, 2009 at 2:56 PM, Farhad Seyedmehdi a_h_seyedme...@yahoo.com wrote: Hello I just found 2 problem and I appreciate if comeone can have a look to it. I just used the latest version of swftools from the date * swftools-2009-08-24-2042.rarhttp://www.swftools.org/swftools-2009-08-24-2042.rar ** *but in some complex pdf it does not create swf and it produce error. First problem = I used the following command : pdf2swf.exe -j90 -q -T8 -G -qq -X 455 -Y 563 -f -F D:\SWFTools\fonts -s zoom=55 -s multiply=4 -s linksopennewwindow -s poly2bitmap -s linknameurl -s enablezlib -s bboxvars -s flashvers ion=8 -s jpegquality=80 -s splinequality=100 fbfa285bb91a.pdf -o 3c96dc83bc25.swf pdf is http://www.farsinetwork.com/farhad/fbfa285bb91a.pdf If I remove poly2bitmap I got the following error see error http://www.farsinetwork.com/farhad/error.JPG with poly2bitmap no swf will be created. I tried your pdf in xpdf viewer and it crashes. So It seems that the problem is in xpdf library that swftools is using to parse pdf's I did some more testing and depending on the options that we pass to swftools, the crash happens on swftools code or in xpdf code Mathias, probably you have some clues about this problem but if you want some detailed report about this, I think I have some free time this weekend to debug it. Ricardo
Re: [Swftools-common] Problem while Building Python
On Wed, Sep 30, 2009 at 10:54 AM, sachinchakote sachinchak...@gmail.com wrote: Hi I have downloaded swftools and tried to install the python project gfx module. on my suse machine. What version of swftools? I installed python2.6 from source and also installed jpg and true type dependencies. but i am getting following error when compiling the code. In file included from lib/pdf/GFXOutputDev.cc:45: lib/pdf/xpdf/gfile.h:134: error: ISO C++ forbids declaration of ‘DIR’ with no type lib/pdf/xpdf/gfile.h:134: error: expected ‘;’ before ‘*’ token lib/pdf/GFXOutputDev.cc: In destructor ‘virtual GFXGlobalParams::~GFXGlobalParams()’: lib/pdf/GFXOutputDev.cc:327: warning: comparison between signed and unsigned integer expressions lib/pdf/GFXOutputDev.cc: In member function ‘virtual DisplayFontParam* GFXGlobalParams::getDisplayFont(GString*)’: lib/pdf/GFXOutputDev.cc:515: warning: comparison between signed and unsigned integer expressions lib/pdf/GFXOutputDev.cc: In function ‘void showFontError(GfxFont*, int)’: lib/pdf/GFXOutputDev.cc:694: warning: comparison between signed and unsigned integer expressions lib/pdf/GFXOutputDev.cc: In function ‘void dumpFontInfo(const char*, GfxFont*)’: lib/pdf/GFXOutputDev.cc:719: warning: enumeration value ‘fontType1COT’ not handled in switch lib/pdf/GFXOutputDev.cc:719: warning: enumeration value ‘fontTrueTypeOT’ not handled in switch lib/pdf/GFXOutputDev.cc:719: warning: enumeration value ‘fontCIDType0COT’ not handled in switch lib/pdf/GFXOutputDev.cc:719: warning: enumeration value ‘fontCIDType2OT’ not handled in switch lib/pdf/GFXOutputDev.cc: In member function ‘virtual void GFXOutputDev::drawChar(GfxState*, double, double, double, double, double, double, CharCode, int, Unicode*, int)’: lib/pdf/GFXOutputDev.cc:1385: warning: comparison between signed and unsigned integer expressions lib/pdf/GFXOutputDev.cc: In member function ‘virtual GBool GFXOutputDev::beginType3Char(GfxState*, double, double, double, double, CharCode, Unicode*, int)’: lib/pdf/GFXOutputDev.cc:1514: warning: comparison between signed and unsigned integer expressions error: command 'gcc' failed with exit status 1 Is this the full gcc output? Can you provide your config.log Ricardo
Re: [Swftools-common] [ LINKS ] [ BOOKMARKS ]
On Wed, Sep 30, 2009 at 3:09 PM, lisik b.li...@lp-system.fr wrote: Hi, I have a question about pdf2swf functionalities. I saw that it's possible to customize the visual appearance of links in the swf. I have just added -s to my command line followed by the parameter linkcolor with value FF. But it doesn't work, the links of my pdf are not displayed and don't have the color i have specified. Did I miss something in my command line ? Did you try with format: RRGGBBAA ? Ricardo