summaryrefslogtreecommitdiff
path: root/platform/x11
AgeCommit message (Collapse)Author
2015-06-26Bug 696053: Update windows mupdf to respect command line flags.Robin Watts
Previously, only the unix executable had been updated to take command line flags; update the windows one in line with it. We have to cope with the argv being in Unicode; add a windows specific version of getoptw for this. Also note that that fprintf's in the windows mupdf exe won't work as GUI apps don't have a console window, and can't write to the parent one. Fixing that is a larger project than I have time for right now.
2015-06-03Fix Windows 8.1 operation on hi-dpi displays.Robin Watts
MuPDF only. Call SetProcessDPIAware if it's available; this stops Windows doing its own horrible scaling causing blurriness. Also, interrogate the screen display to get the real dpi and use that as our basis.
2015-05-25Add key binding '[' and ']' to change font size on x11/win32 viewers.Tor Andersson
Only affects EPUB and HTML.
2015-05-19epub: User stylesheets.Tor Andersson
Add -U option to mupdf and mudraw to set a user stylesheet. Uses a context to store user the stylesheet, just like the AA level.
2015-05-15Support pdf files larger than 2Gig.Robin Watts
If FZ_LARGEFILE is defined when building, MuPDF uses 64bit offsets for files; this allows us to open streams larger than 2Gig. The downsides to this are that: * The xref entries are larger. * All PDF ints are held as 64bit things rather than 32bit things (to cope with /Prev entries, hint stream offsets etc). * All file positions are stored as 64bits rather than 32. The implementation works by detecting FZ_LARGEFILE. Some #ifdeffery in fitz/system.h sets fz_off_t to either int or int64_t as appropriate, and sets defines for fz_fopen, fz_fseek, fz_ftell etc as required. These call the fseeko64 etc functions on linux (and so define _LARGEFILE64_SOURCE) and the explicit 64bit functions on windows.
2015-04-28Add EPUB to windows viewer file assocations.Tor Andersson
2015-04-14Split fz_meta into separate querying functions.Tor Andersson
Add fz_has_permission function to fz_document. Add fz_lookup_metadata function to fz_document. Remove fz_meta function from fz_document.
2015-04-08Fix mupdf viewer on windows; mousewheel events would stop keys respondingRobin Watts
Mousewheel events would 'capture' the mouse, and consequently all keyboard events would be ignored until the next mouse button up. Simple fix.
2015-04-07Fix whitespace.Tor Andersson
2015-04-07Add EPUB layout options to mupdf-x11 and mudraw.Tor Andersson
2015-04-06Bug 693688: MuPDF viewer; if reload fails, don't crash out.Robin Watts
Use a placeholder document instead - just a big red 'X'. Supposedly lots of people use MuPDF to view the output of their TeX documents. Sometimes the compilation of the TeX document fails, and reload results in MuPDF closing. This should allow their window to stay open until they fix the problem and reload again.
2015-03-31Bug 695457: Improve mouse wheel handling in viewer.Robin Watts
On windows, handle mouse wheel events as mouse events rather than keyboard ones. This means that Ctrl-wheel zooms as expected (consistent with Chrome etc). Also ensure that Shift-wheel changes from vertical to horizontal. Mouse wheel over pages that are larger than fit in the window now scroll around the page. Once they hit the edge of the window, the page flips to the next/previous page as you would expect.
2015-03-30Bug 695804: Add support for 'Shift-Space' in the viewer.Robin Watts
Update pdfapp_onkey to take modifiers. If shift is held down when space is sent, then back up a page. This involves updating the windows app to actually send modifiers. Previously they were always sent as zero to the onmouse routine.
2015-03-30Add header for waitpid().Tor Andersson
2015-03-30Bug 695829: Mouse buttons flip pages in presentation mode.Robin Watts
Adopt patch from Risto Saarelma. When in presentation mode, left and right mouse buttons flip pages forward/back.
2015-03-30Bug 695558: Fix UTF-8 window titles on X11.Robin Watts
Adopt Guillume Duranceau's patch to set the NET_WM_NAME property for window titles.
2015-03-26Bug 695701: Tweak forking of PDF links to avoid zombie processes.Robin Watts
Adopt a small patch from ooesili@gmail.com to avoid zombie processes that are left around after processes opened from PDF links are terminated.
2015-02-25Add 64 bit windows builds to MSVC solution.Robin Watts
A few casts are required within the code, along with a few #ifdef changes. Some tweaks to curl are required too.
2015-02-17Bring Windows app up to date with API changes.Robin Watts
2015-02-17Add ctx parameter and remove embedded contexts for API regularity.Tor Andersson
Purge several embedded contexts: Remove embedded context in fz_output. Remove embedded context in fz_stream. Remove embedded context in fz_device. Remove fz_rebind_stream (since it is no longer necessary). Remove embedded context in svg_device. Remove embedded context in XML parser. Add ctx argument to fz_document functions. Remove embedded context in fz_document. Remove embedded context in pdf_document. Remove embedded context in pdf_obj. Make fz_page independent of fz_document in the interface. We shouldn't need to pass the document to all functions handling a page. If a page is tied to the source document, it's redundant; otherwise it's just pointless. Fix reference counting oddity in fz_new_image_from_pixmap.
2015-02-17Rename fz_close_* and fz_free_* to fz_drop_*.Tor Andersson
Rename fz_close to fz_drop_stream. Rename fz_close_archive to fz_drop_archive. Rename fz_close_output to fz_drop_output. Rename fz_free_* to fz_drop_*. Rename pdf_free_* to pdf_drop_*. Rename xps_free_* to xps_drop_*.
2015-02-17Reference count fz_document.Tor Andersson
2014-08-20Fix uninitialized variable.Tor Andersson
2014-08-20Add full-page color tinting option and key binding to X11 viewer.Tor Andersson
win32 supports tinting, but cannot change the color from the default.
2014-07-22Set default output filename in mujstest.Tor Andersson
2014-05-28Save a bookmark before jumping when using the 'g' command.Tor Andersson
2014-05-27Fix 693494: Support media buttons for navigation on X11.Tor Andersson
2014-05-27Fix 694518: Implement continuous scrolling with keyboard.Sebastian Neuser
2014-05-27Set a faster default transition.Tor Andersson
2014-05-27Fix 694579: Implement "zoom to fit page".Sebastian Neuser
Add a new function pdfapp_autozoom to fit the page to the window by comparing the aspect ratios of the page and the window to choose whether to fit horizontally or vertically.
2014-05-12Fix 695156: Display metadata with SetDlgItemTextW.Tor Andersson
Convert from UTF-8 to UCS-2 to display unicode text properly.
2014-05-07Fix 694510: Detect all ways to maximize a window in win32.Tor Andersson
SC_MAXIMIZE is only sent when maximizing via the maximize button. Dragging to the screen edge, double clicking the title bar or WinKey+Up do not generate an SC_MAXIMIZE message. Detect when gettincg a WM_SIZE message with SIZE_MAXIMIZE instead.
2014-05-07Fix 693313: increase the zoom range and use fixed steps.Tor Andersson
Use an explicit list of resolutions for +/- zoom stepping.
2014-05-02Print error when trying to open document without any pagesSebastian Rasmussen
2014-05-02Fix warning in debug message for CURL in X11 viewerSebastian Rasmussen
2014-05-02Raise CURL transfer size from 4KByte to 1MByte in X11 viewerSebastian Rasmussen
Previously, the overhead for the HTTP requests and responses was too high, e.g. pdfref17.pdf would result in almost 8000 separate HTTP requests (but with this patch about 30.
2014-05-02Initialize timeout earlier in x11 viewerSebastian Rasmussen
Previously any warning displayed at the top of the page would never disappear because the display timeout being set would be overwritten by the later initialization.
2014-04-23Fix 692866: improved handling of newlines when copying text.Tor Andersson
Only add newlines between selected lines of text.
2014-04-22Handle errors from curl by eventually throwingSebastian Rasmussen
Previously errors from curl_easy_perform() were never checked. This caused mupdf to enter an eternal loop, repeatedly trying to get data to parse from the remote host.
2014-04-11Add all form field flags. Check flags before marking fields dirty.Tor Andersson
NoExport (and ReadOnly) fields shouldn't mark the document for saving.
2014-03-25Break dependencies on pdf-form.c and pdf-js.cTor Andersson
Split functions out of pdf-form.c that shouldn't be there, and make javascript initialization explicit.
2014-03-17Rework fz_streams.Robin Watts
Currently fz_streams have a 4K buffer within their header. The call to read from a stream fills this buffer, resulting in more data being pulled from any underlying stream than we might like. This causes problems with the forthcoming 'leech' filter. Here we simplify the fields available in the public stream header. No specific buffer is given; simply the read and write pointers. The underlying 'read' function is replaced by a 'next' function that makes the next block of data available and returns the first character of it (or EOF). A caller to the 'next' function should supply the maximum number of bytes that it knows it will need (possibly not now, but eventually). This enables the underlying stream to efficiently decode just enough. The underlying stream is free to return fewer, or a greater number if it wants to. The exact size of the 'block' of data returned will depend on the filter in use and (possibly) the data therein. Callers can get the currently available amount of data by calling fz_available (but again should pass the maximum amount of data they know they will need). The only time this will ever return 0 is if we have hit EOF.
2014-03-04Bug 691691: Add way of clearing cached objects out of the xref.Robin Watts
We add various facilities here, intended to allow us to efficiently minimise the memory we use for holding cached pdf objects. Firstly, we add the ability to 'mark' all the currently loaded objects. Next we add the ability to 'clear the xref' - to drop all the currently loaded objects that have no other references except the ones held by the xref table itself. Finally, we add the ability to 'clear the xref to the last mark' - to drop all the currently loaded objects that have been created since the last 'mark' operation and have no other references except the ones held by the xref table. We expose this to the user by adding a new device hint 'FZ_NO_CACHE'. If set on the device, then the PDF interpreter will pdf_mark_xref before starting and pdf_clear_xref_to_mark afterwards. Thus no additional objects will be retained in memory after a given page is run, unless someone else picks them up and takes a reference to them as part of the run. We amend our simple example app to set this device hint when loading pages as part of a search.
2014-01-09Update copyright date.Tor Andersson
2014-01-07Introduce 'document handlers'.Robin Watts
We define a document handler for each file type (2 in the case of PDF, one to handle files with the ability to 'run' them, and one without). We then register these handlers with the context at startup, and then call fz_open_document... as usual. This enables people to select the document types they want at will (and even to extend the library with more document types should they wish).
2014-01-02Add rebinding for fz_streams.Robin Watts
2013-11-16Increase allocation to include room for string terminator.Robin Watts
Thanks to 'tom' from irc for pointing this out.
2013-09-13Fix various compile warnings spotted by the cluster.Robin Watts
2013-09-03Add FZ_VERSION define. Check header and library version compatibility.Tor Andersson
2013-08-24Rename varible in pdfapp to relate it to searching.Sebastian Rasmussen