Skip to content

excella-core/excella-pdfexporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Excella PdfExporter

  1. ExCella PdfExporterとは

ExCella PdfExporterはExcella Reportsで出力する帳票をPDF形式で出力するためのプログラムです。 Excella Reports 1.6まではExcella Reportsに含んでいたものを、別プロジェクトとして分離しました。

ExCella Reports、Excella PdfExporterは株式会社ビーブレイクシステムズが 作成したオープンソースソフトウェアです。

  1. 配布条件

本ソフトウェアはApache License, Version 2.0にて公開しています。 詳細は「LICENSE.txt」ファイルまたは 以下のページを参照してください。 https://www.apache.org/licenses/LICENSE-2.0.txt

  1. 免責

このソフトウェアを使用したことによって生じたいかなる 障害・損害・不具合等に関しても、株式会社ビーブレイクシステムズは 一切の責任を負いません。各自の責任においてご使用ください。

  1. Maven repository

mavenの依存ライブラリとして追加する場合、pom.xmlに下記のリポジトリを追加してください。

  <repositories>
    <repository>
	  <id>excella.bbreak.org</id>
      <name>bBreak Systems Excella</name>
      <url>http://excella-core.github.io/maven2/</url>    
    </repository>
  </repositories>
  1. 使い方

PDF変換にはLibre Officeを使用します。 Libre Officeをインストール後、下記コマンドでサービスとして起動してください。

${LIBREOFFICE_HOME}/program/soffice -headless -accept=socket,port=8100;urp;

プログラム側では、ReportBookの出力形式としてOoPdfExporter.FORMAT_TYPEを指定します。

  ReportBook outputBook = new ReportBook( templateFilePath, outputFilePath, OoPdfExporter.FORMAT_TYPE);

出力時にOoPdfExporterを生成し、ReportProcessorに追加します。

  ReportProcessor reportProcessor = new ReportProcessor();
  OfficeManager officeManager =
    ExternalOfficeManager.builder().portNumbers( 8100).build();
  officeManager.start();
  reportProcessor.addReportBookExporter( new OoPdfExporter(officeManager));
  reportProcessor.process( outputBook);
  officeManager.stop();
  1. 更新履歴

  • 2021/09/13 Version 2.1 リリース
  • 2019/12/24 Version 2.0 リリース
  • 2017/01/28 Version 1.2 リリース
  • 2016/04/05 Version 1.1 リリース
  • 2016/01/17 Version 1.0 リリース

Copyright 2015 by bBreak Systems.