{"id":1120617,"date":"2025-01-08T18:58:31","date_gmt":"2025-01-08T10:58:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1120617.html"},"modified":"2025-01-08T18:58:35","modified_gmt":"2025-01-08T10:58:35","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86pdf%e5%ad%98%e5%85%a5%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1120617.html","title":{"rendered":"python\u5982\u4f55\u5c06pdf\u5b58\u5165\u6570\u636e\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083220\/b1461ca2-eb77-4cc3-bebe-d0b3a357bd33.webp\" alt=\"python\u5982\u4f55\u5c06pdf\u5b58\u5165\u6570\u636e\u5e93\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5c06PDF\u5b58\u5165\u6570\u636e\u5e93\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u8bfb\u53d6PDF\u6587\u4ef6\u3001\u5c06\u5176\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u6570\u636e\u3001\u8fde\u63a5\u6570\u636e\u5e93\u3001\u521b\u5efa\u8868\u7ed3\u6784\u3001\u63d2\u5165\u6570\u636e\u3001\u68c0\u7d22\u548c\u4f7f\u7528\u6570\u636e<\/strong>\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u63cf\u8ff0\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u5e76\u63d0\u4f9b\u76f8\u5173\u4ee3\u7801\u793a\u4f8b\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8bfb\u53d6PDF\u6587\u4ef6\u5e76\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5728\u5c06PDF\u6587\u4ef6\u5b58\u5165\u6570\u636e\u5e93\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u8bfb\u53d6\u8be5\u6587\u4ef6\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u6570\u636e\u3002Python\u63d0\u4f9b\u4e86\u4e00\u4e9b\u6807\u51c6\u5e93\u548c\u7b2c\u4e09\u65b9\u5e93\u6765\u5904\u7406\u6587\u4ef6\u8bfb\u53d6\u548c\u4e8c\u8fdb\u5236\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528Python\u5185\u7f6e\u7684<code>open<\/code>\u51fd\u6570\u8bfb\u53d6PDF\u6587\u4ef6<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def read_pdf_file(file_path):<\/p>\n<p>    with open(file_path, &#39;rb&#39;) as file:<\/p>\n<p>        binary_data = file.read()<\/p>\n<p>    return binary_data<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u51fd\u6570\u4f7f\u7528Python\u7684\u5185\u7f6e<code>open<\/code>\u51fd\u6570\u4ee5\u4e8c\u8fdb\u5236\u6a21\u5f0f\u8bfb\u53d6PDF\u6587\u4ef6\uff0c\u5e76\u8fd4\u56de\u4e8c\u8fdb\u5236\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5904\u7406\u6587\u4ef6\u8bfb\u53d6\u7684\u5f02\u5e38\u60c5\u51b5<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u6587\u4ef6\u4e0d\u5b58\u5728\u6216\u65e0\u6cd5\u8bfb\u53d6\u7684\u60c5\u51b5\uff0c\u56e0\u6b64\u9700\u8981\u5904\u7406\u8fd9\u4e9b\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def read_pdf_file(file_path):<\/p>\n<p>    try:<\/p>\n<p>        with open(file_path, &#39;rb&#39;) as file:<\/p>\n<p>            binary_data = file.read()<\/p>\n<p>        return binary_data<\/p>\n<p>    except FileNotFoundError:<\/p>\n<p>        print(f&quot;File not found: {file_path}&quot;)<\/p>\n<p>    except IOError:<\/p>\n<p>        print(f&quot;Error reading file: {file_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u8fde\u63a5\u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><p>\u5728\u5c06PDF\u6587\u4ef6\u5b58\u5165\u6570\u636e\u5e93\u4e4b\u524d\uff0c\u9700\u8981\u8fde\u63a5\u5230\u76ee\u6807\u6570\u636e\u5e93\u3002Python\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5e93\u7528\u4e8e\u8fde\u63a5\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u5e93\uff0c\u5982<code>sqlite3<\/code>\u3001<code>psycopg2<\/code>\uff08\u7528\u4e8ePostgreSQL\uff09\u3001<code>mysql-connector-python<\/code>\uff08\u7528\u4e8eMySQL\uff09\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u8fde\u63a5SQLite\u6570\u636e\u5e93<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<p>def connect_to_db(db_name):<\/p>\n<p>    conn = sqlite3.connect(db_name)<\/p>\n<p>    return conn<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u8fde\u63a5MySQL\u6570\u636e\u5e93<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import mysql.connector<\/p>\n<p>def connect_to_db(host, user, password, database):<\/p>\n<p>    conn = mysql.connector.connect(<\/p>\n<p>        host=host,<\/p>\n<p>        user=user,<\/p>\n<p>        password=password,<\/p>\n<p>        database=database<\/p>\n<p>    )<\/p>\n<p>    return conn<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u521b\u5efa\u8868\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u5728\u5c06PDF\u6587\u4ef6\u5b58\u5165\u6570\u636e\u5e93\u4e4b\u524d\uff0c\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u8868\u6765\u5b58\u50a8\u8fd9\u4e9b\u6587\u4ef6\u3002\u8868\u7ed3\u6784\u5e94\u5305\u62ec\u81f3\u5c11\u4e00\u4e2a\u7528\u4e8e\u5b58\u50a8\u4e8c\u8fdb\u5236\u6570\u636e\u7684\u5b57\u6bb5\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u521b\u5efaSQLite\u8868<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def create_table(conn):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;&#39;&#39;<\/p>\n<p>    CREATE TABLE IF NOT EXISTS pdf_files (<\/p>\n<p>        id INTEGER PRIMARY KEY AUTOINCREMENT,<\/p>\n<p>        file_name TEXT NOT NULL,<\/p>\n<p>        file_data BLOB NOT NULL<\/p>\n<p>    )<\/p>\n<p>    &#39;&#39;&#39;)<\/p>\n<p>    conn.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efaMySQL\u8868<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def create_table(conn):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;&#39;&#39;<\/p>\n<p>    CREATE TABLE IF NOT EXISTS pdf_files (<\/p>\n<p>        id INT AUTO_INCREMENT PRIMARY KEY,<\/p>\n<p>        file_name VARCHAR(255) NOT NULL,<\/p>\n<p>        file_data LONGBLOB NOT NULL<\/p>\n<p>    )<\/p>\n<p>    &#39;&#39;&#39;)<\/p>\n<p>    conn.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u63d2\u5165\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5c06\u8bfb\u53d6\u7684PDF\u6587\u4ef6\u6570\u636e\u63d2\u5165\u5230\u6570\u636e\u5e93\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u63d2\u5165\u6570\u636e\u5230SQLite\u8868<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def insert_pdf_file(conn, file_name, file_data):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;&#39;&#39;<\/p>\n<p>    INSERT INTO pdf_files (file_name, file_data)<\/p>\n<p>    VALUES (?, ?)<\/p>\n<p>    &#39;&#39;&#39;, (file_name, file_data))<\/p>\n<p>    conn.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u63d2\u5165\u6570\u636e\u5230MySQL\u8868<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def insert_pdf_file(conn, file_name, file_data):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;&#39;&#39;<\/p>\n<p>    INSERT INTO pdf_files (file_name, file_data)<\/p>\n<p>    VALUES (%s, %s)<\/p>\n<p>    &#39;&#39;&#39;, (file_name, file_data))<\/p>\n<p>    conn.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u68c0\u7d22\u548c\u4f7f\u7528\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u9700\u8981\u4ece\u6570\u636e\u5e93\u4e2d\u68c0\u7d22PDF\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u76f8\u5e94\u7684SQL\u67e5\u8be2\u8bed\u53e5\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4eceSQLite\u6570\u636e\u5e93\u4e2d\u68c0\u7d22PDF\u6587\u4ef6<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def retrieve_pdf_file(conn, file_id):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;SELECT file_name, file_data FROM pdf_files WHERE id = ?&#39;, (file_id,))<\/p>\n<p>    result = cursor.fetchone()<\/p>\n<p>    return result<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4eceMySQL\u6570\u636e\u5e93\u4e2d\u68c0\u7d22PDF\u6587\u4ef6<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def retrieve_pdf_file(conn, file_id):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;SELECT file_name, file_data FROM pdf_files WHERE id = %s&#39;, (file_id,))<\/p>\n<p>    result = cursor.fetchone()<\/p>\n<p>    return result<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5c06PDF\u6587\u4ef6\u5b58\u5165SQLite\u6570\u636e\u5e93\u5e76\u68c0\u7d22\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<p>def read_pdf_file(file_path):<\/p>\n<p>    try:<\/p>\n<p>        with open(file_path, &#39;rb&#39;) as file:<\/p>\n<p>            binary_data = file.read()<\/p>\n<p>        return binary_data<\/p>\n<p>    except FileNotFoundError:<\/p>\n<p>        print(f&quot;File not found: {file_path}&quot;)<\/p>\n<p>    except IOError:<\/p>\n<p>        print(f&quot;Error reading file: {file_path}&quot;)<\/p>\n<p>def connect_to_db(db_name):<\/p>\n<p>    conn = sqlite3.connect(db_name)<\/p>\n<p>    return conn<\/p>\n<p>def create_table(conn):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;&#39;&#39;<\/p>\n<p>    CREATE TABLE IF NOT EXISTS pdf_files (<\/p>\n<p>        id INTEGER PRIMARY KEY AUTOINCREMENT,<\/p>\n<p>        file_name TEXT NOT NULL,<\/p>\n<p>        file_data BLOB NOT NULL<\/p>\n<p>    )<\/p>\n<p>    &#39;&#39;&#39;)<\/p>\n<p>    conn.commit()<\/p>\n<p>def insert_pdf_file(conn, file_name, file_data):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;&#39;&#39;<\/p>\n<p>    INSERT INTO pdf_files (file_name, file_data)<\/p>\n<p>    VALUES (?, ?)<\/p>\n<p>    &#39;&#39;&#39;, (file_name, file_data))<\/p>\n<p>    conn.commit()<\/p>\n<p>def retrieve_pdf_file(conn, file_id):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&#39;SELECT file_name, file_data FROM pdf_files WHERE id = ?&#39;, (file_id,))<\/p>\n<p>    result = cursor.fetchone()<\/p>\n<p>    return result<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    db_name = &#39;pdf_files.db&#39;<\/p>\n<p>    file_path = &#39;example.pdf&#39;<\/p>\n<p>    conn = connect_to_db(db_name)<\/p>\n<p>    create_table(conn)<\/p>\n<p>    file_data = read_pdf_file(file_path)<\/p>\n<p>    if file_data:<\/p>\n<p>        insert_pdf_file(conn, file_path, file_data)<\/p>\n<p>    retrieved_file = retrieve_pdf_file(conn, 1)<\/p>\n<p>    if retrieved_file:<\/p>\n<p>        with open(f&quot;retrieved_{retrieved_file[0]}&quot;, &#39;wb&#39;) as file:<\/p>\n<p>            file.write(retrieved_file[1])<\/p>\n<p>    conn.close()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><h4>1\u3001\u6570\u636e\u5e93\u5927\u5c0f\u9650\u5236<\/h4>\n<\/p>\n<p><p>\u4e0d\u540c\u7684\u6570\u636e\u5e93\u7cfb\u7edf\u5bf9BLOB\u6570\u636e\u7684\u5927\u5c0f\u6709\u4e0d\u540c\u7684\u9650\u5236\uff0c\u5728\u8bbe\u8ba1\u5b58\u50a8\u7ed3\u6784\u65f6\u9700\u8981\u8003\u8651\u8fd9\u4e9b\u9650\u5236\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5b89\u5168\u6027<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6587\u4ef6\u4e0a\u4f20\u548c\u5b58\u50a8\u65f6\uff0c\u52a1\u5fc5\u8003\u8651\u5b89\u5168\u6027\u95ee\u9898\uff0c\u9632\u6b62SQL\u6ce8\u5165\u548c\u6587\u4ef6\u7c7b\u578b\u9a8c\u8bc1\u7b49\u6f0f\u6d1e\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u6027\u80fd<\/h4>\n<\/p>\n<p><p>\u5b58\u50a8\u5927\u6587\u4ef6\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u5f71\u54cd\u6570\u636e\u5e93\u7684\u6027\u80fd\uff0c\u7279\u522b\u662f\u5728\u9ad8\u5e76\u53d1\u8bbf\u95ee\u7684\u60c5\u51b5\u4e0b\u3002\u5efa\u8bae\u4f7f\u7528\u6587\u4ef6\u5b58\u50a8\u670d\u52a1\uff08\u5982Amazon S3\uff09\u5e76\u5728\u6570\u636e\u5e93\u4e2d\u5b58\u50a8\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h4>4\u3001\u5907\u4efd\u548c\u6062\u590d<\/h4>\n<\/p>\n<p><p>\u786e\u4fdd\u6709\u9002\u5f53\u7684\u5907\u4efd\u548c\u6062\u590d\u7b56\u7565\uff0c\u4ee5\u9632\u6570\u636e\u4e22\u5931\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Python\u5c06PDF\u6587\u4ef6\u5b58\u5165\u6570\u636e\u5e93\u6d89\u53ca\u591a\u4e2a\u6b65\u9aa4\uff0c\u5305\u62ec\u8bfb\u53d6PDF\u6587\u4ef6\u3001\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u6570\u636e\u3001\u8fde\u63a5\u6570\u636e\u5e93\u3001\u521b\u5efa\u8868\u7ed3\u6784\u3001\u63d2\u5165\u6570\u636e\u4ee5\u53ca\u68c0\u7d22\u6570\u636e\u3002\u901a\u8fc7\u9075\u5faa\u672c\u6587\u63d0\u4f9b\u7684\u793a\u4f8b\u4ee3\u7801\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u7ba1\u7406PDF\u6587\u4ef6\u7684\u5b58\u50a8\u548c\u68c0\u7d22\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06PDF\u6587\u4ef6\u8f6c\u6362\u4e3a\u9002\u5408\u6570\u636e\u5e93\u5b58\u50a8\u7684\u683c\u5f0f\uff1f<\/strong><br \/>\u5728\u5c06PDF\u6587\u4ef6\u5b58\u5165\u6570\u636e\u5e93\u4e4b\u524d\uff0c\u901a\u5e38\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u5e76\u5c06\u5176\u7f16\u7801\u4e3a\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u6765\u5b9e\u73b0\u3002\u4f7f\u7528Python\u7684<code>open()<\/code>\u51fd\u6570\u4ee5\u4e8c\u8fdb\u5236\u6a21\u5f0f\u8bfb\u53d6PDF\u6587\u4ef6\uff0c\u7136\u540e\u53ef\u4ee5\u4f7f\u7528<code>bytearray<\/code>\u6216<code>binascii<\/code>\u6a21\u5757\u5c06\u5176\u8f6c\u6362\u4e3a\u9002\u5408\u5b58\u50a8\u7684\u683c\u5f0f\u3002<\/p>\n<p><strong>\u5b58\u50a8PDF\u6587\u4ef6\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u6570\u636e\u5e93\u5b57\u6bb5\u7c7b\u578b\uff1f<\/strong><br \/>\u5728\u8bbe\u8ba1\u6570\u636e\u5e93\u8868\u4ee5\u5b58\u50a8PDF\u6587\u4ef6\u65f6\uff0c\u63a8\u8350\u4f7f\u7528<code>BLOB<\/code>\uff08Binary Large Object\uff09\u6570\u636e\u7c7b\u578b\u3002<code>BLOB<\/code>\u7c7b\u578b\u5141\u8bb8\u5b58\u50a8\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u9002\u5408\u5b58\u653e\u5982PDF\u8fd9\u7c7b\u6587\u4ef6\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u6570\u636e\u5e93\u7684\u914d\u7f6e\u80fd\u591f\u5904\u7406\u5927\u6587\u4ef6\uff0c\u907f\u514d\u56e0\u6587\u4ef6\u8fc7\u5927\u800c\u5bfc\u81f4\u7684\u5b58\u50a8\u95ee\u9898\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0PDF\u6587\u4ef6\u7684\u4e0a\u4f20\u548c\u5b58\u50a8\u5230\u6570\u636e\u5e93\u7684\u8fc7\u7a0b\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>Flask<\/code>\u6216<code>Django<\/code>\u7b49Web\u6846\u67b6\u6765\u5904\u7406\u6587\u4ef6\u4e0a\u4f20\u3002\u4e0a\u4f20\u540e\uff0c\u901a\u8fc7\u6570\u636e\u5e93\u8fde\u63a5\u5e93\uff08\u5982<code>sqlite3<\/code>\u3001<code>SQLAlchemy<\/code>\u7b49\uff09\u5c06\u8bfb\u53d6\u7684PDF\u5185\u5bb9\u5b58\u5165<code>BLOB<\/code>\u5b57\u6bb5\u3002\u4ee3\u7801\u793a\u4f8b\u901a\u5e38\u5305\u62ec\u4ece\u8bf7\u6c42\u4e2d\u83b7\u53d6\u6587\u4ef6\uff0c\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff0c\u5e76\u6267\u884c\u63d2\u5165\u64cd\u4f5c\uff0c\u5c06\u5176\u4fdd\u5b58\u5230\u76f8\u5e94\u7684\u6570\u636e\u5e93\u8868\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5c06PDF\u5b58\u5165\u6570\u636e\u5e93\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u8bfb\u53d6PDF\u6587\u4ef6\u3001\u5c06\u5176\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u6570\u636e\u3001\u8fde\u63a5\u6570\u636e\u5e93\u3001\u521b\u5efa\u8868\u7ed3\u6784\u3001\u63d2 [&hellip;]","protected":false},"author":3,"featured_media":1120624,"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\/1120617"}],"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=1120617"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1120617\/revisions"}],"predecessor-version":[{"id":1120626,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1120617\/revisions\/1120626"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1120624"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1120617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1120617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1120617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}