Add signature image to PDF
✓ Published0🌍 Public
TTomStanczyk
Last edited Jun 21, 2020
Created on Jun 21, 2020
This example shows a PowerShell script that converts Excel workbooks to PDF files and inserts a signature image into each one. It processes every .xls and .xlsx file in a specified folder, opening the first worksheet of each workbook. Using the Excel COM object, it places the signature PNG into cell D10 via the `Shapes.AddPicture` method, then exports the workbook as a PDF using `ExportAsFixedFormat`. The script relies on the Microsoft Office Interop Excel API and iterates through files with `Get-ChildItem`.
AI-generated description