You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I know this is old new probably. But the table of contents in document handler is really bad. So bad I wonder why we even have it. What information does this give the user:
There's no page reference or any other useful info, other than the sequence of chapters, which is (almost) pointless to know.
I talked to Jesper about adding to the TOC, and he, correctly - it would appear - said that it's really difficult to render a good TOC. And after googling a good bit, and asking chatgpt, and trying some of my own stuff, I can only agree. It's problematic.
I tried several approaches; generating a mock pdf and "measuring" the page contents. Did not work well.
I also tried selecting each element in the to be-printed document and trying to measure them, like this:
This, however, can possibly work, but for some reason the meausrements do not come out correct. Maybe something with what offsetHeight measures.
So, in conclusion, something should be done to improve the TOC. But! I don't know how. AND! I'm going on parental leave now, so if anyone sees this, I look forward to see it done and fixed when I come back. Thanks in advance.
The text was updated successfully, but these errors were encountered:
I agree that the TOC is completely useless in its current state. The reason it exists is that the customer who ordered the dh-print really wanted a TOC.
Let's hope that someone finds the strength to build a useful TOC while you are away!
So, I know this is old new probably. But the table of contents in document handler is really bad. So bad I wonder why we even have it. What information does this give the user:
There's no page reference or any other useful info, other than the sequence of chapters, which is (almost) pointless to know.
I talked to Jesper about adding to the TOC, and he, correctly - it would appear - said that it's really difficult to render a good TOC. And after googling a good bit, and asking chatgpt, and trying some of my own stuff, I can only agree. It's problematic.
I tried several approaches; generating a mock pdf and "measuring" the page contents. Did not work well.
I also tried selecting each element in the to be-printed document and trying to measure them, like this:
This, however, can possibly work, but for some reason the meausrements do not come out correct. Maybe something with what offsetHeight measures.
So, in conclusion, something should be done to improve the TOC. But! I don't know how. AND! I'm going on parental leave now, so if anyone sees this, I look forward to see it done and fixed when I come back. Thanks in advance.
The text was updated successfully, but these errors were encountered: