- 20 Jan, 2022 3 commits
-
-
Albert Astals Cid authored
Until we depend on a newer gcc (>= 9.1) We still support gcc 8 and it seems it's not super obvious to use it there, might need linking to an extra library in some platforms, and honestly for the 1 warning on MSVC that this fixes it's not worth the effort to figure out how to link to that lib See Issue 1203 for more info.
-
glib-mkenums is a python script and you can't tell Windows to run those, so tell windows to run python with glib-mkenums as script to run
-
Albert Astals Cid authored
-
- 18 Jan, 2022 1 commit
-
-
We should not use SEC_ASN1_XTRN since on Windows that means SEC_ASN1_DYNAMIC which means the third parameter is a function. IssuerSerialTemplate is not a function SECOID_AlgorithmIDTemplate was a function, but that was also a mistake since it's defined as a template in secoid.h
-
- 17 Jan, 2022 4 commits
-
-
Albert Astals Cid authored
-
Albert Astals Cid authored
-
Albert Astals Cid authored
-
Albert Astals Cid authored
-
- 16 Jan, 2022 1 commit
-
-
when opening encrypted files in below functions. poppler_document_new_from_file(): poppler_document_new_from_data(): poppler_document_new_from_bytes(): poppler_document_new_from_stream(): poppler_document_new_from_fd(): Poppler-glib converts password to latin1 before opening, but as shown in issue #824 there could be files encrypted with a UTF8 password, and other pdf viewers handle this well, so let's do the same and try with UTF-8 if latin1 fails. Note: we originally receive the password in UTF-8 from GTK. Thanks @aacid for clue about how this was fixed in Okular side. Fixes issue #824
-
- 13 Jan, 2022 1 commit
-
-
Albert Astals Cid authored
-
- 12 Jan, 2022 2 commits
-
-
Albert Astals Cid authored
-
-
- 10 Jan, 2022 2 commits
-
-
Albert Astals Cid authored
-
-
- 07 Jan, 2022 1 commit
-
-
Marek Kasik authored
Previous version returned number of all fields instead of just the ones with signatures.
-
- 05 Jan, 2022 10 commits
-
-
Albert Astals Cid authored
-
Albert Astals Cid authored
-
We need it since in the middle of the signing process we need to reopen the document we just created to do some final modifications
-
-
Because these methods do release the object ownership.
-
Compared to the heap storage used previously, this saves one layer of indirection and the heap memory management. The new code uses C++17's std::optional class to model the 'no fontLoc' value previously encoded by 'nullptr'.
-
...instead of as GooString*. This avoids some heap allocations. To simplify interaction with the rest of the code, the GfxFontLoc class gets two new methods 'setPath' and 'pathAsGooString'. These methods are intended to be temporary. Avoiding them now would mean having to change too much calling code.
-
-
-
Albert Astals Cid authored
-
- 04 Jan, 2022 1 commit
-
-
Albert Astals Cid authored
-
- 03 Jan, 2022 2 commits
-
-
-
Albert Astals Cid authored
-
- 29 Dec, 2021 2 commits
-
-
Albert Astals Cid authored
-
Albert Astals Cid authored
Adding signatures to documents with passwords still doesn't work
-
- 15 Dec, 2021 1 commit
-
-
They don't compile, and are not useful on windows anyway. Remove the functions completely, not just stub out their implementation, since otherwise the API contract of consuming the FD would be violated. #1180
-
- 14 Dec, 2021 2 commits
-
-
Albert Astals Cid authored
-
Nelson Benítez León authored
caused by calling compare() with a negative 'pos' argument. Fixes issue https://gitlab.gnome.org/GNOME/evince/-/issues/1694
-
- 12 Dec, 2021 2 commits
-
-
Albert Astals Cid authored
-
Marco Genasci authored
-
- 10 Dec, 2021 1 commit
-
-
Albert Astals Cid authored
-
- 08 Dec, 2021 1 commit
-
-
Albert Astals Cid authored
Makes clear that the ownership is transferred
-
- 07 Dec, 2021 3 commits
-
-
Albert Astals Cid authored
it's a micro optimization used in non-hot paths and is not even correct due to how GooStrings inside Objects are shared, so just kill it and copy a few strings in those non-hot paths
-
Require more spacing for adjacent text to be considered a separate column of text. We do that by increasing 'minColSpacing1' parameter, which marks the distance, within which, an adjacent word will be pulled to the current block. We provide a way to tweak the default value: double getMinColSpacing1(); void setMinColSpacing1(double val); Fixes issue #1093
-
This code leaked a GooString each time it was called. ==1018012== 56 (32 direct, 24 indirect) bytes in 1 blocks are definitely lost in loss record 11,042 of 19,178 ==1018012== at 0x4841FF5: operator new(unsigned long) (vg_replace_malloc.c:422) ==1018012== by 0x1EFE8DA5: copy (GooString.h:104) ==1018012== by 0x1EFE8DA5: Object::copy() const (Object.cc:52) ==1018012== by 0x1EFE8EE8: Object::fetch(XRef*, int) const (Object.cc:78) ==1018012== by 0x1EF6C0C7: Dict::lookup(char const*, int) const (Dict.cc:167) ==1018012== by 0x1EFF5592: dictLookup (Object.h:622) ==1018012== by 0x1EFF5592: PDFDoc::getDocInfoStringEntry(char const*) (PDFDoc.cc:779) ==1018012== by 0x1EA00E71: getDocInfoCreatDate (PDFDoc.h:277) ==1018012== by 0x1EA00E71: poppler_document_get_creation_date_time (poppler-document.cc:1596)
-