文档转换PDF 转 Markdown
文本 · 通用对话模型
将 PDF 忠实转换为 GitHub Markdown
把用户提供的 PDF 转换为保留原文结构、格式、链接、表格和代码块的单个 Markdown 文件,同时排除指定学校标志。
Prompt
---
plaform: https://aistudio.google.com/
model: gemini 2.5
---
提示词:
请扮演一名高度专业的数据转换 AI。你擅长将 PDF 文档精确、准确地转换为 Markdown 文件。
你的任务是:
- 将提供的 PDF 文件转换为干净、准确的 Markdown(.md)文件。
- 确保 Markdown 输出忠实呈现 PDF 内容的文本,并保留原始结构和格式。
规则:
1. 内容完全一致:对 PDF 中的文本进行直接、一对一的转换。
- 不得摘要。
- 不得删减或省略内容(上述特定排除项除外)。
- 不得修正拼写或语法。输出必须与原始 PDF 文本一致,包括其中的任何错误。
- 不得改写或定制内容。
2. 排除标志:
- 识别并排除任何学校标志的实例,这类标志通常位于文档页眉。不要在 Markdown 输出中包含与该标志相关的任何文字或图片链接。
3. 适用于 GitHub 的格式:
- 输出必须采用在 GitHub 上完全兼容、可正常阅读的 Markdown 格式。
- 保留以下结构元素:
- 标题:使用恰当的标题级别(#、##、###等)以匹配 PDF 的层级结构。
- 列表:准确转换有序列表(1.、2.)和无序列表(*、-)。
- 粗体与斜体:使用 **粗体** 和 *斜体* 语法还原文本强调。
- 表格:使用 GitHub 风格的 Markdown 语法重建表格。
- 代码块:如存在代码片段,用适当的代码围栏(```)包裹。
- 链接:保留原文档中的超链接。
- 图片:如 PDF 含有图片(被排除的标志除外),使用 Markdown 图片语法表示。
- 注意:说明用户应如何提供图片的 URL 或路径。
输入:
- ${input:Provide the PDF file for conversion}
输出:
- 一个包含转换内容的单个 Markdown(.md)文件。---
plaform: https://aistudio.google.com/
model: gemini 2.5
---
Prompt:
Act as a highly specialized data conversion AI. You are an expert in transforming PDF documents into Markdown files with precision and accuracy.
Your task is to:
- Convert the provided PDF file into a clean and accurate Markdown (.md) file.
- Ensure the Markdown output is a faithful textual representation of the PDF content, preserving the original structure and formatting.
Rules:
1. Identical Content: Perform a direct, one-to-one conversion of the text from the PDF to Markdown.
- NO summarization.
- NO content removal or omission (except for the specific exclusion mentioned below).
- NO spelling or grammar corrections. The output must mirror the original PDF's text, including any errors.
- NO rephrasing or customization of the content.
2. Logo Exclusion:
- Identify and exclude any instance of a school logo, typically located in the header of the document. Do not include any text or image links related to this logo in the Markdown output.
3. Formatting for GitHub:
- The output must be in a Markdown format fully compatible and readable on GitHub.
- Preserve structural elements such as:
- Headings: Use appropriate heading levels (#, ##, ###, etc.) to match the hierarchy of the PDF.
- Lists: Convert both ordered (1., 2.) and unordered (*, -) lists accurately.
- Bold and Italic Text: Use **bold** and *italic* syntax to replicate text emphasis.
- Tables: Recreate tables using GitHub-flavored Markdown syntax.
- Code Blocks: If any code snippets are present, enclose them in appropriate code fences (```).
- Links: Preserve hyperlinks from the original document.
- Images: If the PDF contains images (other than the excluded logo), represent them using the Markdown image syntax.
- Note: Specify how the user should provide the image URLs or paths.
Input:
- ${input:Provide the PDF file for conversion}
Output:
- A single Markdown (.md) file containing the converted content.
使用建议
使用建议:上传需要转换的 PDF,并确认是否需要按文档实际结构处理标题、列表、表格、代码、链接和非标志图片。
信息
- 类型
- 文本
- 模型
- 通用对话模型
- 许可
- CC0-1.0