IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2015/10/18)20151019 
lasse_ kens: Are you available?08:31.08 
  I've been trying to create a PDF/A-1b valid document from a JPEG, but after creating the document I saw that the cropping was off. To the right side of the PDF, there was a thich, white border (the background), which is not acceptable due to my requirements.08:35.27 
  Has anyone else experienced this?08:35.38 
chrisl lasse_: You're probably getting the default page size. You'll need to set the page size to suit your JPEG08:36.50 
lasse_ Can this be set automatically based on the jpeg?08:38.33 
chrisl You'll have to look at what the viewjpg.ps code does - I really can't remember08:39.49 
lasse_ Okay, thanks anyway08:40.10 
  Lol, the command for what I want is at the bottom of viewjpeg.ps08:41.03 
chrisl I was just going to say that.....08:41.12 
lasse_ That made it easier08:42.21 
kens lasse_ : I'm here now09:23.33 
lasse_ Thanks, but I already solved my problem :)09:38.22 
Jai_ I'm using Magick.Net to convert images(.PS to .PNG).. So obviously it requires ghostscript to be installed on the server. Is there a way to directly use the ghostscript without installing it??09:38.28 
kens even better09:38.29 
  Jai_ you don't need to 'install' Ghostscript at all, but I cannot comment onMagick.Net09:38.58 
  Note that one way or another you will need the binary executable availabe, the easiest way to do that is almost certainly to install Ghostscript. Why do you want to avoid that ?09:39.29 
  BTW its just Ghostscript, not 'the ghostscript'09:40.01 
Jai_ Ha..ha..you are right09:40.15 
  But09:40.18 
  On production server we don't install unless there is real need for it09:40.48 
kens WErll that's up to you09:41.06 
Jai_ Can't we directly extract dll and refer it?09:41.22 
kens Its not just a DLL09:41.38 
  Though clearly I know nothing aout Magick.Net and cannot tell you how that works09:41.55 
  Possibly that does only need the DLL, I wouldn't know09:42.05 
  But you might need additional support files as well.09:42.28 
  I obviously don;t know what you are doing, but..... Have you checked the AGPL licence ?09:42.51 
Jai_ Nope..Kens09:43.17 
kens Door, back shorlty09:43.37 
Jai_ Any thing that seriously need to be considered before installing?09:43.52 
chrisl I *think* ImageMagick always calls out to the gs executable, I'm fairly sure it doesn't use a shared lib/DLL09:43.58 
Jai_ I'm not sure..just came here to check..if anyone has faced this before09:45.45 
chrisl What, installing Ghostscript without installing it?09:46.21 
Jai_ *using dlls09:47.17 
chrisl Yes, lots of people use the GS dll09:47.48 
  In fact, our own executables use the DLL09:48.06 
Jai_ Anyone who is online...has experience with .net-mvc..Magick.net09:50.21 
  ??09:50.37 
chrisl Not here, we do Ghostscript09:51.29 
Jai_ OK..ghostscript with .NET-MVC09:52.03 
  ?09:52.06 
