Skip to content

Update to Poppler 22.03.0#267

Merged
StevenMaude merged 6 commits intomainfrom
poppler-22.03.0
Nov 27, 2023
Merged

Update to Poppler 22.03.0#267
StevenMaude merged 6 commits intomainfrom
poppler-22.03.0

Conversation

@StevenMaude
Copy link
Copy Markdown
Contributor

No description provided.

Poppler changed to this as of 21.12.0.
This uses the sensiblecodeio fork with two reverted commits:

* right-to-left text ordering
* rotated text handling

Both of these change outputs of pdf2msgpack substantially. They can be
reviewed later to see if the pdf2msgpack code can be changed to retain
this existing behaviour, while removing the reverts.
`std::optional` for font name:
https://gitlab.freedesktop.org/poppler/poppler/-/commit/996dfb015f5567cdaf191c127c2cf804f852d80b

The C++ 17 standard allows checking this with `value_or`, so we don't
need the `?` if…then…else construct.

`Catalog::embeddedFile`:
https://gitlab.freedesktop.org/poppler/poppler/-/commit/beb5519f723cd84d8d4afa989118df5fffbe50fb?merge_request_iid=1064
The default value was changed in Poppler commit f20d9e5f739b7c8dce74ebc60a6dd1e06106c12e.

It is overridable, so we should change it back to what it was for now,
to keep outputs unchanged.
Comment thread src/main.cpp
Comment on lines +523 to +525
// Original
// GooString goo_filename(filename.c_str());
// auto file = GooFile::open(&goo_filename);
Copy link
Copy Markdown
Contributor Author

@StevenMaude StevenMaude Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed, but I'll do that in another PR as I've tested with the code as it is in this current PR, and the SHA256 of the binary might change (although it's a comment, so it should be stripped out).

@StevenMaude StevenMaude merged commit 1a915c0 into main Nov 27, 2023
@StevenMaude StevenMaude deleted the poppler-22.03.0 branch November 27, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant