IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2012/12/06)2012/12/07 
kens ping marcosw00:27.34 
chrisl kens: the other film I watched was Total Recall - I finally remembered!00:32.00 
kens ROFL00:36.32 
robin_web kens, chrisl: Are you here yet?00:42.48 
  Aha, evidently.00:43.30 
chrisl robin_web: yeh, got in an hour ago or so00:43.56 
robin_web Well, come on down! :)00:44.23 
  You guys up or foodlater?00:44.36 
  or up for food later, even.00:44.49 
kens Food is definitely on my agenda00:44.54 
  Let me know where/when00:45.34 
robin_web_ stupid timeout.00:47.37 
kens I wondered where you went...00:47.47 
  Seem to be a lot of Robins around today :-)00:48.04 
robin_web_ There is (or was) good swag to be had at the show.00:48.52 
kens Umm, any examples ?00:49.31 
robin_web_ I have a dinky android00:50.57 
  and an android torch.00:51.05 
  and car lighter usb charger00:51.22 
  and t-shirts.00:51.27 
kens :-)00:51.35 
robin_web_ etc00:51.37 
sebras robin_web_: has google santa been visiting you?00:51.53 
robin_web_ Miles says he has diet coke for y'all.#00:54.36 
kens only drinkns the real stuff00:55.36 
robin_web_ there is real stuff.00:56.11 
kens Mmmmm caffeine....00:56.39 
  Where about are you and is it ok to come along in a T-sirt ?00:57.16 
  shirt with buttons needss ironing00:57.30 
robin_web_ we're in the exhibition hall00:58.51 
  down by the lobby.00:58.56 
  tshirts would be overdressed :)00:59.06 
kens I'll try and find you00:59.28 
robin_web tor8: We're going for food at 7 when the show closes. If you get in, let us know.02:29.29 
tor8 the internet isn't very good here...14:46.42 
chrisl tor8: strangely, mine is fine - signal strenght is middle-poor, but the speed and reliability have been okay. Might depend on the position of your room14:48.32 
tor8 took me ten minutes before I could load a web page...14:48.54 
chrisl What network are you on?14:49.41 
tor8 says "Hyatt"14:50.41 
chrisl I'm on "Regency Club" - which I suspect we're not supposed to use as it didn't demand a user name or password....14:51.26 
tor8 well, that might explain it!14:51.46 
chrisl But it's quick enough that I'm listening to a BBC radio show just now14:51.59 
tor8 I got a little card at the reception with a name/password combo anyone could guess14:52.21 
  took me a good 15 minutes last night of fighting timeouts to just enter that password...14:52.21 
chrisl I saw Hyatt listed, but the signal strength is *really* low, so I decided to try the other reasonable looking option with a open connection14:53.43 
tor8 I just see encrypted networks, Hyatt was the only open one :(14:54.15 
chrisl I've got three unencrypted ones listed: Hyatt, Regency Club, and xfinity14:55.36 
tor8 floor 5 must be bad...14:56.45 
chrisl Either that or your foil hat is scattering the wifi signals, as well as the mind reading satellite rays... ;-)14:57.58 
robin_watts_mac tor8: 3 patches (I think) on my mupdf repo.15:46.05 
ajp hi all, working on a gs script that I seem to having trouble with. I'm using GS's pdfwrite to reduce the size of PDF files but I'm losing ~20% of the image. pastebin: http://pastebin.com/aWQ2WB9v17:44.21 
  not sure if there is an option for GS that i'm missing or using wrong17:44.51 
  anyone awake in here?17:45.10 
sebras ajp: most of the devs are on a company meeting in .us17:49.57 
ajp sebras: oic, any idea when they get out?17:50.33 
sebras ajp: no, unfortunately.17:50.42 
chrisl ajp: it's diffucult to guess without seeing a concrete example - you could try -dUseCropBox to see if the different bounding box makes a difference17:51.04 
ajp it's weird because it works perfectly on some PDF files but no others17:52.41 
  sometimes it drops entire pages and sometimes just 20% of the page17:53.05 
  and all the PDFs are coming from the same scanner17:53.41 
