summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-22Keep copy of decoded utf8 text string in pdf_obj.Tor Andersson
Removes the need to alloc/free text strings in the API, allowing for simple functions like pdf_dict_get_text_string.
2018-06-22Look up DA in Root/AcroForm/DA if missing in annotation property.Tor Andersson
2018-06-22gl: Edit widget values in annotation editor.Tor Andersson
2018-06-22gl: Add -J flag to disable Javascript in PDF forms.Tor Andersson
2018-06-22gl: Transform rotated pages so that the pixmap origin is always at 0,0.Tor Andersson
2018-06-22gl: Multi-line text input fields.Tor Andersson
2018-06-22gl: Use black backdrop when displaying an inverted (black) page.Tor Andersson
2018-06-22gl: Rework how popup menus are handled.Tor Andersson
Handle the logic immediately, but put the drawing commands into a display list that is invoked after the rest of the UI is drawn.
2018-06-22gl: Increase font size on high resolution displays.Tor Andersson
Also increase the max resolution in the zoom list.
2018-06-22gl: Edit FreeText default appearance.Tor Andersson
2018-06-22gl: Add annotation editor.Tor Andersson
* Select with right mouse, edit with left mouse. * Clamp movement to page area. * Integrate page scroll offset into matrices. * Edit Ink annotations. * Initialise important annotation properties when creating them. * Deselect annotation when pressing ESC. * Add polygon/polyline annotation editing. * Tweak polygon editing. * Edit square/circle annotations. * Cancel canvas edits on right click. * Expand selectable areas and grab zones for rects. * Edit line annotations. * Edit caret annotations. * Return true when value has changed (checkbox and slider). * Add popup menu widget: Menu items are drawn at ui_end to overlay other widgets properly. * Use popup menu to set icons. * Fix text selection translation offset. * Edit quad point annotations. * Set user and modification date when creating new annotations. * Add select widget. * Edit line endings. * Edit highlight opacity. * Create properly sized stamp annotations. * Edit FreeText annotations. * Trigger list selection on mouse-up instead of mouse-down. * Use index in ui_select. * Edit Freetext quadding. * Fix windows build issues. * Use 'const void *' for ids. * Add file dialog to choose file when none given on command line. * Add save file dialog. * Add pdfwrite options to save dialog. * Add error dialog instead of dying silently on exceptions. * Add password dialog. * Add warning dialog that does not exit the program. * Show in title bar when document is modified. * Separate motion and passive motion callbacks. * Add /Volumes 'disk' for MacOS X mount points. * Tweak input focus/blur handling. * Use popup menu to create annotations instead of big list of buttons. * Update appearance after canvas edits too. * Release old grab before checking for new grab and taking focus. * Set cursor shape depending on hot item. * Draw prettier widgets. * Use integers for slider to allow snapping to values. * Add 'ui.gridsize' to ease layout of buttons and text fields. * Tweak file dialog layout. * Bevels around lists and scroll bars. * Only add new points to the ink list when drawing. * Use named color constants instead of hardcoding color values. * Adjust layout and which properties to edit for each annotation. * Use a panel for search field. * Add splitter, dialogs, and panel padding. * Popup menus above the button if they don't fit below it. * Use triangle strip to draw check mark.
2018-06-22gl: Add layout packer and various widgets.Tor Andersson
* Move window setup and swap buffer calls into ui_begin/end. * Rearrange source files. * Simplify grab logic: Make it more robust in the face of user errors, such as setting ui.active to NULL explicitly. * Copy text to primary selection as well.
2018-06-22Update win32 project for pdf-link/annot/annot-edit.c file changes.Tor Andersson
2018-06-22Merge pdf-annot.c and pdf-annot-edit.c (2/2).Tor Andersson
2018-06-22Merge pdf-annot.c and pdf-annot-edit.c (1/2).Tor Andersson
2018-06-22Move link code to pdf-link.c.Tor Andersson
2018-06-22Fix error check in AFPercent_Format to look for null rather than false.Tor Andersson
The number 0 is a valid percentage number.
2018-06-22Call AA/F formatting when synthesizing appearance stream.Tor Andersson
2018-06-22Use line spacing and padding when creating variable text appearance.Tor Andersson
Format single-line Widget/Tx fields vertically centered.
2018-06-22Support annot/MK/R property in Tx and Ch widget annotations.Tor Andersson
2018-06-22Support undocumented annot/Rotate property in FreeText annotations.Tor Andersson
2018-06-22Remove rich text properties when editing annotation contents or styles.Tor Andersson
We do not support rich text content; remove the properties rather than leave them untouched and out of sync with the simple contents and styles.
2018-06-22Use /Tx BMC ... EMC when creating text widget appearance streams.Tor Andersson
2018-06-22Support rotated QuadPoints when generating markup annotation appearances.Tor Andersson
2018-06-22Create appearance streams for annotations.Tor Andersson
Now handles more annotation types, and does not use the pdf-write device. Handles many of the usual annotation properties, such as border width, color, interior color, line ending styles. * Ink * Highlight, Underline, Strike-Out, Squiggly * Line (with arrow-heads) * Polygon * PolyLine * Square * Circle * Caret * Text (needs better icons) * FileAttachment (needs better icons) * Sound (needs better icons) * Stamp * FreeText Partially complete: * Widget (treats everything like a plain text field) Not done, but on the to-do list: * /BS style (solid/dashed/bevel/inset/underline) * /BS dash pattern Not done and not on the list: * Movie * Screen * Printer's Mark * Trap Network * Watermark * /Border corner radii (ignored by acrobat) * /BE cloudy border effect
2018-06-22Remember the md5 digest in the fz_font struct.Tor Andersson
2018-06-22Cache base14 and CJK fonts.Tor Andersson
Do not cache PDF fonts, since they have custom metrics and encodings that cannot be shared. This is primarily to speed up font loading for EPUB, PDF appearance synthesis, and any other uses of default metrics and unicode encoded fonts.
2018-06-22Add pdf_dict_get_name function.Tor Andersson
2018-06-22Check pointer for NULL in fz_free before locking.Tor Andersson
2018-06-21Allow signature saving using pdf_write_documentPaul Gardiner
It is safe to save a document with unsaved signatures to an fz_output, provided it supports fz_stream_from_output.
2018-06-12More tweaks to MSVC dependencies for luratech/curl.Robin Watts
Looks like x64 ones didn't 'stick' last time I edited them.
2018-06-12Fix MSVC build issues.Robin Watts
When updating from VS2005 to VS2017, the .rules mechanism is converted to a .props based scheme. This is not entirely equivalent, and so causes problems with our "build both 32 and 64bit resources" scheme. Instead, we amend the flag handling in bin2coff so that it will accept "Win32" and "x64" as flags. These can then be driven easily from the project files, giving us a "more standard" way of working. Also, remove some stray fonts that had crept into the resources build.
2018-06-12Run both V and F additional actions when setting field values.Tor Andersson
2018-06-11MSVC solution fixes.Robin Watts
Having libluratech set to not build in non-commercial builds is not enough to make stuff work, as the dependencies will still try to link it in. Instead, we now have a Release configuration for libluratech with every file disabled, and the non-commercial builds depend on that. Also, tweak bin2coff build to put it's buildlog in the usual place.
2018-06-11Fix MSVC dependencies/configurations.Robin Watts
Everything builds in a batch build for me now, except for the OpenSSL stuff, which fails due to me not having it available.
2018-06-11Fix Windows JNI builds.Robin Watts
2018-06-11Use bin2coff to generate font data blobs object files.Tor Andersson
This is the windows equivalent of objcopy or ld -r binary. We need different bin2coff font object files for 32 and 64 bit builds, so put the font object files in AdditionalDependencies. Revamp Windows builds to use bin2coff. Fix bin2coff to not use '-' in symbol names. Add a new project file to make bin2coff. Add a .rules file to tell MSVC how to call the built version of bin2coff. Update libresources build to use this rules file. Update noto.c to correctly find the symbols we make.
2018-06-07Remove platform specific compiler flags for build=native.Tor Andersson
2018-06-02Fix libcrypto build.Tor Andersson
2018-06-02Rework XObject form creation/updating.Tor Andersson
2018-06-02mutool show: Add support for wildcards in path syntax.Tor Andersson
Example: mutool show $PDF pages/*/Resources/Fonts/*/Subtype
2018-06-02Fix include file ifdefs when building with -std=c11.Tor Andersson
2018-06-02Add a fz_strnlen function (strnlen is not standard C).Tor Andersson
2018-06-01Fix loss of reference to focussed annotation when rereading annotationsPaul Gardiner
2018-05-18Fix 699368: Remember 'sent' text state in sanitize filter.Tor Andersson
2018-05-18gl: Zoom in/out centered on the mouse cursor.Tor Andersson
2018-05-18Fix segfault in SVG parser when encountering text data.Tor Andersson
fz_xml_tag returns NULL for non-tag (i.e. text) elements. Use the fz_xml_is_tag function instead of comparing strings.
2018-05-18Fix android build.Tor Andersson
2018-05-17mutool extract: Remove spurious 'break' statement and fix double free.Tor Andersson
2018-05-16Don't use pdf_load_object in pdfextract.cTor Andersson