PDF to TIFF
Documentize PDF Converter for .NET は、PDF 文書を高品質な TIFF 画像に変換する強力なツールです。このコンポーネントは、優れた忠実度と汎用性を保ちつつ、コンテンツをさまざまなプラットフォームで利用できるようにします。 解像度の調整、マルチページ出力の有効化、ページの選択などで変換プロセスをカスタマイズできます。
PDF を TIFF に変換する方法
PDF 文書を TIFF 画像に変換するには、以下の手順に従います。
PdfToTiffOptionsのインスタンスを作成し、変換プロセスを設定します。AddInputメソッドで入力 PDF ファイルを追加します。AddOutputメソッドで TIFF 画像の出力パスを指定します。Convertメソッドを実行して、PDF ページを TIFF 画像に変換します。
1// Create PdfToTiffOptions object to set instructions
2var options = new PdfToTiffOptions();
3// Add input file path
4options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
5// Set output Directory path
6options.AddOutput(new DirectoryData("path_to_output_directory"));
7// Perform the process
8PdfConverter.Convert(options);PDF から TIFF への変換でページと DPI をカスタマイズする
PDF の 2 ページを 400 DPI で TIFF ファイルに変換する例です。
1// Create PdfToTiffOptions object to set instructions
2var options = new PdfToTiffOptions();
3// Add input file path
4options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
5// Set output Directory path
6options.AddOutput(new DirectoryData("path_to_output_directory"));
7// Set Pages
8options.PageList = [1, 3];
9// Set result image Resolution
10options.OutputResolution = 400;
11// Perform the process
12PdfConverter.Convert(options);マルチページ TIFF の作成
このプラグインはマルチページ TIFF の生成をサポートしており、複数の PDF ページを 1 つの TIFF ファイルに結合して、効率的なアーカイブや印刷が可能です。
1// Create PdfToTiffOptions object to set instructions
2var options = new PdfToTiffOptions();
3// Add input file path
4options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
5// Set output Directory path
6options.AddOutput(new DirectoryData("path_to_output_directory"));
7// Enable Multi-Page TIFF output
8options.MultiPage = true;
9// Perform the process
10PdfConverter.Convert(options);PDF から TIFF への変換でページと DPI をカスタマイズする
PDF の 2 ページを 400 DPI で TIFF ファイルに変換する例です(圧縮と色深度の設定を含む)。
1// Create PdfToTiffOptions object to set instructions
2var options = new PdfToTiffOptions();
3// Add input file path
4options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
5// Set output Directory path
6options.AddOutput(new DirectoryData("path_to_output_directory"));
7// Set Compression and ColorDepth
8options.Compression = TiffCompression.RLE;
9options.ColorDepth = TiffColorDepth.Format24bpp;
10// Perform the process
11PdfConverter.Convert(options);変換結果の扱い方
Convert メソッドは ResultContainer オブジェクトを返し、変換結果に関する詳細を提供します。以下のように変換された TIFF ファイルのストリームを取得できます。
1// Create PdfToTiffOptions object to set instructions
2var options = new PdfToTiffOptions();
3// Add input File path
4options.AddInput(new FileData("path_to_input.pdf"));
5// Perform the process
6var results = PdfConverter.Convert(options);
7// Get stream results
8foreach (var result in results.ResultCollection)
9{
10 var streamResultPage1 = result.ToStream();
11}主な機能
- PDF を TIFF に変換:PDF 全体または特定のページを簡単に TIFF 画像に変換します。
- カスタム解像度:解像度(例:300 dpi)を調整して、品質の高い出力を実現します。
- マルチページ TIFF:複数の PDF ページを 1 つのマルチページ TIFF ファイルに結合できます。
- ページ選択:変換対象のページを選択できます。
- 高速変換:最小限の手間で迅速かつ効率的に変換できます。