开发者

PDF printer without user intervention

开发者 https://www.devze.com 2022-12-18 14:56 出处:网络
I\'m looking for a PDF printer that doesn\'t ask the user to choose a filename and directory, but simply saves it开发者_JS百科 to a predefined folder with a unique filename.

I'm looking for a PDF printer that doesn't ask the user to choose a filename and directory, but simply saves it开发者_JS百科 to a predefined folder with a unique filename.

Thx.


The PDFsharp .Net libraries allow you to create PDF documents without user intervention, and the System.IO.Path.GetTempFilename() function can give you a unique filename to write out to (though I think it appends a .tmp extension which you may want to change)


A PDF printer is normally just a print driver. It's up to individual applications what dialogs they will display. You could always write your own program that doesn't prompt users.

0

精彩评论

暂无评论...
验证码 换一张
取 消