PurePDF: Bookmarks disappear in the 2. created PDF ???

Everything else that doesn't fall into one of the other PB categories.
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

PurePDF: Bookmarks disappear in the 2. created PDF ???

Post by Thorsten1867 »

The Bookmarks works only with the first created PDF. In the second PDF they seem to disappear.

Code: Select all

; ----- First PDF -----
pdf_Create()
pdf_SetFont("Arial","",15)
pdf_AddPage()
pdf_BookMark("Page 1")
pdf_Cell(0,6,"Paragraph 1")
pdf_Ln(50)
pdf_BookMark("Paragraph 2", 1, -1)
pdf_Cell(0,6,"Paragraph 2")
pdf_Save("BookMark.pdf")
; ----- Second PDF -----
pdf_Create()
pdf_SetFont("Arial","",15)
pdf_AddPage()
pdf_BookMark("Page 1")
pdf_BookMark("Paragraph 1", 1, -1)
pdf_Cell(0,6,"Paragraph 1")
pdf_Ln(50)
pdf_BookMark("Paragraph 2", 1, -1)
pdf_Cell(0,6,"Paragraph 2")
pdf_Save("BookMark2.pdf")
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]