summaryrefslogtreecommitdiff
path: root/apps/pdfapp.h
AgeCommit message (Collapse)Author
2012-06-11Fix Bug 693099: Render failure due to corrupt jpeg data.Robin Watts
The file supplied with the bug contains corrupt jpeg data on page 61. This causes an error to be thrown which results in mudraw exiting. Previously, when image decode was done at loading time, the error would have been thrown under the pdf interpreter rather than under the display list renderer. This error would have been caught, a warning given, and the program would have continued. This is not ideal behaviour, as there is no way for a caller to know that there was a problem, and that the image is potentially incomplete. The solution adopted here, solves both these problems. The fz_cookie structure is expanded to include a 'errors' count. Whenever we meet an error during rendering, we increment the 'errors' count, and continue. This enables applications to spot the errors count being non-zero on exit and to display a warning. mupdf is updated here to pass a cookie in and to check the error count at the end; if it is found to be non zero, then a warning is given (just once per visit to each page) to say that the page may have errors on it.
2012-04-20Pass UTF8 filename to fz_open_document / fz_open_file to remove kludges.Tor Andersson
Use _wopen on a UTF8 -> wchar_t decoded filename to support UTF8 filenames for win32.
2012-03-19Add simple 'inverted color' mode for mupdf viewer.Robin Watts
Use 'i' to toggle inversion of the rendered MuPDF bitmap, giving simple 'white on black' mode.
2012-03-12Create style sheet and group extracted text into blocks, lines and spans.Tor Andersson
2012-03-07Splitting tweaks.Tor Andersson
2012-02-03Use the new document interface in viewer.Tor Andersson
2012-01-30Add CBZ (comic book zip-file) parser.Tor Andersson
2012-01-27Rename pdf_xref type to pdf_document.Tor Andersson
2012-01-18Add fullscreen mode to mupdf viewer.Tor Andersson
Toggle with 'f'. Fullscreen turns off shrinkwrap, and shrinkwrap turns off fullscreen.
2012-01-12Use the same coordinate system for pdf and xps pages in the interface.Tor Andersson
Move coordinate space tweaks into pdf_ and xps_run_page, and provide neutral pdf_ and xps_bound_page functions to return the page size as a zero-origined bounding box.
2012-01-11Hide glyph cache in context.Tor Andersson
2011-12-23Generalise pdf_links to be fz_links.Robin Watts
Move to a non-pdf specific type for links. PDF specific parsing is done in pdf_annots.c as before, but the essential type (and handling functions for that type) are in a new file fitz/base_link.c. The new type is more expressive than before; specifically all the possible PDF modes are expressable in it. Hopefully this should allow XPS links to be represented too.
2011-12-08Remove deprecated error handling code.Tor Andersson
2011-11-15Merge branch 'master' into contextRobin Watts
Mostly redoing the xps_context to xps_document change and adding contexts to newly written code. Conflicts: apps/pdfapp.c apps/pdfapp.h apps/x11_main.c apps/xpsdraw.c draw/draw_device.c draw/draw_scale.c fitz/base_object.c fitz/fitz.h pdf/mupdf.h pdf/pdf_interpret.c pdf/pdf_outline.c pdf/pdf_page.c xps/muxps.h xps/xps_doc.c xps/xps_xml.c
2011-11-10Add XPS outline parsing and move outline data struct to fz_outline.Tor Andersson
2011-09-21Rename xps_context to xps_document.Tor Andersson
2011-09-17Implement backwards search in viewer.Sebastian Rasmussen
2011-09-15Add context to mupdf.Robin Watts
Huge pervasive change to lots of files, adding a context for exception handling and allocation. In time we'll move more statics into there. Also fix some for(i = 0; i < function(...); i++) calls.
2011-09-04Repaint only viewer search area when editing search string.Sebastian Rasmussen
2011-08-30Do not change view when reloading file.Bert
2011-05-26Flip pages when panning beyond threshhold.Cedric Sodhi
Added BEYOND_TRESHHOLD for pdfapp and code which flips to next/previous page if one pans beyond the page end plus that threshhold.
2011-04-04Le Roi est mort, vive le Roi!Tor Andersson
The run-together words are dead! Long live the underscores! The postscript inspired naming convention of using all run-together words has served us well, but it is now time for more readable code. In this commit I have also added the sed script, rename.sed, that I used to convert the source. Use it on your patches and application code.
2011-04-01apps: Add XPS support to mupdf viewer.Tor Andersson
2011-03-03Update version numbers.Tor Andersson
2011-01-06Remove unnecessary whitespace.Sebastian Rasmussen
2010-12-30Remove unimplemented and unused declarations.Sebastian Rasmussen
2010-06-29Add key 'c' to toggle between color and greyscale in both X11 and Windows ↵Robin Watts
viewers.
2010-06-23Update windows viewer to add the search functionality.Tor Andersson
2010-06-21Implement searching for text within the current page.Tor Andersson
2010-06-21Prepare for searching by implementing the UI for entering a search string. ↵Tor Andersson
Changed key bindings a bit.
2010-06-16Allow bookmark commands in the viewer to take a number argument so you can ↵Sebastian Rasmussen
store several bookmarks at once.
2010-05-27Change command line options to x11 viewer.Tor Andersson
2010-05-23Implement reloading of document.Sebastian Rasmussen
2010-05-14Change pdf_openxref to take a fz_stream instead of a filename so that ↵Tor Andersson
windows can open files with unicode names.
2010-04-15Make the glyph cache an input to fz_newdrawdevice so that it can be shared ↵Tor Andersson
between pages.
2010-04-11Rename fz_irect to fz_bbox.Tor Andersson
2010-04-08Add display list device.Tor Andersson
2010-03-26Re-enable copy/paste in the viewer application.Tor Andersson
2010-01-07Reenable x11pdf viewer.Tor Andersson
2009-07-09Parse page tree on-demand instead of parsing the entire tree after reading xref.Sebastian Rasmussen
2009-03-11Change fz_error* struct into an integer error type fz_error.Tor Andersson
2009-02-28Merge and move header files into the source directories.Tor Andersson