SWFTools 分段错误

发布于 2024-09-03 15:40:59 字数 1155 浏览 3 评论 0原文

我看到了那个线程: SWFTools 分段错误

当我尝试使用 pdf2swf 将 PDF 转换为 SWF 时,出现错误:

/usr/local/bin/pdf2swf /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm.pdf -i -p 5 -o /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm-5.swf
    NOTICE  processing PDF page 5 (720x540:0:0) (move:0:0)
    NOTICE  File contains pbm pictures
    NOTICE  File contains shaded fills
    NOTICE  File contains axial shaded fills
    NOTICE  File contains soft masks
    Segmentation fault

当我添加“-O 1”一切正常:

/usr/local/bin/pdf2swf /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm.pdf -i -O 1 -p 5 -o /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm-5.swf
NOTICE  processing PDF page 5 (720x540:0:0) (move:0:0)
NOTICE  Writing SWF file /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm-5.swf

任何人都可以说出“-O 1”标志剂量是多少? 我搜索 http://swftools.org/ 但没有成功。

谢谢, 埃尔达德。

I saw that thread:
SWFTools Segmentation Fault

When I tried to convert a PDF to SWF using pdf2swf I got an error:

/usr/local/bin/pdf2swf /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm.pdf -i -p 5 -o /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm-5.swf
    NOTICE  processing PDF page 5 (720x540:0:0) (move:0:0)
    NOTICE  File contains pbm pictures
    NOTICE  File contains shaded fills
    NOTICE  File contains axial shaded fills
    NOTICE  File contains soft masks
    Segmentation fault

When I added "-O 1" everything worked:

/usr/local/bin/pdf2swf /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm.pdf -i -O 1 -p 5 -o /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm-5.swf
NOTICE  processing PDF page 5 (720x540:0:0) (move:0:0)
NOTICE  Writing SWF file /var/www/html/ny-sto-p.watchitoo.com/content/userContent/2/1GRKm/1GRKm-5.swf

Anyone can tell what is that "-O 1" flag dose?
I search http://swftools.org/ with no success.

Thans,
eldad.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独自唱情﹋歌 2024-09-10 15:40:59

这可能意味着

-O 1 == -s poly2bitmap
-O 2 == -s poly2bitmap -s bitmapfonts
-O 3 == -s poly2bitmap -s bitmapfonts -s ignoredraworder

将矢量艺术/字母转换为更简单的 Flash 矢量时会发生崩溃。我已经有一段时间没有使用 swftools 了(因为它使用 libart 来做这类事情),但我们通常使用最近的快照或 CVS 遇到的问题较少,而不是使用编号版本,以防万一有帮助。

The levels are

-O 1 == -s poly2bitmap
-O 2 == -s poly2bitmap -s bitmapfonts
-O 3 == -s poly2bitmap -s bitmapfonts -s ignoredraworder

This probably means that there is crash converting vector art / letters into simpler vectors for Flash. I haven't worked with swftools for a while (not since it used libart for that sort of thing) but we generally had fewer problems with using very recent snapshots or CVS rather than numbered releases in case that helps.

鸢与 2024-09-10 15:40:59

我尝试了 -O 2 并且它有效,但 swf 页面仅位图:

pdf2swf my.pdf -O 2 -o my%.swf

% 每页 pdf 输出 1 个 swf。

I tried -O 2 and it worked, but the swf page is bitmapped only:

pdf2swf my.pdf -O 2 -o my%.swf

% outputs 1 swf per page of pdf.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文