RTTSoftware Support Forum

PDF-ShellTools => Bug reports => Topic started by: nightslayer23 on October 04, 2017, 04:15:05 AM

Title: Report paper sizes in use : NOT WORKING
Post by: nightslayer23 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)
Title: Re: Report paper sizes in use : NOT WORKING
Post by: RTT 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.