0
私はNRecoの無料版を使用してhtmlからpdfに変換しています。 pdfはデフォルトフォルダ "ダウンロード"にダウンロードされます。私はそれをカスタマイズする必要があります。誰でも助けてくれますか?NReco PdfGenerator出力パスをカスタマイズするC#
ありがとうございます!
編集: デフォルトのフォルダにPDFファイルをダウンロードするコードは以下のとおりであった:
var pdfBytes = pdfConverter.GeneratePdf(strHtml);
Response.ContentType = "application/pdf";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.AddHeader("Content-Disposition", "attachment; filename=TEST.pdf");
Response.BinaryWrite(pdfBytes);
Response.TransmitFile(output_path_pdf);
Response.Flush();
Response.End();