There is a tutorial, Tutorial29:
Code: Select all
#PurePDF_Include=1
XIncludeFile "PurePDF.pb"
pdf_Create()
pdf_AddPage()
pdf_SetFont("Arial","U",16)
pdf_SetFillColor(224,235,255)
pdf_SetTextColor(0,0,255)
Define link = pdf_Addlink()
pdf_SetAText(link,-1,-1,"This is a text annotation","Text annotation",Date(),"",#PDF_AF_NOVIEW|#PDF_AF_TOGGLENOVIEW)
pdf_Cell(60,10,"Text annotation!",1,1,#PDF_ALIGN_LEFT,#True,link)
pdf_Ln()
link = pdf_Addlink()
pdf_SetAPopUp(link,-1,-1,"This is a pop-up annotation"+Chr(13)+"Klick to see Pop-up!","Pop-up annotation",50,50,Date(),"",#PDF_AF_NOVIEW|#PDF_AF_TOGGLENOVIEW)
pdf_Cell(60,10,"Pop-up annotation!",1,1,#PDF_ALIGN_LEFT,#True,link)
pdf_Ln()
link = pdf_Addlink()
pdf_SetALaunch(link,-1,-1,"calc.exe","","O","")
pdf_Cell(60,10,"Launch action!",1,1,#PDF_ALIGN_LEFT,#True,link)
Define file$="Tutorial29 Annotations+Actions.pdf"
pdf_Save(file$)
RunProgram(file$)
pdf_Addlink()
pdf_Link(X.f, Y.f, W.f, H.f, Link.l)
pdf_Image(FileName$, X.f, Y.f [, W.f [, H.f [, Link.l]]])
pdf_Cell(W.f [, H.f [, Text$ [, Border.l [, Ln.f [, Align$ [, Fill.l [, Link.l]]]]]]])
pdf_Write(H.f, Text$ [, Link.l])