huhaibo / flexpaper

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

Viewer not displaying single page files #164

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create single page PDFfile (from any source)
2. Convert it with swftools to swf file
3. Load in flexpaper

What is the expected output? What do you see instead?

expected:
Flexpaper loads and display the document

result:
Flexpaper loads indef. the document (spinner running) and doesn't load the file.

What version of the product are you using? On what operating system?
v1.4.1 (free), 
flash 10,1,102,64 on windows7 (ff 3.6.13)

swftools 0.9.1 (windows, ubuntu and centos)

Please provide any additional information below.

swf file display like a charm when called directly in browser (tried loacaly 
and remotely).

test case files attached (both pdf and swf).

Original issue reported on code.google.com by sst...@gmail.com on 19 Jan 2011 at 9:25

Attachments:

GoogleCodeExporter commented 8 years ago
Are you running SwfTools 0.9.0 or later? and using which parameters are you 
converting your documents?

Original comment by erik.eng...@devaldi.com on 21 Mar 2011 at 5:30

GoogleCodeExporter commented 8 years ago
Sorry did not see your details. This is most likely due to a corrupt 
installation of PDF2SWF. Please try this on a different machine

Original comment by erik.eng...@devaldi.com on 27 Mar 2011 at 11:03

GoogleCodeExporter commented 8 years ago
problem solved: call to swftools (0.9.1) needed some tweeking.

feel free to close the issue and thx :)

Original comment by sst...@gmail.com on 27 Mar 2011 at 11:49

GoogleCodeExporter commented 8 years ago
Closed. See details above.

Original comment by erik.eng...@devaldi.com on 31 Mar 2011 at 10:07

GoogleCodeExporter commented 8 years ago

Original comment by erik.eng...@devaldi.com on 31 Mar 2011 at 10:07

GoogleCodeExporter commented 8 years ago
But whats the solution? Whats the tweeking needed with swftools?
I am looking for the reply

Original comment by sagar.sh...@gmail.com on 23 Apr 2011 at 11:09

GoogleCodeExporter commented 8 years ago
this is call to pdf2swf that works for me:

/usr/local/bin/pdf2swf {infile} -o {outfile} -f -T 9 -t -s storeallcharacters

Original comment by sst...@gmail.com on 23 Apr 2011 at 11:44

GoogleCodeExporter commented 8 years ago
when use gfx API,you can set param as follow, it works for me
pdf = gfx.open("pdf", pdf_file)
swf = gfx.SWF()
swf.setparameter('flashversion', '9')
for pagenr in range(1, pdf.pages + 1):
    page = pdf.getPage(pagenr)
    swf.startpage(page.width, page.height)
    page.render(swf)
    swf.endpage()
swf.save(pre_file)

Original comment by isware...@gmail.com on 3 Aug 2013 at 6:01