【问题标题】:SWF to PDF batch convertSWF 到 PDF 批量转换
【发布时间】:2013-02-08 20:57:03
【问题描述】:

我有数百个 swf 格式的文件(这是一本电子书),我想将它们批量转换为 pdf(以便在我的 iPad 上阅读)。

我尝试了几个像 eConverter (swfdec 出错但不起作用),这也可能无法进行批量覆盖。

swftool,运行良好,但质量很差。我看不懂这些字母。

SWF 打印机 Pro 再次质量差

ffmpeg 给出错误“不支持压缩的 SWF 格式”

如果你们能帮我找到解决方案,那就太好了。谢谢

【问题讨论】:

  • 现在也有 reaConverter

标签: flash


【解决方案1】:

如果你只是想在 iPad 上阅读,你可以这样做:

  1. 在 Finder 中创建 ORB 书。

将所有 swf 文件打包到一个 .orb 文件中。 (每页一个 swf)

http://rintarou.dyndns.org/2014/09/13/create-an-orb-book-in-finder/

  1. 下载适用于 iPad 的 ORB 查看器(Lite 可免费使用广告,并且只打开第一个 .orb 文件)。

用它来读取 iPad 上的 .orb 文件。

http://rintarou.dyndns.org/works/orb-viewer/

如果您确实需要将它们转换为 PDF,您可以购买 ORB Reader for Mac。

它将在 Mac 上读取 .orb 并转换为 PDF。

PS。我是上述这些应用的作者。

【讨论】:

    【解决方案2】:

    我用 HotKey 脚本做类似的事情。下面附加了一个示例(带有解释和 HotKeyNet 脚本主机软件的链接)。 (注意:此答案特定于 Windows 平台。)

    // Software: http://hotkeynet.com
    // http://www.adobe.com/support/flashplayer/debug_downloads.html
    // https://www.foxitsoftware.com/products/pdf-reader/
    
    // Script for HotKeyNet (0.1.45 Build 210) to automate
    // converting many .SWF files to PDFs by opening each SWF in
    // Adobe's standalone Flash Player and then printing it as a
    // PDF file using Foxit Reader's virtual PDF printer. The SWF
    // files' contents are static (not animated), and are thus
    // suitable for printing. They are pages of a print magazine
    // and the files contain multiple objects - images, text,
    // fonts, and rendering and layout information.
    
    // The script works by sending a sequence of keystrokes
    // to the main and child windows of Adobe Flash Player
    // and Foxit Reader's PDF Printer
    
    // To use this script:
    // 1) Load it in HotKeyNet.exe, then:
    // 2) Minimise HotKeyNet to the taskbar.
    // 3) Set Foxit's PDF Printer as the default printer.
    // 4) Open file 01.swf in Adobe Flash Player, and manually
    //    perform the above sequence for converting it to PDF
    //    to establish the source and destination folders to
    //    be used by the player and the virtual printer.
    // 5) Ensure that the flash player has the focus. (i.e.
    //    that it is the foreground application.)
    // 6) Press the HotKey defined below to run the script.
    
    
    // Part 1: Define a user-command "PrintOnePage".
    // Within the command, %1% stands for a parameter
    // passed to the command, which will be a filename.
    // That name will be used as both the .SWF file to
    // be opened and the .PDF file to be written.
    
    <Command PrintOnePage>
            <sendpc local>
                <sendwin "Adobe Flash Player 23">
    
    // Key sequence to open a file in the player:
    // Alt+F, O, Alt+B, filename, Alt+O, Enter 
    
                <key LAlt F>
                <key O>
                <key LAlt B>
                <wait 500>
                <text %1%>
                <key LAlt O>
                <wait 500>
                <key Enter>
    
                <sendwin "Adobe Flash Player 23">
    
    // Key sequence to print the file as a PDF:
    // Alt+F, P, Alt+P, Alt+N, filename, Enter
    
                <key LAlt F>
                <key P>
                <wait 4000>
                <sendwin Print>
                <key LAlt P>
                <wait 500>
                <sendwin "Print to PDF Document - Foxit Reader PDF Printer">
                <key LAlt N>
                <text %1%>
                <key Enter>
                <wait 12000>
    
    // End of user-command definition
    
    
    // Part 2: Define a HotKey that, when pressed (once),
    // will run the above command multiple times with a
    // different parameter each time. They are 02, 03, 04,
    // etc, which are the SWF and PDF filename pairs.
    
    <hotkey F1>
    <PrintOnePage 02>
    <PrintOnePage 03>
    <PrintOnePage 04>
    <PrintOnePage 05>
    <PrintOnePage 06>
    
    // Add a line for each page file
    
    // End of script
    

    【讨论】:

    • 请考虑从链接中添加一些重要的细节。该链接稍后可能会失效;在这种情况下,人们仍然可以从您的回答中受益。
    猜你喜欢
    • 2011-10-31
    • 2016-11-13
    • 2011-06-25
    • 2019-11-24
    • 2012-02-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-23
    • 2012-12-21
    相关资源
    最近更新 更多