{
  "schemaVersion": 1,
  "kind": "public_pdf_password_ascii_edge_spaces_observation",
  "canonicalPath": "/guides/pdf-encrypt.html",
  "fragment": "pdf-password-spaces-proof",
  "observedDate": "2026-10-20",
  "dateTimeZone": "Asia/Shanghai",
  "productURL": "https://doc2x.noedgeai.com/zh-cn/tools/pdf-encrypt/",
  "inputAuthorship": {
    "existingPublishedSource": true,
    "selfAuthored": true,
    "fictional": true,
    "pages": 2,
    "sourceReusedWithoutDuplicatingAsset": true
  },
  "publicDemoPassword": {
    "exact": " Demo-2026! ",
    "trimmedKnownWrongCandidate": "Demo-2026!",
    "visibleMarkerForm": "␠Demo-2026!␠",
    "visibleMarkerIsNotPasswordCharacter": true,
    "exactCodepoints": [
      "U+0020",
      "U+0044",
      "U+0065",
      "U+006D",
      "U+006F",
      "U+002D",
      "U+0032",
      "U+0030",
      "U+0032",
      "U+0036",
      "U+0021",
      "U+0020"
    ],
    "exactLength": 12,
    "trimmedLength": 10,
    "leadingU0020Count": 1,
    "trailingU0020Count": 1,
    "publicFictionalSampleOnly": true,
    "privateCredential": false
  },
  "actualProductCounts": {
    "fileSelections": 2,
    "encryptionStartClicks": 1,
    "encryptionSuccessObserved": 1,
    "trimmedKnownPasswordDecryptClicks": 1,
    "trimmedKnownPasswordErrorObserved": 1,
    "exactKnownPasswordDecryptClicks": 1,
    "exactKnownPasswordSuccessObserved": 1,
    "nativeDownloadClicks": 2,
    "receivedNativeFiles": 2,
    "encryptDownloadEventWaitTimeouts": 1,
    "exactRoleLocatorFailuresBeforeTextClick": 2,
    "extraProcessClicksFromLocatorFailures": 0,
    "continueProcessingClicks": 1,
    "removeLocalInputClicks": 1,
    "newOCRTasks": 0,
    "newAIProcessing": 0,
    "paidProcessing": 0
  },
  "actualUIObservations": {
    "trimmedKnownCandidate": "一次输入去掉两个边界空格的已知候选，工具显示“密码错误或无法解析该 PDF”；没有下载。",
    "exactKnownCandidate": "一次输入完整已知口令并开始解密，工具显示完成，随后点击下载一次并收到原生PDF。",
    "encryptDownloadWait": "一次下载事件等待超时；核对本次点击后生成的新文件并保存原字节，没有重新点击下载或加密。",
    "locatorFailures": "两次精确role定位没有命中按钮，均未触发处理；随后语义文字点击只触发一次完整口令解密。",
    "passwordScreenshotReadback": "密码框遮蔽；截图不证明空格明文，原生文件候选检查分别给出接受与拒绝。"
  },
  "nativeInspector": {
    "name": "pypdf",
    "version": "6.10.0",
    "strictReader": true
  },
  "knownCandidateChecksOnNativeEncryptedBytes": {
    "readerCount": 1,
    "sequence": [
      {
        "candidate": "known trimmed public candidate",
        "characters": 10,
        "pypdfDecryptReturnCode": 0,
        "pypdfDecryptReturnName": "NOT_DECRYPTED",
        "accepted": false
      },
      {
        "candidate": "exact complete public password",
        "characters": 12,
        "pypdfDecryptReturnCode": 2,
        "pypdfDecryptReturnName": "OWNER_PASSWORD",
        "accepted": true
      }
    ],
    "unknownPasswordRecovery": false,
    "isEncryptedPropertyRemainsTrueAfterSuccessfulReaderUnlock": true
  },
  "encryptionDictionary": {
    "Filter": "/Standard",
    "V": 2,
    "Length": 128,
    "R": 3,
    "P": -4
  },
  "algorithmFromActualDictionary": "RC4 128-bit",
  "permissions": {
    "allSevenUIDefaultsChecked": true,
    "rawP": -4,
    "enforcementTested": false
  },
  "files": {
    "source": {
      "file": "willow-layout-brief.pdf",
      "bytes": 4976,
      "sha256": "a4ab4099fbf2afdefaabadbb7da4251d3f0f049352988c7c3bab9db1970920e7",
      "isEncrypted": false,
      "pageCount": 2,
      "pageTextChecks": [
        {
          "page": 1,
          "extractedTextCodepoints": 1233,
          "extractedTextUtf8Bytes": 1233,
          "extractedTextSha256": "993d10b64d52b8b4b5a3c58445bf82c92a23405ed9ef4266c6b3ede1d2f0da1d",
          "mediaBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "cropBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "rotation": 0
        },
        {
          "page": 2,
          "extractedTextCodepoints": 990,
          "extractedTextUtf8Bytes": 990,
          "extractedTextSha256": "52c948f5e50e29dc6027b687234aaa3b29bd10ab70040ddd2565e39d1e5eca01",
          "mediaBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "cropBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "rotation": 0
        }
      ],
      "metadata": {
        "/Author": "Self-authored Doc2X workflow sample",
        "/CreationDate": "D:20261012070229+08'00'",
        "/Creator": "anonymous",
        "/Keywords": "",
        "/ModDate": "D:20261012070229+08'00'",
        "/Producer": "ReportLab PDF Library - (opensource)",
        "/Subject": "unspecified",
        "/Title": "Willow packing log - fictional layout-translation sample",
        "/Trapped": "/False"
      }
    },
    "encrypted": {
      "file": "pdf-password-spaces-encrypted-native.pdf",
      "bytes": 4547,
      "sha256": "d3287ba868c7b0029a7ee6b56112c0cce957fce5446af469c3a7dfb6d0955c7b",
      "isEncrypted": true,
      "pageCount": 2,
      "pageTextChecks": [
        {
          "page": 1,
          "extractedTextCodepoints": 1233,
          "extractedTextUtf8Bytes": 1233,
          "extractedTextSha256": "993d10b64d52b8b4b5a3c58445bf82c92a23405ed9ef4266c6b3ede1d2f0da1d",
          "mediaBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "cropBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "rotation": 0
        },
        {
          "page": 2,
          "extractedTextCodepoints": 990,
          "extractedTextUtf8Bytes": 990,
          "extractedTextSha256": "52c948f5e50e29dc6027b687234aaa3b29bd10ab70040ddd2565e39d1e5eca01",
          "mediaBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "cropBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "rotation": 0
        }
      ],
      "metadata": {
        "/Author": "Self-authored Doc2X workflow sample",
        "/CreationDate": "D:20261012070229+08'00'",
        "/Creator": "anonymous",
        "/Keywords": "",
        "/ModDate": "D:20261019195609Z",
        "/Producer": "pdf-lib (https://github.com/Hopding/pdf-lib)",
        "/Subject": "unspecified",
        "/Title": "Willow packing log - fictional layout-translation sample",
        "/Trapped": "/False"
      }
    },
    "removed": {
      "file": "pdf-password-spaces-removed-native.pdf",
      "bytes": 4715,
      "sha256": "014c2fe8cd651fd9cc62b7538a467a320adc77ea4e06d7848ca38d0cc372a907",
      "isEncrypted": false,
      "pageCount": 2,
      "pageTextChecks": [
        {
          "page": 1,
          "extractedTextCodepoints": 1233,
          "extractedTextUtf8Bytes": 1233,
          "extractedTextSha256": "993d10b64d52b8b4b5a3c58445bf82c92a23405ed9ef4266c6b3ede1d2f0da1d",
          "mediaBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "cropBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "rotation": 0
        },
        {
          "page": 2,
          "extractedTextCodepoints": 990,
          "extractedTextUtf8Bytes": 990,
          "extractedTextSha256": "52c948f5e50e29dc6027b687234aaa3b29bd10ab70040ddd2565e39d1e5eca01",
          "mediaBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "cropBoxPoints": [
            0.0,
            0.0,
            595.2756,
            841.8898
          ],
          "rotation": 0
        }
      ],
      "metadata": {
        "/Producer": "pdf-lib (https://github.com/Hopding/pdf-lib)",
        "/ModDate": "D:20261019195838Z",
        "/Creator": "pdf-lib (https://github.com/Hopding/pdf-lib)",
        "/CreationDate": "D:20261019195838Z"
      }
    }
  },
  "comparisons": {
    "encryptedVersusSource": {
      "samePageCount": true,
      "perPageExactExtractedTextEqual": [
        true,
        true
      ],
      "perPageMediaBoxEqual": [
        true,
        true
      ],
      "perPageCropBoxEqual": [
        true,
        true
      ],
      "perPageRotationEqual": [
        true,
        true
      ],
      "byteIdentical": false,
      "byteDeltaFromSource": -429,
      "metadataEqual": false,
      "metadataChangedKeys": [
        "/ModDate",
        "/Producer"
      ]
    },
    "removedVersusSource": {
      "samePageCount": true,
      "perPageExactExtractedTextEqual": [
        true,
        true
      ],
      "perPageMediaBoxEqual": [
        true,
        true
      ],
      "perPageCropBoxEqual": [
        true,
        true
      ],
      "perPageRotationEqual": [
        true,
        true
      ],
      "byteIdentical": false,
      "byteDeltaFromSource": -261,
      "metadataEqual": false,
      "metadataChangedKeys": [
        "/Author",
        "/CreationDate",
        "/Creator",
        "/Keywords",
        "/ModDate",
        "/Producer",
        "/Subject",
        "/Title",
        "/Trapped"
      ]
    }
  },
  "nativePreservation": {
    "nativeEncryptedAndRemovedBytesUnedited": true,
    "newPDFProcessingInPackTask": 0,
    "physicalPDFReadsInNativeInspection": 3,
    "physicalPDFReadsInPackExport": 0
  },
  "screenshotProvenance": {
    "format": "JPEG",
    "publicImages": 2,
    "headerOnlyChecks": 3,
    "bitmapDecodes": 0,
    "crops": 0,
    "reencodes": 0,
    "rootReviewedAllThree": true,
    "items": [
      {
        "file": "trimmed-password-result.jpg",
        "bytes": 75954,
        "sha256": "12af38d69f7449f6292d8504da830329fef9d2cd6744f8f05fcc6ac313966373",
        "format": "JPEG",
        "width": 2048,
        "height": 987,
        "rootVisualReviewCompleted": true,
        "bitmapDecodedInPackTask": false,
        "scope": "可见本次工具通用错误提示；密码框被遮蔽，截图不单独证明口令的明文或空格。",
        "published": true
      },
      {
        "file": "exact-password-result.jpg",
        "bytes": 55717,
        "sha256": "e79c9d015d3007a929c92b9e768ed2527bdfb781564aeeb0e4589085eb97d486",
        "format": "JPEG",
        "width": 2048,
        "height": 987,
        "rootVisualReviewCompleted": true,
        "bitmapDecodedInPackTask": false,
        "scope": "可见本次工具解密完成界面；截图不单独证明完整口令明文、PDF内容或取消加密状态。",
        "published": true
      },
      {
        "file": "encryption-settings.jpg",
        "bytes": 81247,
        "sha256": "1f59f4c782eafe9bf7f18a09e0dd9d66a5e805dd9f866e237bca0f7d26cf7f67",
        "format": "JPEG",
        "width": 2048,
        "height": 987,
        "rootVisualReviewCompleted": true,
        "bitmapDecodedInPackTask": false,
        "scope": "仅作内部设置核对：7个默认权限均勾选，口令遮蔽；本次未验证权限执行。",
        "published": false
      }
    ]
  },
  "codeExcerpt": {
    "title": "完整口令的两个边界空格",
    "language": "text",
    "text": "完整口令（␠仅是可见标记）：␠Demo-2026!␠\n完整口令字符：U+0020 + Demo-2026! + U+0020（12字符）\n去空格候选：Demo-2026!（10字符）",
    "exactPasswordLine": " Demo-2026! ",
    "source": "公开自编演示口令和原生文件的已知候选检查；不是遮蔽密码框的明文读取。",
    "copyButton": false,
    "visibleMarkerIsNotPasswordCharacter": true,
    "exactDownload": "pdf-password-spaces-public-password.txt",
    "downloadScope": "UTF-8无BOM，仅12个ASCII口令字符，保留首尾U+0020；无CR或LF行结束符。"
  },
  "localChecksNotNativeExports": [
    "pdf-password-spaces-checks.csv",
    "pdf-password-spaces-observation.json",
    "pdf-password-spaces-public-password.txt",
    "pdf-password-spaces-editorial-queries.csv"
  ],
  "limits": [
    "本例只测试一组公开ASCII口令：首尾各一个普通U+0020。未测试内部空格、全空格、中文、全角空格、NBSP或其他Unicode口令。",
    "完整口令解开加密件后提取文字及页面框；is_encrypted属性对该加密件仍为true。原生去密码下载件则is_encrypted=false，读取页数和文字时未调用decrypt。",
    "两页提取文字、页面框、旋转和大小单独比较；它们不证明渲染像素、全部PDF对象、注释、书签、附件或所有阅读器均相同。",
    "文件字节和元数据允许且实际可能改变。体积变化不代表内容损失、压缩质量或安全级别变化。",
    "权限原始字段只记录文件标志，不证明阅读器执行；本次未进行独立受限用户、复制、打印或保存测试。",
    "此为已知公开口令的有界核对，不涉及未知密码恢复或破解。",
    "解密下载件由本地pypdf在不输入口令的情况下读取两页和文字；本轮没有另做浏览器重新打开该PDF的操作。",
    "完整口令被识别为所有者身份（OWNER_PASSWORD=2）。这不是独立受限用户测试；权限字段和UI默认勾选不替代阅读器执行验证。",
    "公开TXT只保存12个ASCII演示口令字符，保留首尾U+0020，无换行。␠符号仅作说明，不能当作口令字符。",
    "四条编辑问题没有独立搜索量；Bing父主题市场兴趣不代表这些长尾词的量或本站流量。"
  ]
}
