sethumadhavan / flexpaper

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

Prints First Page Only #159

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Open document in FlexPaper
2. Click 'Print' icon
3. Select Print range
4. Click 'Print' button
5. Select system printer
6. Click 'Print' button in system dialog

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

Expected: Each page to print (i.e. pages 1,2,3,etc.)
Actual: Only the first page prints (as many times as page range)

Examples (using a 3-page document):
a) print "All" = 3 copies of Page 1
b) print "2,3" = 2 copies of Page 1
c) viewing page 2; print "Current" = 1 copy of Page 1

What version of the product are you using? On what operating system?

Occurs with both FlexPaper v.1.4.0 and v.1.4.1
Fedora (2.6.32.12-115.fc12.x86_64)

Please provide any additional information below.

Tests accessed page (hosted on Linux box) using WinXP+FF, WinXP+MSIE, 
WinXP+Opera, Win7+MSIE, Ubuntu+FF, Ubuntu+Chrome, Fedora10+Konqueror from 
multiple machines.

Original issue reported on code.google.com by stupidsc...@gmail.com on 11 Jan 2011 at 11:59

GoogleCodeExporter commented 8 years ago
For the record, here's my execution string:

pdf2swf original.pdf -o converted.swf -f -T 9 -t -s storeallcharacters -G

Original comment by stupidsc...@gmail.com on 12 Jan 2011 at 12:17

GoogleCodeExporter commented 8 years ago
do you have a sample document?

Original comment by erik.eng...@devaldi.com on 12 Jan 2011 at 12:20

GoogleCodeExporter commented 8 years ago
Also note that FlexPaperViewer_debug.html running on the same server embedded 
with Paper.swf using the same clients prints correctly (i.e. printing pages 2-3 
actually prints pages 2-3.) TIA.

Original comment by stupidsc...@gmail.com on 12 Jan 2011 at 12:21

GoogleCodeExporter commented 8 years ago
I am attaching the sample used for this testing. Thanks.

Original comment by stupidsc...@gmail.com on 12 Jan 2011 at 12:25

Attachments:

GoogleCodeExporter commented 8 years ago
Here's the original PDF, converted from Microsoft Word to PDF via command line 
(headless) OpenOffice running on the server.

Original comment by stupidsc...@gmail.com on 12 Jan 2011 at 12:32

Attachments:

GoogleCodeExporter commented 8 years ago
NOTE: It seems FlexPaper also cannot either select text or search documents 
produced in the way I am producing them. In Acrobat and Acrobat Reader, 
however, the text IS selectable and searchable. In addition, my site's search 
function (a bastardized implementation of Drupal's search function) 
successfully indexes the PDF files.

I love the FlexPaper product. I hope we can figure this out.

Original comment by stupidsc...@gmail.com on 12 Jan 2011 at 12:47

GoogleCodeExporter commented 8 years ago
A little more info on the conversion-to-PDF process:

I'm running a "headless" OpenOffice setup on the Fedora server. Documents that 
are uploaded (Drupal installation) are processed through a Java app 
(jodconverter) by "opening" the file in the background in OpenOffice, and 
saving it as a PDF file, from there.

Here's the "pipeline", called from a Drupal module (heavily modified 
"FileFramework" module):

mv "[in_file]" "[in_file].doc"; java -jar 
/opt/jodconverter/lib/jodconverter-cli-2.2.2.jar -f pdf "[in_file].doc"; mv 
"[in_file].doc" "[in_file]"; mv "[in_file].pdf" "[out_file]"

Lastly, here is some info from the jodconverter README file:

This is JODConverter version 2.2.2, released on 2009-04-11.

JODConverter is a Java library for converting office documents into different
formats, using OpenOffice.org 2.x or 3.x.

See http://www.artofsolving.com/opensource/jodconverter for the latest 
documentation.

Before you can perform any conversions you need to start OpenOffice.org
in listening mode on port 8100 as described in the JODConverter Guide.

As a quick start you can type from a command line

  soffice -headless -accept="socket,port=8100;urp;"

JODConverter is both a Java library and a set of ready-to-use tools:

 * a web application that you can deploy into any servlet container (e.g. Apache Tomcat)
 * a command line tool (java -jar jodconverter-cli-2.2.2.jar <input-document> <output-document>)

Original comment by stupidsc...@gmail.com on 12 Jan 2011 at 12:56

GoogleCodeExporter commented 8 years ago
There's something wrong with your PDF2SWF installation. I converted your 
document with the following commands:

pdf2swf original.pdf -o Testcase_18_PDF2SWF_0.9.0_nonprintable2 -f -T 9 -t -G 
-s storeallcharacters

and it produced a text-selectable, searchable SWF file. Attaching my sample 
file here.

Original comment by erik.eng...@devaldi.com on 12 Jan 2011 at 12:56

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by erik.eng...@devaldi.com on 12 Jan 2011 at 12:57

GoogleCodeExporter commented 8 years ago
Thank you for your reply. Could you please let me know which operating system 
and version of pdf2swf you are using? I am still unsuccessful in getting 
anything different even using previous versions of pdf2swf or the latest dev 
version. They are all installing without errors. All behave the same way when 
rendered in FlexPaper on my system. Thanks, again.

Original comment by stupidsc...@gmail.com on 12 Jan 2011 at 7:02

GoogleCodeExporter commented 8 years ago
That particular example was generated using the windows version and PDF2SWF 
0.9.1 even though my file name says 0.9.0. I would guess that there is a 
version issue somewhere with one of the libraries PDF2SWF is dependent on. 

I don't have a lot of experience running PDF2SWF on fedora, I have used it on 
Windows, Ubuntu and Debian based systems without issues

Original comment by erik.eng...@devaldi.com on 12 Jan 2011 at 7:11

GoogleCodeExporter commented 8 years ago
Thank you. I agree with your evaluation. This is very unfortunate.

Hopefully someone will assist with disabling the print, search and
selection tools (Issue #160) so I can continue to at least offer the
FlexPaper viewer for basic viewing.

Again, I very much appreciate your help.

Original comment by stupidsc...@gmail.com on 12 Jan 2011 at 7:16