推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
habicat
V2EX  ›  Python

swf 转 pdf

  •  
  •   habicat · Aug 10, 2019 · 6601 views
    This topic created in 2644 days ago, the information mentioned may be changed or developed.

    要抓的东西是 swf 格式的 有什么办法能转成 pdf 啥的
    大家有没啥办法 python~~~

    20 replies  •  2019-08-10 17:58:45 +08:00
    edsheeran
    edsheeran
    Aug 10, 2019 via iPhone❤️1
    1
    swf ?
    pdf ?
    ???
    habicat
    habicat
    OP
    Aug 10, 2019
    2
    是不现实吗啊啊啊 但是 swf 要怎么处理。。。
    summerwar
    summerwar
    Aug 10, 2019❤️1
    3
    swf 转 png,然后 png 转 pdf
    habicat
    habicat
    OP
    Aug 10, 2019
    4
    要大规模转 这种要三方软件吧
    habicat
    habicat
    OP
    Aug 10, 2019
    5
    要大规模转 这种要三方软件一个一个来吧 @summerwar
    minamike
    minamike
    Aug 10, 2019 via iPhone
    6
    这是要一帧一帧转成 pdf 吗🤔
    xnode
    xnode
    Aug 10, 2019
    7
    swf 不是 flash 吗 和 pdf 根本不是一个东西,怎么转,你能把视频转成文字加图片?何况可能还有脚本
    mercury233
    mercury233
    Aug 10, 2019
    8
    听起来是课件一类的东西?先分析下 swf 文件的大小,看看能否提取出 jpg,然后看看网络日志是不是调用了外部的数据
    habicat
    habicat
    OP
    Aug 10, 2019
    9
    @mercury233 文本类文件 看起来和 pdf 一模一样 下下来是 swf 的
    这个 http://bulletin.cebpubservice.com/biddingBulletin/2019-08-10/1740849.html
    summerwar
    summerwar
    Aug 10, 2019
    10
    有工具啊,可以写代码处理。
    因为之前写过,所以知道
    habicat
    habicat
    OP
    Aug 10, 2019
    11
    @summerwar 大兄弟教我啊啊啊~~~
    kekxv
    kekxv
    Aug 10, 2019 via Android
    12
    感觉你们误会了,他说的应该是类似百度文库之类的外壳 swf 转换为 pdf,实际意思应该是怎么把 swf 显示的文档下载下来
    habicat
    habicat
    OP
    Aug 10, 2019
    13
    @kekxv 嗯 内容就是文本文档
    mercury233
    mercury233
    Aug 10, 2019
    14
    jpg 就在 swf 里面,提取出来大概就行了
    summerwar
    summerwar
    Aug 10, 2019
    15
    使用 swftools 中的 swfrender 将 swf 转成 png,然后 png 批量转 pdf 就好了。
    第二个工具搜 png to pdf,能找到相关的工具,就不写了。

    批量下载在线文档的事情,之前写过,所以知道点
    gzlock
    gzlock
    Aug 10, 2019 via Android
    16
    还是用 OCR 解决吧
    habicat
    habicat
    OP
    Aug 10, 2019
    17
    @summerwar 感谢兄 dei~~~
    habicat
    habicat
    OP
    Aug 10, 2019
    18
    @gzlock ocr 质量不好 另外 也是要先转图片吧
    changdy
    changdy
    Aug 10, 2019
    19
    2333 貌似楼上都比较年轻...
    当年 flash 可是一统江湖..的确 N 多课件都是用 flash 做的.
    但是至于如何再转回 pdf...嗯..可以尝试 逆向一下..记得是 比较简单的.
    所以这也是为什么 4399 上面有很多 修改版的 游戏.
    lniwn
    lniwn
    Aug 10, 2019
    20
    看了下结构,确实一帧一页,随便找个 swf 解析库,把每一帧解析出来,然后打印成 pdf 就行了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1337 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 22:10 · PVG 06:10 · LAX 14:10 · JFK 17:10
    ♥ Do have faith in what you're doing.