Skip to content

Commit

Permalink
Override Poppler column spacing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
StevenMaude committed Nov 27, 2023
1 parent d65ef22 commit e7ebe4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ typedef std::unique_ptr<TextPage, decltype(&TextPageDecRef)> TextPagePtr;

TextPagePtr page_to_text_page(Page *page) {
auto dev = std::make_unique<TextOutputDev>(nullptr, true, 0, false, false);
// This value was changed in Poppler commit f20d9e5f739b7c8dce74ebc60a6dd1e06106c12e
// We retain the original value to keep outputs unchanged for now.
dev->setMinColSpacing1(0.3);

auto gfx = std::unique_ptr<Gfx>(
page->createGfx(dev.get(), 72.0, 72.0, 0, false, /* useMediaBox */
Expand Down

0 comments on commit e7ebe4e

Please sign in to comment.