summaryrefslogtreecommitdiff
path: root/glib
AgeCommit message (Collapse)AuthorFilesLines
2019-06-27Poppler 0.78.0poppler-0.78.0Albert Astals Cid1-1/+1
2019-06-21glib: Rename variable to make it more clear what it isAlbert Astals Cid1-2/+2
also fixes shadow warning
2019-05-29glib: docs: Add index for API new in 0.78Christian Persch1-0/+4
2019-05-28Add poppler_document_create_dests_tree() to glib frontendMasamichi Hosoda3-0/+89
Creates named destinations balanced binary tree in document.
2019-05-28glib: Document G_IO_ERROR as a possible error conditionSimon McVittie1-2/+2
This was already implicit from G_IO_ERROR_NOT_SUPPORTED being a documented error condition, and from the use of GCancellable, but is probably clearer when spelled out explicitly. The addition of g_seekable_seek() and g_seekable_tell() in the previous commit might add more error conditions in the same domain. Signed-off-by: Simon McVittie <smcv@debian.org>
2019-05-28glib: Don't create PopplerInputStream with length 0Simon McVittie1-1/+8
Since commit a59f6164, PopplerInputStream requires a nonzero length. Loosely based on an earlier patch by Kouhei Sutou. This version adds support for length == -1, which is documented to work. Resolves: https://gitlab.freedesktop.org/poppler/poppler/issues/414 Bug-Debian: https://bugs.debian.org/896596
2019-05-28glib: pass poppler to gir libs.maxice81-1/+1
Fixes cross compilation of gir in Void Linux [ 85%] Generating Poppler-0.18.gir g-ir-scanner: link: aarch64-linux-gnu-gcc -o /builddir/poppler-0.74.0/build/glib/tmp-introspectfs1jd4m9/Poppler-0.18 -fstack-clash-protection -D_FORTIFY_SOURCE=2 -O2 -pipe -march=armv8-a -I/usr/aarch64-linux-gnu/usr/include /builddir/poppler-0.74.0/build/glib/tmp-introspectfs1jd4m9/Poppler-0.18.o -L. -Wl,-rpath,. -Wl,--no-as-needed -L/builddir/poppler-0.74.0/build -Wl,-rpath,/builddir/poppler-0.74.0/build -L/builddir/poppler-0.74.0/build/glib -Wl,-rpath,/builddir/poppler-0.74.0/build/glib -lpoppler-glib -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/aarch64-linux-gnu/usr/lib /usr/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: warning: libpoppler.so.85, needed by ./libpoppler-glib.so, not found (try using -rpath or -rpath-link) /usr/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: ./libpoppler-glib.so: undefined reference to `FormWidgetText::noSpellCheck() const'
2019-05-27glib: Fix introspection for poppler_document_new_from_dataChristian Persch1-1/+1
The API takes binary data, not an UTF-8 string. https://gitlab.freedesktop.org/poppler/poppler/issues/448
2019-05-27glib: Don't use the deprecated g_type_class_add_private()Federico Mena Quintero1-8/+11
Use G_DEFINE_TYPE_WITH_PRIVATE() instead. This has been available since glib 2.38, and poppler requires glib 2.41 already.
2019-05-27glib: Document the differences between render() and render_for_printing() - #749Federico Mena Quintero1-2/+36
I got these by grepping for "printing" in the source code, and trying to summarize the differences between rendering to the screen and rendering to a printer. Hopefully these are all the important ones. Fixes https://gitlab.freedesktop.org/poppler/poppler/issues/749
2019-03-29Use the existing Ref operator==Albert Astals Cid1-2/+2
2019-03-29Make Catalog::findPage just take a Ref instead of num and genAlbert Astals Cid2-3/+3
All the callers already have a ref so makes no sense to unbox it
2019-03-28document: Handle UTF16-LE annotationsChristophe Fergeau1-0/+4
I can produce such annotations when adding annotations to a PDF attachement from the standard mail app on my iPhone (iOS 12.1). They currently all show as "ÿþÚ" rather than the actual string content. UTF16-BE vs UTF16-LE is detected by inferring the endianness from the first two bytes of the string (0xFF 0xFE and 0xFE 0xFF aka Byte Order Marker).
2019-03-21Replace 'auto' by actual typesOliver Sander2-8/+8
2019-03-21Remove unused variableOliver Sander1-1/+1
2019-03-21Remove GooList completelyOliver Sander2-8/+6
2019-03-21Remove method GooList::getOliver Sander3-20/+20
Use operator[] instead. This is another move towards discarding GooList in favor of std::vector.
2019-03-21Remove method deleteGooListOliver Sander1-1/+4
2019-03-21Make GooList a template typeOliver Sander3-19/+15
One more step towards getting rid of it completely.
2019-03-21Remove method GooList::getLengthOliver Sander3-18/+15
Use method 'size' (from std::vector) instead.
2019-02-27Make Annot::getNF and Dict::getNF return const & instead of copyAlbert Astals Cid1-2/+2
Lots of users can deal with a const & directly, so it saves us some copying. For the ones that can't move the copy to the caller side. Some of copy() on the caller side can be easily removed, that will come on next commits
2019-02-10Add an XRef::fetch variant that takes a const RefAlbert Astals Cid1-1/+1
makes the code more compact and easier to understand
2019-01-25glib: Fix cast from 'GTime *' (aka 'int *') to 'time_t *' (aka 'long *')Albert Astals Cid1-2/+10
Sounds rather scary since we're storing a bigger value than what really fits. Fixed by the suggestion of https://developer.gnome.org/glib/stable/glib-Date-and-Time-Functions.html#GTime Changing the type of _PopplerAttachment ctime/mtime would change the structure size, thus break the BC, so leaving that for the future for now
2019-01-19Fix link in FreeBSDAlbert Astals Cid1-1/+5
2019-01-07glib: docs: Add API index for 0.73Christian Persch1-0/+4
2019-01-07Poppler 0.73.0poppler-0.73.0Albert Astals Cid1-1/+1
2019-01-07glib: Make PrintScaling preference available in APIMarek Kasik4-1/+80
Add poppler_document_get_print_scaling() function and PopplerPrintScaling enum so that applications which use poppler's glib frontend can access this preference. https://bugs.freedesktop.org/show_bug.cgi?id=92779
2019-01-07glib: Fix named destinationsChristian Persch5-22/+154
Named destinations may be described by bytestrings, containing embedded NULs and not being NUL terminated. That means they cannot be exposed directly as char*. The alternatives are to escape the string from the internal representation when exposing it in the API (e.g. in PopplerDest.named_dest), or to add parallel API exposing it as GString, or GBytes. This patch chooses the first option, since the presence of these named destionations in the public, not sealed, PopplerDest struct means that the second option would need more API additions. The chosen option is simpler, and does not need the API users to adapt unless they create the named dest strings themselves, or consume them in ways other than calling poppler APIs. The escaping scheme chosen simply replaces embedded NUL with "\0" and escapes a literal backslash with "\\". This is a minimal ABI change in that some strings that previously worked unchanged as destinations (those containing backslash) now don't work, but on the other hand, previously it was impossible to use any destinations containing embedded NULs. Add poppler_named_dest_{from,to}_bytestring() to perform that conversion, and clarify the documentation for when you need them. Based on a patch by José Aliste <jaliste@src.gnome.org>. https://gitlab.freedesktop.org/poppler/poppler/issues/631
2019-01-05msys2: fix glib introspection path on mingw-w64Alexey Pavlov1-1/+1
2019-01-03all: Use the openFile fopen wrapper from gfile.hChristian Persch2-4/+6
Use the openFile wrapper instead of calling fopen directly in the libraries.
2018-12-24Windows: only set SOVERSION for shared libsJeroen Ooms1-1/+1
2018-12-20Fix minor typosYuri Chornoivan6-13/+13
2018-12-09add new 'IgnoreDiacritics' option to ::findText()Nelson Benítez León2-1/+6
This makes possible that simple ascii search terms can match on their accented and other diacritics counterparts. This option will be ignored if the search term is not pure Ascii. Issue #637
2018-12-06Replace Guint by unsigned intOliver Sander1-4/+4
2018-12-06Replace Guchar by unsigned charOliver Sander2-2/+2
2018-12-06Poppler 0.72.0poppler-0.72.0Albert Astals Cid1-1/+1
2018-12-01glib: docs: Reorganise sectionsChristian Persch2-391/+456
Sort sections, and add missing functions.
2018-12-01glib: docs: Add missing indices of API-added-by-versionChristian Persch1-0/+12
2018-11-15Annot: Remove some inc/defRef by Object movingAlbert Astals Cid1-1/+1
2018-11-11Rename GooString::getCString GooString::c_strOliver Sander6-22/+22
This is the name used by std::string.
2018-11-09NULL -> nullptrAlbert Astals Cid1-2/+2
2018-11-07NULL -> nullptrAlbert Astals Cid2-2/+2
2018-11-06Update since to 0.72Albert Astals Cid2-2/+2
2018-11-06glib: Support getting form widget additional actions.Elliott Sales de Andrade4-0/+125
2018-11-06glib-demo: Fix indent for actions code.Elliott Sales de Andrade1-9/+9
2018-11-03glib: Fix missing destructor callChristian Persch1-17/+11
PopplerAttachmentPrivate has a Object member which was never destructed, only set to an empty Object() on dispose. While there is no memory leak (currently!), this is still not correct. Fix this by making PopplerAttachmentPrivate a C++ class, constructed in place of the gobject instance private in init(), and call the destructor explicitly in finalize().
2018-10-26glib-demo: Align property labels to top of cell.Elliott Sales de Andrade1-1/+1
2018-10-26Remove glib/poppler.gidlAlistair Thomas1-217/+0
The GIDL format was the pre-cursor to the GObject Introspection Repository (GIR) format. Poppler has used GIR for a long time now.
2018-10-23Replace GBool, gTrue, and gFalse by bool, true, false, resp.Oliver Sander7-45/+45
These are just non-standard names for bool, true, false, respectively. Getting rid of these names saves on layer of mental redirection, and enables proper syntax highlighting in editors.
2018-10-23Use GDateTime to format dates in GLib demo.Elliott Sales de Andrade1-9/+8
Removing localtime_r allows the demo to be built on Windows.