codecamp

PyPDF2 PaperSize类

classPyPDF2.PaperSize

​基类: object

纵向模式下纸张的(宽度、高度),以像素为单位,分辨率为 72 ppi。

A0= Dimensions(width=2384, height=3370)

A1= Dimensions(width=1684, height=2384)

A2= Dimensions(width=1191, height=1684)

A3= Dimensions(width=842, height=1191)

A4= Dimensions(width=595, height=842)

A5= Dimensions(width=420, height=595)

A6= Dimensions(width=298, height=420)

A7= Dimensions(width=210, height=298)

A8= Dimensions(width=147, height=210)

C4= Dimensions(width=649, height=918)
PyPDF2 Fit类
PyPDF2 开发者介绍
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }