How can I have updating content in a pdf?


I want to find a way include content in a pdf that includes an advert can update form an external source - my web server for instance. I’d like to be able to change the advert on my webserver and the ebook readers see the updated ad when the reopen the book.

I’ve been advised that it’s possible to embed flash/flex inside PDF files and that it’s possible to include external content in flash.

I’m guessing that I need some sort of flash application that will include a url (or perhaps change the content of the ad from an xml document that resides on my server?).

I’d really appreciate it if someone could point me in the right direction, any tutorials or articles I could adapt for my purposes or failing that, just spell out for me a little clearer exactly what I need to do to get this working.

Many thanks!

It is possible to insert flash into .pdfs, and it is possible to have a flash file pull in dynamic content that you can update yourself, but your idea won’t work the way you want it to.

PDF readers automatically limit the functions of flash and javascript inserted into the .pdfs in order to protect the end user. Say your flash is simply an animation, no external content: users will see whatever the background or first frame is set to, but it won’t play the flash file until the user clicks on the flash object, approves the file to access the internet and then they must click on it again for the animation to begin.

In order for a flash file to load the dynamic content, it must “play.” Users will see whatever you set for the background/first frame, but unless they go through the whole process to click and approve the flash you won’t be serving them dynamic ads.

Gutting! (Thanks for the info though.)

I suppose if the content will only update after the flash ‘plays’ and playing needs user interaction, the best I could manage is to have a default ad as my first frame and then it would only update after the user authorises it.

If user interaction is required then I don’t think i’ll bother :confused:

Thanks again for the info :slight_smile:

You’re very welcome, Mike. Though I am sorry to bomb your idea. ^^;;

I think if the flash in pdfs didn’t require interaction we would be bombarded with those types of ads all over the place already. And that would just be a mess. :stuck_out_tongue: