推荐学习书目
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 · 6211 views
    This topic created in 2472 days ago, the information mentioned may be changed or developed.

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

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

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