| <<<Back 1 day (to 2015/08/30) | 20150831 |
tor8 | sebras: great news! | 08:54.06 |
sebras | tor8: I know! I'm a bit busy today so if there are any problems you'll have to solve them or be patient. ;) | 09:00.24 |
tor8 | Robin_Watts: is there any reason why we don't do the invert_cmyk_jpeg case for non-XPS jpeg files? | 14:20.37 |
| a lack of test cases, or do we have actual PDF test cases? | 14:20.52 |
| I just ran across a CBZ with CMYK jpegs that need inverting | 14:21.03 |
thealchemist | Any mupdf developers here? Is it possible to change the color of the background in PDF? I like something like #262626 (bg) and #bcbcbc (fg) | 14:36.34 |
| Its really light on the eyes, is that possible? Zathura is the only vim like PDF Viewer that allows me to do this | 14:37.02 |
| I like MuPDF overall but this feature is missing | 14:37.36 |
tor8 | thealchemist: shift-C | 14:52.24 |
thealchemist | shift-C and I get a slighly pinkish bg with black fg a bit like solarized light | 14:55.26 |
| I am looking for #262626 bg and #bcbcbc fg as those are really light on the eyes | 14:55.51 |
tor8 | you can change the background if you pass "-C bcbcbc" to the mupdf command line | 14:56.55 |
thealchemist | ok let me try that | 14:57.08 |
tor8 | no way to change the black level though, but adding that should be easy enough if you're willing to code | 14:57.52 |
| we call a function fz_tint_pixmap to change the white | 14:58.05 |
thealchemist | right tor8 I will have a look but meanwhile mupdf file -C bcbcbc is not having any effect | 15:00.38 |
| its still solairzedlight type of bg | 15:01.28 |
tor8 | thealchemist: which OS are you using? | 15:05.21 |
| ah, you need to put the command line flags before the filename | 15:05.48 |
| mupdf -C bcbcbc file.pdf | 15:05.55 |
thealchemist | that I tried first it says -C file not found | 15:07.13 |
| any thoughts tor8 | 15:11.32 |
| I might have to start checking the source code I guess | 15:11.42 |
tor8 | thealchemist: which OS and which version of mupdf are you running? | 15:14.46 |
| older version for windows do not handle command line options, but the latest one should. | 15:15.31 |
thealchemist | debian testing, version isn't showing up as list of options but copyright is till 2014 | 15:16.23 |
Robin_Watts | debian versions will be old. | 15:16.52 |
thealchemist | oh thats sad I thought debian testing will be sort of state of the art | 15:17.13 |
tor8 | the debian version most likely predates the -C option by a couple of releases | 15:17.15 |
Robin_Watts | state of the debian art. They are still marvelling over the discovery of fire there. | 15:17.41 |
thealchemist | is there are deb/rpm distro that is really cutting edge | 15:17.42 |
| lol Robin_Watts | 15:17.59 |
thealchemist | is cloning | 15:18.56 |
| will try to see if I can compile the latest version | 15:19.19 |
| I thought debian testing would be new | 15:19.32 |
netherlands | good evening from the netherlands | 16:38.25 |
| Does somebody have some tips to get best performance from ghostscript on a quadcore system with 8gb ram? | 16:39.00 |
Robin_Watts | netherlands: We'd need more information about your usage pattern. | 16:39.53 |
| What are you doing with gs? | 16:40.03 |
netherlands | mainly concatenating different pdf's together | 16:40.35 |
| I made some postscript code that strips out any existing PDFMark objects and then glues together different kind of pdf files | 16:41.09 |
| the output format is version 1.6 | 16:41.20 |
Robin_Watts | netherlands: So you're using pdfwrite. | 16:41.37 |
netherlands | yes | 16:41.41 |
| I can post some postscript code but it is rather large | 16:41.53 |
Robin_Watts | The first thing to realise is that you are not concatenating PDFs. | 16:41.56 |
| What you are doing is creating completely new PDFs that just happen to look as close to the originals as we can manage. | 16:42.19 |
netherlands | I know.. I render it to a completely new pdf file | 16:42.25 |
Robin_Watts | Images are decompressed, then recompressed, etc. | 16:42.36 |
netherlands | I also use it to get rid of any malformation in existing pdf files | 16:42.58 |
| since I get the from all kind of different sources | 16:43.09 |
Robin_Watts | netherlands: There are faster ways to 'repair' PDFs than to run them through gs. | 16:43.33 |
netherlands | so the versions can range from 1.2 to 1.8 | 16:43.35 |
Robin_Watts | but it sounds to me like you're doing a few files here and there, rather than setting up a server to do bulk processing of PDFs? | 16:44.06 |
netherlands | I have a server that is dedicated just for this | 16:44.54 |
| this are the parameters I use | 16:45.58 |
| If split Then outputFile = ExtractFileNameWithOutExtension(outputFile) & "_page%d.pdf" Else outputFile = ExtractFileNameWithOutExtension(outputFile) & ".pdf" End If ReDim Args(13) 'Args(0) = "-sFONTDIR=c:\\windows\\fonts" Args(0) = "-q" Args(1) = "-dNOPAUSE" Args(2) = "-dBAT | 16:46.00 |
| uhm .. that is unreadable when pasting :-) | 16:46.37 |
Robin_Watts | yeah. looks like you're writing to Args(0) twice to me. | 16:47.37 |
| netherlands: pastebin is your friend. | 16:47.58 |
netherlands | -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/printer -dEmbedAllFonts=true -dSubsetFonts=true -dCompressFonts=true -dConvertCMYKImagesToRGB=false -dNumRenderingThreads=<amount of cpu's> -dCompatibility=1.6 -r300 -sPAPERSIZE=a4 -sDEVOCE=pdfwrite | 16:49.14 |
Robin_Watts | netherlands: Our pdfwrite expert has left for the night. You might want to come back in about 16 hours time and ask again then. | 16:50.38 |
netherlands | http://pastebin.com/GAJTUnJB | 16:51.40 |
| I'm not a postscript expert so it could be that I did write some very strange code :-) | 16:52.03 |
| I normally program in C# | 16:52.21 |
| So it took me some time to figure out how to write postscript | 16:52.37 |
| since that I thinking the other way round then I'm used to do in c# | 16:53.20 |
Robin_Watts | backwards ass postscript is | 16:54.17 |
netherlands | yes | 16:55.19 |
| that took some time to figure out | 16:55.26 |
| But I do some advanced things so I had no other choice then using postscript | 16:56.01 |
| I'm just a novice in postscript | 16:56.37 |
thealchemist | .CLEAR | 17:00.54 |
netherlands | but I'll come back tomorrow | 17:02.11 |
| have a nice evening | 17:02.18 |
mvrhel_laptop | Robin_Watts: are you around? | 19:17.22 |
| I realize it is probably getting a bit later | 19:17.46 |
| there | 19:17.49 |
| oh I see | 19:18.46 |
| never mind | 19:18.50 |
| lunch time. bbiaw | 19:21.17 |
cryptopsy | can mupdf read file header to determine what filetype an image is if the extension is not in the file name? | 20:17.05 |
sebras | cryptopsy: it does do something like that in some situations. | 20:50.28 |
| cryptopsy: hm. I think it works like this: in source/cbz/muimg.c it uses the extension or the mimetype to determine if it is a valid image. | 20:53.31 |
| cryptopsy: if it is then it uses the magic numbers in the file headers to determine exactly how to decode it. | 20:53.52 |
| cryptopsy: as far as I can understand after a brief excursion into the code anyway... | 20:55.12 |
Robin_Watts | cryptopsy: Yes. | 22:55.31 |
| Each document handler has a routine that looks at a file and returns a 'score' for how likely it is to be that file. | 22:55.58 |
| The mimetype and extension can be considered. | 22:56.12 |
| so can the file contents. | 22:56.16 |
| Forward 1 day (to 2015/09/01)>>> | |