Page 1 of 1

PurePDF 2.0 pdf_EmbedFile with link

Posted: Wed Jan 22, 2014 7:43 am
by normeus
I was looking at example "Tutorial27 Include File.pb" which is simple enough.

Code: Select all

pdf_EmbedFile("20k_c1.txt")
I am trying to link to this internal file using (which does not work)

Code: Select all

pdf_EmbedFile("20k_c1.txt","Attachments Pane")
link = pdf_Addlink()
pdf_SetLink(link,-1,-1,"20k_c1.txt")
pdf_Cell(60,10,"Launch action!",1,1,#PDF_ALIGN_LEFT,#True,link) ; expects a URL
I know you could Embed files into documents and add linked anotations that point to those internal files.
maybe SetALaunch :

Code: Select all

pdf_SetALaunch(link,-1,-1,"20k_c1.txt","","open","")
is there something I am missing on the syntax?

Norm.