summaryrefslogtreecommitdiff
path: root/pdf/pdf_js.c
AgeCommit message (Collapse)Author
2013-02-19Fix whitespace.Tor Andersson
2012-11-29Fix a couple of leaksPaul Gardiner
2012-11-20Fix android javascript build compile error.Robin Watts
A slip up in the previous whitespace fix commit removed a {. Put it back.
2012-11-20Obsess about whitespace.Tor Andersson
2012-11-07Javascript: implement Field.namePaul Gardiner
2012-11-01Forms: extend setFillColor implementation to include text widgetsPaul Gardiner
Also update pdf_dict_puts so that passing NULL to val deletes the terminal key. Update pdfapp.c to update the screen between passing a mouse event and invoking a dialog box for value entry Extend javascript wrapper to handle all color spaces
2012-10-11Android Forms: pass in mouse events and handle updatingPaul Gardiner
Also add a function to report whether the core has javascript support, so that the additional features can be enabled only when the javascript engine is present
2012-09-25Forms: support doc.mailDoc.Paul Gardiner
2012-09-25Forms: handle app.launchUrl, currently by displaying a warningPaul Gardiner
2012-09-25Forms: show warning for use of app.execDialogPaul Gardiner
app.execDialog looks very difficult to support. Hopefully we wont have to
2012-09-25Forms: handle app.execMenuItem (presently just as a not-supported warning)Paul Gardiner
The name of the menu item is passed, so presumably the app could respond to some of the possibilities.
2012-09-19Forms: handle print request, both from javascript and from named actionPaul Gardiner
Currently the app windows app responds with a message box explaining that the MuPDF library passes print requests to the app, but the app does not implement printing.
2012-09-18Forms: add event handling api and specifically support for javascript alertPaul Gardiner
2012-09-18Forms: improve cpp/c interface regarding exceptionsPaul Gardiner
Three alterations: We were previously being careful to avoid throwing exceptions in the DOM-implementation callbacks because these were being called directly from C++. This commit adds three veneers that turn exceptions into warnings, hence allowing the callbacks to be written in usual mupdf style. Protect the "field" callbacks from executing with a NULL field. Ensure that the event object is set up before executing A actions
2012-09-04Forms: mass renaming for the sake of consistencyPaul Gardiner
2012-08-31Forms: rework form reset action to use new method introduced for JSPaul Gardiner
2012-08-31Forms: implement javascript doc.resetForm methodPaul Gardiner
2012-08-29Forms: implement javascript Field.display propertyPaul Gardiner
2012-08-27Add DOM object "app" initially with no properties or methods.Paul Gardiner
2012-08-24Forms: avoid javascript action execution when engine not availablePaul Gardiner
This was necessary to avoid indirecting through a NULL pointer returned from pdf_js_get_event, but is a generally sensible restriction. Also separate the execution of the document-level javascript actions from the pdf_js contstructor, so that doc->js is set during those actions. Also add a missing const
2012-08-23Forms: allow for globally-defined javascript as string, rather than streamPaul Gardiner
pdf_to_utf8 had been updated in an earlier commit, so it was sufficient to remove the object-type test. Also added a neglected fz_var.
2012-08-23Fix bug introduced in preceding commitPaul Gardiner
Not handling pdf_jsimp_toString returning NULL Throwing C exceptions in a call issued by v8 Iterating a pointer later used to free a buffer
2012-08-22Forms: convert js field names from utf8 to pdf-doc before lookupPaul Gardiner
2012-08-20Forms: treat NULL event value as "" in pdf_js_setup_eventPaul Gardiner
2012-08-16Forms: handle pdf_js_setup_event being passed it's own internal valuePaul Gardiner
2012-08-16Forms: respond to failed validation in windows appPaul Gardiner
2012-08-10Forms: handle Keystroke and Validate actionsPaul Gardiner
2012-08-10Forms: alter the handling of the javascript event objectPaul Gardiner
2012-07-18Forms: convert strings from pdf to utf8 before passing to the js enginePaul Gardiner
2012-07-17Forms: implement AFDate_FormatExPaul Gardiner
Also get javascript to use a fixed "today's" date for cluster testing
2012-07-12Separate out the Javascript utility functions and autogenerate C stringPaul Gardiner
2012-07-02Form: implement calculation action and javascrip AFSimple_CalculatePaul Gardiner
2012-06-28Forms: implement javascript form-field formattingPaul Gardiner
Consists in adding JS function AFNumber_Format and updating the DOM to include event.value
2012-06-21Forms: implement javascript "color" convenience object (fixes bug 693130)Paul Gardiner
2012-06-20Various fixes to pdf forms stuff found while compiling for linux.Robin Watts
Mostly char * <-> unsigned char * conversions.
2012-06-18Forms: fix potential SEGVPaul Gardiner
2012-06-15Fix bug 693128: MuPDF forms support: crash on button clickPaul Gardiner
Fix one pdf_js function that didn't protect agains doc->js == NULL. Also change exception handling in pdf_new_js so that it doesn't abort just because of a single failed stream load.
2012-05-28Forms: implement JavaScript Field methods setFillColor and setTextColorPaul Gardiner
2012-05-25Forms: additions necessary to make toggle-button example workPaul Gardiner
Add to DOM field borderStyle and buttonSetCaption Introduce event object Add border helper object Fix v8 problem to do with access to external pointers
2012-05-16JavaScript: provide mechanism via which C++ js engines can fz_throw errorsPaul Gardiner
2012-05-15JavaScript: arrange for v8 gc to destroy native-side objectsPaul Gardiner
2012-05-08JavaScript: add v8 implementationPaul Gardiner
2012-05-08Free javascript types and objects correctlyPaul Gardiner
2012-05-08Implement dummy JavaScript engine just for the sake of viewing calc.pdfPaul Gardiner
2012-05-08First go at Javascript-engine abstract APIPaul Gardiner