Powershell - Pdf file print

Norbert Pozsonyi 1 Reputation point
2021-03-28T00:36:41.86+00:00

Hello i would like to print a PDF files with USB port printer. Can somebody offer a working method or script for it which able to select print pages to print and not int all page ones?

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,354 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,486 Reputation points Microsoft Vendor
    2021-03-29T09:54:39.137+00:00

    Hi,

    You may try the PDFSharp in PowerShell as it's a .NET library. Please refer to the link below.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/1bb0a855-51ef-4bc2-a648-fc437f440ef0/print-a-pdf?forum=csharpgeneral

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Norbert Pozsonyi 1 Reputation point
    2021-03-29T19:55:33.047+00:00

    Hello thank you for the solution but from it i dont know how to import this type or dll or what to download and how to use it for create a powershell code. Could you help me in it?

    it was a very very short answear...

    0 comments No comments