-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Aleks Berland CG Artist + Digital Media Designer Toronto, Ontario ph: 416.580.0876 Visit my Portfolio on the web at: http://karmakat.ca ( 3D / Motion Graphics / Video games & Interactive Media / Web / Print / Illustration) -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 11:17 AM To: [email protected] Subject: Swftools-common Digest, Vol 49, Issue 7 Send Swftools-common mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://lists.nongnu.org/mailman/listinfo/swftools-common or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Swftools-common digest..." Today's Topics: 1. Re: Correcting Real Movie Size ? (Bertrand L.) 2. PDF2SWF: can it produce valid AVM2 (Flash9) files? (Fabio Rotondo) 3. Re: PDF2SWF: can it produce valid AVM2 (Flash9) files? (Gregor Rot) 4. Re: PDF2SWF: can it produce valid AVM2 (Flash9) files? (Matthias Kramm) 5. Cannot compile swftools from CVS (Bertrand L.) 6. Re: Cannot compile swftools from CVS (Matthias Kramm) 7. Re: PDF2SWF: can it produce valid AVM2 (Flash9) files? (Fabio Rotondo) 8. Re: Cannot compile swftools from CVS (Bertrand L.) ---------------------------------------------------------------------- Message: 1 Date: Mon, 8 Oct 2007 11:09:24 +0200 From: "Bertrand L." <[EMAIL PROTECTED]> Subject: Re: [Swftools-common] Correcting Real Movie Size ? To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 2007/10/6, Matthias Kramm <[EMAIL PROTECTED]>: > On Fri, Oct 05, 2007 at 11:29:21AM +0200, Bertrand L. wrote: > > Alternatively, is there any mean in Flash to read the Original Movie > > Size instead of the Real Movie Size ? > > You can use > pdf2swf -s bboxvars file.pdf -o file.swf > . > Then, when you load file.swf, you can query the variables > "width", "height", "xmin", "ymin", "xmax", "ymax". Thanks a lot, this works great ! Cheers ! ------------------------------ Message: 2 Date: Mon, 08 Oct 2007 11:22:13 +0200 From: Fabio Rotondo <[EMAIL PROTECTED]> Subject: [Swftools-common] PDF2SWF: can it produce valid AVM2 (Flash9) files? To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 Hi, I am playing with PDF2SWF for a project I am writing. It requires the converted SWF to be imported inside a Flex3 app. The problem is that the SWF is imported as a AVM1 (Flash8 or less) file and I cannot communicate in the right way from my Flex3 application. While converting the PDF I don't want *ANY* ActionScript in it (I don't use preloader or viewer) so I think it could be easy to, at least, "fake" a AVM2 SWF file. There is a runtime solution at this address: http://www.danielhai.com/blog/?p=35 I don't know if it works: I'd like to "hack" the SWF file before loading it. I have also had a look at pdf2swf sources but they are too big to just begin the hack. BTW: Matthias, I am quite a good C coder (writing in C since 1992), and I am loving your SWF tools. Do you need any help? Ciao, Fabio ------------------------------ Message: 3 Date: Mon, 8 Oct 2007 12:02:34 +0200 From: "Gregor Rot" <[EMAIL PROTECTED]> Subject: Re: [Swftools-common] PDF2SWF: can it produce valid AVM2 (Flash9) files? To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" This already works, use patameters: "-T 9" caos, Gregor On 10/8/07, Fabio Rotondo <[EMAIL PROTECTED]> wrote: > > Hi, > > I am playing with PDF2SWF for a project I am writing. It requires the > converted SWF to be imported inside a Flex3 app. > > The problem is that the SWF is imported as a AVM1 (Flash8 or less) file > and I cannot communicate in the right way from my Flex3 application. > > While converting the PDF I don't want *ANY* ActionScript in it (I don't > use preloader or viewer) so I think it could be easy to, at least, > "fake" a AVM2 SWF file. > > There is a runtime solution at this address: > > http://www.danielhai.com/blog/?p=35 > > I don't know if it works: I'd like to "hack" the SWF file before loading > it. > I have also had a look at pdf2swf sources but they are too big to just > begin the hack. > > BTW: Matthias, I am quite a good C coder (writing in C since 1992), and > I am loving your SWF tools. Do you need any help? > > Ciao, > > Fabio > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.gnu.org/pipermail/swftools-common/attachments/20071008/0c0ce568 /attachment.html ------------------------------ Message: 4 Date: Mon, 8 Oct 2007 14:17:29 +0200 From: Matthias Kramm <[EMAIL PROTECTED]> Subject: Re: [Swftools-common] PDF2SWF: can it produce valid AVM2 (Flash9) files? To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii Hi Fabio, On Mon, Oct 08, 2007 at 11:22:13AM +0200, Fabio Rotondo wrote: > The problem is that the SWF is imported as a AVM1 (Flash8 or less) file > and I cannot communicate in the right way from my Flex3 application. Gregor is right- a -T9 should do the trick (in the latest CVS version). The corresponding AVM enabling code is to be found at lib/rfxswf.c at line 1314: if(swf->fileVersion >= 9) { if (swf->firstTag && swf->firstTag->id != ST_FILEATTRIBUTES) { U32 flags = 0x8; // | 128 = usenetwork, | 8 = hasmetadata swf_SetU32(swf_InsertTagBefore(swf, swf->firstTag,ST_FILEATTRIBUTES),flags); } } > BTW: Matthias, I am quite a good C coder (writing in C since 1992), 1992? Not bad. You beat me by 4 years :) > and I am loving your SWF tools. Do you need any help? Always! Of course, it depends on what you would like to help me with. The most pressing thing right now are natural gradients, i.e. the conversion of PDF gradients to SWF gradients. Right now, PDF gradients are converted to (thousands of) SWF polygons, even though SWF has a gradient command. In order to implement this, the gradient call in lib/devices/swf.c needs to be implemented, and lib/pdf/GFXOutputDev.cc needs to be tweaked os it passes gradients (shaded fills) through. Greetings Matthias ------------------------------ Message: 5 Date: Mon, 8 Oct 2007 15:54:39 +0200 From: "Bertrand L." <[EMAIL PROTECTED]> Subject: [Swftools-common] Cannot compile swftools from CVS To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 Hi, Wanting to try the swfrender utility, I grabbed the CVS source and tried to compile it. But there are always one thousand errors while compiling one file, there are the first ones : make[2]: Entering directory `/home/test/swftools/lib/pdf' g++ -c -DHAVE_CONFIG_H -I/home/test/include -I/usr/include/freetype2 -Ilame -fPIC -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer -I ./ -I xpdf GFXOutputDev.cc -o GFXOutputDev.o GFXOutputDev.cc:38:20: config.h: No such file or directory GFXOutputDev.cc:39:19: gfile.h: No such file or directory GFXOutputDev.cc:40:21: GString.h: No such file or directory GFXOutputDev.cc:41:18: gmem.h: No such file or directory GFXOutputDev.cc:42:20: Object.h: No such file or directory GFXOutputDev.cc:43:20: Stream.h: No such file or directory GFXOutputDev.cc:44:19: Array.h: No such file or directory GFXOutputDev.cc:45:18: Dict.h: No such file or directory GFXOutputDev.cc:46:18: XRef.h: No such file or directory GFXOutputDev.cc:47:21: Catalog.h: No such file or directory GFXOutputDev.cc:48:18: Page.h: No such file or directory GFXOutputDev.cc:49:20: PDFDoc.h: No such file or directory GFXOutputDev.cc:50:19: Error.h: No such file or directory GFXOutputDev.cc:51:18: Link.h: No such file or directory GFXOutputDev.cc:52:23: OutputDev.h: No such file or directory GFXOutputDev.cc:53:21: GfxFont.h: No such file or directory GFXOutputDev.cc:54:22: GfxState.h: No such file or directory GFXOutputDev.cc:55:31: CharCodeToUnicode.h: No such file or directory GFXOutputDev.cc:56:32: NameToUnicodeTable.h: No such file or directory GFXOutputDev.cc:57:26: GlobalParams.h: No such file or directory GFXOutputDev.cc:58:24: FoFiType1C.h: No such file or directory GFXOutputDev.cc:59:26: FoFiTrueType.h: No such file or directory GFXOutputDev.cc:60:19: GHash.h: No such file or directory I am using Slackware Linux 10.2. Please note that I can compile both the released version 0.8.1 and the development snapshot from september, but neither contain the swfrender utility. Do I miss something ? Thanks in advance. ------------------------------ Message: 6 Date: Mon, 8 Oct 2007 16:40:24 +0200 From: Matthias Kramm <[EMAIL PROTECTED]> Subject: Re: [Swftools-common] Cannot compile swftools from CVS To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii On Mon, Oct 08, 2007 at 03:54:39PM +0200, Bertrand L. wrote: > Wanting to try the swfrender utility, I grabbed the CVS source and > tried to compile it. But there are always one thousand errors while > compiling one file, there are the first ones : > > make[2]: Entering directory `/home/test/swftools/lib/pdf' > g++ -c -DHAVE_CONFIG_H -I/home/test/include -I/usr/include/freetype2 > -Ilame -fPIC -fPIC -Wparentheses -Wimplicit -Wreturn-type -O > -fomit-frame-pointer -I ./ -I xpdf GFXOutputDev.cc -o GFXOutputDev.o > GFXOutputDev.cc:38:20: config.h: No such file or directory > GFXOutputDev.cc:39:19: gfile.h: No such file or directory Please download a recent xpdf version from http://foolabs.com/xpdf/ and place it in lib/pdf/ Then run: perl injectxpdf.pl pdf-3.02.tar.gz Greetings Matthias ------------------------------ Message: 7 Date: Mon, 08 Oct 2007 17:08:17 +0200 From: Fabio Rotondo <[EMAIL PROTECTED]> Subject: Re: [Swftools-common] PDF2SWF: can it produce valid AVM2 (Flash9) files? To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 Matthias Kramm wrote: Hi Gregor and Matthias, I have compiled the "-dev" version of pdf2swf, and calling conversion with these parameters: pdf2swf -T9 -f -p 1 -s insertstop -s jpegquality=50 "in.pdf" -o "out.swf" but I get the following WARNINGS: WARNING Ignored parameter: flashversion=9 WARNING Ignored parameter: storeallcharacters=1 WARNING Ignored parameter: insertstop=1 WARNING Ignored parameter: jpegquality=50 NOTICE processing PDF page 1 (453x680:0:0) (move:0:0) NOTICE SWF written Is it really working or am I missing anything? > Of course, it depends on what you would like to help me with. > > The most pressing thing right now are natural gradients, i.e. the > conversion of PDF gradients to SWF gradients. Right now, PDF gradients > are converted to (thousands of) SWF polygons, even though SWF has a > gradient command. > In order to implement this, the gradient call in lib/devices/swf.c needs > to be implemented, and lib/pdf/GFXOutputDev.cc needs to be tweaked os it > passes gradients (shaded fills) through. Ok. I'll have a look. BTW: where can I find a reference of SWF commands and their syntax? (if any?) Ciao, Fabio ------------------------------ Message: 8 Date: Mon, 8 Oct 2007 17:16:32 +0200 From: "Bertrand L." <[EMAIL PROTECTED]> Subject: Re: [Swftools-common] Cannot compile swftools from CVS To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 Hi Matthias, I tried your method but it didn't work well. I downloaded the xpdf 3.02 source and ran your perl script, I got lots of text coming from successful patching, but I also got the following suspect messages : patching file config.h Hunk #1 FAILED at 53. 1 out of 2 hunks FAILED -- saving rejects to file config.h.rej and at the end : Hunk #1 succeeded at 919 (offset -6 lines). Died at inject-xpdf.pl line 18. Running again "make" gave me the same errors. Looking at the command line, I guessed that I needed to make a symbolic link from /lib/pdf/xpdf-3.02 to /lib/pdf/xpdf I ran "make" again, this time the GfxOutputDev.cc compiled successfully but the next file failed with the following errors : g++ -c -DHAVE_CONFIG_H -I/home/test/include -I/usr/include/freetype2 -Ilame -fPIC -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer -I ./ -I xpdf InfoOutputDev.cc -o InfoOutputDev.o In file included from xpdf/SplashOutputDev.h:21, from InfoOutputDev.cc:2: xpdf/OutputDev.h:155: error: type specifier omitted for parameter `Object' xpdf/OutputDev.h:155: error: syntax error before `*' token xpdf/OutputDev.h:190: error: type specifier omitted for parameter `Object' xpdf/OutputDev.h:190: error: syntax error before `*' token xpdf/OutputDev.h:193: error: type specifier omitted for parameter `Object' xpdf/OutputDev.h:193: error: syntax error before `*' token xpdf/OutputDev.h:196: error: type specifier omitted for parameter `Object' xpdf/OutputDev.h:196: error: syntax error before `*' token xpdf/OutputDev.h:201: error: type specifier omitted for parameter `Object' xpdf/OutputDev.h:201: error: syntax error before `*' token xpdf/OutputDev.h:220: error: `Ref' was not declared in this scope xpdf/OutputDev.h:220: error: syntax error before `)' token xpdf/OutputDev.h:92: error: `NULL' was not declared in this scope xpdf/OutputDev.h:93: error: `NULL' was not declared in this scope make[2]: *** [InfoOutputDev.o] Error 1 Since I saw a xpdf-3.01 folder in lib/pdf, I also tried to use the 3.01 version of xpdf source, I got exactly the same message from the perl scripts. I made a symbolic link as before and tried make, and this time I got this : g++ -c -DHAVE_CONFIG_H -I/home/test/include -I/usr/include/freetype2 -Ilame -fPIC -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer -I ./ -I xpdf GFXOutputDev.cc -o GFXOutputDev.o GFXOutputDev.cc: In member function + char* GFXOutputDev::writeEmbeddedFontToFile(XRef*, GfxFont*) ;: GFXOutputDev.cc:1707: error: no matching function for call to `FoFiType1C:: convertToType1(int, NULL, int, void (&)(void*, char*, int), FILE*&)' xpdf/FoFiType1C.h:162: error: candidates are: void FoFiType1C::convertToType1(char**, int, void (*)(void*, char*, int), void*) make[2]: *** [GFXOutputDev.o] Error 1 Any idea ? ------------------------------ _______________________________________________ Swftools-common mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/swftools-common End of Swftools-common Digest, Vol 49, Issue 7 ********************************************** __________ NOD32 2577 (20071008) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
