Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Last active March 19, 2024 13:17
Show Gist options
  • Save searchwpgists/6b9c5918e0764417a6417e0baf1531c5 to your computer and use it in GitHub Desktop.
Save searchwpgists/6b9c5918e0764417a6417e0baf1531c5 to your computer and use it in GitHub Desktop.
Add PDF password support in Xpdf Integration
<?php
function my_searchwp_xpdf_command( $cmd, $filename ) {
return $cmd . ' -upw password';
}
add_filter( 'searchwp_xpdf_command', 'my_searchwp_xpdf_command', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment