xpopplehttp://offog.org/git/xpopple.atomgitatom2024-03-03T22:57:32Zhttp://offog.org/git/xpopple.git#ada7b0da677ed9031b0deadc045b5b24ac5d2ad72024-03-03T22:57:32Z2024-03-03T22:57:32ZAdd Poppler 24.03.0.Add Poppler 24.03.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#1bb415c30cbcafcd703d023025dc416ab89b3fd92024-02-02T13:59:36Z2024-02-02T13:59:36ZAdd Poppler 24.02.0.Add Poppler 24.02.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#0698734c46d6414c5285d9fa985c3bd4e380aaa82024-02-02T13:58:46Z2024-02-02T13:58:46ZOutlineItem's title is a vector in Poppler 24.02.OutlineItem's title is a vector in Poppler 24.02.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#a54f4ec20ccf406de5b21c244d44a90c66adae442024-01-24T17:57:53Z2024-01-24T17:57:53ZCache rendered TextPages when searching.Cache rendered TextPages when searching.
In Debian bug 1061423, Vincent Lefevre reported that Zathura is faster
when searching the same PDF multiple times than xpopple.
Zathura uses the poppler-glib bindings, which implement searching in
roughly the same way as xpopple, but have a cache of TextPage objects so
that the same page doesn't need to be rendered multiple times.
Implement the same idea in PDFCore.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#b0106fe3c38137aa8e0b79f8dfeaa606c2b078b32024-01-18T00:08:49Z2024-01-18T00:08:49ZCreate a new TextOutputDev for each page being searched.Create a new TextOutputDev for each page being searched.
This works around a bug in TextOutputDev::takeText.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#9553ba8644f65b7248eaef47535a51a6602a1ba92024-01-03T13:20:25Z2024-01-03T13:20:25ZAdd Poppler 24.01.0.Add Poppler 24.01.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#43b1b68fbf008c805cef83ffcf79d8eb24cb210b2023-12-13T18:51:48Z2023-12-13T18:51:48ZDo "find next" if the Find button is pressed again.Do "find next" if the Find button is pressed again.
Previously, opening the Find window and pressing Find multiple times
would start a new search each time, starting from the position of the
last match. This doesn't always produce the same results as "find next";
in particular, it can skip over valid matches.
Add a callback to detect when the search parameters have actually been
changed; if not, then pressing Find does the equivalent of "find next".
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#9ff15ed56d7700b37ee439b56bed17e701d60b232023-12-13T18:29:05Z2023-12-13T18:29:05ZUse ignoreDiacritics and matchAcrossLines when searching.Use ignoreDiacritics and matchAcrossLines when searching.
These options to TextPage::findText were added in Poppler 0.73.0 and
21.05.0 respectively. The TextOutputDevice::findText wrapper doesn't
have them, so PDFCore must take the TextPage pointer.
Add a wrapper function for findText to avoid having five sets of
conditionals.
Suggested by Vincent Lefevre in Debian bug 1058619.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#b901abc81ec5291e59b8d2c3f601a67ed5d248cd2023-12-13T17:22:59Z2023-12-13T17:22:59ZRe-enable the wholeWord option in PDFCore::findU.Re-enable the wholeWord option in PDFCore::findU.
This was disabled by an old Debian patch ("use poppler's findtext api").
I'm not sure why, and it works correctly with current Poppler.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#7ddfef745f8b4ff1f8f76e80379e84bd36fe3e8c2023-12-13T16:50:34Z2023-12-13T16:50:34ZUse unique_ptr in PDFCore::findU.Use unique_ptr in PDFCore::findU.
This avoids several deletes.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#f68685b6621254c8936fad1e264abf14a19355e82023-12-01T18:03:13Z2023-12-01T18:03:13ZAdd Poppler 23.12.0.Add Poppler 23.12.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#48e2112c691aad2184f6c89012795812e64c873e2023-11-02T11:00:00Z2023-11-02T11:00:00ZAdd Poppler 23.11.0.Add Poppler 23.11.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#f0f06f7102389bc11e77c0c58a54c5978edae0b32023-10-03T05:16:50Z2023-10-03T05:16:50ZAdd Poppler 23.10.0.Add Poppler 23.10.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#6ea4f29efeed9cc7d73dab0ff2627bc21d9c304b2023-09-05T23:32:10Z2023-09-05T23:32:10ZAdd Poppler 23.09.0.Add Poppler 23.09.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#9c3c67e5edcaa818058f6384c73e728cd901d5cd2023-08-01T22:41:11Z2023-08-01T22:41:11ZDon't warn about *fontList, handled by Motif.Don't warn about *fontList, handled by Motif.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#59346962a74bb5137c691c551d264c4c809322382023-08-01T22:32:07Z2023-08-01T22:32:07ZAdd Poppler 23.08.0.Add Poppler 23.08.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#391f90f9e1f205afd51321a6b5e3cc4ab97e90f52023-07-03T23:53:09Z2023-07-03T23:53:09ZAdd Poppler 23.07.0.Add Poppler 23.07.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#68c4bf846f1cd692a5392ea3834b3932cd5455622023-06-05T11:49:50Z2023-06-05T11:49:50ZAdd Poppler 23.06.0.Add Poppler 23.06.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#b3da18bb16b2f0464dd7dc2c54b94aab021bd36a2023-06-05T11:49:02Z2023-06-05T11:49:02ZGlobalParams::addFontFile takes std::strings in Poppler 23.06.GlobalParams::addFontFile takes std::strings in Poppler 23.06.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#4bed1f9b7e367cf89ffff6a8c7b3f80687b2cb9a2023-05-02T22:59:40Z2023-05-02T22:59:40ZAdd Poppler 23.05.0.Add Poppler 23.05.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#7f1dfcaa8cac59cee5c05f6c51c00a74ee63f0a92023-04-02T13:36:38Z2023-04-02T13:36:38ZAdd Poppler 23.04.0.Add Poppler 23.04.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#979ad1e7c13092da3aecd5c053963724e4d490072023-03-01T23:02:59Z2023-03-01T23:02:59ZAdd Poppler 23.03.0.Add Poppler 23.03.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#b8f12bec8b9feded0370c3f5f6e8343264e898292023-02-01T20:44:25Z2023-02-01T20:44:25ZAdd Poppler 23.02.0.Add Poppler 23.02.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#75f17ad8dab2ddcfe62edfe80a526152be3b0cfa2023-01-02T00:29:05Z2023-01-02T00:29:05ZAdd Poppler 23.01.0.Add Poppler 23.01.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#43d251e248c5f4591621452fa6521825c83ffd1e2022-12-02T00:16:13Z2022-12-02T00:16:13ZAdd Poppler 22.12.0.Add Poppler 22.12.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#e707cd4c695c19212e5309c9a8ffbf2acfbc73a42022-11-01T10:49:30Z2022-11-01T10:49:30ZAdd Poppler 22.11.0.Add Poppler 22.11.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#979efbe9e363f419b235ec178903241ff615d2e22022-10-03T17:21:07Z2022-10-03T17:21:07ZAdd Poppler 22.10.0.Add Poppler 22.10.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#2229941bfaa12dd23ea482e6ba356f57a2686cb72022-09-01T03:54:13Z2022-09-01T03:54:13ZAdd Poppler 22.09.0.Add Poppler 22.09.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#7970f00f89ea930339bb2ea68ab8c9423a0b86fd2022-08-02T01:09:10Z2022-08-02T01:09:10ZAdd Poppler 22.08.0.Add Poppler 22.08.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#8e334e449257d1783a805763136209fd8bd367ad2022-07-04T20:15:03Z2022-07-04T20:15:03ZAdd Poppler 22.07.0.Add Poppler 22.07.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#199e0a0fbaf3883a4a83c7a328ced92d8fd05f2b2022-06-01T16:37:06Z2022-06-01T16:37:06ZAdd Poppler 22.06.0.Add Poppler 22.06.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#4f7d7836cd3b0a0e4de462b5c5d867db5579efa92022-05-03T22:46:32Z2022-05-03T22:46:32ZAdd Poppler 22.05.0.Add Poppler 22.05.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#e27887ee32ef1b422ac024d894969f57a2321bc42022-05-03T22:45:06Z2022-05-03T22:45:06ZLinks::getNumLinks/getLink were removed in Poppler 22.05.Links::getNumLinks/getLink were removed in Poppler 22.05.
There's now an accessor for the underlying vector instead.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#6a0b1e8b8ae4109e5586960bc7e3f4bef9072d192022-04-01T16:52:18Z2022-04-01T16:52:18ZAdd Poppler 22.04.0.Add Poppler 22.04.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#099ad0b8f890e5f10dccfd18c5634acff99134272022-03-02T01:11:09Z2022-03-02T01:11:09ZBuild as C++14 or C++17 as appropriate.Build as C++14 or C++17 as appropriate.
xpoppler only needs C++14 itself, but recent versions of the Poppler
headers need C++17.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#33e34c2b789c43072c7d8febcc3441b2fbc7b9eb2022-03-02T00:35:41Z2022-03-02T00:35:41ZAdd Poppler 22.03.0.Add Poppler 22.03.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#12b957adc1e0ef45f88be1fd383a987c037f82162022-03-02T00:32:18Z2022-03-02T00:32:18ZPDFDoc::saveAs takes a GooString & (not *) in Poppler 22.03.PDFDoc::saveAs takes a GooString & (not *) in Poppler 22.03.
There's no need to heap-allocate the GooString in any version.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#99ae6895c6a7b04faba7260b0f21e69813399bd62022-03-02T00:26:58Z2022-03-02T00:26:58ZLinkDest::copy was removed in Poppler 22.03.LinkDest::copy was removed in Poppler 22.03.
In all previous versions of Poppler, it was just a call to the copy
constructor, so we can do that instead.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#6bf24d8cefd5c326f966428c7b72dee27fa746f22022-03-02T00:19:22Z2022-03-02T00:19:22ZPDFDoc::PDFDoc's constructor args changed in Poppler 22.03.PDFDoc::PDFDoc's constructor args changed in Poppler 22.03.
I've split these into two separate #defines in case they change again.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#3f1395b38b0ceecb03e185cd6464a56c1d84826f2022-03-01T23:46:01Z2022-03-01T23:46:01ZRemove unused loadFile methods.Remove unused loadFile methods.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#d1edb66ddef22d9fc3f083ab6f49258c85f365a62022-03-01T23:39:48Z2022-03-01T23:39:48ZuserGS should be userPassword, not ownerPassword.userGS should be userPassword, not ownerPassword.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#c1f64b885785c2d9027b0170e33862bc3175f1df2022-02-01T23:40:36Z2022-02-01T23:40:36ZAdd Poppler 22.02.0.Add Poppler 22.02.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#730cb62213cd0097251eaff1e987ed6a37b3dc4f2022-01-05T15:19:19Z2022-01-05T15:19:19ZAdd Poppler 22.01.0.Add Poppler 22.01.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#5a4830dc9740bfc9fa907c544042bbefe5905a062021-12-01T20:14:01Z2021-12-01T20:14:01ZMake -font correspond to font, not fontList.Make -font correspond to font, not fontList.
The documentation implies that it should be a single font, and fontList
doesn't always work to override default rendering settings in Motif.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#8848a64d9c170cd6a97eb8e9e7d09d031bbedba22021-12-01T19:46:56Z2021-12-01T19:46:56ZAdd a section on configuring the user interface fonts.Add a section on configuring the user interface fonts.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#bf231c1270f794b93ba1c9d810fd4ec88e6253082021-12-01T19:38:42Z2021-12-01T19:38:42ZAdd Poppler 21.12.0.Add Poppler 21.12.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#64ed5c99aa70eb6849c187509f104ebca6a8f1152021-11-01T17:39:12Z2021-11-01T17:39:12ZAdd Poppler 21.11.0.Add Poppler 21.11.0.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#a30048fafd42467771c6e7cdf45948e422793c692021-11-01T17:37:58Z2021-11-01T17:37:58ZSome options moved to PSOutputDev in Poppler 21.11.0.Some options moved to PSOutputDev in Poppler 21.11.0.
These are now stored in XPDFParams, and set in either GlobalParams or
PSOutputDev when the PSOutputDev is constructed.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#f5ca89e0416dba28c52bf721c6581118d069b56a2021-11-01T17:03:26Z2021-11-01T17:03:26ZPDFDoc::getLinks returns a unique_ptr in Poppler 21.11.PDFDoc::getLinks returns a unique_ptr in Poppler 21.11.
We were already storing the result into a unique_ptr, so use assignment
rather than reset.
Adam Sampsonats@offog.orghttp://offog.org/git/xpopple.git#7a9f58c0e4b06bf177d51c3f723ccd4c3fc061ca2021-10-21T00:09:24Z2021-10-21T00:09:24ZStyle the About text with resources rather than rendition tags.Style the About text with resources rather than rendition tags.
If the user has specified an Xpdf*font: resource, OpenMotif 2.3.8 won't
have loaded the Xft font for the renderTable, and ends up dereferencing
NULL internally when laying out the widget.
Reported by Vincent Lefevre in Debian bug 996832, and by Eugene
Berdnikov in Debian bug 996903.
Adam Sampsonats@offog.org