Closed axipo closed 3 years ago
@axipo Can you please provide me with a minimally reproducible example in which my module fails.
Sure, I replaced some demo code:
outlinePdf.outline = `
1||Ω 1
2|-|Some random title 2
-3|--|Some random title 3
4|---|Some random title 4
5|---|Some random title 5
6|-|Some random title 6
7||Some random title 7
`;
And the output toc looks like:
@axipo I will try to find a solution but I think it will take some time. I will inform you when I am finished.
@lillallol Thanks very much. This project is the only solution to add TOC for pdf file on browser I found. 👍
@axipo So I looked at the link you gave me. It does not work for the outline case so I opened an issue in pdf-lib. I am not expecting to get an answer back soon.
@axipo I published a new patch. Check if it fixes your issue.
Yes, it works, thank you so much. @lillallol
It seems that it doesn't support Unicode characters. Since I'm not a pdf expert, I don't know whether it's hard to support this feature. I found some info from pdf-lib project, and it looks like that there are many details to consider.