the "SetA" commands are "Anotations"
Code: Select all
pdf_SetAText
pdf_SetAPopUp
pdf_SetAFile
pdf_EmbedFile() is a separate command which attaches a file at the end of your pdf.
If you are doing pdf_SetAFile then it takes the fileid created by pdf_EmbedFile and uses it
from the example:
Code: Select all
Define fileid=pdf_EmbedFile("20k_c1.txt","Attachments Pane")
link = pdf_Addlink()
pdf_SetAFile(link,fileid,-1,0,"Beschreibung","Der Titel",5,5,Date(),"Tag",0)
pdf_Cell(80,10,"This is a File annotation",1,1,#PDF_ALIGN_LEFT,#True,link)
Define file$="Tutorial29 Annotations+Actionsa.pdf"
try this code to display link 2x for the same file
Code: Select all
Define fileid=pdf_EmbedFile("20k_c1.txt","Attachments Pane")
link = pdf_Addlink()
pdf_SetAFile(link,fileid,-1,0,"Beschreibung","Der Titel",5,5,Date(),"Tag",0)
pdf_Cell(80,10,"This is a File annotation",1,1,#PDF_ALIGN_LEFT,#True,link)
pdf_SetAFile(link,fileid,-1,0,"Beschreibung","Der Titel",5,5,Date(),"Tag",0)
pdf_Cell(80,10,"This is other File annotation",1,1,#PDF_ALIGN_LEFT,#True,link)
Define file$="Tutorial29 Annotations+Actionsa.pdf"
if you look at the output pdf it will be the same size as the previous pdf
Norm.
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari