PurePDF 2.0 pdf_EmbedFile with link

Just starting out? Need help? Post your questions and find answers here.
normeus
Enthusiast
Enthusiast
Posts: 472
Joined: Fri Apr 20, 2012 8:09 pm
Contact:

PurePDF 2.0 pdf_EmbedFile with link

Post 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.