stapler
stapler copied to clipboard
Trailing "1" in list-logical output
I am running the latest git version on current Arch Linux. For some PDF files, the output of list-logical is sane. For other files, the output is:
11 1
21 2
31 3
41 4
51 5
61 6
71 7
81 8
91 9
101 10
And for yet some others, the output is:
i1 1
ii1 2
11 3
21 4
31 5
41 6
51 7
61 8
71 9
81 10
91 11
101 12
That sounds very confusing. Are you sure that this is not just broken PDF files where that is just how the data is? If not, can you provide one or a few such files?
2 months and 9 days! I had to scratch my head to remember what this was about as I gave up on stapler ages ago and wrote my own PDF tool which works for these docs. Any PDF file produced by asciidoc (using a2x) or asciidoctor (using asciidoctor-pdf) has this form. Feel free to close this bug if you prefer.
I'd prefer to fix the bug or adapt stapler to deal with it. I apologize for the delay. Time is precious...
OK, using this trivial PDF file built by asciidoctor-pdf, I get the output:
$ stapler list-log stapler-issue-62.pdf
11 1
21 2
31 3