☆pdf_as しおり設定ファイル仕様　Ver1.64

○TXTファイルによるしおり設定
　【特徴】
　　・簡単な書式でしおりが設定できる。
　　・階層構造は複数層の作成可能。
　　・「表題」および「リンクページ指定」のみ可能。

　【書式】
　　（親階層）
　　　表題/リンクページ
　　（子階層）
　　　	表題/リンクページ

　【書式説明】
　　「表題」と「リンクページ」は / で区切る。
　　階層構造にする際は[Tab]キーでインデントを下げてください。

　【例】
　　表題１/1
　　グループ1/3
    	項目1/5
		項目2/6
　　表題２/9

○XMLファイルによるしおり設定
　【特徴】
　　・書式設定は複雑だが、詳細設定ができる。
　　・階層構造のしおりが設定可能。
　　・「表題」および「リンクページ指定」はもちろん表示方法なども
　　　詳細に設定が可能。詳しいことは「PDF Reference」などを参照のこと。
　　　http://www.adobe.com/devnet/pdf/pdf_reference.html

　【書式】
　　1行目（固定）
	<?xml version="1.0" encoding="UTF-8"?>

　　2行目（固定）
	<Bookmark>

　　3行目以降（書式説明参照）
	  <Title Page="1 Fit" Action="GoTo" >表題1</Title>
	  <Title Page="3 Fit" Action="GoTo" >グループ1;
	    <Title Page="5 Fit" Action="GoTo" >項目1</Title>
	  </Title>
	  <Title Page="9 Fit" Action="GoTo" >表題2</Title>

　　最終行（固定）
	</Bookmark>

　【書式説明】
　　　基本はTitleタグで設定する。
　　　Pageタグでページ指定、表示方法（Fit,FitH,XYZなど）の指定が可能。
　　　ActionタグをGotoと設定することでリンクが設定可能。
　　　階層構造を実現するにはTitleタグで項目行を、上記の2、4行目のように囲う。

　　　開き方などは「PDF Reference」に記載されているが主なものは次のとおり
　　　・表示方法
　　　　Fit:すべてが表示される。
　　　　FitH top:縦がすべて表示される。
	FitV left:横がすべて表示される。
	XYZ left top zoom:表示位置など指定可能（左、上、倍率）

　　（参考　pdf referenceを抜粋）
	[page /XYZ left top zoom]
	　Display the page designated by page, with the coordinates (left, top) positioned at the upper-left corner of the window and the contents of the page magnified by the factor zoom. A null value for any of the parameters left, top, or zoom specifies that the current value of that parameter shall be retained unchanged. A zoom value of 0 has the same meaning as a null value.
	[page /Fit]
	　Display the page designated by page, with its contents magnified just enough to fit the entire page within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the page within the window in the other dimension.
	[page /FitH top]
	　Display the page designated by page, with the vertical coordinate toppositioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of the page within the window. A null value for top specifies that the current value of that parameter shall be retained unchanged.
	[page /FitV left]
	　Display the page designated by page, with the horizontal coordinate left positioned at the left edge of the window and the contents of the page magnified just enough to fit the entire height of the page within the window. A null value for left specifies that the current value of that parameter shall be retained unchanged.
	[page /FitR left bottom right top]
	　Display the page designated by page, with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and top entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension.
	[page /FitB]
	　(PDF 1.1) Display the page designated by page, with its contents magnified just enough to fit its bounding box entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the bounding box within the window in the other dimension.
	[page /FitBH top]
	　(PDF 1.1) Display the page designated by page, with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of its bounding box within the window. A null value for top specifies
	[page /FitBV left]
	　(PDF 1.1) Display the page designated by page, with the horizontal coordinate left positioned at the left edge of the window and the contents of the page magnified just enough to fit the entire height of its bounding box within the window. A null value for left specifies that the current value of that parameter shall be retained unchanged.

　【例】
	<?xml version="1.0" encoding="UTF-8"?>
	<Bookmark>
	  <Title Page="1 Fit" Action="GoTo" >表題1</Title>
	  <Title Page="3 Fit" Action="GoTo" >グループ1;
	    <Title Page="5 Fit" Action="GoTo" >項目1</Title>
	  </Title>
	  <Title Page="9 Fit" Action="GoTo" >表題2</Title>
	</Bookmark>

○XMLファイルでのしおり設定出力
　既に設定されているしおりをXMLファイルとして出力可能。
　抽出元のPDFファイルがあるフォルダに「ファイル名.pdf.xml」
　と出力される。

　・UTF-8でエンコードされたXMLファイルとしておくことで
　　テキストエディタで新たに日本語入力をして保存したもので
　　しおりの設定をしても日本語で表示可能。

○設定したしおりを削除する
　削除コマンド等はないので、削除したいpdfファイルを1ファイルのみで「結合」
　して新たに保存すればしおりがない状態で保存されます。　