修改 excel2pdf 方法, 使之支持指定工作表或整个工作簿.#2
Open
wyl219 wants to merge 3 commits into
Open
Conversation
Author
|
include 与 exclude两个参数不能同时使用, xlwings中已经做了报错处理. |
两个配套的函数: get_sheet_index:根据从1开始的工作表序号或工作表名,从核查并获取sheet的索引号(从0开始)或工作表名 centimeters2points:用于行高和页边距等的厘米转磅
Author
|
新增一个修改工作表页面设置的方法及两个配套的函数 |
两个配套的函数: get_sheet_index:根据从1开始的工作表序号或工作表名,从核查并获取sheet的索引号(从0开始)或工作表名 centimeters2points:用于行高和页边距等的厘米转磅
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
原项目有一个bug,excel转pdf只会处理第一个工作簿.
将 excel2pdf 中使用的
sheet.to_pdf()修改为book.to_pdf(),详见官方文档 https://docs.xlwings.org/en/latest/api/book.html#xlwings.Book.to_pdfpython-office 项目中也做了相应修改.