The python scripts PDF processing

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    The python scripts PDF processing - Presentation Transcript

    1. . 程序员长寿指南 Python 企业应用:生成 pdf 文件和处理 Excel 文件 让工作变得轻松有趣 支支 – 91office IT 总监 [email_address]
    2. 议程
      • Python 把我从一些繁琐的操作中解放
      • 70 行脚本代码带来的效率提升
      • Excel-->SQLServer 不再麻烦
      • 人生苦短 我用 Python
    3. Python 把我从一些繁琐的操作中解放
      • 网站维护
      • -ftpmirror.py 让我用脚本处理 ftp
      • - 脚本加上任务计划使工作自动化
      • - 无忧享受蜜月时光
    4. 能解放我也能解放别人
      • 把客服人员从拷贝粘贴中解放
      • 把 IT 部人员从 Excel 导入 SQL 的烦恼中解放
    5. 70 行脚本代码带来的效率提升
      • 原来的工作情况
      • 每年客服部要给给客户或者业主邮寄礼品或贺卡,需要批量打印邮件地址,把客户的地址、邮编和姓名从 Excel 中复制到 Word 的模板中。打印到不干胶的打印纸上。由于数量多工作量大,客服人员每年年终的时候工作都很辛苦。
      • 改变的想法
      • 用 pdf 替代 word 文档,使打印格式稳定。
      • 用 python 直接从数据库读取数据生成 pdf
      • 寻找相关的模块
      • pymssql 、 reportlab
    6. 70 行脚本代码带来的效率提升
      • 用尺子量打印纸的定位尺寸
      • pdf 的定位非常准,参数输入一次搞定
      • 70 行脚本代码
      • 还是比较粗糙的写法,就已经达到效果
      • 几分钟完成一天的任务
      • 额外的收获
      • 惠普的打印机走纸定位比爱普生的准
    7. Excel-->SQLServer 不再麻烦
      • 原来的工作情况
      • ColdCall 结果数据从 Excel 导入 SQL Server ,由于字段类型问题导入时经常发生错误,总是先处理 Excel 文件,然后先导入 Access ,把字段再做调整之后导入 SQL Server
      • 改变的想法
      • 用 python 直接从 Excel 文件读取数据生成并对数据进行处理,根据条件和规则导入 SQL
      • 寻找相关的模块
      • xlrd
    8. Excel-->SQLServer 不再麻烦
      • Excel 工作簿,工作表和单元格的处理
      • 单元格类型的问题
      • 日期的处理
      • 日志的应用
      • 根据错误信息进行调整
    9. 人生苦短 我用 Python
      • 能上网就能学 Python
      • 边学边用其乐无穷
      • 感谢领路人 Sting
      • 感谢乐于分享的行者
      • Zoom. Quiet 、 沈崴、 limodou …………

    + Sting ChenSting Chen, 2 years ago

    custom

    880 views, 1 favs, 0 embeds more stats

    The python scripts for PDF processing

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 880
      • 880 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 9
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories