« すごいカウンター | Main | jrogue for MacOS X »

同人誌をpdfにしてみる

同人誌のデータは、おおむね1ファイル/1ページのPhotoshopデータで作成している。これをPDFにして、ページを追って読めるようにするにはどうするか。

まあ簡単な方法としては、ワープロに貼付けて、Acrobatで出力。MacOS Xなら印刷ダイアログにもれなく「PDFで保存」というボタンがあるので、それを使えばいい。

問題は、Acrobatは結構高いということ。それ以外の選択肢でとなると、なにかと不便だ。まず、マンガは縦書き右綴じである。普通にページ単位で出力したPDFは、横書き左綴じという前提になっている。Adbe Readerで見開き表示にすると、ページ方向が逆になってしまい、とても読みにくい。

色々考えるうちに、TeXで画像をページに貼り込んで、dvipdfmでpdfにすればいいのではないかという構想になった。TeXは遠い昔にちょっとだけ手を出したことがあるが、さっぱり身に付かなかったし、身に付いた部分もそっくり忘れているのでネットでお勉強してみた……が、日本語のTeX関連情報は、ほとんどが日本語の表示や組版についてのことばかり。ページいっぱいいっぱいに画像を貼り込み、右綴じで出力する方法がストレートにわかるようなものはなかった。

それでも調べているうちにいろいろなことがわかったのでコーディング、画像をおさめたディレクトリを指定してやればその中の画像ファイルをインクルードした.texファイルを出力するスクリプトを書いてみる。こいつで書き出した.texファイルはこんな感じ

¥documentclass[b5paper]{jbook}
¥AtBeginDvi{¥special{pdf:tounicode 90ms-RKSJ-UCS2}}
¥special{pdf: docinfo << /Author (後藤寿庵)
												/Title (民主帝国6) 
												/Subject (オーバーマン・キングゲイナー) >>}
¥special{pdf: docview << /ViewerPreferences << /PageDirection /R2L  >> >> }
¥pagestyle{empty}
¥topmargin=-1in
¥headheight=0mm
¥headsep=0mm
¥oddsidemargin=-1.1in
¥evensidemargin=-1.1in
¥textwidth=¥paperwidth
¥textheight=¥paperheight
¥marginparwidth=0mm
¥marginparsep=0mm
¥footskip=0mm
¥linewidth=¥paperwidth
¥columnseprule=0mm
¥usepackage{graphicx}
¥begin{document}
¥includegraphics[bb=0mm 0mm ¥paperwidth+0mm ¥paperheight+0mm]{img/01.jpg}
¥newpage
:
:
¥end{document}

画像ファイルは、あらかじめB5/150dpiに変換し、jpeg形式で保存してある。文書の幅や、画像のバウンディングボッックスはすべて¥paperwidthと¥paperheightにあわせてしまう。あと、右綴じの設定が必要なので、¥specialで埋め込み。

とりあえずうまくいったみたい。40pの同人誌が9.1MBのPDFファイルになった。
pdftest

|

« すごいカウンター | Main | jrogue for MacOS X »

「パソコン・インターネット」カテゴリの記事

「同人・コミケ」カテゴリの記事

Comments

あ、それでDLsiteの方で販売始められたのですか。

…でも登録タイトル名が「後藤寿庵」ってのはちょっと
どうかと思いますですよ~

Posted by: 榊 | 2004.01.21 at 07:32 PM

ほんとだ。
うーむ、作品登録のときに間違ったかなあ。

Posted by: 後藤寿庵 | 2004.01.23 at 12:47 AM

Cool blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple adjustements would really make my blog shine. Please let me know where you got your theme. Thank you

Posted by: jblove.net | 2012.12.21 at 07:40 PM

Hello just wanted to give you a quick heads up and let you know a few of the images aren't loading correctly. I'm not sure why but I think its a linking issue. I've tried it in two different web browsers and both show the same outcome.

Posted by: how to get business credit | 2013.01.03 at 09:55 PM

I got this website from my buddy who shared with me about this website and at the moment this time I am visiting this web page and reading very informative articles at this time.

Posted by: direct fast cash lenders | 2013.01.09 at 02:56 AM

This web site truly has all the information and facts I needed about this subject and didn't know who to ask.

Posted by: fagforening | 2014.04.14 at 01:39 PM

Hi my friend! I want to say that this post is amazing, nice written and include almost all vital infos. I'd like to see extra posts like this .

Posted by: Wilbur | 2014.08.24 at 04:46 PM

It's not my first time to go to see this web site, i am browsing this site dailly and get good information from here every day.

Posted by: Mauricio | 2014.09.06 at 12:56 PM

Heya just wanted to give you a brief heads up and let you know a few of the pictures aren't loading correctly. I'm not sure why but I think its a linking issue. I've tried it in two different web browsers and both show the same results.

Posted by: fifa 15 ea tax | 2014.12.13 at 11:06 AM

Hi, i think that i saw you visited my site thus i came to go back the choose?.I am trying to in finding things to improve my website!I assume its adequate to make use of some of your concepts!!

Posted by: delhi escort | 2014.12.22 at 04:55 AM

Hello, I think your site might be having browser compatibility issues. When I look at your website in Opera, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!

Posted by: fifa 15 trusted | 2015.01.01 at 04:23 PM

This is a topic which is near to my heart... Many thanks! Exactly where are your contact details though?

Posted by: Fifa 15 coins | 2015.01.08 at 04:25 PM

I am sure this post has touched all the internet visitors, its really really fastidious post on building up new blog.

Posted by: fifa 15 Paypal | 2015.01.08 at 05:39 PM

Hello, I desire to subscribe for this web site to take most up-to-date updates, so where can i do it please assist.

Posted by: delhi escort | 2015.04.20 at 10:47 AM

Howdy, I think your website may be having browser compatibility issues. When I look at your blog in Safari, it looks fine but when opening in I.E., it has some overlapping issues. I merely wanted to give you a quick heads up! Aside from that, fantastic site!

Posted by: porn | 2015.05.16 at 09:35 PM

I have to thank you for the efforts you've put in writing this blog. I am hoping to check out the same high-grade blog posts by you later on as well. In fact, your creative writing abilities has inspired me to get my own, personal blog now ;)

Posted by: delhi escorts | 2015.05.19 at 06:31 AM

My partner and I absolutely love your blog and find the majority of your post's to be exactly I'm looking for. Would you offer guest writers to write content for you? I wouldn't mind publishing a post or elaborating on a number of the subjects you write in relation to here. Again, awesome blog!

Posted by: amateur porn online | 2015.06.04 at 02:13 PM

Amazing blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog stand out. Please let me know where you got your theme. Thanks a lot

Posted by: escort girls delhi | 2015.07.16 at 11:23 PM

Post a comment



(Not displayed with comment.)




TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/10254/88113

Listed below are links to weblogs that reference 同人誌をpdfにしてみる:

» Buy phentermine online without prescription cheap. [180 count phentermine without prescription.]
Phentermine no prescription. [Read More]

Tracked on 2007.05.05 at 05:42 AM

« すごいカウンター | Main | jrogue for MacOS X »