IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2011/09/13)2011/09/14 
Jega hi there. I am looking for tips to show pdf files inside an NPAPI plugin. My preferred choice is usning Firebreath and MuPDF. 08:22.08 
kens We can answer questions about MuPDF and PDF in general, I've never heard of Firebreath, and know nothing about NPAPI.08:22.51 
  There is already a MuPDF plugin for Firefox though.08:23.27 
Jega Thanks kens. could you pls give me the url where I can download the source code?08:23.52 
ghostbot pas de quoi, Jega08:23.52 
kens THe source code for MuPDF ?08:24.04 
Jega nope. the source code for the FF plugin08:24.18 
kens If its not supplied as part of the MuPDF code, then nmo, sorry. You'll have to wait for Tor to wake up.08:24.48 
Jega thnx. will wait. realize that I am in the wrong timezone. sorry guys08:25.27 
kens Not really the wrong time zone, Tor is in Sweden, but is a late riser.08:25.54 
Jega he he08:26.17 
  Can I ask some advice from you for a project I am into?08:27.01 
kens You can always ask, whether I can help is moot....08:27.15 
Jega Ok. My customer want to show a pdf files through web on subscription basis. So I cannot use a normal plugin that comes with chrome or adode reader plugin.08:28.15 
  I need to create my own pdf plugin with activation code08:28.35 
kens Hmm, I thin kyou could use custom encryption even with Acrobat.08:28.48 
  But I don't know how to do custom decryption filters in Acrobat.08:29.09 
Jega Already had a firebreath NPAPI plugin using firebreath.org08:29.56 
  I can render text and images. Now need to render PDF08:30.17 
  will encrypt pdf using m_crypt and decrypt before rendering the pdf.08:30.41 
  Am I going on the right path?08:30.48 
kens Approximately so I would think.08:31.02 
  You *must* do something to the PDF so that other readers can't open it.08:31.14 
  A custom encryption seems the best solution to me.08:31.25 
Jega On expiry of the date limit, the plugin displays a warning to renew the subscription08:31.27 
  yep08:31.38 
kens Well, that means coding the expiry date into the encryption, or deactivating the plugin or something, but that's a simple matter of programming :-)08:31.58 
  A custom encryption applied to the PDF seems like the best solution to me.08:32.21 
  This assumes you have control over the PDF creation as well of course.08:32.32 
Jega yeah. I can even write the expiry date on registry (again encrypted)08:32.48 
kens You could also simply encrypt the entire file and decrypt locally, rather than using the PDF custom encryption stuff.08:33.16 
Jega and check the expiry date. on new subscription, the registry can be further exteded08:33.32 
kens You would need to do something like that if you can't control the PDF creation.08:33.40 
Jega firebreath extension gives a hWND where I can get the hDC.08:34.31 
  but it didn't stike to me that rendering the pdf is not an easy business08:35.00 
kens :-)08:35.06 
Jega that is why I am here ;-)08:35.08 
kens MuPDF and Ghostscritp can both do this, but since you only want PDF, best to stick with MuPDF08:35.30 
Jega yes. MyPDF is light weight and doesn't add too much into my plugin08:36.04 
  that is what I heard08:36.12 
kens I would agree.08:36.18 
  Note that if this is a commercial application you may need a licence08:36.44 
  I am not a lawyer etc.08:36.50 
Jega I dont mind paying if it is reasonable.08:37.20 
kens I'd suggest you see if MuPDF is suitable first.08:37.37 
  Then if you like it you can contact Artifex's sales people and see what the commercial deal would be.08:38.01 
Jega downloaded the win version and tested. It suits me perfectly08:38.21 
  what about gs08:38.28 
  ?08:38.37 
kens Ghostscript handles PDF, PS, XPS and PCL but is much bigger and more complex.08:38.52 
Jega but license is BSD or GPL?08:39.08 
kens GPL08:39.15 
Jega so, again I am stuch here, right. what if I give my source code to my client08:39.39 
kens If you want to talk about licencing you should contact scott.sackett@artifex.com08:39.48 
Jega fine. will send a mail now.08:40.14 
kens If you give the source code to the client, then they could easily defeat your encryption.08:40.14 
  Scott is in the US and attending a trade show right now, but they have net access.08:40.38 
Jega My Client is my employer who is the buyer of the software08:40.52 
  his clients will have the plugin08:41.17 
kens But presumably you intend to distribute the plugin ?08:41.17 
  Well, as I said, I'm not a lawyer :-)08:41.28 
Jega he will distribute it to his distributors08:41.36 
kens Is it being sold somewhere ?08:41.57 
  If not then you are probably OK, if it is, then probably not.08:42.14 
Jega I am selling the software + code to my customer08:42.16 
  he will host it on his server08:42.23 
  the client has to download the plugin and install (which is free)08:42.37 
  and then, they can access pdf using this plugin08:42.49 
