Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
also fixes shadow warning
|
|
|
|
Creates named destinations balanced binary tree in document.
|
|
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>
|
|
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
|
|
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'
|
|
The API takes binary data, not an UTF-8 string.
https://gitlab.freedesktop.org/poppler/poppler/issues/448
|
|
Use G_DEFINE_TYPE_WITH_PRIVATE() instead. This has been available
since glib 2.38, and poppler requires glib 2.41 already.
|
|
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
|
|
|
|
All the callers already have a ref so makes no sense to unbox it
|
|
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).
|
|
|
|
|
|
|
|
Use operator[] instead. This is another move towards discarding
GooList in favor of std::vector.
|
|
|
|
One more step towards getting rid of it completely.
|
|
Use method 'size' (from std::vector) instead.
|
|
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
|
|
makes the code more compact and easier to understand
|
|
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
|
|
|
|
|
|
|
|
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
|
|
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
|
|
|
|
Use the openFile wrapper instead of calling fopen directly
in the libraries.
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
Sort sections, and add missing functions.
|
|
|
|
|
|
This is the name used by std::string.
|
|
|
|
|
|
|
|
|
|
|
|
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().
|
|
|
|
The GIDL format was the pre-cursor to the GObject Introspection
Repository (GIR) format. Poppler has used GIR for a long time now.
|
|
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.
|
|
Removing localtime_r allows the demo to be built on Windows.
|