Example: Automatic Insertion of Icons for PDF Links

This example demonstrates how to examine the contents of a link to see if it points to a PDF file and automatically insert a PDF icon if it does.