{"id":960494,"date":"2024-12-27T03:50:13","date_gmt":"2024-12-26T19:50:13","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/960494.html"},"modified":"2024-12-27T03:50:15","modified_gmt":"2024-12-26T19:50:15","slug":"python%e5%a6%82%e4%bd%95%e6%8f%90%e5%8f%96pdf%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/960494.html","title":{"rendered":"Python\u5982\u4f55\u63d0\u53d6pdf\u6570\u636e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25103003\/7f762a40-afa5-40d9-a416-f15468ef165b.webp\" alt=\"Python\u5982\u4f55\u63d0\u53d6pdf\u6570\u636e\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u63d0\u53d6PDF\u6570\u636e\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1aPyPDF2\u5e93\u3001PDFMiner\u5e93\u3001pdfplumber\u5e93\u3002<\/strong>\u8fd9\u4e09\u79cd\u65b9\u6cd5\u5404\u6709\u4f18\u52a3\u3002<strong>PyPDF2\u5e93<\/strong>\u9002\u5408\u7b80\u5355\u7684\u6587\u672c\u63d0\u53d6\uff0c\u64cd\u4f5c\u7b80\u4fbf\uff1b<strong>PDFMiner\u5e93<\/strong>\u529f\u80fd\u5f3a\u5927\uff0c\u80fd\u591f\u89e3\u6790\u590d\u6742\u7684PDF\u7ed3\u6784\uff0c\u9002\u5408\u9700\u8981\u7cbe\u7ec6\u63a7\u5236\u7684\u573a\u666f\uff1b<strong>pdfplumber\u5e93<\/strong>\u5728PDF\u8868\u683c\u6570\u636e\u63d0\u53d6\u4e0a\u8868\u73b0\u7a81\u51fa\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5e93\u6765\u63d0\u53d6PDF\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001PyPDF2\u5e93\u7684\u4f7f\u7528<\/p>\n<\/p>\n<p><p>PyPDF2\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u7684PDF\u5904\u7406\u5e93\uff0c\u9002\u5408\u7528\u4e8e\u5904\u7406\u7ed3\u6784\u7b80\u5355\u7684PDF\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5PyPDF2<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u4f7f\u7528PyPDF2\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u8fd9\u4e2a\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u6765\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyPDF2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u63d0\u53d6\u6587\u672c<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528PyPDF2\u63d0\u53d6\u6587\u672c\u975e\u5e38\u7b80\u5355\uff0c\u4ee5\u4e0b\u662f\u57fa\u672c\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import PyPDF2<\/p>\n<h2><strong>\u6253\u5f00PDF\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;example.pdf&#39;, &#39;rb&#39;) as file:<\/p>\n<p>    reader = PyPDF2.PdfReader(file)<\/p>\n<p>    number_of_pages = len(reader.pages)<\/p>\n<p>    text = &#39;&#39;<\/p>\n<p>    # \u904d\u5386\u6bcf\u4e00\u9875<\/p>\n<p>    for page_number in range(number_of_pages):<\/p>\n<p>        page = reader.pages[page_number]<\/p>\n<p>        text += page.extract_text()<\/p>\n<p>    print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>PyPDF2<\/strong>\u7684\u4f18\u70b9\u662f\u6613\u4e8e\u4f7f\u7528\uff0c\u9002\u5408\u4ece\u7ed3\u6784\u7b80\u5355\u7684PDF\u4e2d\u63d0\u53d6\u6587\u672c\u3002\u4f46\u7f3a\u70b9\u662f\u5bf9\u590d\u6742\u7684PDF\u6587\u6863\u652f\u6301\u6709\u9650\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u5e26\u6709\u590d\u6742\u683c\u5f0f\u7684\u6587\u6863\u65f6\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001PDFMiner\u5e93\u7684\u4f7f\u7528<\/p>\n<\/p>\n<p><p>PDFMiner\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684PDF\u6587\u672c\u63d0\u53d6\u5de5\u5177\uff0c\u80fd\u591f\u5904\u7406\u590d\u6742\u7684PDF\u7ed3\u6784\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5PDFMiner<\/strong><\/li>\n<\/ol>\n<p><p>PDFMiner\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pdfminer.six<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u63d0\u53d6\u6587\u672c<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528PDFMiner\u63d0\u53d6\u6587\u672c\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\uff0c\u4f46\u5b83\u80fd\u5904\u7406\u590d\u6742\u7684PDF\u6587\u6863\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pdfminer.high_level import extract_text<\/p>\n<h2><strong>\u63d0\u53d6PDF\u6587\u672c<\/strong><\/h2>\n<p>text = extract_text(&#39;example.pdf&#39;)<\/p>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>PDFMiner\u80fd\u591f\u7cbe\u786e\u5730\u89e3\u6790PDF\u6587\u4ef6\u7684\u5e03\u5c40\u548c\u6587\u672c\uff0c\u4f46\u76f8\u5bf9\u6765\u8bf4\u4f7f\u7528\u8d77\u6765\u8f83\u4e3a\u590d\u6742\uff0c\u9700\u8981\u66f4\u591a\u7684\u4ee3\u7801\u6765\u89e3\u6790PDF\u7684\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001pdfplumber\u5e93\u7684\u4f7f\u7528<\/p>\n<\/p>\n<p><p>pdfplumber\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u4ecePDF\u4e2d\u63d0\u53d6\u8868\u683c\u6570\u636e\u7684\u5e93\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u5904\u7406\u542b\u6709\u8868\u683c\u7684PDF\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5pdfplumber<\/strong><\/li>\n<\/ol>\n<p><p>\u540c\u6837\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5pdfplumber\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pdfplumber<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u63d0\u53d6\u8868\u683c\u6570\u636e<\/strong><\/li>\n<\/ol>\n<p><p>pdfplumber\u80fd\u591f\u8f7b\u677e\u5730\u4ecePDF\u4e2d\u63d0\u53d6\u8868\u683c\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pdfplumber<\/p>\n<h2><strong>\u6253\u5f00PDF\u6587\u4ef6<\/strong><\/h2>\n<p>with pdfplumber.open(&#39;example.pdf&#39;) as pdf:<\/p>\n<p>    first_page = pdf.pages[0]<\/p>\n<p>    # \u63d0\u53d6\u6587\u672c<\/p>\n<p>    text = first_page.extract_text()<\/p>\n<p>    print(text)<\/p>\n<p>    # \u63d0\u53d6\u8868\u683c<\/p>\n<p>    table = first_page.extract_table()<\/p>\n<p>    print(table)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>pdfplumber<\/strong>\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u5bf9\u8868\u683c\u6570\u636e\u7684\u652f\u6301\uff0c\u4f7f\u5176\u6210\u4e3a\u4ecePDF\u4e2d\u63d0\u53d6\u7ed3\u6784\u5316\u6570\u636e\u7684\u826f\u597d\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528OCR\u6280\u672f\u63d0\u53d6\u6587\u672c<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u626b\u63cf\u7248PDF\u6587\u4ef6\u65f6\uff0c\u4f7f\u7528OCR\uff08\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff09\u6280\u672f\u662f\u5fc5\u8981\u7684\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u7684\u5185\u5bb9\u901a\u5e38\u4ee5\u56fe\u50cf\u5f62\u5f0f\u5b58\u5728\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5Tesseract OCR<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Tesseract OCR\u5f15\u64ce\uff0c\u5e76\u786e\u4fdd\u5176\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<ul>\n<li>Windows\u7528\u6237\u53ef\u4ee5\u4ece<a href=\"https:\/\/github.com\/tesseract-ocr\/tesseract\">\u5b98\u65b9\u9875\u9762<\/a>\u4e0b\u8f7d\u5b89\u88c5\u5305\u3002<\/li>\n<li>Mac\u7528\u6237\u53ef\u4ee5\u4f7f\u7528Homebrew\u5b89\u88c5\uff1a<code>brew install tesseract<\/code><\/li>\n<li>Linux\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\uff0c\u6bd4\u5982\uff1a<code>sudo apt-get install tesseract-ocr<\/code><\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>\u5b89\u88c5pytesseract<\/strong><\/li>\n<\/ol>\n<p><p>pytesseract\u662fPython\u7684Tesseract OCR\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pytesseract<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f7f\u7528OCR\u63d0\u53d6\u6587\u672c<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Python\u4e2d\u4f7f\u7528OCR\u63d0\u53d6\u6587\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pytesseract<\/p>\n<p>from PIL import Image<\/p>\n<p>import pdf2image<\/p>\n<h2><strong>\u5c06PDF\u8f6c\u6362\u4e3a\u56fe\u50cf<\/strong><\/h2>\n<p>pages = pdf2image.convert_from_path(&#39;scanned_example.pdf&#39;, 500)<\/p>\n<h2><strong>\u63d0\u53d6\u6587\u672c<\/strong><\/h2>\n<p>for page in pages:<\/p>\n<p>    text = pytesseract.image_to_string(page)<\/p>\n<p>    print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>OCR\u6280\u672f<\/strong>\u80fd\u591f\u4ece\u56fe\u50cf\u4e2d\u63d0\u53d6\u6587\u672c\uff0c\u9002\u7528\u4e8e\u626b\u63cf\u7248PDF\u6587\u4ef6\u3002\u867d\u7136\u5176\u8bc6\u522b\u7cbe\u5ea6\u53d6\u51b3\u4e8e\u56fe\u50cf\u8d28\u91cf\uff0c\u4f46\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u5904\u7406\u65e0\u6cd5\u76f4\u63a5\u89e3\u6790\u7684PDF\u6587\u4ef6\u7684\u6709\u6548\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5904\u7406PDF\u4e2d\u7684\u5176\u4ed6\u5143\u7d20<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u6587\u672c\u548c\u8868\u683c\uff0cPDF\u6587\u4ef6\u4e2d\u8fd8\u53ef\u80fd\u5305\u542b\u5176\u4ed6\u5143\u7d20\uff0c\u5982\u56fe\u50cf\u3001\u94fe\u63a5\u548c\u6ce8\u91ca\u3002\u6839\u636e\u9700\u8981\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u6765\u63d0\u53d6\u8fd9\u4e9b\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u63d0\u53d6\u56fe\u50cf<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528PyMuPDF\uff08fitz\uff09\u5e93\u53ef\u4ee5\u4ecePDF\u4e2d\u63d0\u53d6\u56fe\u50cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import fitz  # PyMuPDF<\/p>\n<h2><strong>\u6253\u5f00PDF\u6587\u4ef6<\/strong><\/h2>\n<p>pdf_document = fitz.open(&#39;example.pdf&#39;)<\/p>\n<h2><strong>\u904d\u5386\u6bcf\u4e00\u9875<\/strong><\/h2>\n<p>for page_number in range(len(pdf_document)):<\/p>\n<p>    page = pdf_document.load_page(page_number)<\/p>\n<p>    images = page.get_images(full=True)<\/p>\n<p>    # \u63d0\u53d6\u6bcf\u4e2a\u56fe\u50cf<\/p>\n<p>    for image_index, img in enumerate(images):<\/p>\n<p>        xref = img[0]<\/p>\n<p>        base_image = pdf_document.extract_image(xref)<\/p>\n<p>        image_bytes = base_image[&quot;image&quot;]<\/p>\n<p>        image_ext = base_image[&quot;ext&quot;]<\/p>\n<p>        # \u4fdd\u5b58\u56fe\u50cf<\/p>\n<p>        with open(f&quot;image_{page_number+1}_{image_index}.{image_ext}&quot;, &quot;wb&quot;) as image_file:<\/p>\n<p>            image_file.write(image_bytes)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u63d0\u53d6\u94fe\u63a5\u548c\u6ce8\u91ca<\/strong><\/li>\n<\/ol>\n<p><p>PyMuPDF\u4e5f\u53ef\u4ee5\u7528\u4e8e\u63d0\u53d6\u94fe\u63a5\u548c\u6ce8\u91ca\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u63d0\u53d6\u94fe\u63a5<\/p>\n<p>for page_number in range(len(pdf_document)):<\/p>\n<p>    page = pdf_document.load_page(page_number)<\/p>\n<p>    links = page.get_links()<\/p>\n<p>    print(f&quot;Page {page_number+1} links: {links}&quot;)<\/p>\n<h2><strong>\u63d0\u53d6\u6ce8\u91ca<\/strong><\/h2>\n<p>for page_number in range(len(pdf_document)):<\/p>\n<p>    page = pdf_document.load_page(page_number)<\/p>\n<p>    for annot in page.annots():<\/p>\n<p>        print(f&quot;Annotation on page {page_number+1}: {annot.info}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u603b\u7ed3<\/strong>\uff1a\u4f7f\u7528Python\u63d0\u53d6PDF\u6570\u636e\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5e94\u7528\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002\u9009\u62e9\u5408\u9002\u7684\u5e93\u548c\u5de5\u5177\u9700\u8981\u6839\u636ePDF\u6587\u4ef6\u7684\u7ed3\u6784\u548c\u5185\u5bb9\u6765\u51b3\u5b9a\u3002\u65e0\u8bba\u662f\u7528\u4e8e\u7b80\u5355\u7684\u6587\u672c\u63d0\u53d6\uff0c\u8fd8\u662f\u590d\u6742\u7684\u8868\u683c\u89e3\u6790\uff0c\u751a\u81f3\u662f\u5904\u7406\u626b\u63cf\u7248\u6587\u4ef6\uff0cPython\u90fd\u80fd\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002\u901a\u8fc7\u5bf9\u8fd9\u4e9b\u5de5\u5177\u7684\u7075\u6d3b\u8fd0\u7528\uff0c\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u6570\u636e\u63d0\u53d6\u7684\u6548\u7387\u548c\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u63d0\u53d6PDF\u4e2d\u7684\u6587\u672c\u6570\u636e\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u5e93\u6765\u63d0\u53d6PDF\u4e2d\u7684\u6587\u672c\u6570\u636e\u3002\u5e38\u7528\u7684\u5e93\u5305\u62ecPyPDF2\u3001pdfminer\u548cPyMuPDF\u3002PyPDF2\u9002\u5408\u4e8e\u7b80\u5355\u7684\u6587\u672c\u63d0\u53d6\uff0c\u800cpdfminer\u53ef\u4ee5\u5904\u7406\u66f4\u590d\u6742\u7684\u7ed3\u6784\u548c\u683c\u5f0f\u3002\u5b89\u88c5\u8fd9\u4e9b\u5e93\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bfb\u53d6PDF\u6587\u4ef6\u5e76\u8c03\u7528\u76f8\u5e94\u7684\u65b9\u6cd5\u6765\u63d0\u53d6\u6587\u672c\u5185\u5bb9\u3002<\/p>\n<p><strong>\u63d0\u53d6PDF\u6570\u636e\u65f6\uff0c\u5982\u4f55\u5904\u7406\u8868\u683c\u548c\u56fe\u7247\uff1f<\/strong><br \/>\u63d0\u53d6PDF\u4e2d\u7684\u8868\u683c\u548c\u56fe\u7247\u901a\u5e38\u8f83\u4e3a\u590d\u6742\u3002\u5bf9\u4e8e\u8868\u683c\uff0c\u53ef\u4ee5\u4f7f\u7528pandas\u5e93\u7ed3\u5408tabula-py\u6216camelot-py\u6765\u63d0\u53d6\u548c\u5904\u7406\u6570\u636e\u3002\u5bf9\u4e8e\u56fe\u7247\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528pdf2image\u5e93\u5c06PDF\u9875\u9762\u8f6c\u6362\u4e3a\u56fe\u50cf\u683c\u5f0f\uff0c\u4ece\u800c\u63d0\u53d6\u5176\u4e2d\u7684\u56fe\u7247\u5185\u5bb9\u3002<\/p>\n<p><strong>\u63d0\u53d6PDF\u6570\u636e\u540e\uff0c\u5982\u4f55\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u548c\u5206\u6790\uff1f<\/strong><br \/>\u4e00\u65e6\u6210\u529f\u63d0\u53d6PDF\u4e2d\u7684\u6570\u636e\uff0c\u4f7f\u7528pandas\u5e93\u5bf9\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u548c\u5206\u6790\u662f\u975e\u5e38\u6709\u6548\u7684\u3002\u53ef\u4ee5\u901a\u8fc7\u53bb\u9664\u7a7a\u503c\u3001\u683c\u5f0f\u8f6c\u6362\u548c\u6570\u636e\u7b5b\u9009\u7b49\u65b9\u5f0f\uff0c\u786e\u4fdd\u6570\u636e\u7684\u51c6\u786e\u6027\u548c\u5b8c\u6574\u6027\u3002\u6e05\u6d17\u540e\u7684\u6570\u636e\u53ef\u4ee5\u7528\u4e8e\u8fdb\u4e00\u6b65\u7684\u5206\u6790\u6216\u53ef\u89c6\u5316\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u548c\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u63d0\u53d6PDF\u6570\u636e\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1aPyPDF2\u5e93\u3001PDFMiner\u5e93\u3001pdfplumber\u5e93\u3002\u8fd9\u4e09\u79cd [&hellip;]","protected":false},"author":3,"featured_media":960499,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/960494"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=960494"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/960494\/revisions"}],"predecessor-version":[{"id":960502,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/960494\/revisions\/960502"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/960499"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=960494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=960494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=960494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}