IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2013/12/01)2013/12/02 
sebras qz: it's easy to forget that one. you can always run this command: git submodule update --init it doesn't matter if the thirdparty stuff have already been cloned, then git will just checkout the correct version pointed to by mupdf.00:00.18 
qz and after updating to latest code it looks like memleaks are gone00:01.07 
sebras qz: great. then I take it that you managed to compile and link successfully. :)00:01.29 
qz sebras: yeah. by the way, are there any plans on supporting saving to png with 1-2-4 bit colors (now its hardcoded to 8)?00:04.22 
sebras qz: the only 1-bit color option that I know of is outputting to pbm. for 2 and 4 bits or 1-bit png I don't know.00:16.27 
  qz: but if something is missing we're always accepting patches. :)00:16.53 
henrys hi mvrhel_laptop when did you get here?03:40.30 
mvrhel_laptop hi henrys: I am in oahu right now. we go here wed. heading to maui tomorrow morning03:41.06 
  you are in maui now yes?03:41.59 
henrys did you hook up with Robin_Watts 03:41.59 
  ?03:42.00 
mvrhel_laptop I have not heard from him yet. it has been pouring rain here most of today03:42.19 
henrys Yes I'm in kihea03:42.28 
mvrhel_laptop the other days had been nice03:42.31 
  we went to the surf contest yesterday03:43.08 
henrys mvrhel_laptop: overcast here but nice, snorkeling is bad no visibility03:43.10 
mvrhel_laptop did you read about the shark attack there the other day?03:43.27 
henrys mvrhel_laptop: yeah I thought you and Robin_Watts were going to that which is why I asked.03:43.44 
mvrhel_laptop I ended up going yesterday. it was going on today so he may have gone up there today03:44.19 
  I rented a car just for the one day yesterday03:44.27 
henrys mvrhel_laptop: sharks, yikes I swam a full mile today open water and the thought did cross my mind...03:44.31 
  What beach was the attack on?03:47.17 
mvrhel_laptop hold on I had the paper here03:48.15 
  http://mauinow.com/2013/11/29/shark-attack-forces-closure-of-south-maui-shoreline/03:48.48 
  near you ;)03:48.58 
  probably a little east of you03:49.26 
  near the four seasons03:49.31 
henrys mvrhel_laptop: oh my I didn't realize they were so frequent.03:51.40 
mvrhel_laptop yes. my wife pointed this out to me yesterday. 03:52.23 
  they say though that the number of people in the water is probably greater too though03:52.45 
  this is an interesting website03:53.21 
  http://oos.soest.hawaii.edu/pacioos/projects/sharks/03:53.23 
henrys mvrhel_laptop: well it'll make the swims a little more exciting03:53.26 
mvrhel_laptop keeps your heart rate up03:53.38 
  henrys: are you checking into the sheraton tomorrow?03:53.57 
henrys mvrhel_laptop: we're off to dinner - whale watchig tomorrow morning03:54.04 
mvrhel_laptop henrys: ok have a good dinner. see you tomorrow03:54.25 
robin_watts_mac returns from watching final of the surfing.04:06.24 
  mvrhel_laptop: ping?04:07.02 
mvrhel_laptop robin_watts: pong04:07.38 
  robin_watts: was it raining up there?04:07.55 
robin_watts_mac mvrhel_laptop: pissing it down.04:08.16 
mvrhel_laptop we went up there yesterday04:08.17 
robin_watts_mac We are both soaked.04:08.26 
mvrhel_laptop :(04:08.38 
  we spent most of today in doors04:08.48 
robin_watts_mac We are also pretty jetlagged so we are thinking of going to get some food fairly early.04:08.50 
  Out vague plan was to hit the Cheesecake factory before it gets too busy.04:09.11 
mvrhel_laptop ok. we just ordered pizza and a salad 04:09.12 
robin_watts_mac ah, fair enough.04:09.20 
mvrhel_laptop robin_watts_mac: the food court in the mall near the cheesecake factory has some nice choices too04:09.48 
  if you have a long wait04:09.57 
  maui tacos, or some good japanese ramen04:10.14 
robin_watts_mac mvrhel_laptop: I might end up standing in line while Helen looks in shops.04:10.28 
mvrhel_laptop ah but of course. been there 04:10.38 
  robin_watts_mac: ok well sorry we were not able to hook up. I think you will have good surf for yourself here tomorrow at waikiki04:11.42 
robin_watts_mac I hope to.04:13.40 
  Want to walk up diamondhead too.04:13.47 
  I had a quick look at the psdcmykog bug on the way over here, and it turns out to be a devn/clist bug.04:14.32 
  so I might pass that one on to you or ray :)04:14.50 