chrisl Maybe the PDFs are crap, then17:54.17 
kens I'm just catching up....17:54.47 
ajp elaborate please?17:54.52 
kens What version of Ghostscript is this ?17:55.04 
  and can we see an example PDF fille ?17:55.17 
ajp 9.0517:55.21 
chrisl ajp: crap, as it not conforming to the spec.... Do entire pages go missing, or are they blank?17:56.05 
ajp yeah, lemme get you guys an example17:56.06 
kens WiFi seems to ber very slow down here in the lobby17:56.12 
ajp some blank ppages some missing pages, some missing half the page17:56.29 
chrisl kens: is the wifi for the show on yet?17:56.31 
ajp it's inconsistent17:56.43 
kens Oh, the pastebin is a shell script17:56.46 
  chrisl, I didn't realise there was a diferent one17:57.07 
chrisl Robn mentioned to tor8 there was one for the show which *might* be better than the hotel wifi17:57.47 
kens ajp do you mean it doesn't heppen on every file, or it doesn't alays happen even with the same file17:58.01 
  chrisl there is an anDevCon WiFi17:58.27 
chrisl kens: that'll be it, but I can't remember the security settings17:58.52 
ajp kens: it seems to do the same thing to every file every time, but some files work fine and others dont18:00.05 
kens doesn't seem to be wroking though.18:00.21 
chrisl ajp: did you try varying the command line parameters (particularly, leave out the -dQUIET option)18:00.37 
ajp lemme try that18:00.57 
chrisl If you're trying to debug a problem, telling Ghostscript to not emit certain warnings isn't helpful.....18:01.44 
kens ajp I would start by leaving off the PDFSETTINGS and set the options individually18:01.47 
  But at least if its consistent with a given file there's some chance of looking at the problem18:01.58 
ajp kens: yeah, that's what I was thinking18:02.23 
  trying it with the QUIET command 18:02.35 
  er, without18:02.43 
kens :-)18:03.00 
ajp did the same thing18:03.05 
chrisl any extra info on the backchannel?18:03.27 
kens OK can we see a file that fails ?18:03.29 
ajp example: https://www.dropbox.com/s/bz412rslxsvezip/Scan_001596-smaller.pdf18:03.32 
kens seriously dislikes teh canned PDSETTINGS stuff18:03.47 
ajp lemme try if without the PDFSETTINGS18:04.14 
kens There will now be a long delay while the damp piece of string here reluctantly lets me view the PDF18:04.23 
chrisl ajp: along with not telling GS not to print warnings, it's also help not to pipe the warnings to /dev/null.....18:04.24 
  ajp: evince only displays an image about half the page for that file18:05.07 
