summaryrefslogtreecommitdiff
path: root/glib
AgeCommit message (Collapse)AuthorFilesLines
10 daysglib: properly document return value from poppler_font_info_scanPablo Correa Gómez2-3/+7
10 daysLet GooString::format return a std::string objectOliver Sander1-2/+2
... rathern than std::unique_ptr<GooString>. In many cases this avoids a small heap allocation.
2024-04-22Update (C)Albert Astals Cid1-1/+1
2024-04-21Async api for certificate validationSune Vuorela1-3/+4
2024-04-20Move move prependUnicodeMarker to UTF.hOliver Sander1-1/+1
... and rename it to prependUnicodeByteOrderMark. Now all unicode code has moved from GooString.h to UTF.h.
2024-04-20Move method GooString::hasUnicodeMarkerLE to UTF.hOliver Sander1-1/+1
... and rename it to hasUnicodeByteOrderMarkLE. This allows to replace GooString by std::string in a few places. (In a future commit)
2024-04-20Move method GooString::hasUnicodeMarker to UTF.hOliver Sander1-4/+4
... and rename it to hasUnicodeByteOrderMark. This allows to replace GooString by std::string in a few places. (In a future commit)
2024-02-01Update (C)Albert Astals Cid1-0/+1
2024-02-01More unicode vectors; fewer raw pointersSune Vuorela1-1/+2
2023-09-06Let method utf8ToUtf16WithBom return a std::string objectOliver Sander1-2/+2
Rather than a std::unique_ptr to a GooString. This avoids a heap allocation.
2023-08-01poppler 23.08.0poppler-23.08.0Albert Astals Cid1-1/+1
2023-07-27glib: Add new members to PopplerCertificateInfoMarek Kasik4-13/+230
These new members of the structure can be used to show more detailed info about who signed the document and more info about issuer of the certificate. Add PopplerCertificateInfo to PopplerSignatureInfo to be able to get certificate info of the signature.
2023-07-04Improve poppler_get_available_signing_certificatesJan-Michael Brummer1-3/+6
Remove #ifdef and error handling Fixes: https://gitlab.freedesktop.org/poppler/poppler/-/issues/1412
2023-07-03poppler 23.07.0poppler-23.07.0Albert Astals Cid1-2/+2
2023-06-30Remove g_auto functionsJan-Michael Brummer2-4/+8
2023-06-29Signatures: Add signing API to glib partJan-Michael Brummer12-2/+1840
Rectangle corrections by Marek Kasik
2023-03-27clang 15Albert Astals Cid1-1/+1
2023-03-23Fix use of dangling memorySune Vuorela1-1/+2
g_strdup is a macro and thus the intermediate getSignerName() value would be destructed after the first line of code in the macro
2023-03-08Update (C)Albert Astals Cid1-0/+1
2023-03-08Use std::string for stringsSune Vuorela1-1/+1
not manual strdup/free
2022-12-04cmake: Add CAIRO_INCLUDE_DIRS to the appropriate targetsAlbert Astals Cid1-0/+1
2022-08-31Fix copy'n'paste bug in the check for bounding box correctnessOliver Sander2-2/+2
Found by https://sonarcloud.io/project/overview?id=tsdgeos_poppler_mirror
2022-08-23cmake: Better linking against GTK3Albert Astals Cid2-13/+1
2022-08-19glib: Fix two potential memory leaks in poppler_document_create_dests_treeAlbert Astals Cid1-3/+2
2022-07-04poppler 22.07.0poppler-22.07.0Albert Astals Cid1-1/+1
2022-07-03glib: add support for stamp annotationNelson Benítez León8-4/+507
Creates new PopplerAnnotStamp type with the following public api: PopplerAnnot *poppler_annot_stamp_new(PopplerDocument *doc, PopplerRectangle *rect); PopplerAnnotStampIcon poppler_annot_stamp_get_icon(PopplerAnnotStamp *poppler_annot); void poppler_annot_stamp_set_icon(PopplerAnnotStamp *poppler_annot, PopplerAnnotStampIcon icon); gboolean poppler_annot_stamp_set_custom_image(PopplerAnnotStamp *poppler_annot, cairo_surface_t *image, GError **error); Updates poppler-glib-demo to test PopplerAnnotStamp including the custom image support.
2022-06-20Fixes 2 MSVC compilation bugsFabian Keßler1-2/+2
2022-04-26fix multiline find_text() bug in two column docsNelson Benítez León1-3/+3
Fix for a bug in double column documents where some single line matches are wrongly returned as being multiline matches. Includes test case for the bug.
2022-04-13Correct typo in `poppler-structure-element.cc`Pablo Rodríguez1-1/+1
2022-04-01Annots: Just return the std::vector instead of two gettersAlbert Astals Cid1-4/+1
Simpler code to use and solves the int vs size_t mismatch by not having a type involved at all
2022-04-01Link: Just return the std::vector instead of two gettersAlbert Astals Cid1-4/+1
Simpler code to use and solves the int vs size_t mismatch by not having a type involved at all
2022-03-30Change GfxFont name into an optional std::stringAlbert Astals Cid1-3/+7
2022-03-30Remove the url from the CachedFileLoader::init functionAlbert Astals Cid3-8/+7
It was unused everywhere except in CurlCachedFileLoader, but there we can just pass it in the constructor. The use in one of the two glib cases was a memory leak
2022-03-30Make GooString::format[v] return an unique_ptrAlbert Astals Cid1-3/+3
2022-03-28glib: Fix mem leak in poppler_document_new_from_fdChristian Persch1-3/+14
Someone needs to own the GooFile that's referenced by FileStream. Add a simple OwningFileStream class that does that. Fixes: https://gitlab.freedesktop.org/poppler/poppler/-/issues/1227
2022-03-24Unify 2 enums and a set of defines into an enumAlbert Astals Cid1-3/+3
2022-03-11Add readability-braces-around-statementsAlbert Astals Cid34-335/+650
2022-03-11Make GooFile::open return an unique_ptrAlbert Astals Cid1-2/+3
Sadly uncovers a memory leak on poppler_document_new_from_fd
2022-03-08glib: Fix returning c_str() of temporal stringsAlbert Astals Cid1-3/+3
They go out of scope as soon as the function returns
2022-03-08Annot::getRect: Return a const & instead of a pointerAlbert Astals Cid2-18/+15
Makes it clear the result is never null
2022-03-02AnnotMarkup::setLabel: Take a unique_ptrAlbert Astals Cid1-4/+1
This was double deleting on the glib side
2022-03-02Annot::setContents: Take a unique_ptrAlbert Astals Cid1-4/+1
This was double deleting on the glib side
2022-02-21Store the strings in FontInfo in std::optional<std::string>Oliver Sander1-10/+7
This saves some memory allocations, because the strings are now stored by value rather than by a pointer pointing to the heap. Also, the costum copy constructor can be replaced by the default one with this change.
2022-02-16We don't use pthreads anymore, cleanup cmake stuff around itAlbert Astals Cid1-3/+0
Well, there's some pthread code still in pdftoppm but it's "test" related, and should just be ported to C++11 threads
2022-02-16PDFDoc: Make passwords std::optional instead of pointersAlbert Astals Cid1-38/+14
Makes it clearer that we're not taking ownership of them
2022-02-16Use Freetype::FreetypeKai Pastor1-1/+1
2022-02-15Make PDFDoc constructor take the filename as unique_ptrAlbert Astals Cid1-5/+2
Makes it clear that it will own the given GooString
2022-02-15Change PDFDoc::save from pointer to referenceAlbert Astals Cid1-4/+2
Makes it clear it's not going to be destructed and that it can't be null
2022-02-10Make Catalog::embeddedFile return an unique_ptrAlbert Astals Cid1-5/+2
2022-02-01Improve PDFDoc::getSignatureFieldsAlbert Astals Cid1-1/+1