You are not logged in.
Pages: 1
I'd like to have an index in my PDF.
Is there an example of how to create it?
An example of the use of CreateBookMark?
Offline
Do you mean the bookmarks at the right of the PDF?
Have you tried using CreateBookMark yet?
If you search on this forum there are several examples of CreateBookMark (just calling it after page creation).
Offline
Do you mean the bookmarks at the right of the PDF?
Have you tried using CreateBookMark yet?If you search on this forum there are several examples of CreateBookMark (just calling it after page creation).
Thanks for your reply.
Yes, I mean the bookmarks at the right of the PDF.
I will look into it and search for examples in this forum.
Offline
I tried creating bookmarks:
var
Doc : TPdfDocumentGDI;
Page : TPdfPage;
...
for i := 1 to PageCount do begin
Page := Doc.AddPage;
PageNr := PageNr + 1;
Doc.CreateBookMark(0, IntStr(PageNr));
...
end;
When I open the pdf, there are no bookmarks. Do I need to call another function to enable the bookmarks?
Last edited by Kaiser (2024-09-16 11:21:20)
Offline
Pages: 1