chrisl I doubt it - you could try Ghostscript.NET - but again, that's not us09:53.15 
tor8 Robin_Watts: I've got a transparency question for you.09:53.52 
  on tor/master, there's a commit to fix bug 695582 (transparency with stroke+fill text)09:54.20 
  it solves the overlap, but there are antialiasing artifacts :(09:54.43 
kens2 back, had ot let exterminator into back garden10:04.52 
Robin_Watts tor8: You push/pop a group?10:41.09 
  seems like a reasonable fix.10:43.35 
  antialiasing wierdness does not surprise me in the least.10:43.47 
  Urm... I just looked for Miles in the results of La Carrera Panamericana.11:03.06 
kens2 THat doesn't sound good11:03.18 
Robin_Watts They listed a time in the first stage of the first day (not the 0th day, cos that's unofficial).11:03.30 
  But I can't find him listed anywhere since.11:03.45 
  Oh. wait, I have him on day 2.11:04.16 
  And he's listed in the "boot order" for day 3, but I don't have him finishing anywhere...11:07.25 
  I don't have him finishing anything in day 2 either :(11:08.34 
tor8 Robin_Watts: yeah... I guess so.11:29.30 
  Robin_Watts: time to cut a release candidate now?11:29.43 
Robin_Watts tor8: Let me look at the buglist again :)12:03.25 
  695907 and 695908 might be simple?12:06.23 
  but yes, I can't see anything immediately in there.12:06.29 
chrisl tor8: it might be worth mentioning in the README that the new GL based viewer also needs: libxcursor-dev, libxrandr-dev and libxinerama-dev12:17.23 
tor8 chrisl: hm, are those part of xorg-dev?12:23.33 
chrisl tor8: they don't appear to be - I had to install them separately on Ubuntu 15.0412:24.18 
tor8 chrisl: right. I'll add those to the list.12:25.21 
  Robin_Watts: yeah, but I was planning on leaving those to sebras for when he inevitably gets bored of his work :)12:28.02 
Robin_Watts henrys: welcome back.13:12.24 
  I guess you survived.13:12.33 
kens start = copy + 2;Henry can always run :-)13:12.53 
henrys good to be home. Yes it was only 1/2 time in flint then Quebec city - no crime there.13:13.11 
  catching up with everything this morning13:15.53 
kens That'll take a while....13:16.04 
henrys just got a new computer so it won't take long ;-)13:19.56 
Robin_Watts henrys: ooh, yours arrived too. Nice.13:20.33 
paulgardiner hi henrys 13:21.24 
henrys the ghostscript compile went from 1 1/2 minutes to 30 sec. I still want parallel autoconf ;-)13:21.31 
  of course my old machine was dated13:21.48 
  paulgardiner: howdy13:22.10 
  and a new phone I'm overwhelmed with new gadgets13:22.28 
chrisl parallel autoconf is technically not possible :-(13:22.51 
henrys chrisl: I was joking, but I'd think some parts of it could done simultaneously.13:24.31 
chrisl henrys: the problem is that it's all a shell script. To do something parallel we'd have to split it into multiple scripts - don't want to think about that!13:25.25 
  henrys: 'Course, if you used shared libs, configure would take about half the time......13:26.52 
  henrys: Even running the libtiff configure in parallel only saves us ~2 seconds (from 9.2 to 7.3 seconds on my machine). Doesn't seem worth it.13:35.28 
henrys chrisl: I meant that I wanted the autoconf folks to do it ... it's been recommended many times but there isn't much pressure to do it since configuring is usually less freqent and shorter than compiles13:39.06 
chrisl henrys: I suspect the reason it's not been done is not lack of pressure, but lack of viability.13:41.00 
henrys kens: I'm having difficulty understanding why the icc profile was set 2x, the language just sets whatever is in the pjl environment it should never set anything from the default environment.13:51.03 
Robin_Watts In order to know whether a machine was powerful enough that you could realistically parallelise the configure stage, you'd need to configure it. So... metaautoconf :)13:51.29 
kens henrys, I can't have some pdfmarks executed twice13:52.57 
  and if I put them in the PJL as a default, that's what happens13:53.13 
henrys 2x per job or 2x per multiple jobs?13:55.46 
kens 2x per jpb I think13:56.25 
  But I was only running one13:56.31 
henrys kens: what happens in gs with -dJOBSERVER with ^D separating 2 postscript files? I think that is the analogous situation.. no?14:02.59 
kens No because its not rerunning the code14:03.17 
henrys kens: to my way of thinking separate jobs should have separate pdfs, unless you are specifically trying to concatenate stuff. 14:06.01 
kens People do that, yes, but also its because for one job we get 2 calls to do_reset which means we get doubled pdfmarks14:06.49 
henrys do_reset in pcl?14:07.23 
kens Yes14:07.27 
henrys That's easily fixed in the language by only setting with a particular reset type as is done with many options.14:08.17 
kens Hmmm, how do I know what ot use ?14:08.43 
henrys well for exampe if you look at pcjob_do_reset - there is pcl_reset_initial and pcl_reset_printer etc. the pcl_reset_printer will be done each time there is a ^E a new job, pcl_reset_initial or pcl_reset_cold will work. But generally I fear you've stumbled on something that is really broken between pcl and pdfwrite statewise. Not sure there is been much testing at all with PJL and pdfwrite14:14.34 
  pcl_reset_cold is supposed to be power-up14:14.59 
kens I'll have to think on it14:15.12 
henrys kens: for now your setting can be conditioned on reset_cold or initial and it will only go once.14:16.05 
  "exclusive or"14:16.23 
kens OK I'll try that i n a bit14:16.25 
henrys Robin_Watts: I can finally have 3 monitors ;-)14:18.48 
kens I have stuff pulled apart at the moment, I'll give it a go when it all compiles again14:18.58 
Robin_Watts henrys: I bought my third monitor last week.14:25.56 
  I have now thrown my back out, which I don't think is related to the amount I now have to spin my head.14:26.16 
