Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Batch printing Publisher files with 'Microsoft Print to PDF' printer

$
0
0

I hope this is OK.  I've already asked about this in a different thread, but I kind of attached my question to the end of an old thread, so maybe no-one saw it...

I want to automate printing a folder of MS Publisher files with the 'Microsoft Print to PDF' printer, without having to give a file name for each one.  (I could do this with PDF Creator, but the 'Microsoft Print to PDF' printer gives much better quality when printing from Publisher.)  I tried the script on this page:

https://social.technet.microsoft.com/Forums/scriptcenter/en-US/04ddfe8c-a07f-4d9b-afd6-04b147f59e28/automating-printing-to-pdf?forum=winserverpowershell

I could see that it was making PDFs with the same name as the files, which is what I want.  Unfortunately, it printed single blank pages.

Is there some way I can tweak this code to do what I want?

Any help would be greatly appreciated. 



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>