Create navigation bookmarks when outputting with llPDFLib?

General TRichView support forum. Please post your questions here
Post Reply
edwinyzh
Posts: 104
Joined: Sun Jun 05, 2022 2:22 pm

Create navigation bookmarks when outputting with llPDFLib?

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Create navigation bookmarks when outputting with llPDFLib?

Post 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.
edwinyzh
Posts: 104
Joined: Sun Jun 05, 2022 2:22 pm

Re: Create navigation bookmarks when outputting with llPDFLib?

Post by edwinyzh »

eeeeeeeeeeeeexcellent support man!
I'm a new customer and I don't regret buying your components for a nanosecond ;)
Post Reply