- BuildVuで注釈(アノテーション)はどのように機能しますか?
- BuildVuはメモリ内のファイルを変換できますか?
- 一部のファイルでわずかに白い線が表示されるのはなぜですか?
- BuildVuはハイパーリンクをサポートしていますか?
- BuildVuはドキュメント間でフォントを共有できますか?
- 書き出すファイルを小さくしたい
- 右綴じの書類がうまく表示されません
- BuildVuは編集可能なHTML5を生成できますか?
- IDRViewerは印刷をサポートしていますか?
- BuildVuはテーブル構造を再現しますか?
- BuildVuでサポートされるフォントは?
- BuildVuはフォントをどのように処理しますか?
- 通常のリリースとDaily Customer JARの違いは何ですか?
- IDRViewerの検索機能
- IDRViewerのインターフェースを変更する
- 暗号化ファイルに別のプロバイダを使用する
- BuildVuのバージョンを確認する方法
- BuildVuはどのJavaバージョンをサポートしますか?
- デフォルトのIDRViewer ユーザーインターフェースを変更する
- IDRViewerのページビューをGoogle Analyticsでトラッキングする方法
- BuildVuが処理できる最大ファイルサイズは?
- PDFのフォントライセンスはどのように扱われますか?
- BuildVuで作成したHTMLはスマートフォンで見られますか?
- BuildVuで作成したドキュメントをメールに埋め込むことができますか?
- BuildVuは注釈(アノテーション)とフォームをどのように扱いますか?
- BuildVuはType3フォントはどのように処理しますか?
- どのキャラクターセット(文字コード)が使用されていますか?
- IDRViewerを変更するにはどうすればよいですか?
- BuildVuは単一のファイルで出力できますか?
- BuildVuはメモリに出力できますか?
- BuildVuはレスポンシブのHTMLを生成できますか?
- すべて表示 ( 26 ) 折り畳む
- BuildVu 2021.01 Release Notes
- BuildVu 2020.11 Release Notes
- BuildVu 2020.10 Release Notes
- BuildVu 2020.08 Release Notes
- BuildVu 2020.07 Release Notes
- BuildVu 2020.06 Release Notes
- BuildVu 2020.04 Release Notes
- BuildVu 2020.03 Release Notes
- BuildVu 2020.01 Release Notes
- BuildVu 2019.12 Release Notes
- BuildVu October 2019 Release Notes
- BuildVu September 2019 Release Notes
- BuildVu August 2019 Release Notes
- BuildVu June 2019 Release Notes
- BuildVu May 2019 Release Notes
- BuildVu April 2019 Release Notes
- BuildVu February 2019 Release Notes
- BuildVu January 2019 Release Notes
- BuildVu December 2018 Release Notes
- BuildVu November 2018 Release Notes
- BuildVu October 2018 Release Notes
- BuildVu September 2018 Release Notes
- BuildVu August 2018 Release Notes
- BuildVu July 2018 Release Notes
- BuildVu June 2018 Release Notes
- すべて表示 ( 20 ) 折り畳む
BuildVuはPDFファイルをHTMLまたはSVGにしか変換できませんが、オープンソースソフトウェアのLibreOfficeを使用してOfficeドキュメントをPDFに事前変換することで、Word、PowerPoint、ExcelファイルなどのOfficeドキュメントを変換することもできます。
これを行うには、LibreOfficeをインストールする必要があります。Linux等のサーバOSでLibreOfficeを実行している場合、一部のOfficeドキュメントがLinuxでは使用できないフォントを使用していると、正しく変換されないことがあります。 このため、Google Noto Fontsをインストールして、不足しているフォントを置き換える必要があります。
BuildVuはLibreOfficeを使用して、コマンドライン経由またはJavaクラスからOfficeドキュメントを変換できます。
コマンドラインでの変換
LibreOfficeをインストールしたら、LibreOffice実行可能ファイルへの絶対パスをシステムプロパティとして渡すだけで、コマンドラインからOfficeドキュメントを変換できます。
java -Dorg.jpedal.pdf2html.libreOfficeExecutablePath="/path/to/soffice" -jar buildvu.jar /inputDir/ /outputDir/
Officeドキュメントと同じファイル名のPDFファイルが既に存在する場合、変換は失敗します。 これは、次のシステムプロパティを追加することで上書きすることができます。
-Dorg.jpedal.pdf2html.allowLibreOfficeOverwrite=true
Java Classでの変換
LibreOfficeがインストールされると、DocumentToPDFConverterクラスを使用してLibreOfficeを呼び出し、Officeドキュメントを前処理することができます。
if (DocumentToPDFConverter.hasConvertibleFileType(document)) {
try {
DocumentToPDFConverter.convert(document, libreOfficeExecutablePath);
// Code to convert generated PDF file to HTML5 goes here
} catch (IOException e) {
// Problem occurred - see Javadoc for reasons
} catch (InterruptedException e) {
// Process was interrupted
}
} else {
// File type not supported
}
是非、こちらのJavadocをお読みください。 DocumentToPDFConverterクラスのソースコードもオンラインでご覧いただけます。