Skip to content
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

[Bug]: Some PDFs are blank in macOS Safari and Preview #1164

Open
rezafouladian opened this issue Oct 10, 2023 · 2 comments
Open

[Bug]: Some PDFs are blank in macOS Safari and Preview #1164

rezafouladian opened this issue Oct 10, 2023 · 2 comments
Assignees
Labels
bug third party issue Problem with a third party dependency

Comments

@rezafouladian
Copy link

rezafouladian commented Oct 10, 2023

Describe the bug

Some PDFs result in some or all pages being blank when viewed in Safari 17.0 or Preview on macOS 14.0 (not tested on other versions or platforms). The text still seems to be selectable but the page is blank otherwise. The PDFs do display properly in Adobe Acrobat on macOS.

Tests here were done with ocrmypdf 15.1.0 on macOS, but the issue was originally discovered on Paperless-ngx Docker running ocrmypdf 14.3.0.

Steps to reproduce

1. Run ocrmypdf -v1 --use-threads --jobs 24 --output-type pdfa --skip-text --clean --deskew --rotate-pages --rotate-pages-threshold 12.0 --sidecar sidecar.txt --no-progress-bar input.pdf output.pdf
2. Open output.pdf
3. Pages 1 and 2 display properly, but pages 3-7 are blank. Issue repeats on and off for the rest of the PDF.

Files

This file causes the issue: https://vintageapple.org/macworld/pdf/MacWorld_9105_May_1991.pdf

This one does not cause the issue: https://archive.org/details/MacWorld_9105_May_1991

How did you download and install the software?

Homebrew

OCRmyPDF version

15.1.0

Relevant log output

ocrmypdf 15.1.0
Running: ['unpaper', '--version']
Found unpaper 7.0.0
Running: ['tesseract', '--version']
Found tesseract 5.3.3
Running: ['tesseract', '--version']
Running: ['gs', '--version']
Found gs 10.2.0
Running: ['gs', '--version']
Running: ['tesseract', '--list-langs']
stdout/stderr = List of available languages in "/opt/homebrew/share/tessdata/" (3):
eng
osd
snum

pikepdf mmap disabled
os.symlink(/Users/User/Downloads/MacWorld_9105_May_1991.pdf, /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin)
os.symlink(/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin, /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf)
pikepdf mmap disabled
Using Tesseract OpenMP thread limit 1
Start processing 24 pages concurrently
pikepdf mmap disabled
pikepdf mmap disabled
    1 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=1', '-dLastPage=1', '-r300.000000x300.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
pikepdf mmap disabled
    2 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=2', '-dLastPage=2', '-r150.063994x150.063994', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
pikepdf mmap disabled
pikepdf mmap disabled
pikepdf mmap disabled
    3 skipping all processing on this page
pikepdf mmap disabled
pikepdf mmap disabled
pikepdf mmap disabled
    4 skipping all processing on this page
    5 skipping all processing on this page
pikepdf mmap disabled
    6 skipping all processing on this page
pikepdf mmap disabled
pikepdf mmap disabled
pikepdf mmap disabled
    7 skipping all processing on this page
pikepdf mmap disabled
    8 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=8', '-dLastPage=8', '-r300.000000x300.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
pikepdf mmap disabled
pikepdf mmap disabled
    9 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=9', '-dLastPage=9', '-r150.063966x150.063966', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
pikepdf mmap disabled
   10 skipping all processing on this page
pikepdf mmap disabled
pikepdf mmap disabled
   11 skipping all processing on this page
pikepdf mmap disabled
   12 skipping all processing on this page
pikepdf mmap disabled
   13 skipping all processing on this page
pikepdf mmap disabled
   14 skipping all processing on this page
pikepdf mmap disabled
   19 skipping all processing on this page
    6 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
   15 skipping all processing on this page
   16 skipping all processing on this page
   17 skipping all processing on this page
   18 skipping all processing on this page
