summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-js.c
AgeCommit message (Collapse)Author
2018-01-31Use convenience pdf dictionary/array creation functions.Tor Andersson
2017-09-07Initialize variables to appease clang scan-build.Sebastian Rasmussen
2017-07-06pdf: If js interpreter fails, avoid loading document js.Sebastian Rasmussen
2017-06-22Use unsigned char arrays in hexdumped data.Tor Andersson
2017-04-27Include required system headers.Tor Andersson
2017-04-21js: Extend PDF app object with a few properties.Sebastian Rasmussen
2017-04-13Change generated files to be C instead of headers.Tor Andersson
Remove AdobeCA.p7c from autogenerated files. Just include the array in the source. Simplifies makefile dependencies and makes the sizes of each bit of data easier to look at. It also paves the way for eventually using objcopy to create binary objects for the fonts instead of needing to use hexdump.
2017-03-21Replace fontdump, bin2hex and cquote with one tool: hexdump.Tor Andersson
Still need specialty tools for namedump and cmapdump.
2016-12-27js: Fix allocator callbacks so they don't throw fitz exceptions.Tor Andersson
Valgrind doesn't know realloc(p, 0) is equivalent to free(p), so unfortunately we can't reduce all calls to just realloc().
2016-10-18Avoid checking argument to fz_drop_*()/fz_free().Sebastian Rasmussen
As fz_drop_*()/fz_free() all must handle NULL.
2016-10-07pdf: Separate functions to read text strings and text streams as UTF-8.Tor Andersson
The stream loading is used only by the JS code loading.
2016-10-07pdf: Remove unneccessary document argument to pdf_to_utf8 etc.Tor Andersson
2016-09-14Add scripts to remove/replace 'static' from functions.Robin Watts
Getting a backtrace out with missing functions makes the backtrace much less useful. Some backtrace routines (such as that used by Memento on Android) are incapable of resolving static functions. We therefore provide 2 scripts (scripts/destatic.sh and scripts/restatic.sh) that respectively remove and replace the 'static' from function definitions. The scripts do not affect "static inline" or "static const" definitions, and they are are restricted to working in the source directory (excluding source/tools), thirdparty/mujs and the platform/{java,android} directories. The transformed source should NOT be checked in. To avoid problems with clashing symbols, some functions are renamed or tweaked slightly in this patch.
2016-08-02Remove function not being called.Sebastian Rasmussen
2016-06-06Add FZ_ENABLE_JS configuration define.Tor Andersson