If we are talking about publish online, then having a multistate object with 0,1,2,3, 4, 5 stars would sound like a logical solution. Above the MSO (Multi state object) you have buttons over the star areas where they on tap (or hover) go to that state. The tricky part is where do you want the Zero to be?
An alternative is to have a button group for a star so that clicking on empty star hides the empty star and replaces shows filled star. And the reverse clicking the filled star shows the empty star and hides the filled star. Using the "show/hide button" works also for PDF, adding useful tool tips for Acrobat is not difficult but would be quite time consuming.
... View more