跳到正文
r/MachineLearning· /u/Low-Experience8986·· 21 天前AI 评分47

浏览器端 .ipynb 转 PDF 工具:无需 LaTeX 和 pandoc,文件不上传

Every lab assignment in my course ended the same way: Export your notebook as PDF and upload it. Not self promotion this my first project i made [D]

AI 导读

一名用户因课程作业导出 PDF 时反复遇到 xelatex、pandoc 缺失和代码截断问题,自建了一款浏览器端工具,打开 .ipynb 即可下载干净 PDF,无需安装 LaTeX 或 pandoc,文件不会上传服务器。

正文

​

And every time:

- File → Download as → PDF → "xelatex not found"

- Installed LaTeX (4 GB!) → "pandoc not found"

- Fixed that → long code lines got cut off at the edge of the page

- Tried browser print → charts split across pages

- 11:58 PM, deadline at midnight, panicking 🙃

The online converters I found wanted me to upload my assignment to their server, were full of ads, or gave an ugly PDF that looked nothing like my notebook.

So I built my own: https://ipynbtopdfscanner.com

What it does:

- Open your .ipynb → download a clean PDF. No LaTeX, no pandoc, no install

- Runs in your browser, so your file is never uploaded

- Long code wraps instead of getting cut off

- Keeps charts, tables, math equations and outputs

- Hide code, add your name on the title page, or keep the Jupyter look

- Works on your phone too

- Works for Colab, VS Code, Kaggle and Deepnote notebooks (download the .ipynb first)

Free, no sign-up.

Full disclosure: I used AI to help me build the site and write this post. The problem and the frustration were 100% mine though.

This is my first real project, so honest feedback would really help. If a notebook looks wrong in the PDF, tell me and I'll fix it.

submitted by /u/Low-Experience8986
[link] [留言]

来源:r/MachineLearning · reddit.com