mvrhel_laptop robin_watts_mac: we did diamond head and pearl harbor . enjoyed them both.04:15.05 
  clist bug would be good to had off to ray......04:15.15 
  but I can take it too since he his probably busy with customers04:15.40 
  robin_watts_mac: I am trying to fix up my error catching in the windows 8 app04:16.59 
  I always seem to be bad about this sort of thing04:17.24 
  I need to get in the habit of doing it from the begining04:17.45 
robin_watts_mac mvrhel_laptop: It's always very tempting to get stuff that works and to fix it later.04:18.51 
mvrhel_laptop yes04:19.09 
robin_watts_mac We visited Pearl Harbour last time. Arizona memorial was interesting, as was the Mighty Mo.04:30.21 
  There is also a WWII submarine there, the Bowfin, which we enjoyed.04:30.49 
  Once again, I will repeat my recommendation for the Atlantis submarine trip on Maui.04:31.27 
  Get the kids to wear something red if you do it.04:31.49 
mvrhel_laptop robin_watts_mac: yes, we did the memorial, Mighty Mo and Bowfin04:49.19 
  that was all fun04:49.23 
leni536 hi09:28.32 
kens Hmm, ghostbot is sulking09:29.02 
leni536 robin_watts: I read your answer in the logs about LCD subpixel rendering09:29.24 
  I think it would be a nice feature (at least as an option for different subpixel orders)09:30.11 
  I think there are only two pdf viewers on linux which does this09:30.37 
kens Its pretty late where Robin is at the moment. I don't think it likely that the MuPDF developers will consider a 'ClearType' type of rendering though09:30.48 
leni536 acroread and pdf.js09:30.59 
  Why?09:31.49 
  Is it because pf patent problems?09:32.04 
kens Its device-specific for one (different arrangements of pixels require diefferent munging) and most of us consider it to be terribly ugly09:32.21 
  ClearType is patented, not sure if it affects other rendering09:32.54 
leni536 What do you think of this kind of rendering: http://www.oyhus.no/SubLCD.html ?09:35.58 
kens I think I'd want to see it working on my screens, not in a screenshot09:36.29 
mvrhel_laptop :)09:36.43 
kens And it does still have colour fringing09:37.03 
leni536 Ok, I think it's a tradeoff between colour fringing and resoulution and it's just a matter of taste09:39.01 
kens Personally I detest colour fringing and find it terribly obvious, I don't find the pseudo-higher resolution any benefit. Especially given the rapidly increasing resolutionof modern displays.09:39.56 
mvrhel_laptop right09:40.18 
  night all09:40.20 
kens But mine is not the final (or even the first) word on the subject09:40.23 
  Night micahel09:40.27 
leni536 Ok, it would be nice as an option anyway, especially that mupdf is a backend for many pdf readers.09:42.55 
  Thanks and good bye09:43.25 
kens You'll have to see what the MuPDF developers say, its not up to me.09:43.26 
leni536 Ok, thanks09:43.58 
tor7 kens: I'm with you, I detest the colour fringing. if anyone wants it terribly, we say to render at 3x the width and do the filtering in the app.09:55.20 
kens tor7 :-)09:55.30 
tor7 kens: Dell "leaked" some info on a new 24" monitor, 3840x2160 resolution09:56.27 
  http://www.anandtech.com/show/7556/dell-leaks-details-of-a-24-uhd-4k-3840x2160-monitor-the-up2414q09:56.55 
kens I had a feeling that MuPDF already did sub-pixel rendering, but wasn't certain enough of my ground to say that, so I was pleased to see Robin's response. I didn't really expect that he wanted the LCD sub-pixel stuff....09:56.57 
  Hmmm I wonder how much they are going to charge for that beast......09:57.22 
tor7 we do subpixel accurate metrics and aa font rendering taking the offset into account09:57.24 
  but we don't do any subpixel color decimation filtering09:57.34 
kens Yes, that's what I meant. Proper sub-pixel rendering;-)09:57.51 
tor7 indeed :)09:57.55 
  calling the color fringing abomination sub-pixel rendering is just confusing09:58.15 
