biz-StreamマニュアルXMLドキュメントレイアウトタグ リファレンス第4章 ページ設定について4.2 ベースPDF<bs:pdf-sequence>

4.2 ベースPDF<bs:pdf-sequence>


4.2.1機能説明

biz-Streamで生成したPDFファイルを取り込んで使用することができます。取り込んだPDFに透かしを入れたり、最終ページ以降にページを追加したりすることが可能です。


  • Microsoft WordやExcel、Adobe Illustratorなど、biz-Stream以外のツールを利用して作成したPDFは、正式サポート対象外となります。
    本機能を使用する場合は、対象となるPDFファイルを実際に使用して取り込み後の表示を確認し、ご希望の内容が取り込まれることをご確認のうえご使用ください。 取り込み後の表示がご希望の内容と異なる場合、本機能では使用できないPDFファイルとなります。
  • 暗号化されたPDFファイルを埋め込むことはできません。
  • この機能で取り込める部分は純粋なページの描画部分(文字列、図形、イメージ)のみになります。リンクを除く注釈、しおりなどは取り込めません。
  • この機能を使用する場合、取り込むPDFが最初のページとなる必要があります。
  • この機能を使用する場合、PDFを開く際の初期ページ指定でページ番号の指定はできません。
  • ベースPDFの設定が未設定(bs:pdf-sequence なし)の場合、アプリケーションから setBasePDF() を行ってもベースPDFの設定ができません。


4.2.2属性説明

属性名指定説明指定内容初期値
name任意名前CDATA
href必須取り込むPDFのファイル名CDATA
  • URL指定はできません。ファイルパスで指定してください。


4.2.3記述例

pdf-sequenceサンプル1

このサンプルでは既存のPDF(給与明細)に透かしを入れて、新たにPDFを作成します。

pdf-sequenceサンプル1(『<biz-Stream_home>/sample/xml/pdf-sequence/pdf-sequenceSample1.xml』)

<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:pdf="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:bs="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" version="5.0.0">
    <bs:document-properties-set>
        <bs:document-summary title="title" subject="subject" author="author" keywords="keywords"/>

        <bs:document-watermark x="-31.75" y="-31.75" dx="0" dy="0" width="180px" height="180px" text-align="center" line-align="center" align="vertical" print="true" view="true" rate="100" fit="shorter">
            <watermark-text text-align="left" line-align="top" font-family="MSGothic" font-color="255,0,0" font-size="12" font-style="PLAIN" narrow="horizon" text-rendering="stroke">Copyright(c) 2017</watermark-text>
            <watermark-text text-align="left" line-align="top" font-family="MSGothic" font-color="255,0,0" font-size="12" font-style="PLAIN" narrow="horizon" text-rendering="stroke">BrainSellers.com Corporation</watermark-text>
            <watermark-text text-align="left" line-align="top" font-family="MSGothic" font-color="255,0,0" font-size="12" font-style="PLAIN" narrow="horizon" text-rendering="stroke">All rights reserved.</watermark-text>
        </bs:document-watermark>
    </bs:document-properties-set>
    <fo:layout-master-set>
    </fo:layout-master-set>
    <bs:pdf-sequence href="${base-dir}/sample/xml/pdf-sequence/base.pdf">
    </bs:pdf-sequence>
</fo:root>

ベースとなるPDF(『<biz-Stream_home>/sample/xml/pdf-sequence/base.pdf』)

ベースPDF

生成されるPDF(『<biz-Stream_home>/sample/xml/pdf-sequence/pdf-sequenceSample1.pdf』)

ベースPDF