-
-
Save searchwpgists/6b9c5918e0764417a6417e0baf1531c5 to your computer and use it in GitHub Desktop.
Add PDF password support in Xpdf Integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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