Open PDF from within CPG - work in progress - 1.4.10 - Page 2 Open PDF from within CPG - work in progress - 1.4.10 - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Open PDF from within CPG - work in progress - 1.4.10

Started by Hein Traag, November 27, 2006, 07:08:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hein Traag

Almost there. I think it's the path that ghostscript was installed at by my sysadmin.
It now displays this in FF and a red cross in IE
            |
< Browse this document >


At home now with no access to pst file at work. I'll adjust the path to what my sysadmin send me. I thought it was /usr/bin/gs but i guess that's not the case since it does not display  ;D. I'll report back tomorow.

Hein

Little update

i tried uploading and batch adding a new pdf file. Which resulted in this error
Error 127 on command '/usr/bin/gs -sDEVICE=jpeg -dNOPAUSE -dBATCH -sOutputFile='albums/edit/pdftmp.dare_auteursrecht.pdf.%d.jpg' 'albums/pdftest/dare_auteursrecht.pdf''
I think it's because the gs path is not set correctly. Will try again tomorow.

Thanks Sami for the work so far  ;)

Hein Traag

Set the correct path but my sysadmin just now informed me that the gs is outside my path.
But i will test it on a other rig i got setup, hopefully this afternoon.


Error 127 also. What does that error mean ?

Hein

Sami

Hein I'm not familier with GS , I'm just trying to port Nibbler's code from 1.3.x version to 1.4.x

BTW I'll googling for this error ....
‍I don't answer to PM with support question
Please post your issue to related board

Hein Traag

Quote from: Sami on December 08, 2006, 05:23:23 AM
Hein I'm not familier with GS , I'm just trying to port Nibbler's code from 1.3.x version to 1.4.x

BTW I'll googling for this error ....

I know and it is much appreciated. I did try to google it but it got too technical for me to get a grip on it.

Hein

Nibbler


Hein Traag

Good timing Nibbler  :)

Thanks, i'll go talk with my sysadmin.

Thanks
Hein

francisr6

Hi.

I'm new on this topic but really concerned. I did install ghostscript on my server and did put the ghostscript path in picmgmt.inc.php.
(for me the path is : /usr/share/ghostscript/7.07/lib)
I get the "Browse this document (with a arrow on the left and right)" instead of the pdf thumb (as we have in the original demo from nibbler).
This with IE as with Firefox.

So i'm not sure that the real problem is only a ghostscript path issue.

Nibbler

It needs to be the path to the ghostscript binary, not a directory of libs.

joens-schublade

Is anyone interested in creating a plugin for pdfs?

My idea is to create a plugin, that previews a pdf file inside coppermine, extracts the text elements of that file into the description and simply let you view the file in a pdf-reader.

For more information, see this thread at cpg-contrib.org.

radianation

Guys, I see that you've dealt with error 127, but out of nowhere I'm getting error 139 but only on some files. I can't quite figure it out, and my Google searches are turning up nothing. I can't seem to find the error messages documented for ghostscript either.

Error 139 on command '/usr/local/bin/gs -sDEVICE=jpeg -dNOPAUSE -dBATCH -sOutputFile='albums/edit/pdftmp._11_625x10_5_CARDnp14.pdf.%d.jpg' 'albums/batch/4-30-08/316/_11_625x10_5_CARDnp14.pdf''

manikantiashok

Hi,

I am new to the forum. I have CPG 1.4.x on windows using xampp. I am following your posts on the PDF mod. Can you suggest/guide me if this mod can work on windows platform.

Thanks in advance