ajp evince?18:05.25 
kens chrisl you are way ahead of me, still waiting for xdropbox :-(18:05.28 
  maybe I should go back to my room18:05.39 
chrisl ajp: linux/gtk PDF viewer18:05.44 
ajp oic18:05.49 
  so you are seeing what i'm seeing? the image cut off just past halfway down18:06.23 
chrisl Yeh18:06.32 
kens Adobe Acrobat gives me an error 'insufficient data for an image' and only shows half a page18:06.35 
  looks like your PDF is just plain broken18:06.45 
ajp hmmm, it doesn't work at all with PDFSETTINGS taken out18:07.30 
chrisl And Ghostscript *does* emit warnings, so like I said, it is a good idea not to just bin the stdout/stderr messages when debugging a problem.18:07.34 
ajp yeah i took the dev/null pipe out18:07.55 
kens yes, Ghostscript says invalid xref entry and stream length incorrect18:08.11 
  FWIW GS actually renders more of teh image than Acrobat does18:08.53 
ajp i'm getting this: GPL Ghostscript 9.05 (2012-02-08)18:08.56 
  Copyright (C) 2010 Artifex Software, Inc. All rights reserved.18:08.56 
  This software comes with NO WARRANTY: see the file PUBLIC for details.18:08.56 
  Processing pages 1 through 3.18:08.56 
  Page 118:08.56 
  Error: /ioerror in --showpage--18:08.57 
  Operand stack:18:08.59 
  1 true18:09.01 
  Execution stack:18:09.03 
  %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 3 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1793 0 9 %oparray_pop --18:09.05 
  nostringval-- --nostringval--18:09.10 
  Dictionary stack:18:09.12 
  --dict:1163/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:109/127(ro)(G)-- --dict:291/300(ro)(G)-- --dict:24/31(L)-- --dict:6/8(L)-- --dict:21/40(L)--18:09.14 
  Current allocation mode is local18:09.19 
  Last OS error: 2818:09.21 
  GPL Ghostscript 9.05: Unrecoverable error, exit code 118:09.23 
  GPL Ghostscript 9.05: ERROR -12 closing pdfwrite device. See gs/psi/ierrors.h for code explanation.18:09.25 
kens Hmm, is that the same file ?18:09.28 
ajp yeah18:09.32 
kens Because the file I got only hass one page, not 318:09.50 
ajp yeah, the original scan has 3 but the output of gs is 118:10.08 
chrisl Same here....18:10.10 
kens Is the file you sent teh GS output ?18:11.00 
  Because I really wanted the *original*18:11.32 
ajp oops sry wrong file18:11.35 
  i can link the original one sec18:11.44 
  https://www.dropbox.com/s/96zxtzdnqdaf8x3/Scan_001596.pdf18:12.28 
  thanks guys I really appreciate the help18:13.37 
kens the Ghostscript produced PDF file will be incomplete because Ghostscript filed to process teh original file completely18:13.45 
  1.8Mb and counting....18:14.11 
ajp this is what I get when I run the script on that file (no PDFSETTINGS no QUIET): GPL Ghostscript 9.05 (2012-02-08)18:15.12 
  Copyright (C) 2010 Artifex Software, Inc. All rights reserved.18:15.12 
  This software comes with NO WARRANTY: see the file PUBLIC for details.18:15.12 
  Processing pages 1 through 1.18:15.12 
  Page 118:15.12 
  Error: /ioerror in --showpage--18:15.14 
  Operand stack:18:15.18 
  1 true18:15.20 
  Execution stack:18:15.22 
  %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1793 0 9 %oparray_pop --18:15.24 
  nostringval-- --nostringval--18:15.29 
  Dictionary stack:18:15.31 
  --dict:1163/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:109/127(ro)(G)-- --dict:291/300(ro)(G)-- --dict:24/31(L)-- --dict:6/8(L)-- --dict:21/40(L)--18:15.33 
  Current allocation mode is local18:15.36 
  Last OS error: 2818:15.38 
kens Its an error18:15.39 
ajp GPL Ghostscript 9.05: Unrecoverable error, exit code 118:15.40 
  GPL Ghostscript 9.05: ERROR -12 closing pdfwrite device. See gs/psi/ierrors.h for code explanation.18:15.42 
chrisl Seems to work with the current code......18:16.04 
kens That file still only has one page (though at least tis complete)18:16.18 
ajp yeah sorry the 3 page file was a different one, got confused18:16.34 
  this one is only 1 page18:16.42 
chrisl And the installed 9.05 on Ubuntu runs without error......18:17.14 
ajp is the error with my machine specifically?18:17.17 
kens I'm with chrisl the current code works, best advice upgrade to 9.0618:17.21 
chrisl ajp: what OS are you running?18:17.33 
kens If that doesn't work, get the master source and build it18:17.36 
ajp ubuntu 10.04 server18:17.42 
chrisl Hmmm, I thought 10.04 would be too old for Ghostscript 9.05 to be in the repo18:18.39 
ajp i cant remember which guide i used to install it18:19.14 
  but my repo says its the latest version @ 9.0518:19.36 
kens probably that's the latest package, the current version is 9.0618:20.01 
ajp does it work with 10.04? or is that my problem?18:20.21 
chrisl I don't have 10.04 on this machine to try it, but I can't see any reason for it not to - I have used GS on 10.04 before18:21.13 
ajp ok, one last question: Should I treat each PDF differently with GS? (like using different commands for each PDF) or can I use a general line just to reduce all of them for my script?18:22.32 
chrisl ajp: Ubuntu 10.04 shipped with Ghostscript 8.71 on it... I can only find patches to 8.71 on the Ubuntu updates for 10.04.18:23.16 
  ajp: generally, all PDFs should work with the same options18:23.30 
ajp ok. should i roll back to 8.71?18:23.58 
chrisl I think it would be better to get the latest, even if it means building it yourself.18:24.41 
ajp OK, thanks kens and chrisl, I really appreciate your time18:25.02 
  I'm sure I'll be back on monday :D18:25.27 
chrisl ajp: just out of interest, I assume you are using non-standard repos to get more up to date packages - do you happen to know what they are?18:25.50 
ajp i forget the command to find them18:26.08 
chrisl is ashamed to say, he usually uses the gui for it.....18:26.52 
ajp lol18:26.58 
  yeah no GUI here, only pain in the butt18:27.11 
  have a good dev conference, ttyl18:28.13 
  peace18:28.18 
chrisl The only hassle is that they might be set in several files - otherwise you can fine them with something like "cat /etc/apt/sources.list"18:28.19 
  ajp: good luck ;-)18:28.34 
