yangfengchen / flexpaper

Automatically exported from code.google.com/p/flexpaper
0 stars 0 forks source link

swf not open in flexpaper.only paper 3 oppen n flexpaer. #201

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.convert pdf to swf using pdf2swf converter.
2.flexpaperviewer.loadsswf("filename.swf");
3.pdf not open in contaainer.

What is the expected output? What do you see instead?
pdf open in flexviewer,paper3 was open in viewer.

What version of the product are you using? On what operating system?
flex_paper sdk4,iridia-FlexPaper-6d99282,mozilla5.1,win7 home primium

Please provide any additional information below.

Original issue reported on code.google.com by devdix...@gmail.com on 3 Jun 2011 at 1:09

GoogleCodeExporter commented 8 years ago
how have you converted your document?

Original comment by erik.eng...@devaldi.com on 17 Jun 2011 at 2:19

GoogleCodeExporter commented 8 years ago
Hi,

I have the exact same issue.

We convert hundreds of pdf's to swf using SWFTools (pdf2swf.exe) and all swf's 
are created successfully.
All pdf's have a similar structure, and yet 30%-50% of the swf's can't be 
opened by FlexPaper.

This issue seems to be caused by FlexPaper not dispatching a COMPLETE event 
when all bytes are processed (it does actually read every byte).

I have already contacted Erik (the developer) about this, but to no avail.

If you have any input on this issue, please post it here.

Bart
Docbyte

Original comment by bart.thi...@docbyte.com on 17 Jun 2011 at 3:51

GoogleCodeExporter commented 8 years ago
Hi Bart,
sorry if your case has been lost. Can you give me a URL or example of a SWF 
file which does not load? How are you loading your documents? Progressively ?

Original comment by erik.eng...@devaldi.com on 18 Jun 2011 at 7:39

GoogleCodeExporter commented 8 years ago
to add to Bart;

.. to continue our previous conversation; I have asked you to send me a SWF 
file earlier (sent you a mail May 28) which does not work but you have not 
responded to my email. 

A swf file or a URL will do fine but you have to provide some material for us 
to test, none of our other clients are reporting these issues

Original comment by erik.eng...@devaldi.com on 18 Jun 2011 at 7:44

GoogleCodeExporter commented 8 years ago
To add is that this only seems related to the SDK4 build which we are working 
on to have in final version (still in beta)

Original comment by erik.eng...@devaldi.com on 18 Jun 2011 at 7:47

GoogleCodeExporter commented 8 years ago
Hi Erik,

I've looked through my emails and you're right.  I was convinced I had sent you 
a swf file.
I have sent you one.

We have a repository (Documentum) in which our content is stored.
We have a Java servlet that gets the swf content and streams it.

Flexpaper receives the url to servlet (ie.  
http://appserver:8080/webapp/StreamServlet?id=450242

Bart

Original comment by bart.thi...@docbyte.com on 20 Jun 2011 at 1:18

GoogleCodeExporter commented 8 years ago
The SWF file which you have sent me does not work but when I perform the 
conversion my resulting SWF file works fine. This means that your SWFTools 
installation is corrupt or you are using an older version of SWFTools (older 
than 0.9.0). Please try to reinstall SWFTools and make sure its at least 0.9.0

I have sent you the SWF file resulting from my conversion, which works. 

All the best
Erik

Original comment by erik.eng...@devaldi.com on 20 Jun 2011 at 7:37

GoogleCodeExporter commented 8 years ago
To avoid information being lost, I'll post my email reply to Erik here aswell:

Hi Erik,

Our SWFTools installation is the newest.  
I doubt it is corrupt since it will generate correct SWF’s that can be opened 
by everything except FlexPaper.

What do you mean with ‘does not work’?  I can open the SWF perfectly in 
browser, standalone flashplayer,...  just not in FlexPaper.
I will test your new SWF in FlexPaper asap and report back.

Greetings,
Bart

Original comment by bart.thi...@docbyte.com on 21 Jun 2011 at 6:29

GoogleCodeExporter commented 8 years ago
Btw, it doesn't always generate 'bad' SWF's.  Most of them CAN be opened.

Also, why is this closed already?  The problem still persists and our SWFTools 
is a correct version.

Original comment by bart.thi...@docbyte.com on 21 Jun 2011 at 6:30

GoogleCodeExporter commented 8 years ago
swf that is generated by pdf2swf convertor open in any where except
the flexpaper.

Original comment by devdix...@gmail.com on 21 Jun 2011 at 7:07

GoogleCodeExporter commented 8 years ago
I have seen corrupt SWFTools installations producing SWF files with a incorrect 
header as in this example before. It has always been resolved by reinstalling 
SWFTools (or installing it on a different machine)

Original comment by erik.eng...@devaldi.com on 21 Jun 2011 at 8:58

GoogleCodeExporter commented 8 years ago
I have an update on this:

It seems that the problem was that we did not provide parameters while 
executing pdf2swf.exe.
We used to do it, but since we automated the conversion by a tool, it got lost 
somewhere.

We have now added the "-T 9 -f" back tot he conversion and it seems that all 
SWF's are visible again in FlexPaper.

The only thing I don't understand, is why some SWF's were 'corrupt' and some 
were not.
For example, we converted 100 PDF's with the same structure, generated by the 
same program (so they have the same overlays/text/images/...), and yet most of 
them were no problem.

Bart
Docbyte

Original comment by bart.thi...@docbyte.com on 23 Jun 2011 at 6:26