pikepdf mmap disabled
   20 skipping all processing on this page
   21 skipping all processing on this page
   22 skipping all processing on this page
   23 skipping all processing on this page
   24 skipping all processing on this page
   25 skipping all processing on this page
   26 skipping all processing on this page
   27 skipping all processing on this page
   28 skipping all processing on this page
   29 skipping all processing on this page
   30 skipping all processing on this page
   31 skipping all processing on this page
   32 skipping all processing on this page
   33 skipping all processing on this page
   34 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=34', '-dLastPage=34', '-r300.000000x300.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
    6 Page rotation: (content, auto) -> page = (0, 0) -> 0
   35 skipping all processing on this page
   36 skipping all processing on this page
   37 skipping all processing on this page
   38 skipping all processing on this page
   39 skipping all processing on this page
   40 skipping all processing on this page
   41 skipping all processing on this page
   42 skipping all processing on this page
   43 skipping all processing on this page
   44 skipping all processing on this page
   45 skipping all processing on this page
   46 skipping all processing on this page
   47 skipping all processing on this page
   48 skipping all processing on this page
   49 skipping all processing on this page
   50 skipping all processing on this page
   51 skipping all processing on this page
   52 skipping all processing on this page
   53 skipping all processing on this page
    5 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
   54 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=54', '-dLastPage=54', '-r150.120239x150.120239', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   55 skipping all processing on this page
   56 skipping all processing on this page
   57 skipping all processing on this page
   58 skipping all processing on this page
   59 skipping all processing on this page
   60 skipping all processing on this page
   61 skipping all processing on this page
   62 skipping all processing on this page
   63 skipping all processing on this page
   64 skipping all processing on this page
   65 skipping all processing on this page
   66 skipping all processing on this page
   67 skipping all processing on this page
   68 skipping all processing on this page
   69 skipping all processing on this page
   70 skipping all processing on this page
   71 skipping all processing on this page
   72 skipping all processing on this page
    5 Page rotation: (content, auto) -> page = (0, 0) -> 0
   73 skipping all processing on this page
   74 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=74', '-dLastPage=74', '-r300.000000x300.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   75 skipping all processing on this page
   76 skipping all processing on this page
   77 skipping all processing on this page
   78 skipping all processing on this page
   79 skipping all processing on this page
   80 skipping all processing on this page
   81 skipping all processing on this page
   82 skipping all processing on this page
   83 skipping all processing on this page
   84 skipping all processing on this page
   85 skipping all processing on this page
   86 skipping all processing on this page
   87 skipping all processing on this page
   88 skipping all processing on this page
   89 skipping all processing on this page
   90 skipping all processing on this page
   91 skipping all processing on this page
   92 skipping all processing on this page
   93 skipping all processing on this page
   94 skipping all processing on this page
   95 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=95', '-dLastPage=95', '-r150.064405x150.064405', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   96 skipping all processing on this page
   97 skipping all processing on this page
   98 skipping all processing on this page
   99 skipping all processing on this page
  100 skipping all processing on this page
  101 skipping all processing on this page
    3 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  102 skipping all processing on this page
  103 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=103', '-dLastPage=103', '-r150.000000x150.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  104 skipping all processing on this page
  105 skipping all processing on this page
  106 skipping all processing on this page
  107 skipping all processing on this page
  108 skipping all processing on this page
  109 skipping all processing on this page
  110 skipping all processing on this page
  111 skipping all processing on this page
  112 skipping all processing on this page
  113 skipping all processing on this page
  114 skipping all processing on this page
  115 skipping all processing on this page
  116 skipping all processing on this page
  117 skipping all processing on this page
  118 skipping all processing on this page
  119 skipping all processing on this page
  120 skipping all processing on this page
  121 skipping all processing on this page
  122 skipping all processing on this page
  123 skipping all processing on this page
  124 skipping all processing on this page
  125 skipping all processing on this page
  126 skipping all processing on this page
  127 skipping all processing on this page
  128 skipping all processing on this page
  129 skipping all processing on this page
  130 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=130', '-dLastPage=130', '-r150.045951x150.045951', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  131 skipping all processing on this page
  132 skipping all processing on this page
  133 skipping all processing on this page
  134 skipping all processing on this page
  135 skipping all processing on this page
  136 skipping all processing on this page
  137 skipping all processing on this page
  140 skipping all processing on this page
  138 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=138', '-dLastPage=138', '-r300.000000x300.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  141 skipping all processing on this page
  142 skipping all processing on this page
  145 skipping all processing on this page
  143 skipping all processing on this page
  144 skipping all processing on this page
  146 skipping all processing on this page
  147 skipping all processing on this page
  148 skipping all processing on this page
  139 skipping all processing on this page
  149 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=149', '-dLastPage=149', '-r300.000000x300.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  150 skipping all processing on this page
  151 skipping all processing on this page
  160 skipping all processing on this page
  161 skipping all processing on this page
  162 skipping all processing on this page
  163 skipping all processing on this page
  164 skipping all processing on this page
  152 skipping all processing on this page
  153 skipping all processing on this page
  154 skipping all processing on this page
  155 skipping all processing on this page
  156 skipping all processing on this page
  157 skipping all processing on this page
  158 skipping all processing on this page
  165 skipping all processing on this page
    3 Page rotation: (content, auto) -> page = (0, 0) -> 0
  159 skipping all processing on this page
  166 skipping all processing on this page
  167 skipping all processing on this page
  168 skipping all processing on this page
  169 skipping all processing on this page
  174 skipping all processing on this page
  175 skipping all processing on this page
  176 skipping all processing on this page
  177 skipping all processing on this page
  178 skipping all processing on this page
  179 skipping all processing on this page
  180 skipping all processing on this page
  181 skipping all processing on this page
  182 skipping all processing on this page
  183 skipping all processing on this page
  184 skipping all processing on this page
  185 skipping all processing on this page
  186 skipping all processing on this page
  187 skipping all processing on this page
  188 skipping all processing on this page
  189 skipping all processing on this page
  170 skipping all processing on this page
  171 skipping all processing on this page
  190 skipping all processing on this page
  191 skipping all processing on this page
  192 skipping all processing on this page
  193 skipping all processing on this page
  194 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=194', '-dLastPage=194', '-r300.000000x300.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  195 skipping all processing on this page
  173 skipping all processing on this page
  197 skipping all processing on this page
  172 skipping all processing on this page
  198 skipping all processing on this page
  202 skipping all processing on this page
  196 skipping all processing on this page
    4 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
    4 Page rotation: (content, auto) -> page = (0, 0) -> 0
    7 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
    7 Page rotation: (content, auto) -> page = (0, 0) -> 0
  201 skipping all processing on this page
  199 skipping all processing on this page
  200 skipping all processing on this page
   10 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  207 skipping all processing on this page
  203 skipping all processing on this page
  210 skipping all processing on this page
  205 skipping all processing on this page
  206 skipping all processing on this page
  209 skipping all processing on this page
  204 skipping all processing on this page
  218 skipping all processing on this page
  211 skipping all processing on this page
  222 skipping all processing on this page
  223 skipping all processing on this page
  224 skipping all processing on this page
  225 skipping all processing on this page
  226 skipping all processing on this page
  227 skipping all processing on this page
  228 skipping all processing on this page
  229 skipping all processing on this page
  230 skipping all processing on this page
  231 skipping all processing on this page
  232 skipping all processing on this page
  233 skipping all processing on this page
  234 skipping all processing on this page
  235 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=jpeggray', '-dFirstPage=235', '-dLastPage=235', '-r150.064516x150.064516', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  212 skipping all processing on this page
  221 skipping all processing on this page
  219 skipping all processing on this page
  208 skipping all processing on this page
  220 skipping all processing on this page
  217 skipping all processing on this page
  216 skipping all processing on this page
  215 skipping all processing on this page
  213 skipping all processing on this page
   10 Page rotation: (content, auto) -> page = (0, 0) -> 0
  214 skipping all processing on this page
  236 skipping all processing on this page
  237 skipping all processing on this page
  238 skipping all processing on this page
  239 skipping all processing on this page
  240 skipping all processing on this page
  241 skipping all processing on this page
  242 skipping all processing on this page
  243 skipping all processing on this page
  244 skipping all processing on this page
  245 skipping all processing on this page
  246 skipping all processing on this page
  247 skipping all processing on this page
  248 skipping all processing on this page
  249 skipping all processing on this page
  250 skipping all processing on this page
  251 skipping all processing on this page
  252 skipping all processing on this page
  253 skipping all processing on this page
  254 skipping all processing on this page
  255 skipping all processing on this page
  256 skipping all processing on this page
  257 skipping all processing on this page
  258 skipping all processing on this page
  259 skipping all processing on this page
  260 skipping all processing on this page
  261 skipping all processing on this page
  262 skipping all processing on this page
  263 skipping all processing on this page
  264 skipping all processing on this page
   11 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  265 skipping all processing on this page
  266 skipping all processing on this page
  267 skipping all processing on this page
  268 skipping all processing on this page
  269 skipping all processing on this page
    2 Rotating output by 0
  272 skipping all processing on this page
  273 skipping all processing on this page
  274 skipping all processing on this page
  275 skipping all processing on this page
  276 skipping all processing on this page
  277 skipping all processing on this page
  278 skipping all processing on this page
  279 skipping all processing on this page
  280 skipping all processing on this page
  281 skipping all processing on this page
  282 skipping all processing on this page
  283 skipping all processing on this page
  284 skipping all processing on this page
  285 skipping all processing on this page
  286 skipping all processing on this page
  287 skipping all processing on this page
  288 skipping all processing on this page
  289 skipping all processing on this page
  290 skipping all processing on this page
  291 skipping all processing on this page
  292 skipping all processing on this page
  293 skipping all processing on this page
  294 skipping all processing on this page
  270 skipping all processing on this page
  301 skipping all processing on this page
  302 skipping all processing on this page
  303 skipping all processing on this page
  304 skipping all processing on this page
   54 Running: ['tesseract', '-l', 'osd', '--psm', '0', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000054_rasterize_preview.jpg', 'stdout']
  295 skipping all processing on this page
  271 skipping all processing on this page
  299 skipping all processing on this page
  297 skipping all processing on this page
   11 Page rotation: (content, auto) -> page = (0, 0) -> 0
  298 skipping all processing on this page
  300 skipping all processing on this page
  296 skipping all processing on this page
   12 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
   12 Page rotation: (content, auto) -> page = (0, 0) -> 0


  296 Page rotation: (content, auto) -> page = (0, 0) -> 0
  294 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  294 Page rotation: (content, auto) -> page = (0, 0) -> 0
    2 [tesseract] Too few characters. Skipping this page
    2 [tesseract] Too few characters. Skipping this page
    2 [tesseract] Error during processing.
    2 page is facing ⇧, confidence 0.00 - no change
    2 Rasterize with png16m, rotation 0
    2 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=2', '-dLastPage=2', '-r150.063994x150.063994', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   74 Running: ['tesseract', '-l', 'osd', '--psm', '0', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000074_rasterize_preview.jpg', 'stdout']
  103 Running: ['tesseract', '-l', 'osd', '--psm', '0', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000103_rasterize_preview.jpg', 'stdout']
  235 Running: ['tesseract', '-l', 'osd', '--psm', '0', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000235_rasterize_preview.jpg', 'stdout']
   54 page is facing ⇧, confidence 2.40 - no change
   54 Rasterize with png16m, rotation 0
   54 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=54', '-dLastPage=54', '-r150.120239x150.120239', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  138 Running: ['tesseract', '-l', 'osd', '--psm', '0', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000138_rasterize_preview.jpg', 'stdout']
  194 Running: ['tesseract', '-l', 'osd', '--psm', '0', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000194_rasterize_preview.jpg', 'stdout']
  149 Running: ['tesseract', '-l', 'osd', '--psm', '0', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000149_rasterize_preview.jpg', 'stdout']
  130 page is facing ⇧, confidence 3.84 - no change
  130 Rasterize with png16m, rotation 0
  130 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=130', '-dLastPage=130', '-r150.045951x150.045951', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  103 page is facing ⇧, confidence 7.11 - no change
  103 Rasterize with png16m, rotation 0
  103 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=103', '-dLastPage=103', '-r150.000000x150.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
    2 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000002_rasterize.png', 'stdout']
   95 page is facing ⇧, confidence 3.68 - no change
   95 Rasterize with png16m, rotation 0
   95 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=95', '-dLastPage=95', '-r150.064405x150.064405', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
  138 [tesseract] Too few characters. Skipping this page
  138 [tesseract] Error during processing.
  138 page is facing ⇧, confidence 0.00 - no change
  138 Rasterize with png16m, rotation 0
  138 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=138', '-dLastPage=138', '-r400.000000x400.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   54 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000054_rasterize.png', 'stdout']
    2 Deskew angle: 0.000
   34 [tesseract] Too few characters. Skipping this page
   34 [tesseract] Error during processing.
   34 page is facing ⇧, confidence 0.00 - no change
   34 Rasterize with png16m, rotation 0
   34 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=34', '-dLastPage=34', '-r400.000000x400.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
    2 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000002_rasterize.png', 'stdout']
   54 Deskew angle: 0.000
  235 page is facing ⇧, confidence 1.47 - no change
  235 Rasterize with png16m, rotation 0
  235 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=235', '-dLastPage=235', '-r150.064516x150.064516', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
    2 Deskew angle: 0.000
    9 page is facing ⇧, confidence 14.06 - rotation appears correct
    9 Rasterize with png16m, rotation 0
    9 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=9', '-dLastPage=9', '-r150.063966x150.063966', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   54 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000054_rasterize.png', 'stdout']
    2 Running: ['unpaper', '-v', '--dpi', '150.063994', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000002_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpnw_u5djq/output.pnm']
    8 page is facing ⇧, confidence 18.05 - rotation appears correct
    8 Rasterize with png16m, rotation 0
    8 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=8', '-dLastPage=8', '-r400.000000x400.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   54 Deskew angle: 0.000
    1 page is facing ⇧, confidence 2.42 - no change
    1 Rasterize with png16m, rotation 0
    1 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=1', '-dLastPage=1', '-r400.000000x400.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
    2 stdout/stderr = [image2 @ 0x120e04260] Encoder did not produce proper pts, making some up.
[image2 @ 0x120e04260] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpnw_u5djq/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x120e04260] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000002_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpnw_u5djq/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000002_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpnw_u5djq/output.pnm
sheet size: 1172x1631
...
noise-filter ... deleted 4 clusters.
blur-filter... deleted 0 pixels.
writing output.

  149 page is facing ⇧, confidence 1.00 - no change
  149 Rasterize with png16m, rotation 0
  149 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=149', '-dLastPage=149', '-r400.000000x400.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   54 Running: ['unpaper', '-v', '--dpi', '150.120239', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000054_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmps4pq1sqp/output.pnm']
    2 resolution (150.0632, 150.0632)
   54 stdout/stderr = [image2 @ 0x121e04260] Encoder did not produce proper pts, making some up.
[image2 @ 0x121e04260] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmps4pq1sqp/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x121e04260] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000054_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmps4pq1sqp/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000054_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmps4pq1sqp/output.pnm
sheet size: 1252x624
...
noise-filter ... deleted 21 clusters.
blur-filter... deleted 0 pixels.
writing output.

    2 convert
    2 PIL format = PNG
    2 imgformat = PNG
    2 input dpi = 150 x 150
    2 rotation = 0°
    2 input colorspace = RGB
    2 width x height = 1172px x 1631px
    2 read_images() embeds a PNG
    2 convert done
    2 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000002_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000002_ocr_tess', 'pdf', 'txt']
   74 page is facing ⇧, confidence 8.74 - no change
   74 Rasterize with png16m, rotation 0
   74 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=74', '-dLastPage=74', '-r400.000000x400.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
   54 resolution (150.114, 150.114)
  194 page is facing ⇧, confidence 6.55 - no change
  194 Rasterize with png16m, rotation 0
  194 Running: ['gs', '-dQUIET', '-dSAFER', '-dBATCH', '-dNOPAUSE', '-dInterpolateControl=-1', '-sDEVICE=png16m', '-dFirstPage=194', '-dLastPage=194', '-r400.000000x400.000000', '-dPDFSTOPONERROR', '-o', '-', '-sstdout=%stderr', '-dAutoRotatePages=/None', '-f', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/origin.pdf']
    2 Emplacement update
    2 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
    2 Grafting
    2 Page rotation: (content, auto) -> page = (0, 0) -> 0
   95 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000095_rasterize.png', 'stdout']
   54 convert
   54 PIL format = PNG
   54 imgformat = PNG
   54 input dpi = 150 x 150
   54 rotation = 0°
   54 input colorspace = RGB
   54 width x height = 1252px x 624px
   54 read_images() embeds a PNG
   54 convert done
   54 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000054_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000054_ocr_tess', 'pdf', 'txt']
   95 Deskew angle: -0.063
   54 [tesseract] lots of diacritics - possibly poor OCR
   54 Emplacement update
   54 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
   54 Grafting
   54 Page rotation: (content, auto) -> page = (0, 0) -> 0
  235 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000235_rasterize.png', 'stdout']
  103 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000103_rasterize.png', 'stdout']
  103 Deskew angle: 1.071
  235 Deskew angle: 0.000
  130 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000130_rasterize.png', 'stdout']
   95 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000095_rasterize.png', 'stdout']
    9 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000009_rasterize.png', 'stdout']
  130 Deskew angle: 0.000
   95 Deskew angle: -0.063
    9 Deskew angle: 0.395
  235 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000235_rasterize.png', 'stdout']
  235 Deskew angle: 0.000
   95 Running: ['unpaper', '-v', '--dpi', '150.064405', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000095_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpg744ixc8/output.pnm']
  103 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000103_rasterize.png', 'stdout']
  130 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000130_rasterize.png', 'stdout']
  103 Deskew angle: 1.071
  235 Running: ['unpaper', '-v', '--dpi', '150.064516', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000235_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmp8e49lc2o/output.pnm']
    9 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000009_rasterize.png', 'stdout']
  130 Deskew angle: 0.000
    9 Deskew angle: 0.395
   95 stdout/stderr = [image2 @ 0x11b604440] Encoder did not produce proper pts, making some up.
[image2 @ 0x11b604440] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpg744ixc8/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x11b604440] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000095_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpg744ixc8/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000095_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpg744ixc8/output.pnm
sheet size: 1165x1624
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 0 pixels.
writing output.

  235 stdout/stderr = [image2 @ 0x12e804080] Encoder did not produce proper pts, making some up.
[image2 @ 0x12e804080] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmp8e49lc2o/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x12e804080] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000103_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmp12fyhvyk/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000103_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmp12fyhvyk/output.pnm
sheet size: 1166x1621
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 0 pixels.
writing output.

  235 convert
  235 PIL format = PNG
  235 imgformat = PNG
  235 input dpi = 150 x 150
  235 rotation = 0°
  235 input colorspace = RGB
  235 width x height = 1163px x 1628px
  235 read_images() embeds a PNG
  130 stdout/stderr = [image2 @ 0x104404080] Encoder did not produce proper pts, making some up.
[image2 @ 0x104404080] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpky7ebsqx/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x104404080] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000009_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmph6h7efd3/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000009_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmph6h7efd3/output.pnm
sheet size: 1173x1630
...
noise-filter ... deleted 1 clusters.
blur-filter... deleted 0 pixels.
writing output.

  103 resolution (150.01239999999999, 150.01239999999999)
  130 resolution (150.0378, 150.0378)
    9 resolution (150.0632, 150.0632)
  235 Emplacement update
  235 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  235 Grafting
  235 Page rotation: (content, auto) -> page = (0, 0) -> 0
  103 convert
  103 PIL format = PNG
  103 imgformat = PNG
  103 input dpi = 150 x 150
  103 rotation = 0°
  103 input colorspace = RGB
  103 width x height = 1166px x 1621px
  103 read_images() embeds a PNG
  103 convert done
  103 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000103_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000103_ocr_tess', 'pdf', 'txt']
   95 Emplacement update
   95 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
   95 Grafting
   95 Page rotation: (content, auto) -> page = (0, 0) -> 0
  103 [tesseract] lots of diacritics - possibly poor OCR
  103 Emplacement update
  103 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  103 Grafting
  103 Page rotation: (content, auto) -> page = (0, 0) -> 0
  130 convert
  130 PIL format = PNG
  130 imgformat = PNG
  130 input dpi = 150 x 150
    9 convert
    9 PIL format = PNG
    9 imgformat = PNG
    9 input dpi = 150 x 150
  130 rotation = 0°
  130 input colorspace = RGB
  130 width x height = 1168px x 1632px
  130 read_images() embeds a PNG
  130 convert done
  130 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000130_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000130_ocr_tess', 'pdf', 'txt']
    9 rotation = 0°
    9 input colorspace = RGB
    9 width x height = 1173px x 1630px
    9 read_images() embeds a PNG
    9 convert done
    9 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000009_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000009_ocr_tess', 'pdf', 'txt']
  130 Emplacement update
  130 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  130 Grafting
  130 Page rotation: (content, auto) -> page = (0, 0) -> 0
    1 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000001_rasterize.png', 'stdout']
    9 Emplacement update
    9 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
    9 Grafting
    9 Page rotation: (content, auto) -> page = (0, 0) -> 0
    1 Deskew angle: 0.000
   34 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000034_rasterize.png', 'stdout']
   74 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000074_rasterize.png', 'stdout']
    8 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000008_rasterize.png', 'stdout']
   34 Deskew angle: 0.000
  149 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000149_rasterize.png', 'stdout']
   74 Deskew angle: 0.298
    8 Deskew angle: 0.029
  149 Deskew angle: 0.000
    1 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000001_rasterize.png', 'stdout']
  138 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000138_rasterize.png', 'stdout']
  194 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000194_rasterize.png', 'stdout']
    1 Deskew angle: 0.000
  194 Deskew angle: -0.189
  138 Deskew angle: 0.476
   34 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000034_rasterize.png', 'stdout']
   34 Deskew angle: 0.000
   74 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000074_rasterize.png', 'stdout']
  149 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000149_rasterize.png', 'stdout']
    1 Running: ['unpaper', '-v', '--dpi', '400.0', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000001_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpxzahxcq6/output.pnm']
    8 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000008_rasterize.png', 'stdout']
  149 Deskew angle: 0.000
   74 Deskew angle: 0.298
    8 Deskew angle: 0.029
   34 Running: ['unpaper', '-v', '--dpi', '400.0', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000034_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmp7x9t8shh/output.pnm']
    1 stdout/stderr = [image2 @ 0x122904080] Encoder did not produce proper pts, making some up.
[image2 @ 0x122904080] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpxzahxcq6/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x122904080] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000001_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpxzahxcq6/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000001_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpxzahxcq6/output.pnm
sheet size: 3132x4347
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 0 pixels.
writing output.

  194 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000194_rasterize.png', 'stdout']
   34 stdout/stderr = [image2 @ 0x116004080] Encoder did not produce proper pts, making some up.
[image2 @ 0x116004080] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmp7x9t8shh/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x116004080] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000034_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmp7x9t8shh/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000034_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmp7x9t8shh/output.pnm
sheet size: 3133x4345
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 57 pixels.
writing output.

  138 Running: ['tesseract', '-l', 'eng', '--psm', '2', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000138_rasterize.png', 'stdout']
  194 Deskew angle: -0.189
  149 Running: ['unpaper', '-v', '--dpi', '400.0', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000149_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpo324jae2/output.pnm']
   74 Running: ['unpaper', '-v', '--dpi', '400.0', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000074_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpq43wtrkb/output.pnm']
  138 Deskew angle: 0.476
    1 resolution (399.9992, 399.9992)
    8 Running: ['unpaper', '-v', '--dpi', '400.0', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000008_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpozhscxcf/output.pnm']
   34 resolution (399.9992, 399.9992)
  149 stdout/stderr = [image2 @ 0x130504080] Encoder did not produce proper pts, making some up.
[image2 @ 0x130504080] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpo324jae2/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x130504080] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000149_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpo324jae2/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000149_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpo324jae2/output.pnm
sheet size: 3108x4347
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 0 pixels.
writing output.

    1 convert
    1 PIL format = PNG
    1 imgformat = PNG
    1 input dpi = 400 x 400
    1 rotation = 0°
    1 input colorspace = RGB
    1 width x height = 3132px x 4347px
    1 read_images() embeds a PNG
    1 convert done
    1 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000001_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000001_ocr_tess', 'pdf', 'txt']
   74 stdout/stderr = [image2 @ 0x15be05170] Encoder did not produce proper pts, making some up.
[image2 @ 0x15be05170] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpq43wtrkb/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x15be05170] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000074_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpq43wtrkb/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000074_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpq43wtrkb/output.pnm
sheet size: 3121x4345
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 0 pixels.
writing output.

    8 stdout/stderr = [image2 @ 0x12dd04080] Encoder did not produce proper pts, making some up.
[image2 @ 0x12dd04080] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpozhscxcf/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x12dd04080] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000008_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpozhscxcf/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000008_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpozhscxcf/output.pnm
sheet size: 3137x4355
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 0 pixels.
writing output.

   34 convert
   34 PIL format = PNG
   34 imgformat = PNG
   34 input dpi = 400 x 400
   34 rotation = 0°
   34 input colorspace = RGB
   34 width x height = 3133px x 4345px
   34 read_images() embeds a PNG
   34 convert done
   34 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000034_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000034_ocr_tess', 'pdf', 'txt']
  194 Running: ['unpaper', '-v', '--dpi', '400.0', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000194_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpvz3grf59/output.pnm']
    1 [tesseract] lots of diacritics - possibly poor OCR
    1 Emplacement update
    1 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
    1 Grafting
    1 Page rotation: (content, auto) -> page = (0, 0) -> 0
  138 Running: ['unpaper', '-v', '--dpi', '400.0', '--layout', 'none', '--mask-scan-size', '100', '--no-border-align', '--no-mask-center', '--no-grayfilter', '--no-blackfilter', '--no-deskew', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000138_pp_deskew.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpugt3sqd2/output.pnm']
  149 resolution (399.9992, 399.9992)
   34 Emplacement update
   34 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
   34 Grafting
   34 Page rotation: (content, auto) -> page = (0, 0) -> 0
   74 resolution (399.9992, 399.9992)
    8 resolution (399.9992, 399.9992)
  194 stdout/stderr = [image2 @ 0x12be04290] Encoder did not produce proper pts, making some up.
[image2 @ 0x12be04290] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpvz3grf59/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x12be04290] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000194_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpvz3grf59/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000194_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpvz3grf59/output.pnm
sheet size: 3109x4345
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 0 pixels.
writing output.

  138 stdout/stderr = [image2 @ 0x156f04260] Encoder did not produce proper pts, making some up.
[image2 @ 0x156f04260] The specified filename '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpugt3sqd2/output.pnm' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x156f04260] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
unpaper 7.0.0
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000138_pp_deskew.png -> /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpugt3sqd2/output.pnm
input-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000138_pp_deskew.png
output-file for sheet 1: /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/tmpugt3sqd2/output.pnm
sheet size: 3113x4357
...
noise-filter ... deleted 0 clusters.
blur-filter... deleted 0 pixels.
writing output.

  149 convert
  149 PIL format = PNG
  149 imgformat = PNG
  149 input dpi = 400 x 400
  149 rotation = 0°
  149 input colorspace = RGB
  149 width x height = 3108px x 4347px
  149 read_images() embeds a PNG
  149 convert done
  149 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000149_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000149_ocr_tess', 'pdf', 'txt']
   74 convert
   74 PIL format = PNG
   74 imgformat = PNG
   74 input dpi = 400 x 400
   74 rotation = 0°
   74 input colorspace = RGB
   74 width x height = 3121px x 4345px
   74 read_images() embeds a PNG
   74 convert done
   74 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000074_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000074_ocr_tess', 'pdf', 'txt']
  149 Emplacement update
  149 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  149 Grafting
  149 Page rotation: (content, auto) -> page = (0, 0) -> 0
    8 convert
    8 PIL format = PNG
    8 imgformat = PNG
    8 input dpi = 400 x 400
    8 rotation = 0°
    8 input colorspace = RGB
    8 width x height = 3137px x 4355px
    8 read_images() embeds a PNG
    8 convert done
    8 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000008_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000008_ocr_tess', 'pdf', 'txt']
  194 resolution (399.9992, 399.9992)
   74 [tesseract] lots of diacritics - possibly poor OCR
   74 Emplacement update
   74 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
   74 Grafting
   74 Page rotation: (content, auto) -> page = (0, 0) -> 0
    8 Emplacement update
    8 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
    8 Grafting
    8 Page rotation: (content, auto) -> page = (0, 0) -> 0
  138 resolution (399.9992, 399.9992)
  194 convert
  194 PIL format = PNG
  194 imgformat = PNG
  194 input dpi = 400 x 400
  194 rotation = 0°
  194 input colorspace = RGB
  194 width x height = 3109px x 4345px
  194 read_images() embeds a PNG
  194 convert done
  194 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000194_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000194_ocr_tess', 'pdf', 'txt']
  194 Emplacement update
  194 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  194 Grafting
  194 Page rotation: (content, auto) -> page = (0, 0) -> 0
  138 convert
  138 PIL format = PNG
  138 imgformat = PNG
  138 input dpi = 400 x 400
  138 rotation = 0°
  138 input colorspace = RGB
  138 width x height = 3113px x 4357px
  138 read_images() embeds a PNG
  138 convert done
  138 Running: ['tesseract', '-l', 'eng', '-c', 'textonly_pdf=1', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000138_ocr.png', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/000138_ocr_tess', 'pdf', 'txt']
  138 Emplacement update
  138 Text rotation: (text, autorotate, content) -> text misalignment = (0, 0, 0) -> 0
  138 Grafting
  138 Page rotation: (content, auto) -> page = (0, 0) -> 0
/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/sidecar.txt -> sidecar.txt
Postprocessing...
os.symlink(/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/graft_layers.pdf, /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/fix_docinfo.pdf)
Running: ['gs', '--version']
Running: ['gs', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-dCompatibilityLevel=1.6', '-sDEVICE=pdfwrite', '-dAutoRotatePages=/None', '-sColorConversionStrategy=LeaveColorUnchanged', '-dPDFSTOPONERROR', '-dAutoFilterColorImages=true', '-dAutoFilterGrayImages=true', '-dJPEGQ=95', '-dPDFA=2', '-dPDFACompatibilityPolicy=1', '-o', '-', '-sstdout=%stderr', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/fix_docinfo.pdf', '/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/pdfa.ps']
GPL Ghostscript 10.02.0 (2023-09-13)
Copyright (C) 2023 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 304.


Running: ['tesseract', '--version']
Some input metadata could not be copied because it is not permitted in PDF/A. You may wish to examine the output PDF's XMP metadata.
The following metadata fields were not copied: {'{http://ns.adobe.com/xap/1.0/}MetadataDate', '{http://ns.adobe.com/xap/1.0/mm/}InstanceID', '{http://purl.org/dc/elements/1.1/}subject', '{http://ns.adobe.com/pdfx/1.3/}PXCViewerInfo'}


Optimizable images: JBIG2 groups: 0
os.symlink(/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/optimize.opt.pdf, /var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/optimize.pdf)
Running: ['jbig2', '--version']
Running: ['pngquant', '--version']
Image optimization ratio: 1.00 savings: 0.5%
Total file size ratio: 1.00 savings: -0.3%
/var/folders/5t/lq2_h4sd5tqfz9d3jhbyxgvh0000gn/T/ocrmypdf.io.7jw6gzj_/optimize.pdf -> test2.pdf
Output file is a PDF/A-2B (as expected)

[Some text was removed due to GitHub character limit]
@jbarlow83
Copy link
Collaborator

jbarlow83 commented Oct 11, 2023

Currently it looks like Ghostscript 10 produces some PDFs that render some blank pages, specifically and only on macOS Preview and Safari (same internal renderer).

These viewers do not have the same issue:

  • Evince
  • Chromium / pdfium
  • Firefox / pdf.js (including on macOS)
  • Master PDF Editor
  • Ghostscript -sDEVICE=png16m
  • MuPDF
  • Foxit
  • Acrobat

It does not matter which OS produces the PDF. If Ghostscript 10 is used, and blank pages appear in Preview.

Preview gives no Console output or error messages of any kind. This will be loads of fun for all concerned.

@jbarlow83 jbarlow83 added the third party issue Problem with a third party dependency label Oct 11, 2023
@jbarlow83
Copy link
Collaborator

Acrobat Preflight reports invalid operand and unknown operator on page 8, 74 for Ghostscript 10-produced files and not Ghostscript 9. But these aren't the pages with display issues. Of course, it doesn't actually say what the error is in detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug third party issue Problem with a third party dependency
Projects
None yet
Development

No branches or pull requests

2 participants