henrys chrisl:what's the weather like there?18:29.12 
chrisl henrys: bright and sunny just now.....18:29.42 
  henrys: it's pretty nice temperature-wise, but always the risk of rain.18:31.24 
henrys yeah just deciding what to pack - heading out of later today18:32.20 
  my flight gets in too late for dinner so I'll see you tomorrow18:33.21 
chrisl Oh, so you're missing Miles's "nice dinner"? That's a shame18:33.57 
ajp i updated to 9.06 and all seems to be working fine now! Thanks chrisl and ken19:47.25 
  kes*19:47.31 
  kens*19:47.35 
chrisl ajp: glad to hear you've had success!20:08.39 
ajp now if i can just get my bash scripting right, lol20:27.46 
firstclassfunc how does ghostscript compare to other pdf to image converters?20:36.25 
kens In what sense ? Speed, qulity, cost, something else ?20:36.51 
firstclassfunc quality mostly20:38.25 
  I've seen many that don't have full support for fonts on both windows and linux20:39.16 
kens well ghostscript is pretty full-featured when it comes to fonts, its a mature product and widely used20:44.18 
  If fonts are not embedded in the document you can add fonts from teh OS, TrueType, type 1, CFF. You can also use TrueType fonts as substitutes for issing type 1 or CIDFonts.20:45.12 
firstclassfunc yeah it really is, I can tell. I was curious if you had any experience with other products20:51.34 
robin_watts_mac hi ray. Where art though?22:43.27 
  marcosw_: Miles is looking for you...23:05.26 
marcosw_ robin_watts_mac: why? I told him I didn't want to go guitar shopping with him and would be at Starbucks until dinner time.23:05.58 
robin_watts_mac ah, ok, if you've spokn to him.23:06.14 
marcosw_ sort of, he offered me a key to his room so I could work there but I told him I prefer starbucks since they have latte, but perhaps he misunderstood. 23:06.55 
robin_watts_mac Well, we're in the middle of the hotel with wifi and power etc, so feel free to join us, should you get caffiened out.23:07.38 
marcosw_ miles just called me and we've straightened it out (I think).23:08.56 
  robin_watts_mac: yes, but no latte! 23:09.20 
  chrisl: I was just sending the links to the latest builds to Gemma and was going to included a mention of -dDisableFAPI but then realized that she only uses Ghostscript, so she shouldn't see any change from 9.06. Or was there another FAPI change that you referred to in your email?23:22.13 
robin_watts_mac Hey alexcher. Where are you?23:29.09 
alexcher0x2 I'm at the hotel.23:29.30 
robin_watts_mac Ken and I are sitting in the middle of the atrium in front of the deli thing, at a table with wifi/power etc.23:30.16 
 Forward 1 day (to 2012/12/08)>>> 
ghostscript.com
Search: