Page 1 of 1

Create navigation bookmarks when outputting with llPDFLib?

Posted: Sat Jun 11, 2022 4:59 pm
by edwinyzh
I was checking "TRichView\ThirdParty\Export\LLPDFLib\Demos\RV2PDF" which is the demo of outputing pdf with llPDFLib from TRichView.

llPDFLib is new to me but I just checked https://github.com/sybrexsys/llPDFLib/b ... e.pas#L153, which implies that it seems supporting creating the TOC navigation treeview, something like screenshot I'm attaching below.

My question, when outputing from TRichView, does it create the bookmarks (or TOC or outline):

Image

Re: Create navigation bookmarks when outputting with llPDFLib?

Posted: Mon Jun 13, 2022 2:39 pm
by Sergey Tkachenko
I created a demo that makes PDF with TOC:
https://www.trichview.com/forums/viewtopic.php?t=11002

PS: I found a small problem. While most RTF files are OK (they contain outline levels of headings specified explicitly), there are some files that do not have heading levels specified, but they assume that correct heading levels are assigned by RTF reader for text formatted with styles named "heading 1", "heading 2", etc. MS Word does it, but TRichView doesn't, so such RTF files are converted to PDF without TOC.

I fixed it in my working version, it will be included in the next update.

Re: Create navigation bookmarks when outputting with llPDFLib?

Posted: Mon Jun 13, 2022 4:45 pm
by edwinyzh
eeeeeeeeeeeeexcellent support man!
I'm a new customer and I don't regret buying your components for a nanosecond ;)