<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>lab.naoki.sato.name &#187; java</title>
	<atom:link href="http://naoki.sato.name/lab/archives/tag/java/feed" rel="self" type="application/rss+xml" />
	<link>http://naoki.sato.name/lab</link>
	<description>lab for naoki.sato</description>
	<lastBuildDate>Sun, 20 Mar 2011 06:02:24 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/tag/java/feed" />
		<item>
		<title>PDFのタイトル、著者を一括変更するlrf-epub-tools</title>
		<link>http://naoki.sato.name/lab/archives/94</link>
		<comments>http://naoki.sato.name/lab/archives/94#comments</comments>
		<pubDate>Tue, 02 Feb 2010 01:42:12 +0000</pubDate>
		<dc:creator>naoki</dc:creator>
				<category><![CDATA[ebooks]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://naoki.sato.name/lab/?p=94</guid>
		<description><![CDATA[使い様によっては非常に便利なツールです。
Sony ReaderやKindleはPDFをサポートしているので、PDFファイルをそれらのリーダに入れれば読むことができます。その際(少なくともSony Readerでは)PD [...]]]></description>
			<content:encoded><![CDATA[<p>使い様によっては非常に便利なツールです。</p>
<p>Sony ReaderやKindleはPDFをサポートしているので、PDFファイルをそれらのリーダに入れれば読むことができます。その際(少なくともSony Readerでは)PDFのメタデータに登録されているタイトルや著者がそのままTitle, Authorとなるので、PDFのメタデータをきちんと設定しておかないと、書籍を管理するのが大変になります。また、Sony Readerでは、<a href="http://naoki.sato.name/lab/archives/45">本文中では日本語が表示できるものの</a>、Home画面や書籍一覧の画面では日本語が表示されないため、タイトルや著者が日本語のPDFは事前に修正しておくことが不可欠です。</p>
<p>このPDFのメタデータはAcrobat等を使えば編集できるものの、<span style="text-decoration: line-through;">一括編集はできないので</span>(<span style="color: #ff0000;">訂正。</span>バッチ処理とJavaScriptを組み合わせれば一括編集出来そうです。AcrobatのJavaScriptの仕様書は<a href="http://www.adobe.com/devnet/acrobat/javascript.html">こちら</a>です)、例えば<a href="http://a2k.aill.org/">青空キンドル</a>である著者の本をたくさんPDFにしてそれらを編集する場合等はそれなりに大変な作業になります。一括して編集するスクリプトを作成すれば良い訳ですが、コマンドラインからPDFを扱う定番ツール<a href="http://www.accesspdf.com/pdftk/">PDFTK</a>は残念ながらMacOSX 10.6に対応しておらず、portからもソースからのビルドも失敗してしまいます。</p>
<p>このような場合に便利なのが<a href="http://code.google.com/p/lrf-epub-tools/">lrf-epub-tools</a>。本来はLRFをEPUBやPDF等に変換するJavaプログラムなのですが、その機能の一つに、<span style="text-decoration: underline;">ファイル名が&#8221;</span><em><span style="text-decoration: underline;">著者名</span></em><span style="text-decoration: underline;">-</span><em><span style="text-decoration: underline;">タイトル</span></em><span style="text-decoration: underline;">.pdf&#8221;となっているPDFファイルに対して著者名、タイトルを設定する</span>というものがあり、これと<a href="http://www.manytricks.com/namemangler/">ファイル名を編集するユーティリティ</a>を組み合わせることで大量のPDFのメタデータを容易に編集・修正することが可能です。実際に試してみたところ、ASCIIはもちろん、日本語も文字化けすることなくタイトル・著者に反映されました。</p>
<p><a href="http://code.google.com/p/lrf-epub-tools/">lrf-epub-tools : Convert LRF (Sony BeBB) files to EPUB, PDF, RTF, and HTML. Also converts PDF and DOCX to EPUB.</a></p>
<p>また、まだ試してはいませんがPDFをePubに変換する機能もあるようです。</p>
<p>詳細な使い方は<a href="http://code.google.com/p/lrf-epub-tools/">プロジェクトページ</a>を参照して下さい。</p>
]]></content:encoded>
			<wfw:commentRss>http://naoki.sato.name/lab/archives/94/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/94" />
	</item>
	</channel>
</rss>

