question

NorbertPozsonyi-9574 avatar image
0 Votes"
NorbertPozsonyi-9574 asked NorbertPozsonyi-9574 edited

Powershell - Pdf file print

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered IanXue-MSFT edited

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NorbertPozsonyi-9574 avatar image
0 Votes"
NorbertPozsonyi-9574 answered NorbertPozsonyi-9574 edited

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...

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.