0

サードパーティの dll や相互運用ライブラリを使用せずに PDF に変換する必要がある Word ドキュメント (doc および docx) があります。StreamReader を使用しているため、変換された PDF のコンテンツはシンボルのように見えます。

相互運用ライブラリ以外に単語文書をロードする方法はありますか? 以下は私が試したコードです

streamReader = new StreamReader(filepath);
PrintDocument pd = new PrintDocument();
pd.PrinterSettings.PrinterName = "Microsoft Print to PDF";
pd.PrinterSettings.PrintToFile = true;
pd.PrinterSettings.PrintFileName = pdf_path;
pd.Print();
4

0 に答える 0