Drift Diary XV

ebooktize - create optimized pdf for eBook reader -

Posted by drikin on 2009年11月 9日 06:42

image from www.flickr.com

日本語のエントリーはこちら

As my friends know, recently, I'm getting absorbed in creating eBook myself using ScanSnap and a cutting machine. Actually ScanSnap and a cutting machine combination are awesome. I can easily get a great PDF from a real book in ten minutes. (It's also included a text data using OCR at the same time.)

image from www.flickr.com

Then, I'm finding a best reader device. Actually, I had tried to use Sony eBook reader which can directly read a PDF through USB file transfer. But, when I directly copy the PDF to the device, I found two critical problems. 

One is a performance. Original PDF is slightly large for the device. The device have to downscale to show each pages. It's sometime taking a few seconds to forward a page. 

Second is a quality. Even the downscale is done. The rendering result is not sufficient to read it sometimes.

image from www.flickr.com

image from www.flickr.com

image from www.flickr.com

image from www.flickr.com

I had some trials then I finally found a way to create optimized PDF for eBook reader. These pictures are comparing with original and optimized PDF. I think you can easily to find optimized PDF. (sure bottom one is optimized.)

At this time, I created one script to optimize the PDF for these devices as well. The script is written by Automator. I just confirm the behavior with Snow Leopard. (Also this is totally first time, I feel Automator is useful :-P)

Please to download ebooktize from here

image from www.flickr.com

You can double click it. Automator is started with this script. When you click Run button where is located at top right of the window. You can select the PDF file which you want to optimize. After the processing is done, you will get optimized PDF Converted.pdf as name at your Desktop.

I also explained what the script do here.

  1. select a PDF file
  2. get TIFF images from each page from pdf.
  3. crop 10% margin from each pages
  4. resize each pages to 750 pixel (longer side)
  5. create new PDF from the processing pages
  6. convert to grayscale
  7. increase a contrast
  8. output Converted.pdf to Desktop

About iPhone, this optimized PDF is very useful. I recommended to read it with Good Reader on iPhone as well.

image from www.flickr.com

最近、ScanSnapと裁断機を使って、自分で、リアルな書籍から自作eBook PDFを作るのにハマっていてます。

image from www.flickr.com

併せて、でき上がったPDFを読むためのデバイス探しにもハマってるのですが、SonyのeBookリーダーがPDFをUSBで直接転送するだけで、読むことが出来るので、よさそうと思っていたところ、@andrewyonemotoさんが、デバイスを貸してくれました!早速使ってみると、二つの致命的な問題を発見しました。

1つは、スピード。ページめくりに数秒かかることもあります。

2つ目は、視認性。

リサイズして、ダウンスケールして表示されるのですが、リサイズ時に、かなり視認性が悪化して、実質読むに堪えない結果になってしまいました。

image from www.flickr.com

image from www.flickr.com

image from www.flickr.com

image from www.flickr.com

何度か試行錯誤繰り返して、eBookに最適化されたPDFの作り方を発見しました!実際、最適化前後のPDFを見てもらうと、どっちが最適化されたものか、一目瞭然だと思います。(下が最適化されたPDFです)

今回、この最適化したPDFを作成するAutomatorのスクリプトも作ってみました。このスクリプトはSnow Leopardで動作確認してます。(今回、Automatorが便利と、初めて実感しました)

ここからebooktizeをダウンロードしてください。

image from www.flickr.com

ダウンロードしたファイルをダブルクリックすると、Automatorが起動して、右上の実行ボタンをクリックすれば、ファイル選択ダイアログが開くので、最適化したいPDFを選択してください。処理が終わると、デスクトップにConverted.pdfという名前の最適化されたPDFができ上がります。

このスクリプトの実際の内容を以下に説明します

  1. PDFファイルを選択
  2. PDFからページをTIFF画像で取り出し
  3. 余白を10%カット
  4. 長辺750pixelにリサイズ
  5. 新しいPDFを作成
  6. グレースケールに変換
  7. コントラストを強調
  8. Converted.pdfとしてデスクトップに出力

この最適化ファイルはiPhoneでも非常に有効です。Good Readerで、このPDFを読むのはかなりオススメです。

このエントリーをはてなブックマークに追加
comments powered by Disqus