NET用のDOCコンバータ

DOC Converter for .NET への導入

DOC Converter for .NET は、開発者が PDF ドキュメントを Word ファイル フォーマットに変換できるプラグインです このガイドでは、利用可能な機能の概要を提供し、コード 例を使用して一般的なタスクを実行する方法を説明します。

文書変換

DOC Converter for .NET は、PDF ドキュメントを人気のあるファイルフォーマットに変換することをサポートします. 以下コード サンプルは .pdf ファイルを .docx フィルムに変更する方法を示しています:

var inputPath = Path.Combine(@"C:\Samples\", "sample.pdf");
var outputPath = Path.Combine(@"C:\Samples\", "sample.docx");

// Create an instance of the PdfDoc plugin.
var plugin = new PdfDoc();

// Create an instance of the PdfToDocOptions class.
var options = new PdfToDocOptions
{
    SaveFormat = SaveFormat.DocX
};

// Add the input and output file paths to the options.
options.AddInput(new FileDataSource(inputPath));
options.AddOutput(new FileDataSource(outputPath));

// Process the PDF to Word conversion using the plugin and options.
var resultContainer = plugin.Process(options);

// Get the result from the result container.
var result = resultContainer.ResultCollection[0];

// Print the result.
Console.WriteLine(result);

サポートされているファイル形式

DOC Converter for .NET は、以下の入力および出力ファイル形式をサポートしています。

  • 入力:PDF
  • 出力: DOC、DOCX

最良の実践とトラブル解決

DOC Converter for .NET を使用すると、最適なパフォーマンスを確保し、一般的な問題を避けるための最良の実践に従うことが良い。

  • 正しいファイルパスと名前を使用する
  • 正しい入力と出力ファイル形式を指定する
  • 必要に応じて変換オプションをカスタマイズする
 日本語