pdf2swf 分段错误(核心转储)错误 139 发生了什么事?
我正在尝试将 pdf 文档即时转换为 swf 以与 FlexPaper 查看器一起使用。 当我尝试转换 Paper.pdf(即 Flexpaper 示例中引入的 pdf)时,出现错误 139。
这是 php 代码:
$command = "/usr/local/bin/pdf2swf Paper.pdf -o Paper.swf -T 9 -f";
exec($command,$output,$return_var);
print_r($output);
print_r($return_var);
当我以详细模式 (-vv) 执行这些命令时,我得到:
注意 文件包含jpeg 图片 [1174] =>调试|移动至 -0.70 438.30 [1175] =>调试| lineTo -0.70 729.35 [1176] =>调试| lineTo 413.35 729.35 [1177] =>调试| lineTo 413.35 438.30 [1178] =>调试| lineTo -0.70 438.30 [1179] =>详细绘图 576x405 jpeg-image (id 90),尺寸 576x405 (414x291),>256 色 [1180] =>分段错误(核心转储))139
我尝试使用“-O 1”和“-O 2”标志运行 pdf2swf。没有成功。
使用“-O 1”我得到: 详细 endPage (GfxOutputDev) [752] =>详细刷新位图(bbox:56,56,118,89 62x33)(针对0,0,595,841进行剪辑)[753] =>详细绘制 62x33 图像 (id 10),尺寸为 62x33 (62x33),17 种颜色 [754] =>分段错误(核心转储))139
并使用“-O 2”: endPage (FullBitmapOutputDev) [558] =>详细刷新位图 (bbox: 0,56,595,800) [559] =>详细绘制 595x744 图像 (id 10),尺寸为 595x744 (595x744),>256 色 [560] =>分段错误(核心转储))139
任何帮助将不胜感激。
I am trying to convert on the fly pdf documents to swf to use with FlexPaper viewer.
When I try to convert Paper.pdf (wich is the pdf bring in the flexpaper example) I got an error 139.
Here is the php code :
$command = "/usr/local/bin/pdf2swf Paper.pdf -o Paper.swf -T 9 -f";
exec($command,$output,$return_var);
print_r($output);
print_r($return_var);
When i execute these command with verbose mode (-vv) i get this :
NOTICE File contains jpeg pictures [1174] => DEBUG | moveTo -0.70 438.30 [1175] => DEBUG | lineTo -0.70 729.35 [1176] => DEBUG | lineTo 413.35 729.35 [1177] => DEBUG | lineTo 413.35 438.30 [1178] => DEBUG | lineTo -0.70 438.30 [1179] => VERBOSE Drawing 576x405 jpeg-image (id 90) at size 576x405 (414x291), >256 colors [1180] => Segmentation fault (core dumped) ) 139
I try running pdf2swf with "-O 1" and "-O 2" flag. With no success.
With '-O 1' i get :
VERBOSE endPage (GfxOutputDev) [752] => VERBOSE Flushing bitmap (bbox: 56,56,118,89 62x33) (clipped against 0,0,595,841) [753] => VERBOSE Drawing 62x33 image (id 10) at size 62x33 (62x33), 17 colors [754] => Segmentation fault (core dumped) ) 139
and with "-O 2":
endPage (FullBitmapOutputDev) [558] => VERBOSE Flushing bitmap (bbox: 0,56,595,800) [559] => VERBOSE Drawing 595x744 image (id 10) at size 595x744 (595x744), >256 colors [560] => Segmentation fault (core dumped) ) 139
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这意味着您尝试使用的
pdf2swf
版本有错误。您应该尝试构建最新版本,如果仍然崩溃,您可以尝试针对
pdf2swf
提交错误,或自行调试。This means that the version of
pdf2swf
you are trying to use is buggy.You should try to build the latest version, and if that still crashes, you can try filing a bug against
pdf2swf
, or debug it yourself.