kens Technically I think that's OK under the GPL, but you might like to seek a legal opinion.08:43.14 
Jega ok08:43.25 
kens Note that we also do support contracts, which might be of interest to your customer08:43.30 
Jega well. I dont mind getting paid consultancy it this is reasonable.08:44.36 
  err if 08:44.51 
kens Not so much that, it means tat if your customer was to find PDF files that didn't work due to bugs, they would be treated the same as a licencee rather than a free user.08:45.19 
chrisl To comply with the GPL, any code you link to the GPL'ed code in a distributed binary must also be GPL'ed and made available.08:45.20 
kens Which would defeat teh point of encrypting it, since the end user would be able to defeat teh encryption.08:45.49 
Jega In fact we are a LAMP/WAMP company and our main business is education industry with PHP+MySQL+Jquery. I love to contribut tothe community08:46.51 
  the encryption key could be modified on every compilation08:47.17 
  that is not a big issue08:47.22 
chrisl Jega: even being compliant with the letter of the GPL, as kens says, it is probably worth talking to Scott about the licensing options, simply for the better support terms.08:49.06 
Jega perfect08:49.36 
  will send a mail to him right away08:49.49 
kens I've sent an email to the show prompting them to check.08:50.18 
  And poiting to the IRC log.08:50.37 
Jega sent a mail08:57.31 
  thanks pals. Will come again, after getting a reply08:57.57 
ghostbot Jega: de rien08:57.57 
kens OK well Tor should be along in the next hour or so, if you see him pop up then ask him about the source to the plugin08:58.04 
Jega cool08:58.21 
kens Why has ghostbot suddenly started piping up, and in French ?08:58.45 
  Is this something Robin_Watts has done ?08:58.54 
chrisl Yes, not sure I like it :-(08:59.23 
kens Me neigher.08:59.32 
  neither08:59.36 
Jega yep. it is confusing. I thougt I made some stupid questions and somebody is abusing me :-)09:04.13 
  then I realized it is a bot09:04.27 
  and answering my every thanks with welcome in french09:04.41 
  had to use google translate of course :-)09:04.54 
kens I think Robin was trying to get ghostbot to answer questions like 'Can I ask a question ?' automatically to save us saying 'don't ask to ask, just ask'.09:05.04 
  This may be an unintended side-effect.09:05.16 
  When he pops up I think I'll ask if we can turn it off....09:05.41 
Jega perfect.09:05.56 
kens Heading out, be back in a couple of hours.09:26.05 
Robin_Watts ghostbot forget thanks10:04.20 
ghostbot i didn't have anything called 'thanks' to forget, Robin_Watts10:04.20 
Robin_Watts thanks10:47.30 
  ghostbot: thanks10:47.37 
ghostbot Robin_Watts: no worries10:47.37 
Robin_Watts OK, it should only react to thanks, if you directly address it now.10:47.50 
kens Thanks for the 'tanks' change to ghostbot Robin_Watts12:19.43 
Robin_Watts kens: no worrie.s12:19.59 
  I knew when I enabled ghostbot talking without being addressed it would need some tweaks.12:20.17 
sebras Robin_Watts: are customer bugs tagged in some way in bugzilla?13:28.00 
  Robin_Watts: or maybe I'm not supposed to know. :)13:28.15 
kens THey have non empty values in the customer field13:28.21 
  In 'search' in Bugzilla use 'Advanced Searching Using Boolean Charts'13:28.54 
  Select the customer field from the drop-down on the left13:29.10 
  Then 'matches regular expression' from the second drop-down13:29.32 
  And put . in the text field13:29.40 
Robin_Watts sebras: sorry, was at lunch. What kens said :)13:31.48 
  Yay, I have pdfdraw building again.13:40.10 
  ok, back to mupdf building completely with no warnings. Now to fix the inevitable bugs when I try to run it.15:14.04 
mvrhel2 Robin_Watts: did you work at all on profiling the planar stuff?15:20.48 
Robin_Watts mvrhel2: No, not yet.15:21.03 
mvrhel2 ok15:21.07 
Robin_Watts I started rejigging mupdf on the plane, and it's been a large rabbithole.15:21.28 
  When I get it stabilised again I can put it up for comments (I am confident that tor will hate it :( )15:21.54 
  Then I'll look at why the pcl planar rop stuff is calling planar_to_chunky15:22.23 
  mvrhel2: Did you report the lcms2 bug to marti?15:23.25 
sebras kens, Robin_Watts: thanks. I'll add that query to my bugzilla login since I know those bugs are more important to you guys. :)15:33.01 
mvrhel2 no not yet. i did get some good progress done on doing color conversion before interpolations when we have enlargements. I still need to verify that lcms2 is broken with marti's tools 15:33.08 
Robin_Watts mvrhel2: Ah, cool. That could be a big boost, I think.15:33.36 
mvrhel2 yes. especially at 2400dpi....15:34.07 
  which is what prompted the bug15:34.19 
  bbiab. carpet cleaners are coming and need to move a few things....15:35.16 
Robin_Watts tor8: Do you have an xcode project for mupdf ?15:38.23 
  (I want a graphical debugger!)15:38.36 
tor8 Robin_Watts: I banged on it a bit yesterday for the iOS stuff, but got so fed up with it I raged and made it cross compile for iOS using the regular makefiles as an external shell script target15:39.29 
Robin_Watts tor8: That's what I've done for gs.15:39.48 
tor8 I think if you just make it an external shell script / makefile target the GUI debugger should work fine15:39.59 
  what drove me crazy was the whole business with third party libraries, header search paths, and crappy GUI dialogs to set everything up15:40.30 
Jega Tor, I am looking for the source code of Firefox Plugin for MuPDF. Kens said perhaps you can help me15:47.38 
kens Hi henrys, last day of show!15:48.24 
henrys woohoo15:48.54 
mvrhel2 how has the show been henrys?15:53.38 
tor8 Jega: that source is horribly out of date15:56.43 
Jega I can understand. I can create a new NPAPI plugin using firebreath. Could you help me how can I use this with MuPDF15:58.04 
tor8 Jega: http://git.ghostscript.com/?p=mupdf.git;a=tree;f=apps/mozilla;h=6d54273f8f0a4882187573085dc532040ec060ab15:58.14 
  that's the last version of the source15:58.30 
Jega thnx15:58.38 
tor8 Jega: I read the logs on your previous discussions. if your client is going to be distributing a plugin to their customers they'll also need to distribute the source to comply with the GPL.15:59.44 
Jega thnx for highlighting this16:00.21 
tor8 so I'd really talk to scott and inquire about getting a commercial license16:00.22 
Jega I sent a mail to him and waiting for his reply16:00.35 
  and I dont mind paying a license. if the cost is reasonable. 16:01.24 
tor8 you can comply with the GPL even with encryption, but as you can imagine, any encryption scheme will prove fragile. time expiration code can be worked around easily with access to source, so once decrypted, always decrypted.16:02.21 
Jega I agree16:03.12 
henrys mvrhel2:the show is going okay for our customers that have booths here we haven't seen much direct action - as expected.16:06.54 
Jega I got some error cloning the git repo16:06.54 
  6d54273f8f0a4882187573085dc532040ec060ab...16:06.57 
  fatal: http://git.ghostscript.com/?p=mupdf.git;a=tree;f=apps/mozilla;h=6d54273f8f0a4882187573085dc532040ec060ab/info/refs not found: did you run git update-server-info on the server?16:06.57 
tor8 what did you click to get that link?16:07.55 
Jega I copied the link you sent and pasted on the tortoice clone dialog. I am bit new to git. old fan of svn :-)16:09.07 
tor8 well, that link I sent is just a view of the plugin files on the last rev they existed :)16:09.41 
  use git://git.ghostscript.com/mupdf.git to clone16:10.06 
Jega thnx16:10.16 
  now works. 16:12.31 
  The cloned source does have mozilla folder under apps. is it removed from the repo?16:20.19 
  err does not have16:20.28 
Robin_Watts Jega: The cloned repo contains the plugin files, but they are not present in the latest revision.16:23.12 
  You need to: git checkout 6d5427316:23.32 
  That will change the working copy back in time to the last rev at which they appeared.16:23.49 
Jega thnx robin16:23.58 
Robin_Watts np.16:24.04 
Jega sorry abt being very naive on gits. still working on svn as our repo system16:24.37 
kens Time to go, night all16:44.15 
Robin_Watts tor8: Have you built on windows since adding pdf_font_DroidSansMono ?17:20.18 
tor8 Robin_Watts: yes, I did the windows binary release17:21.09 
  the dependencies for the pregen stuff may be off though17:21.26 
  "if not exist generated/font_droid.h fontdump.exe generated/font_droid.h fonts/droid/DroidSans.ttf fonts/droid/DroidSansMono.ttf" only tests if the result exists, not if the sources have changed17:22.09 
Robin_Watts When I do a rebuild Solution, I get:17:23.48 
  1>c:\cvs\artifex\mupdf.git\pdf\pdf_fontfile.c(120) : error C2065: 'pdf_font_DroidSansMono' : undeclared identifier17:24.03 
tor8 remove generated/font_droid.h and rebuild17:28.11 
Robin_Watts Yeah, just figured that out :)17:28.40 
  Thanks.17:28.43 
  tor8: I've pushed what I've got so far to my repo on casper as "failing_allocs" branch.18:27.13 
  It all seems to build without complaint and pdfdraw works.18:27.41 
 Forward 1 day (to 2011/09/15)>>> 
ghostscript.com
Search: