IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2012/04/13)2012/04/14 
mvrhel Robin_Watts: Things look much better. They are still upside down and backwards but the colors seem correct04:38.52 
Robin_Watts mvrhel: bmpcmp should now get psdcmyk files the right way up.12:53.37 
JulienP Hello17:52.53 
ghostbot bonjour, julienp17:52.53 
Robin_Watts JulienP: Hi.17:53.44 
JulienP I'm having a small problem with using ghostscript to read a pdf. Would this be the right place to ask?17:54.08 
Robin_Watts it would.17:54.17 
  I have to pop out now, but ask your question, and I (or someone else) will answer it as soon as we can. Do be prepared to wait though.17:54.45 
JulienP Alright. I can be patient :)17:55.15 
Robin_Watts Give details :)17:55.22 
JulienP So, I'm trying to find out if I can use ImageMagick or Graphics Magick to extract metadata from a pdf (and other file types) using the identify command. As I understand, those delegate to ghostscript for reading the actual pdf. For the few different pdf I've tried, I'm getting a Error: /undefined in --run-- (...) from ghostscript.17:57.49 
  I figured that means there might be something in the pdf that ghostscript doesn't support, but one of them is quite simple and was created with Word2007.17:59.23 
  Full error text: http://www.skydragoness.com/~jpicalau/ghostscript_error.txt18:07.29 
Robin_Watts back.18:18.41 
  so, first off, I'd take image magick etc out of the equation entirely and call gs yourself directly.18:19.18 
  gs -q -dBATCH -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=ppmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -g612x792 -r72x72 "-sOutputFile=blah -- "foo" -c quit18:20.32 
  I'd guess that your problem is that foo isn't a postscript or a pdf file.18:21.04 
  Can you try doing:18:21.10 
  gs -q -dBATCH -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=ppmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -g612x792 -r72x72 -o out.ppm in.pdf18:21.38 
  i.e. feed ghostscript directly ?18:21.47 
JulienP Sure. One moment18:23.04 
  Ok, same error18:24.11 
Robin_Watts ok. so can you put in.pdf up somewhere so we can see it?18:24.30 
  Does acrobat open in.pdf OK ?18:24.36 
JulienP I don't have acrobat installed, but I use SumatraPDF which does read it fine.18:26.39 
Robin_Watts ok, sumatrapdf is built on mupdf, which we also develop.18:26.59 
JulienP http://www.skydragoness.com/~jpicalau/sample.pdf18:29.10 
Robin_Watts That opens fine for me.18:31.05 
JulienP Right. That's more or less what I expected18:32.00 
Robin_Watts Where did you get your version of gs frm? Did you build it yourself?18:32.31 
JulienP Using FreeBSD 8.1. Built it from ports as a dependency of graphics magick18:33.10 
Robin_Watts Does *any* PDF file open in it ?18:34.03 
JulienP Not as far as I can tell18:34.28 
Robin_Watts Then I suspect you'll be best off just downloading the source from our site and building from that.18:34.56 
  Or, you'll need to complain to your packagers.18:35.09 
JulienP Right. It might be some configuration option I should have turned on (there are tons of them). Could that be possible?18:35.48 
Robin_Watts JulienP: There aren't any options when building gs as supplied by us that should result in it not reading a PDF file.18:37.39 
JulienP Ok. I'll try on a different FreeBSD 8.1 box and see if I get the same issue. If I do, I'll try contacting whoever is responsible for that port.18:38.39 
  Thanks for the help :)18:38.51 
Robin_Watts you're welcome18:39.05 
 Forward 1 day (to 2012/04/15)>>> 
ghostscript.com
Search: