小编Bil*_*ler的帖子

使用pdftk打开带有空白密码的pdf

我们偶尔会收到带空白/空密码的pdf文件.我们使用pdftk,在这种情况下它会失败.我们尝试过:

pdftk input.pdf input_pw  output output.pdf
pdftk input.pdf input_pw \ output output.pdf
pdftk input.pdf input_pw '' output output.pdf
pdftk input.pdf input_pw "" output output.pdf
Run Code Online (Sandbox Code Playgroud)

全部失败表示我们提供了错误的密码,但是当密码由实际字符组成时,此命令很有效.我们希望引用或"逃避"会欺骗它,但没有爱.我们找到了qpdf的解决方法,并且现在将使用它,但希望有人可以解决这个问题.

pdftk

6
推荐指数
1
解决办法
622
查看次数

使用Firebase委派的Auth0

使用firebase委派进行Auth0登录

.controller('LoginCtrl', function($scope, auth, $state, store) {
      auth.signin({
        authParams: {
          // This asks for the refresh token
          // So that the user never has to log in again
          scope: 'openid offline_access',
          // This is the device name
          device: 'Mobile device'
        },
        // Make the widget non closeable
        standalone: true
      }, function(profile, token, accessToken, state, refreshToken) {
        // Login was successful
        // We need to save the information from the login
        store.set('profile', profile);
        store.set('token', token);
        store.set('refreshToken', refreshToken);
        auth.getToken({
          api: 'firebase'
        }).then(function(delegation) …
Run Code Online (Sandbox Code Playgroud)

firebase firebase-security auth0 firebase-authentication

2
推荐指数
1
解决办法
2139
查看次数