Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Cameron McBride
Document Previews (ImageMagick) 6.1 EE GA1?
23 de febrero de 2012 7:53
Respuesta

Cameron McBride

Ranking: Expert

Mensajes: 273

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

In Liferay 6.1 CE to get document previews you enable the Open Office integration. In 6.1 EE GA1 they have changed this to ImageMagick.

I have checked the Enable ImageMagick box and entered the path to it: C:\Program Files\ImageMagick-6.7.5-Q16
Next I publish a word document and a spreadsheet that both worked in 6.1 CE. After 20 minutes I still just get the message "Generating preview will take a few minutes.".

I checked the log file in <liferay>\logs and in <liferay>\<tomcat>\logs and did not see anything good or bad in there. I also tried restarting the portal and publishing a 3rd document.

Any tips on how to get document previews going would be awesome!
Mika Koivisto
RE: Document Previews (ImageMagick) 6.1 EE GA1?
23 de febrero de 2012 13:36
Respuesta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1498

Fecha de incorporación: 7 de agosto de 2006

Mensajes recientes

I think all non pdf or image documents require also OpenOffice to be configured and running.
Cameron McBride
RE: Document Previews (ImageMagick) 6.1 EE GA1?
24 de febrero de 2012 4:58
Respuesta

Cameron McBride

Ranking: Expert

Mensajes: 273

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

I do have open office up and running and that option enabled in Liferay. When I go to the document (which now has no preview) on the right I have the conversion options, like turning a .doc to a .pdf.
Mika Koivisto
RE: Document Previews (ImageMagick) 6.1 EE GA1?
28 de febrero de 2012 9:10
Respuesta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1498

Fecha de incorporación: 7 de agosto de 2006

Mensajes recientes

Hmm. Interesting. Have you tried that the conversion to pdf works?
Cameron McBride
RE: Document Previews (ImageMagick) 6.1 EE GA1?
28 de febrero de 2012 13:08
Respuesta

Cameron McBride

Ranking: Expert

Mensajes: 273

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

The document conversion works great or at least the same as it worked before.
Cameron McBride
RE: Document Previews (ImageMagick) 6.1 EE GA1?
6 de marzo de 2012 13:20
Respuesta

Cameron McBride

Ranking: Expert

Mensajes: 273

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

Anything else I can try to get this working so I can demo it off to some folks? We are currently running a trial of EE but hopefully we get our real EE license soon. I can make a ticket at that point I suppose.
Mika Koivisto
RE: Document Previews (ImageMagick) 6.1 EE GA1?
7 de marzo de 2012 11:21
Respuesta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1498

Fecha de incorporación: 7 de agosto de 2006

Mensajes recientes

Well if ImageMagick does not work on your system you can run without it too. Then it'll use PDFBox which has worked very well for me. Once I have some time I'll install ImageMagick on my Mac to see how it works. Did you also install Ghostscript? I think that is also required for the imagemagick conversion to work.
Cameron McBride
RE: Document Previews (ImageMagick) 6.1 EE GA1?
7 de marzo de 2012 11:23
Respuesta

Cameron McBride

Ranking: Expert

Mensajes: 273

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

I did not install anything except for ImageMagic for Windows and configured the path in Liferay. I do not see a place in Liferay to tell it to use this PDFBox instead.
Mika Koivisto
RE: Document Previews (ImageMagick) 6.1 EE GA1?
7 de marzo de 2012 14:45
Respuesta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1498

Fecha de incorporación: 7 de agosto de 2006

Mensajes recientes

Just set imagemagick.enabled=false in your portal-ext.properties. This is the default value.
Mika Koivisto
RE: Document Previews (ImageMagick) 6.1 EE GA1?
7 de marzo de 2012 14:48
Respuesta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1498

Fecha de incorporación: 7 de agosto de 2006

Mensajes recientes

