| <<<Back 1 day (to 2020/01/05) | Fwd 1 day (to 2020/01/07)>>> | 20200106 |
dpi_help_needed | Please guide me. Want to place an image that is 300 pixels x 300 pixels on a page of Letter size (8.5 x 11 inch) so it appears in a PDF as 1-inch x 1-inch. So far I have been able to make a 72 dpi page with blurred (reduced resolution) image; and full pixel representation image, but the page is much larger than Letter size, maintaining its 72 dpi | 01:58.57 |
| resolution. How can I add a 300 dpi image to a Letter sized page and have it maintain both size and resolution? | 01:58.58 |
| ...so the resulting PDF page continues to be 8.5 x 11 inches while the image on the page continues to be 300 pixels x 300 pixels, and appears as a 1-inch by 1-inch square? | 02:04.05 |
| This is a basic question, if you know where it has been answered elsewhere, a link to there would do. Thank you for your referral to relevant material and your direct help. | 02:05.09 |
pink_mist | you may have more luck getting answers during european business hours (though tomorrow is a holiday in much of europe, so may need to wait until tuesday) | 02:06.32 |
dpi_help_needed | Thanks, pink_mist, for the suggestion. I'll try again on Tuesday if I don't get this resolved by then. It's such a fundamental question, and I am so lost on what seems to be a basic issue, that I assume someone has a feeling for what to do - or knows what has been done by others in the past. Constraining the page size known "inch" dimensions, | 02:53.55 |
| and adding higher resolution images with dpi larger than 72, must be something that's done often. | 02:53.55 |
| Can a page have one resolution (such as 72 dpi), while an added image to that page can have another resolution (such as 300 dpi)? | 04:26.45 |
ator | dpi guy: I need a bit more context here. mupdf is primarily a viewer, not a pdf creator, so how do you create these pdf files? | 10:58.12 |
| PDF is device independent (does not have a resolution, its pages and graphics are specified using physical dimensions, not pixels) | 10:59.01 |
| without saying which command or API you're using, I can't really help you | 11:00.14 |
inflex | Evening all. Anyone have a guide or pointer to building muPDF in a C++ environment, namely I want to integrate ImGUI in to my fork of muPDF so I can provide menus/widgets. | 12:16.54 |
| ( otherwise, any recommendation for a cross-platform C based widget set that can provide me with minimalist UI things ( I suppose I could use an icon-set font? ) | 12:39.05 |
ator | inflex: mupdf is a C library, should be usable as is from C++ if you just include the header files and link | 12:50.19 |
| inflex: there is an immediate mode UI for mupdf already that is built for linux and windows, the "mupdf-gl" target | 12:50.50 |
| in platform/gl/ in the source archive | 12:50.58 |
inflex | oh okay, that's the one I'm using now | 13:45.07 |
| Though I had to use SDL2 in the end on that due to issues with the glut system | 13:47.07 |
| ( I remember now, the macOS middle-click or double-click, I can't recall which ) | 13:47.36 |
sebras | inflex: are you using the system library or the one bundled with mupdf? | 13:48.09 |
| inflex: I seem to recall that ator might have made a fix for something like that, and this may not yet have made it upstream. | 13:48.28 |
ator | macos glut is ancient and unmaintained, and freeglut doesn't target it, so the macos version of mupdf-gl is kind of crippled | 13:54.52 |
sebras | ator: didn't you patch it to might be working state? | 14:00.46 |
| ator: but it may have degraded since of course. | 14:00.56 |
ator | I've patched freeglut. we don't use freeglut on macos. | 14:05.16 |
| we use apple's glut implementation | 14:05.46 |
sebras | ator: I should keep quiet now. :) | 14:10.27 |
inflex | ah well, it's almost two years ago now that I did the change | 14:11.16 |
| basically I just took the existing mupdf-gl platform/gl/gl-main.c and did my own massacre | 14:12.22 |
| <<<Back 1 day (to 2020/01/05) | Forward 1 day (to 2020/01/07)>>> | |