henrys Robin_Watts: running?14:26.46 
Robin_Watts henrys: I really don't know what caused it. It really hit me while I was doing my teeth one morning.14:27.20 
  but I don't think that was the cause.14:27.36 
chrisl Robin_Watts: When I have back problems, it's usually a cough or a sneeze that triggers it - or something equally innocuous14:30.29 
Robin_Watts chrisl: I think with back problems you can often hurt it, and your muscles keep it in check for a while.14:31.16 
  Then suddenly they have enough (or you sneeze etc) and they go "that's it. I've had enough. Feel the pain!"14:31.41 
chrisl So far (touch wood!) I've only ever suffered muscular problems with my back, nothing spinal14:32.16 
Robin_Watts henrys: Can we have a word on skype when it's convenient?14:36.40 
sebras tor8: oh... I think I need to look at a few bugs apparently.14:45.03 
rayjj henrys: we had a free user ask us about supporting OXPS with Ghostscript, and then (just a few days later) customer 870 asked about it. I put the customer # on bug 696272 but we probably should have someone respond to the cust. Marcos?15:01.51 
  henrys: and then figure out if this stays with Tor, or gets moved to someone else.15:02.27 
  Robin_Watts: I put in the initial part allowing for the alternate schema, but that wasn't enough by itself, but thanks for the suggestion15:03.37 
Robin_Watts rayjj: Ah... hold on... I wonder...15:04.10 
  http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=b6519f1715:06.52 
  That's the MuPDF commit that changed stuff.15:07.05 
  looks like it needs to look for .oxps as well as .xps ?15:07.27 
chrisl I'd be surprised if gxps paid attention to file name extensions15:09.19 
Robin_Watts yeah.15:10.20 
  There are 2 schema things that need to be changed. I wonder if rayjj did both?15:10.38 
