I went with the following solution:I extended the PDF viewer component with my own Sling model, with a getClientId function.I added on the page template a new field in the page properties where a clientId can be filled in.The following logic is applied in the function:if it is an author environment ...