The PrintOut in the example results a silent print, when you print through the specified inputFile to the OutputFileName, which will be placed in the same folder as the original document, but it will be in PDF format with the. For more info about the doc please see the following MSDN links for _Document.PrintOut() The OutputFile is a full path string of the input document you would like to convert, and the doc is a regular document object. Set an object so there is less typing for values not needed If it is unticked then tick it and press ok. Click 'Print' to use the Acrobat PDF printer. Choose Adobe PDF from the list of printers in the print dialog box. Then type 'optionalfeatures' without the speech marks Then brings up the windows features window scroll down to Microsoft Print to PDF. Select a file in any application that prints and open it. Path.GetFileNameWithoutExtension(InputFile)+".pdf" Press the windows button and R at the same time. convert input filename to new pdf name In background it uses SumatraPDF to pass the silent print command (you can check this cool PDF reader at ). / Full path and filename with extension of the file you want to convert from (1) Free Get in Store app Description - 'Smart PDF Printing' is a smart tool to help you to print any PDF files silently. / Convert a file to PDF using office _Document object You can print to the Windows 10 PDF printer, by using the PrintOut method and specifying the fourth output file name parameter, as in the following example: ///
0 Comments
Leave a Reply. |