summaryrefslogtreecommitdiff
path: root/platform/x11
AgeCommit message (Collapse)Author
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
2013-08-24Display warnings in statusbar in x11 viewer.Sebastian Rasmussen
2013-08-24X11 viewer code rearranged for aesthetic reasons.Sebastian Rasmussen
Set display timeout where the page number is shown, not in x11 main.
2013-08-24Add support for showing messages in x11 viewer statusbar.Sebastian Rasmussen
2013-08-24Generalize search blitting in x11 to include page number.Sebastian Rasmussen
2013-08-24Cancel page timeout when searching in x11 viewer.Sebastian Rasmussen
The scenario is that the user first displayed the page number (visible for two seconds) and then searched while the page number was still visible. The page number was automatically cleared when entering search text, but the timeout for clearing the page number was never cancelled. This caused an unnecessary redraw of the window while the search text was still being edited.
2013-08-21Enable horizontal mouse scrolling in X11.Robin Watts
Based on a patch from Sebastian Neuser - many thanks. Use mouse buttons 6 and 7 to do the same as 4 and 5, but with Y rather than X being the default.
2013-08-13Remove unnecessary parameterPaul Gardiner
2013-07-26Bump version number to 1.3.Tor Andersson
2013-07-22Added newlines in error messages for X11 platform.Marcos H. Woehrmann
2013-07-19Add mupdf-curl appRobin Watts
Windows and X11. Allows files to be fetched and displayed as they are downloaded both with and without linearization, using hints if available.
2013-07-19Initial work on progressive loadingRobin Watts
We are testing this using a new -p flag to mupdf that sets a bitrate at which data will appear to arrive progressively as time goes on. For example: mupdf -p 102400 pdf_reference17.pdf Details of the scheme used here are presented in docs/progressive.txt
2013-07-04Update pdf_write_document to support incremental updatePaul Gardiner
2013-06-24Free fz_context at end of win32 appPaul Gardiner
2013-06-20Rearrange source files.Tor Andersson