Author Topic: Report paper sizes in use : NOT WORKING  (Read 238 times)

0 Members and 1 Guest are viewing this topic.

nightslayer23

  • Newbie
  • *
  • Posts: 35
Report paper sizes in use : NOT WORKING
« on: October 04, 2017, 04:15:05 AM »
Usually I trust this tool to a T but now it seems I maybe can't...

I tried a bunch of 41 pdfs and got a dramatically under par assessment of how many pages there is.

I have attached the example as both "split by pdf sizes" and the combined file. Same results!

link to files: (SIC)

RTT

  • Administrator
  • *****
  • Posts: 778
Re: Report paper sizes in use : NOT WORKING
« Reply #1 on: October 04, 2017, 11:53:03 PM »
There is indeed a nasty bug in the code! The attached script should have it fixed. I've included code to check the total number of pages reported with the total number of pages processed, that outputs an error messages if a discrepancy exist (to alert for any other flaw the algorithm may have). Try it against a big number of PDFs, and let me know if any error message shows up.