- 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は、Javaアプリケーション内から直接実行できます。 このガイドは、Javaの知識を持つ開発者を対象としています。
前提条件
- buildvu-svg.jar、buildvu-html.jarをダウンロードする必要があります
- Java 8以降が必要です(バージョンの互換性を参照)
- プロジェクトライブラリにbuildvu.jarを追加する
クイックスタート
BuildVu-SVG:
SVGConversionOptions conversionOptions = new SVGConversionOptions(); // Set conversion options here e.g. conversionOptions.setCompressImages(true); IDRViewerOptions viewerOptions = new IDRViewerOptions(); // Set viewer options here e.g. viewerOptions.setViewerUI(IDRViewerOptions.ViewerUI.Clean); File pdfFile = new File("C:/MyDocument.pdf"); File outputDir = new File("C:/MyOutputDirectory/"); PDFtoSVGConverter converter = new PDFtoSVGConverter(pdfFile, outputDir, conversionOptions, viewerOptions); try { converter.convert(); } catch (PdfException e) { e.printStackTrace(); }
詳細については、PDFtoSVGConverterのJavadocページを参照してください。
BuildVu-HTML:
HTMLConversionOptions conversionOptions = new HTMLConversionOptions(); // Set conversion options here e.g. conversionOptions.setCompressImages(true); IDRViewerOptions viewerOptions = new IDRViewerOptions(); // Set viewer options here e.g. viewerOptions.setViewerUI(IDRViewerOptions.ViewerUI.Clean); File pdfFile = new File("C:/MyDocument.pdf"); File outputDir = new File("C:/MyOutputDirectory/"); PDFtoHTML5Converter converter = new PDFtoHTML5Converter(pdfFile, outputDir, conversionOptions, viewerOptions); try { converter.convert(); } catch (PdfException e) { e.printStackTrace(); }
詳細については、PDFtoHTML5ConverterのJavadocページを参照してください。
ハイブリッド版:
HTMLConversionOptions conversionOptions = new HTMLConversionOptions(); // Set conversion options here e.g. conversionOptions.setCompressImages(true); IDRViewerOptions viewerOptions = new IDRViewerOptions(); // Set viewer options here e.g. viewerOptions.setViewerUI(IDRViewerOptions.ViewerUI.Clean); File pdfFile = new File("C:/MyDocument.pdf"); File outputDir = new File("C:/MyOutputDirectory/"); PDFtoHTML5Converter converter = new PDFtoHTML5Converter(pdfFile, outputDir, conversionOptions, viewerOptions); try { converter.convert(); } catch (PdfException e) { e.printStackTrace(); }
詳細については、PDFtoHTML5ConverterのJavadocページを参照してください。
SVGコンテンツを使用する場合は、PDFtoSVGConverterを参照下さい。
設定方法
利用可能な設定とその値はJavadocにあります。 主要なクラスは次のとおりです:
- SVGConversionOptions(SVGモードで使用可能な設定)
- HTMLConversionOptions(HTMLモードで使用可能な設定)
- IDRViewerOptions(IDRViewerモードで使用可能な設定)
- ContentOptions(コンテンツモードで使用可能な設定)
Officeドキュメントのサポート
BuildVuの主な機能はPDFファイルをHTML5に変換することですが、OfficeドキュメントをHTML5に変換するには、LibreOfficeを使用してオフィスドキュメントをPDFに変換しておくこともできます。
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クラスのソースコードをオンラインで表示する。
フォントで起こりうる問題
LinuxでLibreOfficeを実行している場合、Linuxで利用できないフォントを使用すると、一部のファイルが正しく変換されないことがあります。 欠落したフォントを代替フォントに置き換える可能性を高めるには、Google Notoフォントをインストールすることをおすすめします。
Tags: