使用PyPdf2合并PDF文件(没有空白.报错) 对于合并之后pdf空白,或者出现 'latin-1' codec can't encode characters in position 8-11: ordinal not in range(256),请参照下面的链接对PyPdf2进行修改 https://blog.csdn.net/weixin_43116153/article/details/105218309 作者:小羊瓜瓜 修改完成后,便可以正常使用PyPdf2库对文件进行合并 代码如下…
输出端出现以下问题: PdfReadWarning: Xref table not zero-indexed. ID numbers for objects will be 解决方案: import sys if not sys.warnoptions: import warnings warnings.simplefilter("ignore")…