kens Yeah, which is why I asked him what it was he actually wanted :-)09:58.30 
tor7 kens: the current crop of high-dpi IGZO panels cost more than a small car :(09:58.38 
kens O.O09:58.45 
  Oh well, I guess in a few years....09:59.04 
tor7 the Eizo 30" 4k (yet another horrible term) costs 20k GBP or thereabouts09:59.15 
kens Yikes!09:59.27 
  That's wiorse than the old colour-calibrated CRT days09:59.40 
tor7 there are some slightly smaller almost-4k that are in the 2k GBP range09:59.50 
kens Still too rich for me10:00.03 
tor7 so I'm hoping the dell will be reasonable priced (sub 1k GBP and I'm happy)10:00.18 
  all my other monitors after using the chromebook pixel look horribly blurry :(10:00.44 
kens Well if its Dell it likely to be reasonable, but whether its that low......10:00.51 
tor7 kens: my biggest gripe with it will be the 16:9 aspect ratio...10:01.19 
  but I think the high-dpi trumps most other concerns :)10:01.27 
kens I think htere's no getting away from teh aspect ratio these days10:01.42 
fang I am using convert which calls ghostscript to convert pdf files to jpg, the pdf files contain scanned content, when in command line it works fine, but when I call it from php script using exec it fails14:13.07 
  Error: /undefined in findresource Operand stack: --dict:7/16(L)-- F4 4.5 --dict:5/5(L)-- --dict:5/5(L)-- SimHei -$ Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval$ Dictionary stack: --dict:1155/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:7$ Current allocation mode is local Last OS error: 214:13.42 
kens THen there is some difference in the way you are calling convert or Ghostscript14:13.51 
fang may be the fonts path14:14.11 
  but I don't know how to solve it14:14.22 
kens THat is saying that the CIDFont SimHei is not available. Since you are getting an error, instead of a substitution for DroidSansFallback you must be running an old version of Ghostscript14:14.34 
fang it works fine in command line14:15.07 
kens fang, you need to look at the environment of the users to start with and look for any environment variable which begins GS_14:15.08 
  Since tghe command line works, its not a Ghostscript bug, it must be the wnvironment your script is using. THat's about all I can tell you.14:15.52 
fang how can I look for the env variables, any command?14:16.28 
kens I am not a Lnux expert14:16.41 
fang ok, thanks, I'll google14:17.00 
marco Hello to everyone15:59.46 
Guest13093 I need some help.. Can somebody help me a little on mupdf for android?16:01.17 
chrisl Guest13093: probably not right now - the relevant engineer(s) aren't around just now. If you leave your question, this channel is logged, hopefully they'll see it and reply at some point16:03.32 
Guest13093 Thank you. Basically i need to preset some fields before. Doing so i've implemented a new native method: 16:06.04 
  JNIEXPORT jboolean JNICALL JNI_FN(MuPDFCore_setFieldValueInternal)(JNIEnv * env, jobject thiz, jstring jname, jstring jvalue) { LOGI("MuPDFCore_setFieldValueInternal"); jboolean result = JNI_TRUE; const char *name; const char *value; globals *glo = get_globals(env, thiz); fz_context *ctx = glo->ctx; page_cache *pc = &glo->pages[glo->current]; name = (*env)->GetStringUTFChars(env, jname, NULL); if (name == NULL) {16:06.06 
  in the onCreate of activity i call this native method: core.setFieldValueInternal(key, value);16:07.11 
  The problem is that the field value is correctly setted internally (when i tap on the form, the appearing edit text has the presetted value) but the value has not been drawn in the pdf view of my activity 16:09.57 
  i don't find details regarding this procedure. Maybe i miss something16:11.04 
  Thanks for the help :)16:11.21 
  the definition of the previous funtion has been cutted. Here is complete:16:16.01 
  JNIEXPORT jboolean JNICALL16:16.11 
  JNI_FN(MuPDFCore_setFieldValueInternal)(JNIEnv * env, jobject thiz,jstring jname, jstring jvalue) {16:16.26 
  jboolean result = JNI_TRUE;16:16.37 
  const char *name;16:16.51 
  const char *value;16:16.58 
  globals *glo = get_globals(env, thiz);16:17.05 
  fz_context *ctx = glo->ctx;16:17.12 
  name = (*env)->GetStringUTFChars(env, jname, NULL); if (name == NULL) { LOGE("Failed to get name"); return JNI_FALSE; }16:17.30 
  value = (*env)->GetStringUTFChars(env, jvalue, NULL); if (value == NULL) { LOGE("Failed to get value"); return JNI_FALSE; }16:17.36 
  fz_try(ctx)16:17.51 
  {16:17.54 
  pdf_document *idoc = pdf_specifics(glo->doc);16:18.00 
  if (idoc) {16:18.07 
  pdf_obj *form = pdf_dict_getp(pdf_trailer(idoc), "Root/AcroForm/Fields");16:18.19 
  if (form) {16:18.25 
  pdf_obj * field = pdf_lookup_field(form, name);16:18.31 
  if (field) {16:18.36 
  int accepted = run_keystroke(idoc, field, &value);16:18.41 
  if (accepted) {16:18.46 
  result = pdf_field_set_value(idoc, field, value);16:18.52 
  dump_annotation_display_lists(glo);16:18.57 
  } } } } } fz_catch(ctx) { LOGE("setFieldValueInternal failed: %s", ctx->error->message); }16:19.04 
  (*env)->ReleaseStringUTFChars(env, jname, name); (*env)->ReleaseStringUTFChars(env, jvalue, value); return result; }16:19.15 
kens OK I@m off, goodnight all17:04.31 
speed804 Anyone have a sec to help me with a newb question?17:19.44 
  I just downloaded and installed ghostscipt. Then I tried to run a command I found online and two things happened. It didn't find any fonts, and nothing happened outputwise :(17:20.56 
  Is there something else I need to do to initialize ghostscript before using it?17:21.23 
chrisl_t530 speed804: downloaded ghostscript from where and installed it on what?17:27.33 
speed804 I will get that for you in a sec, just trying to find the main download page again17:29.42 
chrisl_t530 Was it from ghostscript.com?17:30.06 
speed804 http://www.ghostscript.com/download/gsdnld.html17:30.43 
chrisl_t530 And on what platform?17:30.59 
speed804 sorry this one http://downloads.ghostscript.com/public/gs910w64.exe17:31.17 
  win 7 64 bit17:31.21 
  I installed it in a sub folder of my desktop17:31.47 
  I am trying to merge pdfs and then add bookmarks to them17:32.34 
chrisl_t530 pdfwrite isn't really intended for merging/modifying PDFs17:33.16 
speed804 I started from this http://stackoverflow.com/questions/2969479/merge-pdfs-with-pdftk-with-bookmarks/20333267#2033326717:33.34 
  ghostscript seems to be able to merge pdf files keeping the bookmarks intact and it seems to be able to execute postscript statements with pdfmarks17:34.25 
  this would allow me a lot more freedom then my current method17:34.35 
  I think.17:34.39 
  By isn't intended, do you mean it won't work well?17:35.03 
chrisl_t530 speed804: it will almost always work fine, there are occasional issues with subset fonts, though17:35.35 
speed804 Our files I am working with have all the same fonts in them, so if there are some that aren't already distributed in the executable I could maybe find them?17:36.32 
chrisl_t530 Hrm, I'm not sure about Windows - you might have to use the -sFONTPATH option - something like -sFONTPATH=c:/Windows/Fonts17:36.55 
speed804 Right now it seems to only be having issues with standard fonts17:38.21 
  http://www.heypasteit.com/clip/12M017:38.22 
chrisl_t530 ArialMT is not a standard font17:38.55 
speed804 OK. I guess I just saw Arial and thought it should be good lol.17:39.30 
chrisl_t530 Remember from our POV "standard" means required by the PDF (Postscript) spec17:40.12 
speed804 But either way, it said it substituted something for it, so it still should have given me an output file right?17:40.26 
chrisl_t530 Yes17:40.35 
speed804 I tried without the postscript and still got nothing17:41.52 
chrisl_t530 I would suggest trying a simpler command line, and having the output file written to the current directory17:42.03 
speed804 This is what I just tried sendinput gswin64c.exe -o %merged% -f %input1% %input2%17:42.27 
  all three of the file variables have the full directory17:42.54 
chrisl_t530 Do away with the variables, and try with explicit file names17:43.14 
speed804 The current directory is the directory of gswin64c.exe right?17:43.16 
chrisl_t530 The current directory is the one you are in17:43.34 
speed804 based on the one in the command line? You have to set the directory of the .exe before running any gs commands right?17:44.39 
  I do cd /d binpath ^ where binpath is the directory of the .exe17:45.28 
chrisl_t530 Right, so do something like: gswin64c.exe -o outputfile.pdf inputfile.pdf17:46.20 
speed804 gswin64c.exe -o merged.pdf -f DLC-1-1.pdf DLC-1-2.pdf17:46.43 
  I just tried that and still no luck17:46.50 
chrisl_t530 No, one input file17:46.56 
speed804 k17:47.05 
  still no luck17:49.11 
  Do I need to install a ghostscript pdf printer or something before this will work?17:49.33 
chrisl_t530 No17:49.43 
speed804 Do I need to use the gswin64c.exe if I am running it from the commandline?17:51.11 
  I assumed that but didn't check yet.17:51.20 
chrisl_t530 It is possible there's a problem related to doing stuff under the Desktop, I've never tried that17:52.13 
  What else would you expect to use?17:52.51 
  oh, I didn't notice: you're specificying the device, are you?17:55.13 
speed804 Instead of gswin64c.exe there is gswin64.exe17:55.49 
chrisl_t530 You need to add in -sDEVICE=pdfwrite to your command line17:55.50 
speed804 I thought the -o assumed the -sDEVICE by the .extension of the input file17:56.16 
  But I will give it a shot17:56.46 
chrisl_t530 No, Ghostscript doesn't make (m)any such assumptions.17:56.55 
speed804 That did it :)17:57.53 
chrisl_t530 Cool, obvious once I realised.... as usual!17:58.14 
speed804 That font ArialMT isn't even in my windows fonts folder17:58.45 
  Thank you so much for your help by the way!17:59.04 
