summaryrefslogtreecommitdiff
path: root/glib
AgeCommit message (Collapse)AuthorFilesLines
2014-04-30glib: Fix multiple definition of PopplerTextSpanCarlos Garcia Campos1-3/+0
https://bugs.freedesktop.org/show_bug.cgi?id=78103
2014-03-30glib: Fix the first coord of the qudrilateral in ↵Thomas Liebetraut1-1/+1
create_poppler_quads_from_annot_quads() https://bugs.freedesktop.org/show_bug.cgi?id=76504
2014-03-10glib: Use flags argument in poppler_structure_element_get_text()Adrian Perez de Castro3-6/+23
Instead of accepting a boolean argument to enable recursive text extraction, use a flags value. Text extraction may add features in the future (for example, allowing using alternate text as replacement for inline figures), and this will allow to extend the method without introducing ABI or API breakage. https://bugs.freedesktop.org/show_bug.cgi?id=75796
2014-03-06glib: Add missing underscore in method nameAdrian Perez de Castro1-1/+1
The correct name is poppler_structure_element_get_form_state(). https://bugs.freedesktop.org/show_bug.cgi?id=75827
2014-03-05Rename getNumElements, getElement and appendElement as getNumChildren, ↵Carlos Garcia Campos1-8/+8
getChild and appendChild It's more consistent with other internal API and less confusing.
2014-03-05glib: Update the documentation symbols after the PopplerStructureScope renameCarlos Garcia Campos1-2/+2
2014-03-05glib: Rename PopplerStructureScope as PopplerStructureTableScopeCarlos Garcia Campos2-13/+13
It's a table specific attribute
2014-03-05glib: Implement accessors for element attributesAdrian Perez de Castro3-18/+1597
Implement inspecting the standard attributes of PopplerStructureElement objects. https://bugs.freedesktop.org/show_bug.cgi?id=64821
2014-03-02glib: Fixes in the API reference documentationAdrian Perez de Castro3-4/+4
- Remove the references to non-existent methods for PopplerStructureElement, and point to PopplerStructureElementIter instead to point out how to obtain the structure tree. - Remove a non-existent include in poppler-docs.sgml - Add POPPLER_TYPE_TEXT_SPAN to the list of private symbols. https://bugs.freedesktop.org/show_bug.cgi?id=75615
2014-03-01glib: Remove poppler_text_span_is_link() in headerAdrian Perez de Castro1-1/+0
The method poppler_text_span_is_link() does not exist, and must be removed from the API header. https://bugs.freedesktop.org/show_bug.cgi?id=75613
2014-02-27glib: Remove unneeded POPPLER_STRUCTURE_ELEMENT_UNKNOWNAdrian Perez de Castro2-6/+7
The enum value POPPLER_STRUCTURE_ELEMENT_UNKNOWN because Poppler does not add invalid StructElements ("invalid" being nodes of type StructElement::Unknown) to the Tagged-PDF structure tree. That means that poppler-glib does not need to expose it in the API. An assertion is left to aid in finding issues when using debug builds. https://bugs.freedesktop.org/show_bug.cgi?id=75541
2014-02-22glib: Add poppler_structure_element_is_grouping()Adrian Perez de Castro3-0/+22
Implement a method to check whether a structure element is a grouping element, wrapping the StructElement::isGrouping() method. https://bugs.freedesktop.org/show_bug.cgi?id=74753
2014-02-22glib: Handle missing structure element typesAdrian Perez de Castro2-8/+26
Element Art (article); RB, RP, RB (Ruby text inner elements); and WT, WP (Warichu inner elements) were not being handled. This adds the corresponding handling in poppler-glib. Also, the "default" case in the switch in poppler_structure_element_get_type() is removed, so the compiler can emit warnings when enum values are not handled. https://bugs.freedesktop.org/show_bug.cgi?id=75323
2014-02-09Fix cmake buildAlbert Astals Cid2-0/+3
2014-02-09glib-demo: Pane showing the document structureAdrian Perez de Castro4-0/+267
Adds a new pane in poppler-glib-demo showing the structure for Tagged-PDF documents. It also serves as an example on how to to use the API for PopplerStructure and PopplerStructureElement.
2014-02-09glib: Expose inline attributes of structure elementsAdrian Perez de Castro4-1/+297
Allows obtaining inline text attributes from structure elements. The text is divived into "spans", which are groups of consecutive glyphs that share their attributes. Each one of those is represented by a PopplerTextSpan, which gives information about the text font and color, and the link target for links. The list of PopplerTextSpans is created lazily when first used. https://bugs.freedesktop.org/show_bug.cgi?id=64821
2014-02-09glib: Expose the document structure treeAdrian Perez de Castro8-0/+831
Implements a new PopplerStructureElement classe, which builds upon StructTreeRoot and StructElement to expose the document structure of tagged PDFs in the GLib binding. Navigation of the structure tree is done by an iterator-based interface, using PopplerStructureElementIter. https://bugs.freedesktop.org/show_bug.cgi?id=64821
2014-02-09glib-demo: Fix performance in text markup annotationsGermán Poo-Caamaño1-6/+13
Fix https://bugs.freedesktop.org/show_bug.cgi?id=51487#c45
2014-02-08glib: Fix gobject-introspection warningsCarlos Garcia Campos1-2/+2
2014-01-21glib-demo: Fix conding style issue in render.cAndres Gomez1-1/+1
2014-01-21glib-demo: Fix trailing whitespaces in render.cAndres Gomez1-2/+2
2014-01-21glib: Install error callbackChristian Persch1-0/+47
Install an error callback so that poppler error messages can be redirected to the GLib logging API. https://bugs.freedesktop.org/show_bug.cgi?id=73269
2014-01-19glib: Make vertices a constructor parameter of line annotationsCarlos Garcia Campos3-6/+14
It's a required field in the line annotation.
2014-01-19glib-demo: Add support for PopplerTextAnnotMarkupGermán Poo-Caamaño1-26/+206
* The subtypes are: Highlihght, Squiggly, StrikeOut and Underline. * Use ScrolledWindow for annotation properties to make room to show the Quadrilaterals of TextMarkup annotations. https://bugs.freedesktop.org/show_bug.cgi?id=51487
2014-01-19glib: Add PopplerAnnotTextMarkup class and subtypesGermán Poo-Caamaño6-0/+306
The subtypes are: Highlihght, Squiggly, StrikeOut and Underline. It adds convenient methods to set/get/free quadrilaterals necessaries for TextMarkup annotations. https://bugs.freedesktop.org/show_bug.cgi?id=51487
2014-01-19glib: Add PopplerQuadrilateral boxed typeGermán Poo-Caamaño4-0/+93
https://bugs.freedesktop.org/show_bug.cgi?id=51487
2013-12-06glib-demo: Increase the default size of the main windowCarlos Garcia Campos1-1/+1
Some demos like annots that show a document view use more space than they used to, requiring to manually resize the window everytime.
2013-12-05glib-demo: Add Square and Circle annotations demoGermán Poo-Caamaño1-0/+19
https://bugs.freedesktop.org/show_bug.cgi?id=70983
2013-12-05glib: Add implementation of Square and Circle annotationsGermán Poo-Caamaño6-26/+286
Square and Circle only differ in the constructor which defines the subtype. Therefore, it uses the same name than Poppler's Geometry class. https://bugs.freedesktop.org/show_bug.cgi?id=70983
2013-12-03glib-demo: Show number of charcters and text layout units in text demoCarlos Garcia Campos1-2/+2
It helps to easily detect the cases where these values mismatch.
2013-11-25glib-demo: Add an area selector to text demoCarlos Garcia Campos1-4/+110
And use the for_area variants of the API to get the text, text layout and text attributes.
2013-11-25glib: Add API to get text, text layout and text attributes for a given areaCarlos Garcia Campos3-5/+113
2013-11-22TextOutputDev: Honor the selection rectangle passed to ↵Carlos Garcia Campos1-8/+14
TextPage::getSelectionWords() Make TextPage::getSelectionWords() return a list of TextWordSelection instead of a list of TextWord so that it's possible to know which characters of the word are inside the given selection rectangle. Adapt the glib frontend to the new API and use the selection bounds instead of the whole word to build the list of characters in poppler_page_get_text_layout() and poppler_page_get_text_attributes(), which ensures the number of glyphs returned is in sync with the number of characters returned by poppler_page_get_text(). https://bugs.freedesktop.org/show_bug.cgi?id=71160
2013-11-22glib-demo: Simplify annotations list and its propertiesGermán Poo-Caamaño1-55/+15
* Move the annotation's rectangle to properties to make the list view of annotations cleaner. * Remove duplicated information: flags and page are already present in the UI. https://bugs.freedesktop.org/show_bug.cgi?id=70982
2013-11-19glib-demo: Add support for simple line annotationsGermán Poo-Caamaño1-8/+91
https://bugs.freedesktop.org/show_bug.cgi?id=70981
2013-11-19glib-demo: add color selection for new annotationsGermán Poo-Caamaño1-0/+34
https://bugs.freedesktop.org/show_bug.cgi?id=71727
2013-11-19glib: Add support for simple line annotationsGermán Poo-Caamaño6-0/+103
https://bugs.freedesktop.org/show_bug.cgi?id=70981
2013-11-19glib: Add PopplerPoint boxed typeGermán Poo-Caamaño4-0/+80
https://bugs.freedesktop.org/show_bug.cgi?id=70981
2013-11-17glib-demo: Add annotations interactivelyGermán Poo-Caamaño1-135/+213
* Prepare UI to add multiple annotations type. * Remove dialog and button add annotations. https://bugs.freedesktop.org/show_bug.cgi?id=69978
2013-11-17glib: Add getter and setter for annotation's rectangleGermán Poo-Caamaño3-0/+54
Annotation objects contain at least two keys, Rect and Subtype. The former has the coordinates where the annotation is placed. The getter and setter allows to obtain and modify the position of a given annotation. https://bugs.freedesktop.org/show_bug.cgi?id=70901
2013-11-05glib-demo: Fix conding style issue in main.cAndres Gomez1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=71245
2013-11-05glib-demo: Fix a typo in function nameAndres Gomez1-3/+3
https://bugs.freedesktop.org/show_bug.cgi?id=71245
2013-11-05glib-demo: Fix trailing whitespaces in main.cAndres Gomez1-7/+7
https://bugs.freedesktop.org/show_bug.cgi?id=71245
2013-11-05glib-demo: Make the Remove annotation button prominent in demoGermán Poo-Caamaño1-9/+13
Move out from Annotation properties to the top. This make better use of the space. Make the remove button active only if there is an annotation selected. https://bugs.freedesktop.org/show_bug.cgi?id=69978
2013-10-05glib-demo: Expand short names for annotations used in demoGermán Poo-Caamaño2-6/+6
https://bugs.freedesktop.org/show_bug.cgi?id=69978
2013-10-04glib-demo: Merge columns Type and Color in annotations demoGermán Poo-Caamaño1-12/+16
Reduce the space used by both columns, makes the color pixbuf smaller enough to give a clue of the annotation color. https://bugs.freedesktop.org/show_bug.cgi?id=69978
2013-10-04glib-demo: Rearrange layout for annotations in demoGermán Poo-Caamaño1-12/+118
Add render area to visualize the annotations per page. https://bugs.freedesktop.org/show_bug.cgi?id=69978
2013-10-04glib-demo: Fix rectangle calculation for new annotations in demoGermán Poo-Caamaño1-2/+2
https://bugs.freedesktop.org/show_bug.cgi?id=69978
2013-07-30glib-demo: Remove GTK_DISABLE_DEPRECATED compilation flagCarlos Garcia Campos1-1/+0
Deprecations are now compile warnings, there's no reason to make them fatal.
2013-06-25glib: Use TextPage::getSelectionWords to build text layout and attributesCarlos Garcia Campos1-78/+90
This way we can make sure that the list of words used in poppler_page_get_text_layout and poppler_page_get_text_attributes is the same that the one used in poppler_page_get_text. This fixes the mismatch between the number of characters in the text returned by poppler_page_get_text and the number of characters returned by poppler_page_get_text_layout in some documents.