2011-03-01から1ヶ月間の記事一覧

Xalanのエラーメッセージが不親切すぎてストレス半端ないのでプロセッサをSaxonに切り替える

System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl"); これだけで、おk。他のコードは共通でいい。

import/includeを使おうとするとMalformedURLExceptionが出る件

StreamSource xsl = new StreamSource("hoge.xsl"); これだとエラーになって、 StreamSource xsl = new StreamSource(new File("hoge.xsl")); だと、ちゃんとパスが解決できる。……

XalanでJavaScriptを動かすときに必要なjarファイル

bsf.jar Apache Commons BSF™ - Bean Scripting Framework commons-logging.jar Apache Commons Logging - Overview js.jar Download Rhino - Mozilla | MDN xalan.jar Xalan-Java Version 2.7.1

PDFBoxメモ

http://www.moriwaki.net/wiki/index.php?[[PDFBox]] この方法だと画像が取れない形式のPDFがあるっぽい。XObjectは全部取ってきて、PDXObjectImageインスタンスか、PDXObjectFormインスタンスで処理を分けてやるといい。 public static void main(String[] …