{"id":18996716,"date":"2026-08-18T20:17:22","date_gmt":"2026-08-18T20:17:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/eature-request-bug-pdf-password-field-does-not-parse-smartcodes\/"},"modified":"2026-08-18T20:17:48","modified_gmt":"2026-08-18T20:17:48","slug":"eature-request-bug-pdf-password-field-does-not-parse-smartcodes","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/eature-request-bug-pdf-password-field-does-not-parse-smartcodes\/","title":{"rendered":"Feature Request \/ Bug: PDF Password field does not parse SmartCodes"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Thanks for the great plugin and suite of tools!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am trying to use a SmartCode (e.g., <code>{inputs.passwordField}<\/code>) to dynamically lock a generated PDF with the user&#8217;s submitted password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Currently, the PDF add-on locks the document with the literal string <code>\"{inputs.lesseeidnumber}\"<\/code> instead of parsing it. Looking at the codebase, <code>security_pass<\/code> is pulled straight from the <code>$appearance<\/code> array in <code>TemplateManager.php<\/code> without running through <code>ShortCodeParser::parse()<\/code>. Furthermore, there are no <code>apply_filters<\/code> hooks in <code>FluentFormsIntegration.php<\/code> (around the <code>$settings<\/code> variable in <code>getPdf<\/code> or <code>maybePushToEmail<\/code>) that would allow me to intercept it with a custom snippet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Could you please update the PDF add-on to run the <code>security_pass<\/code> setting through the SmartCode parser before passing it to mPDF&#8217;s <code>SetProtection()<\/code>?<\/p>\n","protected":false},"template":"","class_list":["post-18996716","topic","type-topic","status-publish","hentry","topic-tag-mpdf"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996716\/revisions"}],"predecessor-version":[{"id":18996717,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996716\/revisions\/18996717"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18996716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}