-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CCITTStream regression by byte-aligning rows before checking EOL marker #5729
Conversation
6bc981c
to
27e3558
Compare
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/435fdf1a9176ca0/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/435fdf1a9176ca0/output.txt Total script time: 0.80 mins Published |
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/ce69f3fe29aa66f/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/6b5728fa20f1699/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/6b5728fa20f1699/output.txt Total script time: 17.56 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/ce69f3fe29aa66f/output.txt Total script time: 23.38 mins
|
I can confirm that this fixes the regression, and I'm impressed with the quick turnaround, however I'm a bit nervous about this patch ;-) |
@Snuffleupagus I should indeed have mentioned that! I have tested all PDF files from the following issues:
All those PDFs render fine with this patch. The ones that were already fixed render the same with this patch and the one from your issue now renders completely with this patch. |
I figured that you did test them, but I just wanted to make sure. Thank you! /botio makeref |
From: Bot.io (Linux)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/141964a4dee7f07/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/0347e4c8b711f05/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/0347e4c8b711f05/output.txt Total script time: 1.08 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/141964a4dee7f07/output.txt Total script time: 22.98 mins
|
Fix CCITTStream regression by byte-aligning rows before checking EOL marker
Fix CCITTStream regression by byte-aligning rows before checking EOL marker
Fixes #5726.
It turns out that byte-aligning rows needs to happen before checking for an EOL marker. Older versions of the Poppler code did this (https://github.com/davidben/poppler/blob/master/poppler/Stream.cc#L1642), as well as libpdf++ (https://github.com/match41/sumpdf/blob/master/libpdfdoc/src/stream/CCITTFaxStream.cc#L403).