chrisl_t530 No worries17:59.14 
speed804 Do you know if a font can be in a microsoft word folder and not the windows folder?17:59.29 
chrisl_t530 I don't sorry, I'm not really a Windows guy17:59.52 
  speed804: you can setup mappings for fonts, but it's not the most straight forward thing in the world18:01.13 
speed804 By mapping, do you mean substitutions? Or are substitutions just an example of modifying the mapping18:05.29 
  ?18:05.30 
  I read the substitutions bit and it seemed relatively straight forwards18:05.47 
chrisl_t530 Yes, you can define substitutions using name/file mappings. The problem, on Windows, is that the initialisation files are built into the executable, and complicates things a little18:06.40 
speed804 Does gs ever misread what a font is called?18:06.50 
  Hey actually, when I put the sDEVICE in it didn't give me any font errors18:07.28 
  Maybe I am fine18:07.41 
  If it can use system fonts then there shouldn't be any fonts I am coming across that aren't in the system folder18:08.02 
chrisl_t530 That probably means you're not getting fonts embedded in the output PDF18:08.19 
speed804 Does that mean it should look different or just a pdf coding issue?18:09.05 
  Because the original and the merged one look the same18:09.19 
chrisl_t530 They will - on your computer. Not embedding fonts means PDFs can look different on different computers. They end up using whatever fonts are available on the viewing computer18:10.08 
speed804 How do you know it is doing that?18:10.28 
  That may or may not be an issue18:10.40 
chrisl_t530 Open the PDF in Acrobat you can check whether fonts are embedded or not18:11.17 
  speed804: given that your original PDFs didn't have fonts embedded, it's probably considered acceptable in your circumtance18:12.49 
ray_laptop marcosw: seems like we both thought that the other wasn't working today. Guess it would have been better had my IRC been up :-/19:31.03 
  At least Phil can't say he didn't get a prompt reply :-)19:31.23 
  marcosw: BTW, I couldn't log into 'miles' -- I know I used to be able to. Has something changed ?19:34.37 
marcosw ray_laptop: I haven't (intentionally) changed anything on miles; I'll try to see if there is an obvious reason you can't log in.20:51.07 
speed804 Hello, I have learned how to use ghostscript and postscript to add bookmarks to pdfs, does anyone know a way I could remove bookmarks?20:52.30 
  Or edit existing ones?20:52.46 
marcosw ray_laptop: the access settings on ~ray/.ssh were too permissive, so I've fixed them, but I would have expected that to give you an error message on your side. Are you using the correct ip address: 50.240.204.222 ?21:00.33 
 Forward 1 day (to 2013/12/03)>>> 
ghostscript.com
Search: