{"id":1014990,"date":"2024-12-27T12:01:15","date_gmt":"2024-12-27T04:01:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1014990.html"},"modified":"2024-12-27T12:01:17","modified_gmt":"2024-12-27T04:01:17","slug":"python%e5%a6%82%e4%bd%95pdf%e8%bd%acpng","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1014990.html","title":{"rendered":"python\u5982\u4f55pdf\u8f6cpng"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25094937\/26ca528f-f542-4189-892b-e6420639b3a9.webp\" alt=\"python\u5982\u4f55pdf\u8f6cpng\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a<br \/>Python\u901a\u8fc7\u4f7f\u7528<strong>PyMuPDF\u3001pdf2image\u5e93<\/strong>\u7b49\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5c06PDF\u6587\u4ef6\u8f6c\u6362\u4e3aPNG\u683c\u5f0f\u3002<strong>PyMuPDF\u5e93<\/strong>\u63d0\u4f9b\u4e86\u4e00\u4e2a\u9ad8\u6548\u7684\u65b9\u6cd5\u6765\u5904\u7406PDF\u6587\u4ef6\uff0c\u5b83\u53ef\u4ee5\u5feb\u901f\u5730\u5c06PDF\u9875\u9762\u6e32\u67d3\u4e3a\u56fe\u50cf\u683c\u5f0f\uff1b<strong>pdf2image\u5e93<\/strong>\u5219\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u5c06PDF\u6587\u4ef6\u8f6c\u6362\u4e3a\u56fe\u50cf\u7684\u5e93\uff0c\u80fd\u591f\u8f7b\u677e\u5730\u5904\u7406\u591a\u9875PDF\u6587\u4ef6\u3002\u4f7f\u7528PyMuPDF\u5e93\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u52a0\u8f7dPDF\u6587\u4ef6\u5e76\u9010\u9875\u6e32\u67d3\u4e3a\u56fe\u50cf\uff0c\u4ece\u800c\u5b9e\u73b0\u8f6c\u6362\u3002\u5bf9\u4e8epdf2image\u5e93\uff0c\u5219\u53ef\u4ee5\u5229\u7528\u5176\u5185\u7f6e\u7684\u8f6c\u6362\u51fd\u6570\uff0c\u76f4\u63a5\u6307\u5b9a\u8f93\u51fa\u683c\u5f0f\u4e3aPNG\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e24\u79cd\u65b9\u6cd5\u7684\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4\u548c\u4f7f\u7528\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001PYMUPDF\u5e93\u7684\u4f7f\u7528<\/p>\n<\/p>\n<p><p>PyMuPDF\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u5904\u7406PDF\u6587\u4ef6\u3002\u5b83\u5141\u8bb8\u7528\u6237\u76f4\u63a5\u4ecePDF\u6587\u4ef6\u4e2d\u63d0\u53d6\u9875\u9762\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u56fe\u50cf\u683c\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u57fa\u672c\u7528\u6cd5<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5PyMuPDF\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyMuPDF<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5c06PDF\u6587\u4ef6\u8f6c\u6362\u4e3aPNG\u683c\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import fitz  # PyMuPDF<\/p>\n<p>def pdf_to_png(pdf_path, output_path):<\/p>\n<p>    # \u6253\u5f00PDF\u6587\u4ef6<\/p>\n<p>    document = fitz.open(pdf_path)<\/p>\n<p>    for page_number in range(document.page_count):<\/p>\n<p>        # \u83b7\u53d6\u9875\u9762<\/p>\n<p>        page = document.load_page(page_number)<\/p>\n<p>        # \u6e32\u67d3\u9875\u9762\u4e3a\u56fe\u50cf<\/p>\n<p>        pix = page.get_pixmap()<\/p>\n<p>        # \u4fdd\u5b58\u56fe\u50cf<\/p>\n<p>        pix.save(f&quot;{output_path}\/page_{page_number + 1}.png&quot;)<\/p>\n<p>pdf_to_png(&quot;example.pdf&quot;, &quot;output_directory&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f18\u5316\u548c\u8c03\u6574\u8f93\u51fa<\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528PyMuPDF\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8c03\u6574\u8f93\u51fa\u56fe\u50cf\u7684\u5206\u8fa8\u7387\u548c\u8d28\u91cf\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>pixmap<\/code>\u5bf9\u8c61\u7684\u53c2\u6570\u6765\u63a7\u5236\u8f93\u51fa\u56fe\u50cf\u7684\u5206\u8fa8\u7387\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pix = page.get_pixmap(matrix=fitz.Matrix(2, 2))  # \u589e\u52a0\u5206\u8fa8\u7387<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8c03\u6574<code>Matrix<\/code>\u7684\u53c2\u6570\uff0c\u53ef\u4ee5\u63d0\u9ad8\u56fe\u50cf\u6e05\u6670\u5ea6\uff0c\u4f46\u540c\u65f6\u4e5f\u4f1a\u589e\u52a0\u8f6c\u6362\u65f6\u95f4\u548c\u8f93\u51fa\u6587\u4ef6\u7684\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001PDF2IMAGE\u5e93\u7684\u4f7f\u7528<\/p>\n<\/p>\n<p><p>pdf2image\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u5c06PDF\u6587\u4ef6\u8f6c\u6362\u4e3a\u56fe\u50cf\u7684Python\u5e93\uff0c\u5b83\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u591a\u9875PDF\u6587\u4ef6\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u5404\u79cd\u56fe\u50cf\u683c\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u57fa\u672c\u7528\u6cd5<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5pdf2image\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pdf2image<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u8be5\u5e93\u4f9d\u8d56\u4e8ePoppler\u5de5\u5177\u5305\uff0c\u7528\u6237\u9700\u8981\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5Poppler\u3002<\/p>\n<\/p>\n<p><p>\u5728Linux\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get install poppler-utils<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u4ecePoppler\u7684\u5b98\u65b9\u9875\u9762\u4e0b\u8f7d\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u8fdb\u884c\u8f6c\u6362\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pdf2image import convert_from_path<\/p>\n<p>def pdf_to_png(pdf_path, output_path):<\/p>\n<p>    # \u5c06PDF\u8f6c\u6362\u4e3a\u56fe\u50cf<\/p>\n<p>    images = convert_from_path(pdf_path)<\/p>\n<p>    for i, image in enumerate(images):<\/p>\n<p>        # \u4fdd\u5b58\u56fe\u50cf<\/p>\n<p>        image.save(f&quot;{output_path}\/page_{i + 1}.png&quot;, &#39;PNG&#39;)<\/p>\n<p>pdf_to_png(&quot;example.pdf&quot;, &quot;output_directory&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u53c2\u6570\u8c03\u6574\u548c\u6027\u80fd\u4f18\u5316<\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528pdf2image\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u6765\u63a7\u5236\u8f93\u51fa\u56fe\u50cf\u7684\u8d28\u91cf\u548c\u6027\u80fd\u3002\u5e38\u7528\u7684\u53c2\u6570\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>dpi<\/code>: \u6307\u5b9a\u56fe\u50cf\u7684\u5206\u8fa8\u7387\uff0c\u9ed8\u8ba4\u4e3a200\u3002<\/li>\n<li><code>output_folder<\/code>: \u6307\u5b9a\u8f93\u51fa\u6587\u4ef6\u5939\u3002<\/li>\n<li><code>fmt<\/code>: \u6307\u5b9a\u8f93\u51fa\u683c\u5f0f\uff0c\u5982&#39;png&#39;\u3001&#39;jpeg&#39;\u7b49\u3002<\/li>\n<\/ul>\n<p><p>\u4f8b\u5982\uff0c\u589e\u52a0\u56fe\u50cf\u7684\u5206\u8fa8\u7387\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">images = convert_from_path(pdf_path, dpi=300)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Python\u5c06PDF\u8f6c\u6362\u4e3aPNG\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u5982\u5b89\u88c5\u95ee\u9898\u3001\u6027\u80fd\u95ee\u9898\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u95ee\u9898<\/li>\n<\/ol>\n<p><p>\u5982\u679c\u5728\u5b89\u88c5PyMuPDF\u6216pdf2image\u65f6\u9047\u5230\u95ee\u9898\uff0c\u9996\u5148\u68c0\u67e5Python\u548cpip\u7684\u7248\u672c\u662f\u5426\u4e3a\u6700\u65b0\uff0c\u5e76\u786e\u4fdd\u7f51\u7edc\u8fde\u63a5\u6b63\u5e38\u3002\u5982\u679c\u5728Windows\u4e0a\u4f7f\u7528pdf2image\uff0c\u8fd8\u9700\u8981\u786e\u4fddPoppler\u7684\u8def\u5f84\u5df2\u6b63\u786e\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u6027\u80fd\u95ee\u9898<\/li>\n<\/ol>\n<p><p>\u8f6c\u6362\u5927\u6587\u4ef6\u6216\u9ad8\u5206\u8fa8\u7387\u56fe\u50cf\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u5185\u5b58\u4e0d\u8db3\u6216\u5904\u7406\u901f\u5ea6\u6162\u7684\u95ee\u9898\u3002\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u51cf\u5c0f\u56fe\u50cf\u7684<code>dpi<\/code>\u503c\u3002<\/li>\n<li>\u5728\u4f4e\u5185\u5b58\u73af\u5883\u4e2d\uff0c\u9010\u9875\u5904\u7406PDF\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4e00\u6b21\u6027\u52a0\u8f7d\u6240\u6709\u9875\u9762\u3002<\/li>\n<li>\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u786c\u4ef6\u73af\u5883\u3002<\/li>\n<\/ul>\n<ol start=\"3\">\n<li>\u8f93\u51fa\u8d28\u91cf\u95ee\u9898<\/li>\n<\/ol>\n<p><p>\u5982\u679c\u8f93\u51fa\u7684PNG\u56fe\u50cf\u8d28\u91cf\u4e0d\u4f73\uff0c\u53ef\u4ee5\u901a\u8fc7\u589e\u52a0<code>dpi<\/code>\u503c\u6216\u8c03\u6574\u6e32\u67d3\u53c2\u6570\u6765\u63d0\u9ad8\u56fe\u50cf\u8d28\u91cf\u3002\u540c\u65f6\uff0c\u786e\u4fdd\u4f7f\u7528\u6700\u65b0\u7248\u672c\u7684\u5e93\u548c\u5de5\u5177\u5305\uff0c\u4ee5\u83b7\u5f97\u6700\u4f73\u6027\u80fd\u548c\u8d28\u91cf\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5e94\u7528\u573a\u666f\u548c\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<p><p>\u5c06PDF\u6587\u4ef6\u8f6c\u6362\u4e3aPNG\u56fe\u50cf\u5728\u8bb8\u591a\u5e94\u7528\u573a\u666f\u4e2d\u90fd\u5f88\u6709\u7528\uff0c\u5982\u6587\u6863\u9884\u89c8\u3001\u56fe\u50cf\u5904\u7406\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6587\u6863\u9884\u89c8<\/li>\n<\/ol>\n<p><p>\u5728\u9700\u8981\u5728\u7ebf\u9884\u89c8PDF\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u5148\u5c06\u5176\u8f6c\u6362\u4e3aPNG\u683c\u5f0f\uff0c\u7136\u540e\u5728\u6d4f\u89c8\u5668\u4e2d\u663e\u793a\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u9884\u89c8\u7684\u901f\u5ea6\u548c\u517c\u5bb9\u6027\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u56fe\u50cf\u5904\u7406<\/li>\n<\/ol>\n<p><p>\u8f6c\u6362\u540e\u7684PNG\u56fe\u50cf\u53ef\u4ee5\u7528\u4e8e\u8fdb\u4e00\u6b65\u7684\u56fe\u50cf\u5904\u7406\u548c\u5206\u6790\uff0c\u5982OCR\uff08\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff09\u3001\u56fe\u50cf\u589e\u5f3a\u548c\u7279\u5f81\u63d0\u53d6\u7b49\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u673a\u5668\u5b66\u4e60<\/li>\n<\/ol>\n<p><p>\u5728\u4e00\u4e9b\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u4e2d\uff0c\u5982\u56fe\u50cf\u5206\u7c7b\u548c\u5bf9\u8c61\u68c0\u6d4b\uff0c\u53ef\u80fd\u9700\u8981\u5c06PDF\u4e2d\u7684\u5185\u5bb9\u8f6c\u6362\u4e3a\u56fe\u50cf\u683c\u5f0f\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8bad\u7ec3\u548c\u6d4b\u8bd5\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u8df5\u4e2d\uff0c\u4e3a\u4e86\u83b7\u5f97\u6700\u4f73\u6548\u679c\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u8f6c\u6362\u65b9\u6cd5\u548c\u53c2\u6570\u8bbe\u7f6e\u3002\u901a\u8fc7\u4e0d\u65ad\u4f18\u5316\u548c\u8c03\u6574\uff0c\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u83b7\u5f97\u7406\u60f3\u7684\u8f6c\u6362\u7ed3\u679c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5c06PDF\u6587\u4ef6\u8f6c\u6362\u4e3aPNG\u683c\u5f0f\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5e93\u53ef\u4ee5\u5b9e\u73b0PDF\u5230PNG\u7684\u8f6c\u6362\uff0c\u6700\u5e38\u7528\u7684\u662f<code>pdf2image<\/code>\u5e93\u3002\u5b89\u88c5\u8be5\u5e93\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>convert_from_path<\/code>\u51fd\u6570\u8bfb\u53d6PDF\u6587\u4ef6\u5e76\u5c06\u5176\u8f6c\u6362\u4e3aPNG\u56fe\u50cf\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5bfc\u5165\u5e93\u3001\u8bfb\u53d6PDF\u6587\u4ef6\u4ee5\u53ca\u4fdd\u5b58\u8f6c\u6362\u540e\u7684PNG\u6587\u4ef6\u3002<\/p>\n<p><strong>\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u54ea\u4e9b\u5e38\u89c1\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u8fdb\u884cPDF\u8f6cPNG\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u6587\u4ef6\u8def\u5f84\u9519\u8bef\u3001\u7f3a\u5c11\u4f9d\u8d56\u5e93\u6216\u5185\u5b58\u4e0d\u8db3\u7b49\u95ee\u9898\u3002\u786e\u4fdd\u6587\u4ef6\u8def\u5f84\u6b63\u786e\uff0c\u5e76\u4e14\u5b89\u88c5\u4e86\u6240\u6709\u5fc5\u8981\u7684\u5e93\uff0c\u5982<code>Pillow<\/code>\u548c<code>pdf2image<\/code>\u3002\u5982\u679c\u9047\u5230\u5185\u5b58\u4e0d\u8db3\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u5206\u6279\u5904\u7406PDF\u9875\u9762\u3002<\/p>\n<p><strong>\u8f6c\u6362\u540e\u7684PNG\u56fe\u50cf\u8d28\u91cf\u5982\u4f55\u4fdd\u8bc1\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fdd\u8f6c\u6362\u540e\u7684PNG\u56fe\u50cf\u8d28\u91cf\uff0c\u53ef\u4ee5\u5728\u8c03\u7528<code>convert_from_path<\/code>\u65f6\u8bbe\u7f6edpi\u53c2\u6570\u3002\u901a\u8fc7\u8c03\u6574dpi\u503c\uff0c\u53ef\u4ee5\u63a7\u5236\u8f93\u51fa\u56fe\u50cf\u7684\u5206\u8fa8\u7387\uff0c\u901a\u5e38\u8bbe\u7f6e\u4e3a300\u6216\u66f4\u9ad8\u53ef\u4ee5\u83b7\u5f97\u66f4\u6e05\u6670\u7684\u56fe\u50cf\u3002\u6b64\u5916\uff0c\u9009\u62e9\u9002\u5408\u7684\u56fe\u50cf\u683c\u5f0f\u548c\u538b\u7f29\u65b9\u5f0f\u4e5f\u4f1a\u5f71\u54cd\u6700\u7ec8\u56fe\u50cf\u7684\u8d28\u91cf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1aPython\u901a\u8fc7\u4f7f\u7528PyMuPDF\u3001pdf2image\u5e93\u7b49\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5c06PDF\u6587\u4ef6\u8f6c\u6362\u4e3aPNG\u683c\u5f0f\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1014998,"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\/1014990"}],"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=1014990"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1014990\/revisions"}],"predecessor-version":[{"id":1015001,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1014990\/revisions\/1015001"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1014998"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1014990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1014990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1014990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}