IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2016/06/15)20160616 
bidigo :q13:13.52 
psmlbhor kens, as you had suggested I am going to implement the Flate encoding on image data. The PS reference manual suggest RFC 1950 and 1951 for the implementation details. But can I directly use the zlib library for it?14:19.02 
  kens, can you help me please ?16:16.07 
kens With what ?16:16.29 
psmlbhor can I use zlib for Flate encoding?16:18.10 
  Will PS flate decoder understand the data?16:18.29 
kens I don't see why not16:19.38 
  But I'm not going to say it will either, I don't actually know16:19.49 
  Try it and see16:19.59 
  Or, alternatively, use MuPDF which definitely does work, and was suggested several times16:20.16 
psmlbhor I just need to compress the data now. Though I have started looking at MuPDF, right now I can't switch right away. 16:24.11 
Robin_Watts the flate data outputted by zlib is compatible with PS, yes.16:38.17 
psmlbhor Robin_Watts, thank you.16:39.33 
elusiveother hello17:30.08 
ghostbot Welcome to #ghostscript, the channel for Ghostscript and MuPDF. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line.17:30.08 
elusiveother i was wondering if anyone here had advice for someone trying to convert a csv file into a legible pdf document where values are represented in a table17:31.13 
Robin_Watts elusiveother: Interesting problem.17:35.05 
  You need something capable of laying out the text for you.17:35.55 
  elusiveother: Your easiest approach may be to write a script that reads the csv file and outputs postscript.17:36.33 
  And then use gs to go from postscript -> pdf.17:36.47 
  OR, for bonus points, write a PS program to read the CSV file and output PS.17:37.11 
  PS allows you to measure the strings, so you can be sure the layout will work.17:37.31 
elusiveother Robin_Watts, thanks. I'll attempt that if CSV -> Tex -> PDF doesn't work out as well as i'd like17:58.44 
Robin_Watts That's not a stupid plan.17:59.04 
  I might have been tempted to output HTML myself, on the grounds that you can have funky javascript in the html so you can resort by column by clicking on the column headers etc.18:00.24 
  But if you need PDF, you need PDF.18:00.35 
kens Robin_Watts : if you write a PostScript program to read the CSV you can outptu straight to PDF< no need to output to PS18:00.59 
Robin_Watts kens: I suspect that's harder to do (requires knowledge of our system rather than vanilla PS)18:01.44 
kens No not really18:01.51 
Robin_Watts but I bow to your greater knowledge in this area.18:01.54 
kens The PostScript program would have to execute PS operations to position the text, just execute them18:02.09 
Robin_Watts kens: Oh, I see. Yes.18:02.22 
kens And select ps2write as the output device18:02.23 
  D'oh I mean pdfwrite of course....18:02.39 
  I should go away, I'm clearly tired18:02.46 
Robin_Watts I'd been thinking of actually putting out a PS program on stdout, but your way is better of course.18:02.47 
kens Well, PostScript is a programming language, so....18:03.05 
  But there's no reason CSV->TeX->PDF shouldn't work18:03.15 
elusiveother what's a good source for learning the postscript language?19:43.55 
Robin_Watts elusiveother: There is the PLRM (postscript language reference manual). It's a good reference, but not great as a learning tool.20:12.55 
  There are also a couple of other books I believe. One is a "Cookbook".20:13.20 
  and it should be available to download online somewhere I think.20:13.30 
elusiveother http://www-cdf.fnal.gov/offline/PostScript/BLUEBOOK.PDF20:20.27 
  i'm looking at this atm20:20.31 
kens There's the Green book and the blue book, that's about it for PS tutorials. In truth I wouldn't seriously reccomend learning PostScript. Another excellent source of inspiration is John Deubert's acumen training journal:20:35.16 
  http://www.acumentraining.com/acumenjournal.html20:35.16 
 Forward 1 day (to 2016/06/17)>>> 
ghostscript.com
Search: