| <<<Back 1 day (to 2017/08/16) | 20170817 |
Arno | Hello again. We talked some weeks ago about mupdf mini. I suggested to integrate a fit to height additionally to a fit to width. Is there any news? | 09:30.18 |
| Intention is to see a hole page withough scrolling (at a tablet). | 09:30.58 |
tor8 | Arno: no progress, we've been busy with other things. | 09:31.31 |
Arno | What a pity. Just as a reminder ;) | 09:32.40 |
| So I may come back in a few weeks? | 09:32.55 |
tor8 | please do come back and remind us every couple of weeks :) | 09:33.08 |
Arno | okidoki | 09:33.32 |
| bye | 09:33.45 |
sebras | tor8: I looked at all commits up to 56edfda1e and they LGTM with the caveat that the commit message for 56edfda1e does not explain what the subtle difference actually is. | 13:09.37 |
| that commit corresponds to 09701d6b6 on tor/master as it is now. | 13:10.28 |
tor8 | sebras: it would be more helpful if you pasted the commit message instead of checksum, both for me here and now, and for future reference in the logs | 13:14.05 |
| now I have to go and type in a bunch of extra commands to map the checksum to a commit | 13:14.28 |
| especially when I've rebased and no longer *have* that commit checksum in my log | 13:15.11 |
| sebras: tor/master right now has no '09701d6b6' commit | 13:16.22 |
| oh, it does but '09701d6b6' is one character longer than 'git logg' output | 13:16.42 |
| sebras: the 'if (pixmap->alpha == 0 || n == 1)' test is bad | 13:18.26 |
| sebras: because in the case of gray+alpha 'n' is 1 but we still want to strip the alpha | 13:18.49 |
| so it's memcpy:ing half the line, believing that there is only 1 component per pixel (but really there are two, but the initial n = (pixmap->n == 1 ? ...) expression gives the number of colors not number of components) | 13:19.43 |
| sebras: I started bashing on fixing the largefile stuff | 13:20.03 |
| and now I'm slowly going mad | 13:20.17 |
| #define _LARGEFILE64_SOURCE doesn't get me fopen64.... | 13:20.40 |
| bah, that was due to cmapdump.c doing its funky #include of C source files | 13:30.49 |
sebras | tor8: I think git has switched to one char longer in later versions. don't remember why. | 13:31.38 |
| tor8: I'll paste the commit messages in the future. :) | 13:32.56 |
tor8 | sebras: thanks! | 13:33.09 |
sebras | tor8: myself I ususually do git show and unless git gc has chewed it up locally I know was being reviewed. | 13:33.54 |
tor8 | with the commit messages I can just look at the graph in gitk | 13:35.08 |
| with 'git show' I don't see the surrounding context (where in the tree of commits is it) | 13:35.26 |
sebras | tor8: unless they've been renamed, which hopefully happens less frequently. | 13:35.35 |
tor8 | with 'git logg' I have to scan and read a lot of like-looking checksums | 13:35.42 |
sebras | tor8: that's because we run different git versions and the commit id lengths don't match. | 13:36.14 |
| "Remove redundant NULL check.", "Fix Android java build: harfbuzz memory callbacks.", "Add PS document writer." all LGTM | 13:36.41 |
tor8 | sebras: okay, I've rebuilt and installed git v2.14.1 ... is that new enough for you? | 13:36.47 |
| sebras: Ta. Will cluster. | 13:37.41 |
sebras | tor8: yup, same as me! :) | 13:37.42 |
| tor8: I'm reviewing the last few commits, give me a minute. | 13:37.58 |
| tor8: Fix printing of file level headers and trailers in mudraw. | 13:39.49 |
| tor8: that one also LGTM | 13:39.55 |
| tor8: I think that's all of them..? | 13:40.10 |
tor8 | sebras: that's all for now, thanks. | 13:41.47 |
| sebras: bah, png_expand_palette has bugs that are triggered when I skip creating an alpha channel for PNG files :( | 13:47.16 |
sebras | tor8: this is the situation I often end up in. and it annoys me. :)( | 13:52.22 |
tor8 | all is LGTM'd and fails the final clusterpush :( | 13:52.53 |
sebras | tor8: sorry I wasn't smart enough. | 13:53.21 |
tor8 | sebras: that makes two of us :) | 13:53.40 |
| clustering potential fix (it's just after the PNG alpha fix on tor/master) | 13:54.16 |
sebras | tor8: is it correct to only ++sp ? | 14:03.51 |
| hm.. I guess so if the transparency is in the palette. | 14:04.28 |
| so "png-alpha" LGTM too. | 14:04.54 |
tor8 | sebras: and it passes the cluster! :) | 14:08.54 |
sebras | tor8: kewl! | 14:15.19 |
ninawa | hello | 15:11.09 |
mubot | Welcome to #mupdf, the channel for 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. | 15:11.09 |
ninawa | i am using mupdf on android. when i close a pdf file and open it again it goes back to page 1. is it possible to remember page? | 15:11.43 |
pdfresearcher | Hello!! | 15:42.59 |
| anyone here? | 15:43.04 |
kens | Yes | 15:43.09 |
kens | thinks "that was an eassy one" | 15:43.17 |
pdfresearcher | Wonderful!! : ) It's been ages since I've seen real people active in IRC | 15:43.26 |
| IRC isn't quite like it used to be lot more empty channels and bots | 15:43.43 |
kens | Oh we're not 'real' people, just sopftware developers here | 15:43.49 |
pdfresearcher | : ) haha | 15:43.58 |
| So I stumbled upon MUPDF today and thought it was interesting, perhaps you could point me in the right direction. I've got a pdf that I've uploaded to virustotal it comes out clean but Virus Total under the details notes "Abused Properties" that I think they mean could be abused for malicious intent. Here is a screen shot https://image.ibb.co/hOz8Ba/pdf_resultsa.png | 15:48.17 |
kens | I thikn its complaining about the AcroForm | 15:49.08 |
pdfresearcher | So I'm looking for a way to Sanitize a PDF file that could have some undetected potential harm. Basically remove some of those "Abused Properties" would MUPDF clean or sanitize my pdf? | 15:49.17 |
kens | The ohters are informational and required (obviously) | 15:49.22 |
pdfresearcher | ohh ok | 15:49.32 |
kens | MuPDF won't no | 15:49.32 |
| And you can't remove teh AcroForms and still have it be a form, clearly | 15:49.44 |
| You can 'flatten' aan AcroForm using Ghostscript and the pdfwrite device | 15:50.08 |
| That will create a new PDF where there is no longer an AcroForm present, but the form data is 'baked into' the PDF | 15:50.38 |
| So you can't edit it as a form any more but it looks the same (within reason) | 15:50.50 |
| THe 0 stream object end declarations looks bad mind you | 15:51.17 |
| Tht suggests whoebver wrote the PDF fifle didn't understnad the spec :-) | 15:51.32 |
| pdfresearcher : if you post the file somewhere I can look at it and tell yo umore | 15:53.03 |
| But I'm off for the night shortly | 15:53.11 |
pdfresearcher | Hey Kens! sorry I got pulled into a work meeting | 18:49.00 |
| hello anyone here | 22:04.11 |
ninawa | only me | 22:04.23 |
| waiting for a response to question i asked 5 hours ago | 22:04.33 |
pdfresearcher | oh what was your question? | 22:04.44 |
ninawa | i am using mupdf on android. when i close a pdf file and open it again it goes back to page 1. is it possible to remember page? | 22:05.06 |
pdfresearcher | I'm looking to scub/ make a pdf sanitized from potential malicious code | 22:05.08 |
| sounds like a simple code fix | 22:05.27 |
ninawa | yes | 22:05.40 |
| and maybe open multiple pdf files at same time like tabs | 22:06.00 |
| also not possible currntly | 22:06.04 |
pdfresearcher | know of any good ways to scrub a pdf while maintaing it's oringal form without flattening | 22:06.06 |
| yea | 22:06.07 |
| Forward 1 day (to 2017/08/18)>>> | |