| <<<Back 1 day (to 2017/05/29) | 20170530 |
rehan | Hi. Just discovered mupdf and loving its power and simplicity. Quick question - is there any way to start mupdf with page zoomed to exactly fit height of document (currently to achieve this I open mupdf then have to manually press 'H' every time). | 11:51.09 |
| I am on linux desktop (ubuntu 16.04) | 11:52.00 |
tor8 | rehan: sorry, no such option | 11:52.07 |
rehan | ok, thanks for quick reply. that would make it perfect pdf viewer for me... | 11:52.47 |
| Can I use the epub height in points to zoom to A4 size by default? | 11:53.07 |
tor8 | rehan: do you use mupdf-gl or mupdf-x11? | 11:53.21 |
| rehan: it automatically shrink wraps the window to fit the page when you start it, but if you use a tiling window manager that won't work | 11:53.40 |
rehan | Yes, am using i3 tiling wm. That must be the problem | 11:54.01 |
tor8 | rehan: if you don't mind recompiling, you can change the behaviour with a one line edit | 11:54.15 |
rehan | How do I tell which one I am using. Executable is just 'mupdf' | 11:54.18 |
| Happy to recompile... | 11:54.26 |
tor8 | press 'i' | 11:54.42 |
| if it inverts the colors, you're using mupdf-x11 | 11:54.49 |
| if it shows an info dialog, you're using mupdf-gl | 11:54.56 |
rehan | Yes - colours inverted. | 11:55.21 |
tor8 | in platform/gl/gl-main.c in the main() function there's a function call to shrinkwrap() just after reload() | 11:55.28 |
rehan | This is for mupdf-gl version, correct? | 11:55.51 |
tor8 | change that line to call autozoom() instead of shrinkwrap() | 11:55.54 |
| yes, for the mupdf-gl version. I recommend you use that instead | 11:56.07 |
rehan | ok, many thanks. Will try and let you know how I get on... | 11:56.13 |
tor8 | it's got some nice new features like unicode text search, table of contents, and better handling of history (you can go back and forth) | 11:56.37 |
rehan | Nice. Do you recommendI use 1.11 tagged commit? | 11:57.45 |
tor8 | rehan: the current master should work well enough | 11:58.08 |
| nothing too unstable has gone in lately | 11:58.15 |
rehan | ok, thanks, will do... | 11:59.09 |
| Hi. Installed libjbig2dec0-dev. Compiling with make CFLAGS="-DJBIG_NO_MEMENTO" (to avoid memento.h error). Now getting... | 12:09.13 |
| errors in filter-jbig2.c and fitz.h.... | 12:09.59 |
tor8 | rehan: when you cloned the git repo, did you use --recursive? | 12:11.01 |
| if not, do "git submodule update --init" first | 12:11.08 |
rehan | https://thepasteb.in/p/P1hvVoNrwyYUl | 12:11.34 |
| ah - ok. ignore pastebin. will try with the submodules first. thanks | 12:11.45 |
tor8 | those errors look weird though :/ | 12:12.12 |
rehan | So close and yet so far. With submodules compiling fine. Made the change. Zoom now different but wrong. Zoomed out much too far, so get tiny page in middle of screen. Any thoughts? | 12:27.08 |
tor8 | rehan: hm, you're right I get the same | 12:30.18 |
| let me poke around a bit | 12:30.21 |
rehan | thanks a lot for your help..... | 12:30.40 |
tor8 | bah, the window size isn't known at that location | 12:31.23 |
| rehan: https://pastebin.com/raw/w8mZxpYm | 12:33.19 |
rehan | Working - wonderful, thank you very much. I am now officially a mupdf man. Would it help if I submitted a patch for an extra command line argument to implement this functionality. | 12:43.47 |
| ? | 12:43.55 |
zartha | Hi guys I am looking to include mupdf in my windows application. But there is not much documentation regarding it as it is for android. I am new to windows development and looking for some detailed documentation to do the task. Can anyone help me? | 15:05.37 |
| My windows app is in vc++ | 15:05.59 |
tor8 | zartha: Is your application open source? | 15:08.21 |
| zartha: The mupdf API is in plain C. There are several examples in the source for you to look at. | 15:08.55 |
| The latest release also contains a PDF book with some detailed documentation: MuPDF Explored. | 15:09.32 |
zartha | tor: My application is not an open source. OK I just got the mupdf explored. Thanks | 15:12.54 |
tor8 | zartha: If you want to use mupdf in a non-opensource project, you MUST acquire a commercial license. | 15:13.55 |
| MuPDF uses the AGPL license. | 15:14.22 |
| And I don't want you to waste your time building something you cannot release. | 15:15.20 |
zartha | @tor8 ok i will do that. Can I build the app before and get the license after? | 15:16.37 |
tor8 | I would not recommend it. You could have put a lot of time and effort into something where the license fee may turn out bigger than you anticipated. | 15:21.51 |
| Forward 1 day (to 2017/05/31)>>> | |