VMware Cloud Community
drivera01
Enthusiast
Enthusiast

export results to pdf

right now, I do to html or excel. is there a way to export the results of script to a PDF?

thanks!!

Tags (1)
0 Kudos
1 Reply
LucD
Leadership
Leadership

There are a couple of options to produce PDF files from PowerShell.

  1. You have Word installed, then you can use the Word COM object to SaveAs a PDF. See for example How to Convert Word Documents to PDFs with PowerShell
  2. Use itextsharp.dll See for example Convert text files to PDF then merge PDFs in bulk with PowerShell and iTextSharp


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos