IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2016/06/16)20160617 
Emran hey guys, any examples on adding text annotations with MuPDF09:12.44 
  ?09:12.45 
Asuran kens, if i can bother you a sec: -sOutputICCProfile where thas the profile file to be? (using windows 10)11:18.31 
kens anywhere you can set a path11:18.52 
Asuran if i want make sure its finding it, where could i place it in the gs folder?11:19.53 
kens It won't 'find it' unless you specify a full path and name11:20.52 
Asuran ah now i get it, i thought you mean enviorment variables11:22.39 
  so you meant instead the path inside the actual -switch11:22.49 
  thank you kens11:22.52 
kens Yes, -sOutptuICCProfile=/path/filename11:23.03 
kens heads for early lunch11:23.15 
BlearyEyed Have used mupdf1.9a to clean a 200mb pdf.13:19.37 
  I'm trying to shrink the pdf size. In Acrobat this is fairly simple. But I get an out of memory error when trying to do so.13:20.37 
  Can mupdf shrink like Acrobat. It often reduces the size by %5013:21.20 
tor8 BlearyEyed: have you tried "mutool clean -ggz in.pdf out.pdf" ?13:30.05 
BlearyEyed not yet. will give it a try.13:30.32 
tor8 that does a syntactic reconstruction of the PDF file, and compresses the data inside if it's not already compressed13:30.56 
  it may or may not decrease the size13:31.02 
  the -gg is to garbage collect and remove unused objects, and compact the cross reference table to skip empty slots13:32.11 
  the -z is to compress embedded data streams13:32.22 
BlearyEyed tor8 do you have any idea what "Reduce Size" does in Acrobat?13:35.40 
tor8 BlearyEyed: sorry, not a clue13:35.57 
BlearyEyed what does the -s switch do? It says clean content streams. Not sure what is meant.13:37.43 
tor8 BlearyEyed: content streams are the page graphics; in essence a simplified postscript program to draw the page13:39.14 
  we can interpret the page graphics and do some optimizations on the commands and recreate those13:39.30 
  that could potentially save some space, but it's more used to clean up syntax errors so that we can add stuff to a page and know that the graphics are in a known good state13:41.22 
BlearyEyed I received this "error: freetype: cannot load font: broken file <nl> error: cannot load embedded font (61009 0 R) <nl> warning: ignored error when loading embedded font; attempting to load system font13:45.43 
kens Sounds like your PDF file has a broken font.13:46.19 
BlearyEyed :)13:46.39 
kens You could try running it through Ghostscript, it has a slightly difernt impleentation of FreeType and it *might* be able to fix it. No guarantees though13:47.48 
BlearyEyed k13:47.57 
kens You'll want somethijng like gs -sDEVICE=pdfwrite -o out.pdf <input filename>13:48.56 
BlearyEyed its gonna take a while ~17k pages14:08.51 
kens Well, you did say 200 Mb14:10.13 
BlearyEyed I'm getting Range check errors on a few pages. Any idea what that means?14:11.20 
kens Something bad happened14:15.43 
  Probably its your broken font. GS will continue and try to do the rest of the file, but frankly there are going to be bits missing in all likelihood.14:17.24 
  check the pages the errors occured on14:17.42 
  But ti sounds to me like your file is sadly broken14:17.52 
elusiveother why does a font effect a graphics format?14:17.58 
kens Because hte font gets used to draw the graphics :-D14:18.13 
elusiveother all fonts are broken14:18.54 
BlearyEyed Where is the log file for the gs output?14:20.04 
kens There is no log file, it goes to stdout14:20.33 
  If you want it logged you have to send stdout to a file14:20.41 
BlearyEyed I'm gonna have to run it again I think if I want a log14:21.10 
kens Its probably not worth it, it sounds like your basic problem is the file is damaged in some way14:21.32 
BlearyEyed is there a switch to input multiple pdf files,clean them then outpu to individual files?14:34.18 
  ie recursive clean14:35.50 
kens you talking about GS or MuPDF and I'm no sure what is recursive about that14:36.14 
BlearyEyed mupdf14:36.45 
  recursively take in a file clean it and generate file name with -out appended for an entire directory of files14:38.21 
kens If you take in one PDF file, why would you get a directory of PDF files as an output ?14:38.50 
  are you saying you wnt each page in the original PDF produced as a separate PDFNfile ?14:40.00 
BlearyEyed let me clarify. If I have a directory of 100 pdf files. Can I recursively clean them? 14:40.11 
kens sAgain, I don't understand your use of 'recursively'14:40.39 
BlearyEyed where the out put would be filename-out.pdf14:40.47 
kens You can easily write a shell script which runs MuPDF for each file i a directory and write each outptu file to a new directory14:41.01 
BlearyEyed can that be done through mupdf in the same directory?14:42.03 
kens As I said, you oculd wrie a shell script to invoke MuPDF on each file in a directory14:43.07 
BlearyEyed ok14:43.18 
elusiveother i'm actually having quite a bit of fun playing with postscript17:09.51 
  dynamic random grey boxes!17:10.00 
 Forward 1 day (to 2016/06/18)>>> 
ghostscript.com
Search: