Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-12-23 | Cope with NULL resource and concents arguments to pdf_add_page. | Tor Andersson | |
2016-12-22 | When document reloading fails, do not leak filename. | Sebastian Rasmussen | |
2016-12-19 | SVG output: Fix dropped group alpha. | Robin Watts | |
2016-12-19 | Fix broken mutool draw SVG output | Robin Watts | |
SVG output in mutool produces a file per page; attempting to reopen the same file each time was tripping the new fz_remove call. Now only open a page at a time. | |||
2016-12-19 | Add MuOfficeLib functions to safely run native MuPDF ops. | Robin Watts | |
It seems likely that we'll want people to able to use the MuPDF C API as well as the MuOfficeLib helper lib. We therefore need a way to get fz_context and fz_document values out of MuOfficeLib. Potential problems exist with people calling MuPDF C API functions using an fz_context that is in use elsewhere. Similarly, if an fz_document is in use in a background thread (for instance in a page render), we need to ensure that it can't be used at the same time elsewhere. We therefore provide MuOffice{Lib,Doc,Page}_run functions that allow this to happen safely. This largely insulates callers from the complexities of having to clone contexts etc, it safely ensures that exceptions cannot be propogated beyond the topmost fz_try/ fz_catch, and it ensures that appropriate locking is used. | |||
2016-12-19 | mu-threads: Fix windows thread and semaphore creation | Robin Watts | |
Was returning errors on successful creation. | |||
2016-12-19 | mu-office-lib: Move threads out of statics. | Robin Watts | |
Avoid using statics to hold the mutexes. This is safer for multiple-instantiation. | |||
2016-12-19 | mu-threads: Fix Windows mu_destroy_thread | Robin Watts | |
When destroying a thread, set the thread handle to NULL so we know that subsequent calls shouldn't try to destroy it again. | |||
2016-12-19 | Update to patched JPEG lib | Robin Watts | |
2016-12-19 | Squash WIN32 build warning. | Robin Watts | |
2016-12-19 | Fix typo in dictionary entry sorting. | Sebastian Rasmussen | |
Commit a92f0db5987b408bef0d9b07277c8ff2329e9ce5 introduced a typo causing pdf_sort_dict() to try to sort non-dict objects. Attempting to do this for non-dict objects causes a segmentation fault. For dictionary objects this causes a performance degradation that has not been noticed. pdf_sort_dict() is called in two places: pdf_dict_get_put() and showgrep(). The resson that calling pdf_sort_dict() from pdf_dict_get_put() does not cause a segmentation fault is that pdf_dict_get_put() makes sure that the object is a dictionary before calling pdf_sort_dict(), which will then decide NOT to sort the dict keys. showgrep() on the other hand does not make sure that it is only processing dict objects before calling pdf_sort_dict() which caused a segmentation fault. | |||
2016-12-19 | Make pdf_trailer() return NULL if there is no xref. | Sebastian Rasmussen | |
2016-12-16 | Also repair object streams when repairing on the fly. | Tor Andersson | |
2016-12-16 | Bug 697412: When repairing, forget the previous xref. | Tor Andersson | |
2016-12-16 | Fix memory leaks on errors in text searching utility functions. | Tor Andersson | |
2016-12-16 | Fix 697355: Use @page background color. | Tor Andersson | |
2016-12-16 | Move page size and margins into fz_html struct. | Tor Andersson | |
2016-12-16 | gl: Print warning when link destinations cannot be found. | Tor Andersson | |
2016-12-16 | pdf: Don't allow incremental writes on a new document. | Tor Andersson | |
2016-12-14 | Have callers of fz_new_image_from_pixmap() drop supplied mask. | Sebastian Rasmussen | |
This makes handling of the mask identical to that of the pixmap argument. | |||
2016-12-14 | Move checks as early as possible, outside of fz_try(). | Sebastian Rasmussen | |
Also remove unused variable. | |||
2016-12-14 | jpx: Delay determining if colorspace is indexed. | Sebastian Rasmussen | |
2016-12-14 | jpx: Quietly limit number of components for openjpeg decoder. | Sebastian Rasmussen | |
2016-12-14 | jpx: Create openjpeg decoder state. | Sebastian Rasmussen | |
This allows for communicating the colorspace without using a pixmap. | |||
2016-12-14 | jpx: Only do YCC-to-RGB conversion if decoding image samples. | Sebastian Rasmussen | |
2016-12-14 | jpx: Optimize sample writing function. | Sebastian Rasmussen | |
2016-12-14 | jpx: Delay reading metadata until parsing samples where possible. | Sebastian Rasmussen | |
2016-12-14 | jpx: Only compute signed offsets once. | Sebastian Rasmussen | |
2016-12-14 | jpx: Use local variables instead of repeatedly dereferencing state. | Sebastian Rasmussen | |
2016-12-14 | jpx: Share YCC-to-RGB conversion for luratech/openjpeg decoders. | Sebastian Rasmussen | |
2016-12-14 | jpx: Move state which is not shared among functions to decoder stack. | Sebastian Rasmussen | |
In the case of fz_context *, use that for the allocator callbacks. | |||
2016-12-14 | jpx: Use macro to check for palette. | Sebastian Rasmussen | |
2016-12-14 | jpx: Max components is known, so avoid allocating arrays. | Sebastian Rasmussen | |
2016-12-14 | jpx: Use fz_context directly, don't wrap it in state. | Sebastian Rasmussen | |
2016-12-14 | jpx: Reuse structs for luratech/openjpeg decoders. | Sebastian Rasmussen | |
2016-12-14 | jpx: Remove unused struct. | Sebastian Rasmussen | |
2016-12-14 | jpx: Plug pixmap leak in case of error during decoding. | Sebastian Rasmussen | |
2016-12-14 | Split out jpx handling in separate function. | Sebastian Rasmussen | |
2016-12-14 | Let pixmap colorspace conversion create new pixmap. | Sebastian Rasmussen | |
This moves dropping the converted pixmap into fz_convert_pixmap(), which relieves every caller from doing so. Moreover resolution, position and interpolation are kept. | |||
2016-12-14 | Create a pixmap color converter. | Sebastian Rasmussen | |
This is in preparation for moving fz_convert_pixmap() out of colorspace.c. | |||
2016-12-14 | Always create colorless pixmaps with alpha. | Sebastian Rasmussen | |
2016-12-14 | Plug pixmap leak when fz_convert_pixmap() throws. | Sebastian Rasmussen | |
2016-12-14 | Fix document leak when mutool info throws. | Sebastian Rasmussen | |
2016-12-14 | Bug 697400: Mark visited objects when counting OCG layer entries. | Sebastian Rasmussen | |
2016-12-14 | Bug 697392: Close device before dropping it. | Sebastian Rasmussen | |
2016-12-13 | Update JBig2Dec to latest. | Robin Watts | |
2016-12-12 | Fix API comment. | Robin Watts | |
2016-12-12 | Make more pdf functions private. | Tor Andersson | |
2016-12-12 | Tweak pdf portfolio: automatically use incremental writing. | Tor Andersson | |
Windows cannot remove open files, so we can't save non-incrementally to the same file name as the open document. Force incremental saves if the input and output file names are the same. NOTE: We will also create corrupt files if saving a new document incrementally, so take care not to turn on incremental saves if we have created a new blank document. | |||
2016-12-12 | Tweak pdf portfolio to create blank portfolios and add multiple entries. | Tor Andersson | |
Will overwrite input file unless a separate output file is specified. |