Embedding resources into a PDF
In the Javascript for Acrobat 3D Annotations API, I am told I can do this:
faceRes = new Resource ("pdf://picture.jp");
and that the syntax for creating a Resource is:
new Resource (pathname)
where pathname is "a string representing the path of the file or stream. Can only load embedded resources from within the PDF file."
My question is how do I do that? How do I embed resources into the PDF file so I can do this in my Javascript code?
I know this question has been asked many times before. I looked through those discussions in the hope that it is answered but alas they are not.
Most of the answers I found were simply saying, "use this plugin" or "that's beyond the typical GUI user" or "you need to know how to code".
The plugin was probably the closest I could have gotten to an actual answer but the links were broken.
I could neither try to use them nor look through the source.
Thanks in advance!
