summaryrefslogtreecommitdiff
path: root/pdf/pdf_form.c
AgeCommit message (Collapse)Author
2012-08-07Forms: simple appearance generation for choice widgetsPaul Gardiner
2012-08-07Forms: for choices with a single selection avoid an unnecessary arrayPaul Gardiner
Also delete the 'I' element to avoid the indexes and values disagreeing.
2012-08-07Forms: mark choice field dirty after value change (and fix error handling)Paul Gardiner
2012-08-02Forms: add document dirty flagPaul Gardiner
2012-07-18Forms: convert strings from pdf to utf8 before passing to the js enginePaul Gardiner
2012-07-18Forms: partial handling of utf8 output from javascriptPaul Gardiner
2012-07-17Forms: implement library api for handling list boxes and combo boxesPaul Gardiner
2012-07-17Forms: remove unhelpful type distinctionPaul Gardiner
2012-07-17Forms: protect agains recursion during internal field recalculationPaul Gardiner
2012-07-09Forms: add widget enumeration, and text-widget content typePaul Gardiner
Now reusing the internal representation of an annotation for widgets to avoid two separate lists
2012-07-05Merge branch 'master' into formsRobin Watts
2012-07-04Forms: avoid infinite loop when laying out multiline text in thin boxPaul Gardiner
If the bounding box was too thin for even a sinlge character, the algorithm could repeat for ever throwing new lines. This in turn could lead to a SEGV.
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-25Fix warnings/compile error on linux.Robin Watts
min is a windows only define.
2012-06-25Forms: handle clicking on one of a group of like-named check boxesPaul Gardiner
All of the group are updated which can make them act like radio buttons in the case that all have different "on" values
2012-06-22Forms support: correctly locate the field dictionary when setting valuePaul Gardiner
Some fields have separate widget annotations. Some have the widget rolled in. This commit correctly identifies the field when setting the field value, thus fixing bug 693145
2012-06-22Forms: implement appearance synthesis for combed textPaul Gardiner
2012-06-22Rework pdf_lexbuf to allow for dynamic parsing buffers.Robin Watts
Currently pdf_lexbufs use a static scratch buffer for parsing. In the main case this is 64K in size, but in other cases it can be just 256 bytes; this causes problems when parsing long strings. Even the 64K limit is an implementation limit of Acrobat, not an architectural limit of PDF. Change here to allow dynamic buffers. This means a slightly more complex setup and destruction for each buffer, but more importantly requires correct cleanup on errors. To avoid having to insert lots more try/catch clauses this commit includes various changes to the code so we reuse pdf_lexbufs where possible. This keeps the speed up.
2012-06-21Add fz_buffer_cat_pdf_string function to avoid Bug 693143.Robin Watts
Avoid overflowing fz_buffer_printf by using a dedicated string output function; this also solves potential problems with us not escaping chars in strings correctly. Unfortunately this doesn't completely cure the bug as we run straight into problems in the lexer.
2012-06-21Forms; Improve text positioning in single-line text widgetsPaul Gardiner
This fixes bug 693126
2012-06-21Forms: handle exclusivity of radio buttons. Fixes bug 693125Paul Gardiner
2012-06-21Forms: implement the ResetForm actionPaul Gardiner
This fixes the problem with the test file in bug 693125, although it doesn't make radio buttons act correctly. The file, rather than using radio buttons, was actually using check boxes with a reset-form action to achieve the exclusivity.
2012-06-20Various fixes to pdf forms stuff found while compiling for linux.Robin Watts
Mostly char * <-> unsigned char * conversions.
2012-06-19Avoid lots of const warnings.Robin Watts
Add/Remove a few consts to pacify MSVC.
2012-06-19Fix bug 693133: MuPDF forms support: Text incorrectly transformedPaul Gardiner
Refactor the text-widget updating code to use the later-written, button-updating technique, which accounts for rotation. Also now delays generation of appearance streams until required for rendering.
2012-06-15Forms: Assume black if default appearance doesn't specify a colorPaul Gardiner
2012-06-14Fix problem in text_splitter (badly initialised max_lines)Robin Watts
Testing tests_private/v1.3/09+20anim+20fx-fo-dx-adr-mx.pdf with mujstest shows an infinite loop due to an initialisation that uses FLT_MAX rather than INT_MAX. Even using INT_MAX still shows problems until a cast is added.
2012-06-13Merge branch 'master' into formsPaul Gardiner
2012-06-13Merge branch 'master' into formsPaul Gardiner
Conflicts: fitz/fitz-internal.h fitz/stm_buffer.c pdf/mupdf-internal.h
2012-06-12Forms: handle carriage control in multiline text widgetPaul Gardiner
2012-06-12Forms: improved handling of text scaling in multiline text widgetsPaul Gardiner
2012-06-11Forms: first version appearance synthesis for multiline text widgetsPaul Gardiner
2012-06-07Forms: avoid repeated parsing of default appearance stringPaul Gardiner
Also consolidate text widget info, plus general tidying
2012-06-04Forms: measure text using the info from the font descriptorPaul Gardiner
Previously measured by rendering to the bounding box device
2012-06-01Merge branch 'master' into formsPaul Gardiner
Conflicts: fitz/doc_document.c fitz/fitz-internal.h fitz/fitz.h fitz/stm_buffer.c pdf/mupdf-internal.h pdf/pdf_object.c pdf/pdf_xobject.c pdf/pdf_xref.c win32/mupdf.sln
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-24Forms: synthesise push button widgetPaul Gardiner
2012-05-08Forms: use existing appearance stream Tm when present and handle alignmentPaul Gardiner
2012-05-08Use defaults from AcroForm dict when attributes missing in field heirarchyPaul 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
2012-05-08Forms: replace the marked content rather than the entire streamPaul Gardiner
2012-05-08Forms: use a text matrix to fit text rather than altering the font sizePaul Gardiner
To achieve sufficient accuracy, non-integer font sizes were being used, which MuPDF can handle, but may be illegal. The text matrix is the better method.
2012-05-08Forms: fix the base line for fit to width textPaul Gardiner
2012-05-08Forms: update field value on text entryPaul Gardiner
2012-05-08Forms: handle scaling text to fitPaul Gardiner
2012-05-08Forms: initialise stream contents of freshly created text appearance streamsPaul Gardiner
ensures that saving before the user fills out the field will put sensible contents in the file.
2012-05-08Forms: centre text verticallyPaul Gardiner