solidworks pdf automatic update

How can i have a pdf drawing linked so that it is updated when a solidworks drawings gets updated?

SolidworksApi macros