没有密码,Qpdf无法加密

时间:2017-03-14 12:09:48

标签: encryption parameters qpdf

我试图为pdf文件添加限制,但不需要用户密码。我出于某种原因无法做到这一点。

qpdf.exe --encrypt 40 -modify=y -extract=y -annotate=y -- in.pdf out.pdf

帮助说明:

  

用户密码和所有者密码中的任何一个或两者都可以是空字符串。

我应该如何指定空密码字符串?

1 个答案:

答案 0 :(得分:1)

您应该使用引号将空字符串指定为密码:

[
  {
    "Employee_Id": 252156,
    "Active_Ind": true,
    "EmployeeRoles": [
      {
        "Employee_Role_Id": 1,
        "Employee_Role_Nm": "Tax Prep"
      }
    ]
  },
  {
    "Employee_Id": 252156,
    "Active_Ind": true,
    "EmployeeRoles": [
      {
        "Employee_Role_Id": 1,
        "Employee_Role_Nm": "Tax Prep"
      },
      {
        "Employee_Role_Id": 2,
        "Employee_Role_Nm": "Tax Prep"
      }
    ]
  },
  {
    "Employee_Id": 252156,
    "Active_Ind": true,
    "EmployeeRoles": [
      {
        "Employee_Role_Id": 1,
        "Employee_Role_Nm": "Tax Prep"
      },
      {
        "Employee_Role_Id": 3,
        "Employee_Role_Nm": "Tax Prep"
      }
    ]
  },
  {
    "Employee_Id": 252156,
    "Active_Ind": false,
    "EmployeeRoles": [
      {
        "Employee_Role_Id": 1,
        "Employee_Role_Nm": "Tax Prep"
      },
      {
        "Employee_Role_Id": 2,
        "Employee_Role_Nm": "Tax Prep"
      }
    ]
  }
]