| <<<Back 1 day (to 2014/04/24) | 2014/04/25 |
jhabjan | I'm in the process to switch my component license (that use Ghostscript) to a Ghostscript compatibile license and something confuses me | 06:58.23 |
| on different web sites (ghostscript, artifex) I found out that two different licenses are mentioned | 07:00.04 |
| at one place is says Ghostscript license is GPL and at the other it says AGPL | 07:00.39 |
kens | Its AGPL | 07:00.48 |
| Where do you see the GPL reference ? | 07:01.00 |
jhabjan | http://www.artifex.com/page/licensing-information.html | 07:01.51 |
| it says: To obtain a copy of the GNU General Free Public License, please click here: GPL License | 07:02.22 |
kens | So it does, chrisl, cna you change that or does it need to be Miles | 07:02.53 |
| That should link to the AGPL | 07:03.05 |
jhabjan | hm... | 07:03.06 |
| but it makes sense when you take a look at the text at the bottom... | 07:03.21 |
| anyway ... It's kind of confusing | 07:03.35 |
kens | The differences between AGPL and GPL aren't that great | 07:03.50 |
jhabjan | http://www.ghostscript.com/doc/current/Readme.htm#Two_Ghostscripts | 07:04.25 |
| here it also says GPL | 07:04.31 |
kens | if you follow hte link that one *deos* go to the AGPL | 07:05.11 |
jhabjan | yep, just saw that | 07:05.22 |
| but GPL is mentioned at couple of places | 07:05.34 |
chrisl | I can't change that - I have no access to the Artifex site | 07:05.38 |
kens | Yes I see it | 07:05.40 |
| chrisl then we'd best mail Miles I guess | 07:05.55 |
jhabjan | gs source code (9.10 which I have) license file also does not mention anything about AGPL... | 07:06.59 |
chrisl | jhabjan: doc/COPYING is the AGPL | 07:08.49 |
kens | The 9.14 one certainly does: | 07:08.50 |
| "GPL Ghostscript is free software; you can redistribute it and/or | 07:08.50 |
| modify it under the terms the GNU Affero General Public License as | 07:08.50 |
| published by the Free Software Foundation, either version 3 | 07:08.50 |
| of the License, or (at your option) any later version." | 07:08.50 |
jhabjan | gr8... | 07:09.49 |
| http://ghostscript.com/Ghostscript.html | 07:09.52 |
| also only GPL is mentioned | 07:10.03 |
| I cannot remember the other places I found GPL only.... | 07:12.04 |
kens | We use 'GPL Ghostscript' to mean Ghostscript licenced under AGPL but three seem to be comparatively few places where we actually mention 'GPL' and the majority of places do (it seems to me) specifically state AGPL. We should get Miles to change the Artifex site to say Affero GPL and link to the right licence though. | 07:13.50 |
chrisl | The website isn't something I've been uber careful about since the AGPL is a variant of the GPL, so we are still licensed under a "GPL".... | 07:14.47 |
| kens: should I mail Miles? | 07:14.56 |
kens | chrisl would you mind ? I'm in the middle of a bugzilla reply | 07:15.11 |
chrisl | NP | 07:15.19 |
jhabjan | chrisl: "we are still licensed under GPL"... so I can make Ghostscript.NET as GPL or should I make it AGPL ? | 07:16.32 |
chrisl | jhabjan: you use the DLL don't you? | 07:17.08 |
kens | chrisl said "under a GPL" not "under GPL" | 07:17.26 |
jhabjan | yep, but I don't ship it | 07:17.37 |
kens | AGPL is a variation on GPL | 07:17.41 |
jhabjan | kens: thanks for correction | 07:17.45 |
| the major difference between GPL and AGPL what I figured out is: | 07:18.04 |
| GPL: you have to release source code if you link against and distribute the binary, but don't if you just provide a service | 07:18.21 |
| AGPL: you have to allow the source to be downloaded even if you never distribute the binary but do provide a service | 07:18.23 |
kens | Its mostly aimed at 'fotware as a service' people | 07:18.43 |
| software* | 07:18.48 |
chrisl | Well, strictly speaking you should use the AGPL since it is slightly more restrictive.... | 07:18.52 |
jhabjan | ok, thanks for clarification | 07:20.34 |
chrisl | Although, IIRC, the AGPL has a clause specifically to make it compatible with the "stock" GPL | 07:21.47 |
jhabjan | got it | 07:23.06 |
chrisl | Paragraph 13 I think is the relevant one | 07:24.27 |
| kens: can you remember which PCL->PDF tool our customers keep comparing us to? Is it SwiftView? | 07:30.07 |
kens | Yes, that's the one | 07:30.15 |
chrisl | http://www.swiftview.com/profeatures.htm?google= | 07:30.27 |
| "Optionally export to TIFF or PDF at lower resolution for more compact files." | 07:30.40 |
kens | Which suggest they render to an image format | 07:30.51 |
| "SwiftView Pro produces 3-10 times smaller PDF files from monochrome documents using JBIG2 compression. " | 07:31.07 |
| Possibly they also do 'hidden text' so the docs are searchable | 07:31.31 |
| Oh yes, I see that further down, its a separate (optional ?) feature | 07:31.50 |
chrisl | Yeh, I just figured it it probably explains how they get rops "correct" | 07:32.13 |
kens | I'm sure it does, its the only way to do it. | 07:32.27 |
| I think we speculated on this before. | 07:32.37 |
chrisl | Yeh, I just figured that page was confirmation | 07:32.59 |
kens | If it ever becomes important I think I could knock up a special 'image PDF' device to do it fairly quickly | 07:33.04 |
chrisl | I saw the link in a gtk related mail thread, and though it was familiar - obviously I was right! | 07:34.24 |
kens | Yes, spot on :-) | 07:34.36 |
chrisl | It hasn't helped with the actual gtk related thing I was trying to sort out though :-( | 07:35.17 |
kens | The focus thing that ray was talking about last night ? | 07:35.32 |
| I'm afraid I know nothing about GTK | 07:35.46 |
chrisl | kens: related to that, yes. I was trying to figure out if GTK had a way to do the same thing our Windows code does | 07:44.51 |
kens | Can't help I'm afraid.... | 07:52.39 |
chrisl | It doesn't have anything built-in, I'll need to work out another way to demultiplex input :-( | 07:53.15 |
kens | Is it worth the effort ? | 07:53.32 |
chrisl | Well, it is mostly much better than the x11 devices | 07:54.06 |
kens | OK I guess that's a plus then | 07:54.17 |
chrisl | I'll probably keep is as a background thing, it's not like it's urgent | 07:55.11 |
kens | seems reasonable | 07:55.26 |
chrisl | I have a feeling it's going to mean messing around with Unix pipes, and it's quite some time since I did that! | 07:57.09 |
Ziai | hi all. have a question here to the author of Ghostscript.NET | 09:03.34 |
kens | That's jhabjan, who does seem to be here at present | 09:04.01 |
Ziai | or a man who can use it.. i suppose | 09:04.03 |
jhabjan | Zaia: yes? | 09:04.58 |
| sorry, Zaia = Ziai | 09:05.12 |
Ziai | hi | 09:05.58 |
ghostbot | que tal | 09:05.58 |
Ziai | i was wondering, is it possible to generate a png image out of nothing.. | 09:06.22 |
jhabjan | Ziai: sorry, I need to pop out and I will return in an hour | 09:06.27 |
Ziai | just a white pixel | 09:06.29 |
| and store it as a png | 09:06.40 |
| jhabjan, ok | 09:06.48 |
| ppl don't say "gtg afk 1h" anymore? | 09:07.37 |
| :D | 09:07.40 |
chrisl | Ziai: just one white pixel? | 09:11.06 |
Robin_Watts | Why would you want to generate that using Ghostscript.NET ? | 09:15.05 |
Ziai | to begin with.. i might need it to be other color or litle bit bigger | 09:16.53 |
| chris yea. it's my baground sample which will get scaled up by other software... | 09:17.42 |
| need to generate a png. my VB is funny, cant create a bitmap image.. :/ | 09:18.04 |
| so i thought i have entire dll dedicated for creating image in a way... | 09:18.31 |
kens | If you want a simple .png use an image editor to make one | 09:18.40 |
| Ghostscript isn't dedicated to creating images, its a PostScript itnerpreter | 09:19.10 |
Ziai | in has to live in .net 4.0 my code is writen c#.. GhostScript.NET is a dll i am uing to convert PDF to PNG | 09:19.36 |
kens | While you obviously *could* create a simple PNG wiht it, you'd have to write the PostScript to do so | 09:19.43 |
Ziai | kens, yes but what it does is ... creates an image | 09:19.54 |
Robin_Watts | Ziai: Why not use a 1 pixel transparent PNG? Lots of websites use them as spacing tools. | 09:19.56 |
kens | Ziai, it *may*( create an image, it doesn't have to | 09:20.08 |
Ziai | Robin_Watts but that transparent pixel has to be created somehow. | 09:20.44 |
kens | SO use an image editor, eg the GIMP | 09:20.56 |
chrisl | hmm, and "transparent" isn't "white" | 09:21.11 |
Ziai | chrisl i know.. i just ignored that | 09:21.22 |
| kens i need to find a way to create a png.. it has to be achieved with c# code using .net ~4.0 | 09:22.28 |
| so i was hoping to make use of GhostScript.NET | 09:22.43 |
kens | WHy can't you just create the one you want, wehy does it have to be on the fly ? | 09:22.50 |
| Also PNG is not a omplicated format, why not just write one yourself ? | 09:23.21 |
Ziai | mmm... that's a good idea.. | 09:23.45 |
| maybe. | 09:23.51 |
kens | If all you want is something simple, it should be easy enough | 09:24.05 |
Ziai | but it's not a matter of .. myBestLib.makeNewPNG(colour,w,h outputPath); | 09:24.41 |
kens | Gettingf it out of Ghostscript is going to mean writing a PostScript program to feed in, describing the desired output. I suspect you'll find that harder than just creating a PNG from scratch | 09:24.42 |
| Ziai : No it defintitely isn't | 09:24.52 |
| If you use some image editing DLL (again eg the GIMP) then yes, that is likely possible, but as I said, GHostscript is not that sort of application, that's not what its intended for. | 09:25.30 |
chrisl | If all you want is a few blank pixels in a png, why not create one in, say, gimp, and store the bytes in an array in your source file(s) - it'll be tiny, probably smaller than the code to actually create it on the fly? | 09:25.45 |
Ziai | chrisl, ty, ill have a look into it. | 09:26.18 |
jhabjan | Ziai: I think what you are trying to achieve has nothing to do with Ghostscript or Ghostscript.NET | 09:47.48 |
| Ziai: even it's off topic, I wrote you small example which does what you need: http://pastebin.com/JChSJVwH | 09:48.24 |
Ziai | jhabjan i've something similar to that on internet. what is that Bitmap namespace?? | 10:57.23 |
| my VS doesn't have it on a list of assemblies.. | 10:57.46 |
jhabjan | Ziai: Bitmap is part of "System.Drawing" namespace | 10:59.16 |
| Ziai: ImageFormat is part of "System.Drawing.Imaging" namespace | 10:59.34 |
| Ziai: and both namespaces are part of the System.Drawing.dll | 11:00.26 |
Ziai | i keep getting this error System.AccessViolationException was unhandled | 11:02.46 |
| HResult=-2147467261 | 11:02.46 |
| Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. | 11:02.47 |
| Source=Ghostscript.NET | 11:02.47 |
| StackTrace: | 11:02.47 |
| at Microsoft.WinAny.Interop.DynamicNativeLibrary.CallDllEntryPoint(MEMORY_MODULE* memory_module, UInt32 fdwReason) | 11:02.47 |
| at Microsoft.WinAny.Interop.DynamicNativeLibrary.MemoryLoadLibrary(Byte[] data) | 11:02.47 |
| at Microsoft.WinAny.Interop.DynamicNativeLibrary..ctor(Byte[] buffer) | 11:02.48 |
| at Ghostscript.NET.GhostscriptLibrary..ctor(GhostscriptVersionInfo version, Boolean fromMemory) | 11:02.48 |
| at Ghostscript.NET.Processor.GhostscriptProcessor..ctor(GhostscriptVersionInfo version, Boolean fromMemory) | 11:02.49 |
| at Ghostscript.NET.GhostscriptDevice.Process(GhostscriptVersionInfo ghostscriptVersion, Boolean fromMemory, GhostscriptStdIO stdIO_callback) | 11:02.49 |
| at CuuOnline1.PDFtoPNG.convert(String input, String output) in c:\Users\Zilvinas\Documents\Visual Studio 2013\Projects\PdfToPngConverter\PdfToPngConverter\PDFtoPNG.cs:line 51 | 11:02.50 |
| at CuuOnline1.PDFtoPNG.convertPDF(String input, String output) in c:\Users\Zilvinas\Documents\Visual Studio 2013\Projects\PdfToPngConverter\PdfToPngConverter\PDFtoPNG.cs:line 15 | 11:02.50 |
| at CuuOnline1.Program.Main(String[] args) in c:\Users\Zilvinas\Documents\Visual Studio 2013\Projects\PdfToPngConverter\PdfToPngConverter\Program.cs:line 24 | 11:02.51 |
Robin_Watts | Ziai: Don't do that. | 11:03.00 |
| Please use pastebin and paste the URL. | 11:03.07 |
Ziai | shit | 11:03.11 |
| ture | 11:03.13 |
| sorry | 11:03.14 |
Robin_Watts | np. | 11:03.17 |
Ziai | did u get it anyways? | 11:03.29 |
jhabjan | Ziai: yes | 11:04.21 |
Robin_Watts | I did, but unless you can reproduce that as a ghostscript call (not a Ghostscript.NET one), we'll be leaving it to jhabjan :) | 11:04.32 |
Ziai | ill make a pastebin version with all details one sec | 11:05.03 |
jhabjan | Ziai: do you use gsdll32.dll or gsdll64.dll ? | 11:05.49 |
Ziai | http://pastebin.com/M9QG3KyP 32 | 11:05.57 |
jhabjan | Ziai: is your platform target in the project you use Ghostscript.NET set as x86 or x64 ? | 11:07.09 |
Ziai | sorry, didn't get it. | 11:08.43 |
jhabjan | Ziai: Ghostscript.NET works in a way that it loads a native Ghostscript library dynamically based on the process it's running in. So, if it runs in the 64 bit process, it will load gsdll64.dll and if it runs in the 32 bit process it will load gsdll32.dll. | 11:10.03 |
Ziai | ill try 64.dll then | 11:10.42 |
| just a moment | 11:10.52 |
| nice. that was easy fix! jhabjan ty! :)) | 11:11.38 |
jhabjan | Ziai: I would suggest you to make your project platform target to 'AnyCPU', which means it will run on both x86 and x64... | 11:13.12 |
Ziai | .. how? | 11:13.50 |
jhabjan | Ziai: as.. if you set your platform target to x86 and you run your app on 64 bit macihne, the app will run as 32 bit process and gsdll32.dll will be required... which often confuses people... | 11:14.35 |
Ziai | i figure out what cpu it's running at.. and choose different dll | 11:14.40 |
jhabjan | Ziai: How to: Configure Projects to Target Platforms -> http://msdn.microsoft.com/en-us/library/ms185328.aspx | 11:15.55 |
lancelot_of | hi there | 13:03.33 |
| is it possible to print a document in mupdf? | 13:03.42 |
| i see no option in man mupdf | 13:03.50 |
kens | paulgardiner_lap : a question for you I think ^^ | 13:05.27 |
jogux_mac | lancelot_of : what OS are you on? | 13:07.21 |
lancelot_of | Debian | 13:09.06 |
paulgardiner_lap | lancelot_of: there's currently no printing support in the Linux app, AFAIK | 13:09.52 |
lancelot_of | it's a pity | 13:11.01 |
| a very nice and light pdfviewer like mupdf without a printing tool...loose the competition with zathura/apvlv | 13:11.36 |
| (in my opinion) | 13:11.42 |
paulgardiner_lap | It may be worth getting tor8's thoughts on the matter - he seems to be away at the moment. | 13:13.04 |
chrisl | Adding printing would compromise the cross-Unix nature of the current viewer code..... | 13:14.05 |
Robin_Watts | lancelot_of: zathura usues mupdf, right? | 13:23.27 |
| To repeat my standard spiel... | 13:23.48 |
lancelot_of | Robin_Watts, mainly poppler | 13:23.56 |
Robin_Watts | MuPDF is at heart a portable C library to open/manipulate/render PDF (and other formats). | 13:24.18 |
| We also provide various simple tools that use that library, including viewers for many different OS. | 13:24.40 |
| The core of MuPDF certainly supports what you need to do printing, but the viewers for some platforms don't expose that. | 13:25.15 |
| We are working on improved viewers for various different OS, but at this time, the linux one is not a huge priority for us. | 13:25.49 |
lancelot_of | Robin_Watts, ok thanks fr the clear explanation | 13:28.08 |
| have all a nice day and thank you for the kind support | 13:28.19 |
| bye | 13:28.22 |
henrys_ | mvrhel_laptop: looks like significant progress on the viewer | 15:40.55 |
Robin_Watts | I would repeat my plea for people to try the MuPDF android binaries. | 15:42.19 |
henrys_ | searches for his nexus | 15:44.23 |
| kens, chrisl I have swift view if you want some pcl->pdf output | 15:56.36 |
kens | henrys Not a problem, just curiosity about how it works | 15:56.55 |
mvrhel_laptop | good morning | 15:59.20 |
| thanks henrys. I feel like I am getting close to the end | 15:59.38 |
henrys_ | Robin_Watts: sorry for the delay I've really drained the battery down, the iPad must be my preference ;-) | 16:01.51 |
| mvrhel_laptop: did we decide we were going to try this on mono, or was there some reason not to. | 16:02.52 |
| ? | 16:02.57 |
mvrhel_laptop | henrys_ hold on on phone | 16:03.16 |
| getting my father set up with remote desktop via chrome.. | 16:06.25 |
Robin_Watts | henrys: IIRC mono provided a C# runtime, but not the required graphical libs for it to work on linux. | 16:07.10 |
mvrhel_laptop | right. the wpf xaml stuff is not available | 16:07.29 |
henrys_ | Robin_Watts: smoke tested on the nexus | 16:50.49 |
Robin_Watts | Thanks. | 16:52.46 |
kens | night all | 17:08.53 |
ray_laptop | chrisl_away: (for the logs). I tried "make so" with HEAD and I get: sobin/gsx: symbol lookup error: sobin/gsx: undefined symbol: gsapi_get_default_device_list | 18:40.33 |
| chrisl_away: I even tried sudo make soinstall and I get the same thing from: gsx | 18:42.58 |
| chrisl_away: before I updated, I _was_ able to get gsx to work | 18:44.28 |
| chrisl_away: and I did a make soclean prior to the make so | 18:44.55 |
henrys_ | ray_laptop: works for me - I get your error if I use the old gs 9 lib on the system. what does ldd gsx say? | 19:17.46 |
| ray_laptop: if you don't want to install it export LD_LIBRARY_PATH=. ; ./gsx file | 19:18.50 |
| ray_laptop: or just run ldconfig and it should work since you installed it. | 19:24.24 |
ray_laptop | henrys_: I did the soinstall, (with sudo make soinstall) and it worked. I found out that for some reason I have no LD_LIBRARY_PATH set, os apparently it is only looking in /usr/lib | 19:27.08 |
| henrys_: and getting the previous libgs.9.05 instead of .15 that I need. I did export LD_LIBRARAY_PATH=/usr/local/lib:/usr/lib and it's OK | 19:27.56 |
| I probably need to have ./sobin in there as well, I guess | 19:29.03 |
| Forward 1 day (to 2014/04/26)>>> | |