Just noticed we have some troubleshooting tips for preview generation in Preview Generation Wiki article
Cameron McBride
RE: Document Previews (ImageMagick) 6.1 EE GA1?
8 de marzo de 2012 8:49
Respuesta

Cameron McBride

Ranking: Expert

Mensajes: 273

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

That article helped and I've made some progress. First I have turned off ImageMagic since it doesn't work. The troubleshooting is really for Linux/Mac and not Windows. No errors come out so I am unsure how to resolve it. Turning off ImageMagic reverts back to PDFBox so previews are working again.

PDF is previewed by PDFBox
Word/Excel/Other is converted to PDF and previewed by PDFBox (I assume this is what's happening)
The fonts are all unreadable and garbage, I guess that is why they say to use the non-working ImageMagic

Documents published before this was turned on look like they lose out on both Previews and Conversion.

I also installed and turned on Xuggler. I get tons of errors in the logs so that gives me something to work on.
David Coulbeau
RE: Document Previews (ImageMagick) 6.1 EE GA1?
2 de abril de 2012 3:17
Respuesta

David Coulbeau

Ranking: New Member

Mensajes: 8

Fecha de incorporación: 26 de octubre de 2007

Mensajes recientes

Hi,

Installing Ghostscript on the server solves the problem for me.

Try to open a pdf from "image magick display" on you server, if you have an error (postcript delegate failed), then ghostscript is not installed.

install it and retry the conversion.

Now i can convert all pdf faster with good quality.

regards

david
Milan Palian
RE: Document Previews (ImageMagick) 6.1 EE GA1?
6 de julio de 2012 12:15
Respuesta

Milan Palian

Ranking: Junior Member

Mensajes: 43

Fecha de incorporación: 10 de diciembre de 2009

Mensajes recientes

I thought it did not work on CE 6.1 GA1, but it does.

I am using opensuse 12.1 with ImageMagick and Ghostscript and it was throwing a file not found on "convert", but it was just a matter of setting up the paths correctly to the ImageMagick executables and fonts in the management console. I thought they were correct, but they were not.
Milan Palian
RE: Document Previews (ImageMagick) 6.1 EE GA1?
7 de julio de 2012 0:51
Respuesta

Milan Palian

Ranking: Junior Member

Mensajes: 43

Fecha de incorporación: 10 de diciembre de 2009

Mensajes recientes

Milan Palian:
I thought it did not work on CE 6.1 GA1, but it does.

It turned out that preview works better when using ImageMagick than just PDFBox, but I could not download some of the pdfs, it starts the download and hangs. So I had to go back to PDFBox, which at least works. Incidentally, I had a lot of problems with PDFs not being displayed, still do. It seems that Liferay cannot handle everything that tools like Nitro Box can do to a file and when you get files from users, you have to control over it.
David PROVOST
RE: Document Previews (ImageMagick) 6.1 EE GA1?
15 de octubre de 2012 23:38
Respuesta

David PROVOST

Ranking: New Member

Mensajes: 1

Fecha de incorporación: 16 de noviembre de 2011

Mensajes recientes

Milan Palian:
but I could not download some of the pdfs, it starts the download and hangs.

I think this is not related to preview / imagemagik. We experienced some problems with pdf browser plugins like Adobe reader 9.5. The plugin can display a pdf while still downloading it. This is performed through partial download requests, which seem not to be correctly managed by Liferay 6.1. We have an open ticket about this issue.
Juan Gonzalez
RE: Document Previews (ImageMagick) 6.1 EE GA1?
16 de octubre de 2012 0:44
Respuesta

Juan Gonzalez

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1931

Fecha de incorporación: 28 de octubre de 2008

Mensajes recientes

Hi Milan,

As other member said, this has nothing to do with PDF preview. There is a known issue in 6.1.1 GA (probably 6.1.0 too) when trying to see inline PDF using IE and SSL.

And yes, ImageMagick does better PDF preview than PDFBox.