<meta name="password" value="${record.<password_field_id>}"/>
Add above tag in the <head> to protect advanced PDF.
here attribute “value” can be sourced from a “password” field in transaction or related record.
Custom fields are more prefered with the random generated value. This field value can be shared through email or any other channel to the customer.