{"id":931498,"date":"2024-12-26T17:37:47","date_gmt":"2024-12-26T09:37:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/931498.html"},"modified":"2024-12-26T17:37:49","modified_gmt":"2024-12-26T09:37:49","slug":"python%e5%a6%82%e4%bd%95%e6%b8%b2%e6%9f%93pdf","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/931498.html","title":{"rendered":"python\u5982\u4f55\u6e32\u67d3PDF"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25065807\/08839c38-7927-42db-bb4f-073a60a17e30.webp\" alt=\"python\u5982\u4f55\u6e32\u67d3PDF\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u6e32\u67d3PDF\uff0c\u53ef\u4ee5\u4f7f\u7528\u8bf8\u5982<code>ReportLab<\/code>\u3001<code>PyPDF2<\/code>\u3001<code>FPDF<\/code>\u3001<code>WeasyPrint<\/code>\u7b49\u5e93\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u6765\u521b\u5efa\u3001\u7f16\u8f91\u548c\u6e32\u67d3PDF\u6587\u4ef6\u3002\u5176\u4e2d\uff0c<code>ReportLab<\/code>\u4ee5\u5176\u5f3a\u5927\u7684\u7ed8\u56fe\u548c\u5e03\u5c40\u80fd\u529b\u800c\u95fb\u540d\uff0c\u9002\u5408\u751f\u6210\u590d\u6742\u7684PDF\u6587\u6863\u3002<\/strong><code>ReportLab<\/code>\u80fd\u591f\u521b\u5efa\u9ad8\u8d28\u91cf\u7684PDF\u6587\u4ef6\uff0c\u5e76\u652f\u6301\u5404\u79cd\u56fe\u5f62\u548c\u56fe\u50cf\u683c\u5f0f\uff0c\u975e\u5e38\u9002\u5408\u751f\u6210\u52a8\u6001\u5185\u5bb9\u7684PDF\u6587\u6863\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528<code>ReportLab<\/code>\u4ee5\u53ca\u5176\u4ed6\u5e93\u6765\u5b9e\u73b0PDF\u7684\u6e32\u67d3\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001REPORTLAB\u6e32\u67d3PDF<\/p>\n<\/p>\n<p><p><code>ReportLab<\/code>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684Python\u5e93\uff0c\u7528\u4e8e\u521b\u5efaPDF\u6587\u6863\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5305\u62ec\u56fe\u5f62\u3001\u8868\u683c\u3001\u6587\u672c\u683c\u5f0f\u5316\u7b49\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528<code>ReportLab<\/code>\u751f\u6210PDF\u7684\u57fa\u672c\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5ReportLab<\/li>\n<\/ol>\n<p><p>\u8981\u4f7f\u7528<code>ReportLab<\/code>\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u8be5\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install reportlab<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684PDF\u6587\u6863<\/li>\n<\/ol>\n<p><p>\u521b\u5efa\u4e00\u4e2aPDF\u6587\u6863\u901a\u5e38\u4ece\u5bfc\u5165\u5e93\u5f00\u59cb\uff0c\u7136\u540e\u5b9a\u4e49\u6587\u6863\u7684\u57fa\u672c\u5c5e\u6027\uff0c\u5982\u9875\u9762\u5927\u5c0f\u3001\u9875\u8fb9\u8ddd\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from reportlab.lib.pagesizes import letter<\/p>\n<p>from reportlab.pdfgen import canvas<\/p>\n<p>def create_pdf(file_path):<\/p>\n<p>    my_canvas = canvas.Canvas(file_path, pagesize=letter)<\/p>\n<p>    my_canvas.drawString(100, 750, &quot;Welcome to ReportLab!&quot;)<\/p>\n<p>    my_canvas.save()<\/p>\n<p>create_pdf(&quot;example.pdf&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a<code>example.pdf<\/code>\u7684PDF\u6587\u4ef6\uff0c\u5e76\u5728\u9875\u9762\u4e0a\u7ed8\u5236\u4e86\u4e00\u884c\u6587\u672c\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u6dfb\u52a0\u56fe\u5f62\u548c\u56fe\u50cf<\/li>\n<\/ol>\n<p><p><code>ReportLab<\/code>\u5141\u8bb8\u5728PDF\u4e2d\u6dfb\u52a0\u5404\u79cd\u56fe\u5f62\u548c\u56fe\u50cf\u3002\u53ef\u4ee5\u7ed8\u5236\u7ebf\u6761\u3001\u77e9\u5f62\u3001\u5706\u5f62\u7b49\u57fa\u672c\u56fe\u5f62\uff0c\u5e76\u63d2\u5165\u56fe\u7247\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def create_pdf_with_graphics(file_path):<\/p>\n<p>    my_canvas = canvas.Canvas(file_path, pagesize=letter)<\/p>\n<p>    my_canvas.drawString(100, 750, &quot;Welcome to ReportLab with Graphics!&quot;)<\/p>\n<p>    my_canvas.line(100, 740, 400, 740)<\/p>\n<p>    my_canvas.rect(100, 700, 200, 50, fill=1)<\/p>\n<p>    my_canvas.drawImage(&quot;example.jpg&quot;, 100, 600, width=100, height=100)<\/p>\n<p>    my_canvas.save()<\/p>\n<p>create_pdf_with_graphics(&quot;example_with_graphics.pdf&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u4ee3\u7801\u5728PDF\u4e2d\u6dfb\u52a0\u4e86\u7ebf\u6761\u3001\u77e9\u5f62\u548c\u56fe\u7247\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001PYPDF2\u8bfb\u53d6\u548c\u7f16\u8f91PDF<\/p>\n<\/p>\n<p><p><code>PyPDF2<\/code>\u662f\u53e6\u4e00\u4e2a\u6d41\u884c\u7684\u5e93\uff0c\u7528\u4e8e\u8bfb\u53d6\u548c\u7f16\u8f91\u73b0\u6709\u7684PDF\u6587\u6863\u3002\u5c3d\u7ba1\u5b83\u4e0d\u652f\u6301\u521b\u5efa\u65b0\u7684PDF\uff0c\u4f46\u5b83\u5728\u5904\u7406\u5df2\u6709PDF\u6587\u4ef6\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5PyPDF2<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528pip\u5b89\u88c5<code>PyPDF2<\/code>\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>\u8bfb\u53d6PDF\u6587\u6863<\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>PyPDF2<\/code>\u8bfb\u53d6PDF\u6587\u6863\u7684\u5185\u5bb9\uff0c\u5e76\u63d0\u53d6\u6587\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import PyPDF2<\/p>\n<p>def read_pdf(file_path):<\/p>\n<p>    with open(file_path, &quot;rb&quot;) as file:<\/p>\n<p>        reader = PyPDF2.PdfReader(file)<\/p>\n<p>        text = &quot;&quot;<\/p>\n<p>        for page in reader.pages:<\/p>\n<p>            text += page.extract_text()<\/p>\n<p>        return text<\/p>\n<p>pdf_text = read_pdf(&quot;example.pdf&quot;)<\/p>\n<p>print(pdf_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u5408\u5e76\u548c\u62c6\u5206PDF<\/li>\n<\/ol>\n<p><p><code>PyPDF2<\/code>\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5408\u5e76\u591a\u4e2aPDF\u6587\u4ef6\u6216\u62c6\u5206PDF\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def merge_pdfs(pdf_list, output_path):<\/p>\n<p>    pdf_writer = PyPDF2.PdfWriter()<\/p>\n<p>    for pdf in pdf_list:<\/p>\n<p>        with open(pdf, &quot;rb&quot;) as file:<\/p>\n<p>            reader = PyPDF2.PdfReader(file)<\/p>\n<p>            for page in reader.pages:<\/p>\n<p>                pdf_writer.add_page(page)<\/p>\n<p>    with open(output_path, &quot;wb&quot;) as output_file:<\/p>\n<p>        pdf_writer.write(output_file)<\/p>\n<p>merge_pdfs([&quot;file1.pdf&quot;, &quot;file2.pdf&quot;], &quot;merged.pdf&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001FPDF\u751f\u6210\u7b80\u5355PDF<\/p>\n<\/p>\n<p><p><code>FPDF<\/code>\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684PDF\u751f\u6210\u5e93\uff0c\u9002\u5408\u4e8e\u9700\u8981\u5feb\u901f\u751f\u6210\u7b80\u5355PDF\u7684\u573a\u666f\u3002\u5b83\u7684API\u7b80\u5355\u6613\u7528\uff0c\u4f46\u529f\u80fd\u8f83\u4e3a\u57fa\u7840\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5FPDF<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7pip\u5b89\u88c5<code>FPDF<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install fpdf<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efaPDF\u6587\u6863<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>FPDF<\/code>\u521b\u5efaPDF\u6587\u6863\u975e\u5e38\u7b80\u5355\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from fpdf import FPDF<\/p>\n<p>def create_simple_pdf(file_path):<\/p>\n<p>    pdf = FPDF()<\/p>\n<p>    pdf.add_page()<\/p>\n<p>    pdf.set_font(&quot;Arial&quot;, size=12)<\/p>\n<p>    pdf.cell(200, 10, txt=&quot;Welcome to FPDF!&quot;, ln=True, align=&#39;C&#39;)<\/p>\n<p>    pdf.output(file_path)<\/p>\n<p>create_simple_pdf(&quot;simple.pdf&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u6dfb\u52a0\u591a\u79cd\u5143\u7d20<\/li>\n<\/ol>\n<p><p>\u5c3d\u7ba1<code>FPDF<\/code>\u529f\u80fd\u76f8\u5bf9\u57fa\u7840\uff0c\u4f46\u5b83\u4ecd\u7136\u652f\u6301\u6dfb\u52a0\u8868\u683c\u3001\u56fe\u50cf\u7b49\u5143\u7d20\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def create_pdf_with_elements(file_path):<\/p>\n<p>    pdf = FPDF()<\/p>\n<p>    pdf.add_page()<\/p>\n<p>    pdf.set_font(&quot;Arial&quot;, size=12)<\/p>\n<p>    pdf.cell(200, 10, txt=&quot;Welcome to FPDF!&quot;, ln=True, align=&#39;C&#39;)<\/p>\n<p>    pdf.set_font(&quot;Arial&quot;, size=10)<\/p>\n<p>    pdf.cell(100, 10, txt=&quot;This is a table row&quot;, border=1)<\/p>\n<p>    pdf.image(&quot;example.jpg&quot;, x=10, y=30, w=50)<\/p>\n<p>    pdf.output(file_path)<\/p>\n<p>create_pdf_with_elements(&quot;elements.pdf&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001WEASYPRINT\u4eceHTML\u751f\u6210PDF<\/p>\n<\/p>\n<p><p><code>WeasyPrint<\/code>\u662f\u4e00\u4e2a\u57fa\u4e8eHTML\u548cCSS\u751f\u6210PDF\u7684\u5de5\u5177\uff0c\u975e\u5e38\u9002\u5408\u4ece\u7f51\u9875\u5185\u5bb9\u751f\u6210PDF\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5WeasyPrint<\/li>\n<\/ol>\n<p><p>\u5b89\u88c5<code>WeasyPrint<\/code>\u9700\u8981\u4e00\u4e9b\u989d\u5916\u7684\u4f9d\u8d56\uff0c\u5efa\u8bae\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install WeasyPrint<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4eceHTML\u751f\u6210PDF<\/li>\n<\/ol>\n<p><p><code>WeasyPrint<\/code>\u53ef\u4ee5\u76f4\u63a5\u5c06HTML\u548cCSS\u6e32\u67d3\u4e3aPDF\uff0c\u975e\u5e38\u9002\u5408\u5c06\u7f51\u9875\u8f6c\u6362\u4e3aPDF\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from weasyprint import HTML<\/p>\n<p>def html_to_pdf(html_content, output_path):<\/p>\n<p>    HTML(string=html_content).write_pdf(output_path)<\/p>\n<p>html_content = &quot;&quot;&quot;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>  &lt;body&gt;<\/p>\n<p>    &lt;h1&gt;Hello, WeasyPrint!&lt;\/h1&gt;<\/p>\n<p>    &lt;p&gt;This is a paragraph in PDF.&lt;\/p&gt;<\/p>\n<p>  &lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<p>html_to_pdf(html_content, &quot;webpage.pdf&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u6e32\u67d3PDF\u6709\u591a\u79cd\u9009\u62e9\uff0c<code>ReportLab<\/code>\u9002\u5408\u9700\u8981\u590d\u6742\u5e03\u5c40\u548c\u56fe\u5f62\u7684PDF\u751f\u6210\uff0c<code>PyPDF2<\/code>\u7528\u4e8e\u8bfb\u53d6\u548c\u7f16\u8f91\u73b0\u6709PDF\uff0c<code>FPDF<\/code>\u7528\u4e8e\u5feb\u901f\u751f\u6210\u7b80\u5355PDF\uff0c\u800c<code>WeasyPrint<\/code>\u5219\u9002\u5408\u4eceHTML\u751f\u6210PDF\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\uff0c\u9009\u62e9\u9002\u5408\u7684\u5de5\u5177\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5728Python\u4e2d\u8f7b\u677e\u5b9e\u73b0PDF\u7684\u521b\u5efa\u3001\u7f16\u8f91\u548c\u6e32\u67d3\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u751f\u6210PDF\u6587\u4ef6\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e93\u7528\u4e8e\u521b\u5efa\u548c\u751f\u6210PDF\u6587\u4ef6\uff0c\u5176\u4e2d\u8f83\u4e3a\u5e38\u7528\u7684\u6709ReportLab\u3001FPDF\u548cPyPDF2\u7b49\u3002ReportLab\u662f\u529f\u80fd\u5f3a\u5927\u7684\u5e93\uff0c\u80fd\u591f\u521b\u5efa\u590d\u6742\u7684PDF\u6587\u6863\uff0c\u5305\u62ec\u56fe\u5f62\u3001\u56fe\u50cf\u548c\u591a\u79cd\u6587\u672c\u683c\u5f0f\u3002\u4f7f\u7528FPDF\u5219\u76f8\u5bf9\u7b80\u5355\uff0c\u9002\u5408\u4e8e\u751f\u6210\u57fa\u672c\u7684PDF\u6587\u4ef6\u3002\u4f7f\u7528\u8fd9\u4e9b\u5e93\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199Python\u4ee3\u7801\uff0c\u5b9a\u4e49\u9875\u9762\u5e03\u5c40\u3001\u6587\u672c\u5185\u5bb9\u548c\u6837\u5f0f\u7b49\uff0c\u6700\u7ec8\u8f93\u51fa\u4e3aPDF\u683c\u5f0f\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u6e32\u67d3PDF\u65f6\uff0c\u5982\u4f55\u6dfb\u52a0\u56fe\u7247\u548c\u56fe\u5f62\uff1f<\/strong><br \/>\u5728\u6e32\u67d3PDF\u65f6\uff0c\u4f7f\u7528ReportLab\u5e93\u80fd\u591f\u8f7b\u677e\u5730\u5c06\u56fe\u7247\u548c\u56fe\u5f62\u6dfb\u52a0\u5230PDF\u6587\u6863\u4e2d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>drawImage()<\/code>\u65b9\u6cd5\u63d2\u5165\u56fe\u7247\uff0c\u786e\u4fdd\u56fe\u7247\u8def\u5f84\u6b63\u786e\uff0c\u5e76\u8bbe\u7f6e\u5408\u9002\u7684\u5750\u6807\u548c\u5927\u5c0f\u3002\u540c\u65f6\uff0cReportLab\u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ed8\u56fe\u529f\u80fd\uff0c\u5141\u8bb8\u4f60\u4f7f\u7528<code>canvas<\/code>\u5bf9\u8c61\u7ed8\u5236\u7ebf\u6761\u3001\u77e9\u5f62\u3001\u5706\u5f62\u7b49\u57fa\u672c\u56fe\u5f62\u3002\u8fd9\u4f7f\u5f97PDF\u6587\u6863\u7684\u5185\u5bb9\u66f4\u52a0\u751f\u52a8\u548c\u5438\u5f15\u4eba\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5bf9PDF\u8fdb\u884c\u4fee\u6539\u6216\u7f16\u8f91\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u7f16\u8f91\u5df2\u6709\u7684PDF\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528PyPDF2\u6216pdfrw\u7b49\u5e93\u3002PyPDF2\u5141\u8bb8\u4f60\u5408\u5e76\u591a\u4e2aPDF\u6587\u4ef6\u3001\u63d0\u53d6\u9875\u9762\u6216\u65cb\u8f6c\u9875\u9762\u3002\u901a\u8fc7\u8bfb\u53d6PDF\u6587\u4ef6\u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684PDF\u5bf9\u8c61\uff0c\u53ef\u4ee5\u5bf9\u5185\u5bb9\u8fdb\u884c\u4fee\u6539\u6216\u91cd\u65b0\u6392\u5217\u3002\u800cpdfrw\u5219\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u64cd\u4f5c\uff0c\u53ef\u4ee5\u76f4\u63a5\u8bfb\u53d6\u548c\u5199\u5165PDF\u6587\u4ef6\uff0c\u9002\u5408\u9700\u8981\u6df1\u5165\u7f16\u8f91\u7684\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u6e32\u67d3PDF\uff0c\u53ef\u4ee5\u4f7f\u7528\u8bf8\u5982ReportLab\u3001PyPDF2\u3001FPDF\u3001WeasyPrint\u7b49\u5e93 [&hellip;]","protected":false},"author":3,"featured_media":931500,"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\/931498"}],"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=931498"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/931498\/revisions"}],"predecessor-version":[{"id":931501,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/931498\/revisions\/931501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/931500"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=931498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=931498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=931498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}