henrys rayjj: thanks I saw that and promptly forgot about it not one of our more important customers15:11.16 
mvrhel_laptop I can't remember all the diffs between oxps and xps. I was on the oxps committee for about a year. I think they did away with the windows hd image format and went with jpegxr if I recall. Also the whole windows color system stuff went away, thank goodness15:14.06 
chrisl Seems there's been a bit more divergence between the muxps and the gxps implementations than might be considered "ideal".... :-(15:16.22 
henrys they still have learned nothing about compatibility. Just stupid, convince folks to use pdf.15:21.43 
kens Sadly XPS is the printing format in Windows15:22.20 
henrys well I'll put it on the project list, that sucks15:24.32 
simon91 Robin_Watts: tor8: you still here? Postet my fix: http://bugs.ghostscript.com/show_bug.cgi?id=696260.15:43.37 
Robin_Watts simon91: I am still here, but I'm busy on non MuPDF stuff. That would be for tor8 to look at. He may possibly have gone for the evening.15:44.28 
simon91 Robin_Watts: Ok. Will try to get in touch with him tomorrow15:45.13 
Robin_Watts simon91: He reads the logs in general, so may well see this discussion.15:45.36 
simon91 Robin_Watts: tor8: signatures of documents created with pdf_create_document seems to be broken since paulgardiner's patches to support multiple signatures. will write a report.15:47.12 
paulgardiner Oops!15:47.45 
simon91 paulgardiner: Hi!15:48.10 
paulgardiner Hi simon91 15:48.45 
simon91 Robin_Watts: when are you going to release?15:49.18 
Robin_Watts simon91: tor8 was talking about doing an RC earlier today.15:49.47 
simon91 paulgardiner: Robin_Watts: I don't think it will take mutch to fix the signatures. I'm still not having mutch to do at university this week, so maybe I have a fix till tomorrow.15:52.45 
Robin_Watts simon91: Cool, thanks.15:52.57 
paulgardiner simon91: yeah great15:53.36 
simon91 Robin_Watts: paulgardiner: most of this PKCS7 and PKCS12 openssl API is pretty undocumented. pretty insane.15:54.32 
paulgardiner It's a nightmare15:56.01 
simon91 paulgardiner: did you write the stuff in pdf-pkcs7.c. Tor once said "it's paulgardiner area of code" ;-)15:57.04 
Robin_Watts paulgardiner did the forms work. That included digital signatures. So, yes :)15:57.41 
mvrhel_laptop I was just working on getting digital signatures working for gsview last week. need to do a bit more work. 15:58.59 
  had not looked at the multiple signature issue yet15:59.25 
simon91 paulgardiner: Robin_Watts: most of the signature stuff is written in a "(void) fread ... (void) fz_ftell" fashion. Think we should bail out as soon as possible on read error. But that's nitpicking. maybe i put it into a separate patch.16:00.38 
kens OK goodnight all16:16.14 
jfkw mupdf question: is there a way to pass config options e.g. ~/.mupdfrc to mupdf on open? I always hit "H" to fit page vertically as soon as mupdf opens, and would like to automate that.19:26.44 
  Withdrawn, I see http://bugs.ghostscript.com/show_bug.cgi?id=694785, would accept patch19:28.48 
mvrhel_laptop lunch19:35.13 
cryptopsy can i change the background of a pdf ?19:42.39 
  i would like to then invert its colors (white text become white, backround inverted too)19:43.02 
sebras cryptopsy: if you are using the x11-based mupdf viewer, press "i".19:47.22 
cryptopsy that inverts the color in the viewer but i would like to save it19:50.25 
sebras cryptopsy: there's the -I flag for mutool draw for that.19:59.20 
cryptopsy thanks19:59.28 
  can't figure out the syntax mudraw -I file.pdf -o out.pdf 20:02.02 
  alos tried putting -I at the end20:02.06 
  mudraw -I -o lel.pdf 01-mediastinum.pdf , also didn't work but this syntax was from a blog showing how to use it20:04.36 
  gives a bunch of errors that it cannot open lel.pdf or load it20:05.00 
Robin_Watts cryptopsy: You cannot change a PDF permanently in that way with mupdf.20:19.24 
cryptopsy what about with mudraw?20:25.22 
sebras cryptopsy: mudraw is just a command-line tool that uses the mupdf library.20:25.43 
  cryptopsy: what you can do is use mudraw to render to a bitmap and have the colors inverted. this is what -I is for.20:26.08 
cryptopsy sure sounds great, can't figure out the syntax though20:26.53 
henrys I knew I'd commit that debug code eventually ... sorry23:10.18 
 Forward 1 day (to 2015/10/20)>>> 
ghostscript.com
Search: