SWF到PDF批量转换

时间:2013-02-08 20:57:03

标签: flash

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

我尝试了很少像 eConverter (没有使用swfdec得到错误),这也许不会进行批量转换。

swftool ,效果很好,但质量很差。我看不懂这些字母。

SWF打印机 Pro再次质量不佳

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

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

2 个答案:

答案 0 :(得分:0)

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

  1. 在Finder中创建ORB书。
  2. 将所有swf文件打包到一个.orb文件中。 (每页一个swf)

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

    1. 下载适用于iPad的ORB Viewer(精简版免费使用广告,只打开第一个.orb文件)。
    2. 用它来读取iPad上的.orb文件。

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

      如果您确实需要将它们转换为PDF,则可以购买适用于Mac的ORB Reader。

      它会在Mac上阅读.orb并转换为PDF格式。

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

答案 1 :(得分:0)

我使用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