Opened 6 years ago

Closed 5 years ago

#604 closed bug (worksforme)

Image not appearing on Form generated

Reported by: crogers Owned by:
Priority: minor Milestone:
Component: Core Version: 7.4.2
Keywords: Cc:

Description

Images are not appearing on 'forms' generated in LogicalDOC.

Used the 'Image' button to add the logo to the form when creating template.

Generated the form from completing the template fields and then downloaded the document to find that no image appears on the form.

Please advise?

Attachments (3)

Form_creation.JPG (45.0 KB) - added by adminusername 6 years ago.
Use the 'Image' button to add logo to form template
Form_no image.JPG (15.5 KB) - added by adminusername 6 years ago.
No image displayed on generated form
ScreenHunter_135 Oct. 15 10.36.gif (23.2 KB) - added by adminusername 6 years ago.
browse server image

Download all attachments as: .zip

Change History (16)

comment:1 Changed 6 years ago by car031

  • Resolution set to worksforme
  • Status changed from new to closed

The images must be picked from the LogicalDOC repository, please click on Browse Server. Please select a .jpg or .gif image to be more sure that the PDF rendering engine is able to correctly display the image. I attached a screenshot.

comment:2 Changed 6 years ago by jkenyon

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I can confirm that the image files are picked from the LogicalDOC repository, they appear fine when editing the form however are not included in the rendered PDF. Is there anything else to check?

comment:3 Changed 6 years ago by car031

What happens is that the document is rendered by Open Office and Open Office may not be able to include the images, to check this just try to ask the Pdf conversion and see is the images are or are not rendered.

comment:4 Changed 6 years ago by jkenyon

We have tried the "Export as PDF" function on the images used in the forms and this works fine. Is there anything else to check?

comment:5 Changed 6 years ago by car031

If the images appears correctly in the PDF, there would be something in SWFTools that prevents pdf2swf to correctly render those documents. You should try to create a new document from scratch, try to preview it and then access the log file tomcat\logs\catalina.out

comment:6 Changed 6 years ago by jkenyon

Here is the snippet from the catalina.out log

transaction: null
transaction: 0
transaction event: event.stored
Nov 04, 2015 3:28:47 PM org.artofsolving.jodconverter.office.ProcessPoolOfficeManager? <init>
INFO: ProcessManager? implementation is PureJavaProcessManager?
Nov 04, 2015 3:28:47 PM org.artofsolving.jodconverter.office.OfficeProcess? prepareInstanceProfileDir
WARNING: profile dir '/opt/LogicalDOC/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-8100' already exists; deleting
Nov 04, 2015 3:28:48 PM org.artofsolving.jodconverter.office.OfficeProcess? start
INFO: starting process with acceptString 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1' and profileDir '/opt/LogicalDOC/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-8100'
Nov 04, 2015 3:28:48 PM org.artofsolving.jodconverter.office.OfficeProcess? start
INFO: started process
Nov 04, 2015 3:28:48 PM org.artofsolving.jodconverter.office.OfficeConnection? connect
INFO: connected: 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'
java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

comment:7 Changed 6 years ago by jkenyon

Updated to LogicalDOC 7.4 - still have the same issue. Any update on this one?

comment:8 Changed 6 years ago by car031

if you enter in the system from localhost and you add an image in the form and save. Is the image displayed correctly ?

comment:9 Changed 6 years ago by jkenyon

Unfortunately I cannot login to LogicalDOC from the localhost, as our LogicalDOC CentOS servers have no GUI, it is command line only.

comment:10 Changed 6 years ago by car031

  • Milestone set to 7.4.1
  • Resolution set to fixed
  • Status changed from reopened to closed

Ok it seems OpenOffice? is not able to render the imagesif you are not in localhost,we solved this now and will made available the fixin the 7.4.1

comment:11 Changed 6 years ago by jkenyon

Tested this again in 7.4.2 - still not working.

Here is a snippet from the catalina.out log:

Feb 26, 2016 7:19:34 AM org.artofsolving.jodconverter.office.PooledOfficeManager?$2 run
INFO: reached limit of 5 maxTasksPerProcess: restarting
Feb 26, 2016 7:19:38 AM org.artofsolving.jodconverter.office.OfficeConnection?$1 disposing
INFO: disconnected: 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'
Feb 26, 2016 7:19:41 AM org.artofsolving.jodconverter.office.ManagedOfficeProcess? doEnsureProcessExited
INFO: process exited with code 139
Feb 26, 2016 7:19:41 AM org.artofsolving.jodconverter.office.OfficeProcess? start
INFO: starting process with acceptString 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1' and profileDir '/opt/LogicalDOC/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-8100'
Feb 26, 2016 7:19:41 AM org.artofsolving.jodconverter.office.OfficeProcess? start
INFO: started process
Feb 26, 2016 7:19:46 AM org.artofsolving.jodconverter.office.OfficeConnection? connect
INFO: connected: 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'
java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

java.io.IOException: Stream closed

at java.io.BufferedInputStream?.getBufIfOpen(BufferedInputStream?.java:170)
at java.io.BufferedInputStream?.read(BufferedInputStream?.java:336)
at sun.nio.cs.StreamDecoder?.readBytes(StreamDecoder?.java:284)
at sun.nio.cs.StreamDecoder?.implRead(StreamDecoder?.java:326)
at sun.nio.cs.StreamDecoder?.read(StreamDecoder?.java:178)
at java.io.InputStreamReader?.read(InputStreamReader?.java:184)
at java.io.BufferedReader?.fill(BufferedReader?.java:161)
at java.io.BufferedReader?.readLine(BufferedReader?.java:324)
at java.io.BufferedReader?.readLine(BufferedReader?.java:389)
at com.logicaldoc.util.exec.StreamEater?.run(StreamEater?.java:28)
at java.lang.Thread.run(Thread.java:745)

comment:12 Changed 6 years ago by jkenyon

  • Milestone 7.4.1 deleted
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version changed from 7.3 to 7.4.2

Changed 6 years ago by adminusername

Use the 'Image' button to add logo to form template

Changed 6 years ago by adminusername

No image displayed on generated form

Changed 6 years ago by adminusername

browse server image

comment:13 Changed 5 years ago by car031

  • Resolution set to worksforme
  • Status changed from reopened to closed

tried again in a 7.5.3 and all works properly

Note: See TracTickets for help on using tickets.