IM-PDFCoordinator for Accel Platform プログラミングガイド 第13版 2024-04-01

8.1.1. サンプル実行手順

8.1.1.1. 結合対象ファイルを設置する

  1. < %PUBLIC_STORAGE_PATH% /pdfc_ld >ディレクトリを作成します。
  2. サンプル用のPDFファイルが入っている< data >フォルダを、< %PUBLIC_STORAGE_PATH% /pdfc_ld >配下に設置します。

8.1.1.2. サンプルのフロー定義のデバッグ画面を開く

  1. 「サイトマップ」-「LogicDesigner」-「フロー定義一覧」をクリックします。

    ../../../_images/sample_execution_1.png
  2. 「 IM-PDFCoordinator サンプル」-「sample-pdfc-combine-flow」を選択し、「編集」ボタンをクリックします。

    ../../../_images/sample_execution_2.png
  3. 「デバッグ」ボタンをクリックします。

    ../../../_images/sample_execution_3.png

8.1.1.3. 入力値を設定し、デバッグを実行する

  1. 「実行」ボタンをクリックします。

    ../../../_images/sample_execution_4.png
  2. 「combFile1Path」、および、「combFile2Path」に結合対象ファイル、「outputFilePath」に出力ファイルのパブリックストレージパスを設定し、「実行」ボタンをクリックします。

    設定例は次の通りです。

    < 値を編集 >

    変数
    combFile1Path pdfc_ld/data/comb1.pdf
    combFile2Path pdfc_ld/data/comb2.pdf
    outputFilePath pdfc_ld/data/out.pdf

    < JSON入力 >

    {
       "combFile1Path": "pdfc_ld/data/comb1.pdf",
       "combFile2Path": "pdfc_ld/data/comb2.pdf",
       "outputFilePath": "pdfc_ld/data/out.pdf"
    }
    
    ../../../_images/sample_execution_5.png

    コラム

    ユーザ定義の入出力値については「 ユーザ定義タスク 」を参照してください。

    コラム

    本フロー定義では、次の順番でファイルが結合されます。

    • combFile1Path
    • combFile2Path
  3. 「決定」ボタンをクリックします。

    ../../../_images/sample_execution_6.png
  4. デバッグが開始されます。

    正常にデバッグが終了した場合、その旨のメッセージが表示され、変数情報ペイン、および、コンソールペインが更新されます

    ../../../_images/sample_execution_7.png

8.1.1.4. 実行結果を確認する

  1. 「outputFilePath」に指定した出力先に、PDFファイルが出力されていることを確認します。

    ../../../_images/sample_execution_8.png ../../../_images/sample_execution_9.png

    PDFの結合処理に失敗した場合は、デバッグ実行時のユーザ定義の返却値「status」、および、「message」を確認してください。

    ../../../_images/sample_execution_10.png

以上で、全ての手順は終了です。