当前位置:嗨网首页>书籍在线阅读

24-习题

  
选择背景色: 黄橙 洋红 淡粉 水蓝 草绿 白色 选择字体: 宋体 黑体 微软雅黑 楷体 选择字体大小: 恢复默认

15.6 习题

1.不能将PDF文档名的字符串传递给 PyPDF2.PdfFileReader() 函数。应该向该函数传递什么?

2. PdfFileReader()PdfFileWriter() 需要的 File 对象,应该以何种模式打开?

3.如何从 PdfFileReader 对象中取得第5页的 Page 对象?

4. PdfFileReader 的什么属性保存了PDF文档的页数?

5.如果 PdfFileReader 对象表示的PDF文档是用口令 swordfish 加密的,应该先做什么才能从中取得 Page 对象?

6.使用什么方法来旋转页面?

7.什么方法返回文档demo.docx的 Document 对象?

8. Paragraph 对象和 Run 对象之间的区别是什么?

9. doc 变量保存了一个 Document 对象,如何从中得到 Paragraph 对象的列表?

10.哪种类型的对象具有 boldunderlineitalicstrikeoutline 属性?

11. bold 属性值设置为 TrueFalseNone ,有什么区别?

12.如何为一个新Word文档创建 Document 对象?

13. doc 变量保存了一个 Document 对象,如何添加一个文本是 'Hello there!' 的段落?

14.哪些整数表示Word文档中可用的标题级别?