Tag: ghostscript

Ghostscript在命令行中工作,但如果在AIX上从Java执行则不起作用

简短的介绍 我必须在AIX上运行Ghostscript。 它在命令行中工作 : XXXXXXXX:i2zate:/home/i2zate>/usr/bin/gs -dFIXEDMEDIA -dPDFFitPage -dFirstPage=1 -dLastPage=1 -dBATCH -dNOPAUSE -dNOPROMPT -dSAFER -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 -dDEVICEWIDTH=90 -dDEVICEHEIGHT=120 -dORIENT1=true -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=1.jpg porsche.pdf GPL Ghostscript 8.70 (2009-07-31) Copyright (C) 2009 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 1. Page […]

无法使用Ghost4J加载库’gs’

我正在尝试使用Ghost4J将PDF转换为PNG。 我知道人们之前已经问过这个问题,但不是OS X 10以及最新版本的Ghost4J。 我已经按照zippy1978的答案中列出的说明进行操作: PDF到使用Java进行映像 我已经关注了Ghost4J页面中的所有内容 我也从这里尝试了两个答案: 我如何在OS X 10.9上使用ghost4j 我已经安装了Ghostscript和Port ,并尝试过Richard Koch的网站 。 我继续得到这个错误: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler processing failed; nested exception is java.lang.UnsatisfiedLinkError: Unable to load library ‘gs’: dlopen(libgs.dylib, 9): image not found] with root cause java.lang.UnsatisfiedLinkError: Unable to load library ‘gs’: dlopen(libgs.dylib, 9): […]

Ghost4J。 java.lang.UnsatisfiedLinkError:无法加载库’gsdll64′

我使用Maven将Ghost4J 0.45包含到我的项目中,并将Ghostscript安装到C:\Program Files\gs\gs9.06 。 但我仍然得到一个错误java.lang.UnsatisfiedLinkError: Unable to load library ‘gsdll64′ 。 我添加到位于’gsdll64.dll’的PATH env变量目录中(即C:\Program Files\gs\gs9.06 )。 还尝试使用-Djava.library.path=/path/to/dir启动应用程序。 但是我经常得到UnsatisfiedLinkError (但是当我使用JVM参数-Djava.library.path启动时,我得到了ClassNotFoundexception(Eclipse无法找到Main类,但是当我使用我的应用程序时,我手动将Eclipse指向Main类))/