Excel 转 PDF
把 .xlsx 的工作表变成可读、可打印的表格。
这款工具完全在你的浏览器中运行。文件从不上传,你可以在浏览器的网络标签中亲自验证这一点。 亲自验证:打开浏览器的网络标签观察。你会看到一个查询你是否还有剩余任务的小请求,只包含工具名称和一段哈希,绝不会包含文件。
这款工具的作用
A spreadsheet has no pages, no margins and frequently no sensible width, so converting one is a series of choices rather than a straight translation. This reads the .xlsx directly, resolves what each cell actually displays, and sets the sheets as tables on paper you pick. The defaults are landscape, fit to width, and the header row repeated after every page break.
Use it when a sheet has to be read rather than worked in: a price list going to a client, a timesheet attached to an invoice, an export from an accounting system that somebody needs on paper, or a table you want to hand over in a form that will not be quietly edited.
工作原理
- Drop your .xlsx files onto this page. Every sheet in each workbook is converted.
- Leave the orientation on landscape unless your sheet is unusually narrow - most are wider than they are tall.
- Keep fit to width on so the table is set at 9 point and the columns cross the page instead of running off it.
- Decide whether to draw grid lines, and whether each sheet's name should be printed as a heading above it.
- Raise the column limit under advanced options if your sheet is wider than 20 columns and you want all of them.
- Press Convert and the PDF downloads.
Dates are what spreadsheet converters get wrong most often. A date in a .xlsx is a plain number with a number-format attached to it; read the number without resolving the format and every date in the document turns into a five-digit integer. The format is resolved here, in the reader, before anything reaches the layout - which is why 45000 arrives as a date and not as forty-five thousand.
Formulas are read as their last calculated value rather than as formulas, which is almost always what a printed table should show and is also the only honest option: evaluating a workbook's dependency graph would mean implementing Excel's function library. The consequence worth knowing is that a workbook saved without recalculating carries stale values, and the PDF will faithfully reproduce them.
The column ceiling exists so the tool says something rather than shrinks. A sheet forty columns wide, scaled until all forty fit across A4, produces four-point type that nobody can read - so 20 columns is the default and the remainder are left out visibly instead of being crushed in. Raise the limit to 50 if you need to, and think about A3 in landscape at the same time.
Fit to width sets the base type at 9 point instead of 11. That is the whole of what it does, and the bluntness is deliberate: a fixed size you can predict beats an automatic scale factor that comes out differently on every sheet, and 9 point fits roughly a fifth more columns across a page than 11 does.
Each sheet starts on a fresh page by default, and its name becomes both a heading and a bookmark, so a twelve-sheet workbook arrives as a twelve-entry outline. Switch to run on under advanced options and the break between sheets is removed, which is worth doing when the sheets are short enough that each would otherwise waste most of a page.
这款工具做不到的事
- Charts, sparklines and other drawings on a sheet are not converted. Only cell values and the table structure come across.
- Cell formatting is reduced to the table's own structure. Fill colours, custom borders and conditional formatting are not reproduced.
- Columns beyond the limit - 20 by default, 50 at most - are left out rather than the type being shrunk until everything fits.
常见问题
- 我的电子表格比页面还宽。会怎么样?
- 前 20 列会被转换,其余的会被略去。你可以在高级选项中把这个上限提高到 50,但请先试试横向并开启「适应宽度」,也考虑一下 A3——真正需要 40 列的表格需要的是更大的纸,而不是更小的字。超过上限的列会被报告,而不是悄悄丢弃。
- 我的图表会保留吗?
- 不会。.xlsx 中的图表是用它自己的 XML 方言描述、由 Excel 在显示时绘制的图形,所以再现它意味着要实现 Excel 的图表渲染器。会被转换的是单元格的值、它们的显示格式和表格结构。如果图表才是重点,就把它截图并使用「图片转 PDF」,或者从 Excel 导出后再叠加上去。
- 公式会被重新计算吗?
- 不会。每个单元格最后一次计算的值会从文件中读取,也就是保存工作簿时 Excel 显示的值。这通常正是一张打印表格应当包含的内容。如果一个工作簿在保存前没有重新计算,PDF 会带上和文件相同的过时数字——打开它,重新计算,保存,再重新转换。
- 有多个工作表的工作簿会怎样?
- 全部都会按工作簿顺序转换。默认情况下每个工作表都从新的一页开始,其名称作为标题,也作为 PDF 书签大纲中的一个条目。在高级选项中把「工作表之间」设置改为「连续排布」,这些分页就会去掉,于是短的工作表会一个接一个,而不是各占一页。
- 我的电子表格会被上传吗?
- 不会。.xlsx 在你浏览器内的 Web Worker 中解压和读取,PDF 也在那里生成。这对电子表格比对多数文件更重要,因为一个工作簿通常包含的东西远不止你想打印的那张表。它的任何部分都不会去到别处,因为文件的任何部分都不会。