How do I add an image to a PDF document I am creating via PowerShell?
I am adding text with code like:
$environmentElem = New-Object iTextSharp.text.Paragraph;
[void]$environmentElem.Add("Text");
[void]$TemplateDoc.Add($environmentElem);
I have tried in PowerShell to walk down the namespace looking for a suitable type (iTextSharp.text.Image) but to no avail.
Also I need to do a lot of PDF creation through PS using iTextSharp, is there a good resource you can recommend?
Thanks,
Andrew
try this, I’ve not tested but convert from c# take from here: