📄
AutomationPython

Txt To Pdf

by CoderWanFeng

Txt To Pdf is an Automation skill for Claude Code, published by CoderWanFeng in python-office.

1.3K stars301 forkson CoderWanFeng/python-officeAdded 2026/08/12Repository updated 2026/08/04
officepippypipythonweixin
Install in seconds
Install Txt To Pdf
Copy Txt To Pdf into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/pdf/txt2pdf ~/.claude/skills/txt2pdf

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/CoderWanFeng/python-office.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/pdf/txt2pdf/SKILL.md in CoderWanFeng/python-office
Installs to
~/.claude/skills/txt2pdf
Collection
One of 50 skills cataloged from this repository
Category
Automation1523 skills

What Txt To Pdf does

Txt To Pdf converts .txt files into PDF documents. Use it when you need to turn a text file into a PDF for sharing or archiving.

Txt To Pdf is cataloged under Automation on DirSkills. Txt To Pdf comes from a repository tagged office, pip, pypi, python and weixin.

Documentation

README

txt2pdf Skill

将文本文件转换为 PDF 文件

功能描述

将文本文件(.txt)转换为 PDF 格式。

所属分类

office/skills/pdf/txt2pdf/

调用方式

from skills.pdf import txt2pdf

txt2pdf(
    input_file='./test.txt',
    output_file='./test.pdf'
)

参数说明

参数 类型 必填 默认值 说明
input_file str - 文本文件路径
output_file str 'txt2pdf.pdf' 输出 PDF 文件路径

返回值

None

使用示例

from skills.pdf import txt2pdf
txt2pdf(input_file='./article.txt', output_file='./article.pdf')

视频教程

https://www.python4office.cn/python-office/popdf/%E8%AF%BE%E7%A8%8B/3-txt2pdf/

原始函数

office.api.pdf.txt2pdf

Frequently asked about Txt To Pdf

  • What else does CoderWanFeng publish alongside Txt To Pdf?

    Txt To Pdf is one of 50 skills that DirSkills catalogs from CoderWanFeng/python-office, the repository it ships in. Its siblings there include Add Image Watermark, Add Line by Type and Add Text Watermark. Each one is a separate skill with its own page in this directory, installs the same way Txt To Pdf does, and is maintained by CoderWanFeng in that same repository. The rest of the collection is listed on the CoderWanFeng/python-office page.

  • How does Txt To Pdf compare to other Automation skills?

    Txt To Pdf ranks #669 by stars among the 1523 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Txt To Pdf against them. Open each page to compare what they document and how they install.