Forum Discussion
How to convert png image to pdf format on Windows 11?
Using Powershell-PDFExport can convert PNGs to PDF, but with a very important limitation: it requires Microsoft Office to be installed because it automates Office applications.
Here is how you might approach how to convert png to pdf using this script:
1. Save the Script: Download the script file, named Convert- OfficeToPDF .ps1, to your computer.
2. Launch PowerShell: Open PowerShell with administrator privileges (right-click and select "Run as administrator").
3. Navigate to the Script's Folder: Use the cd command to go to the directory where you saved the script.
4. Set Execution Policy: To run the script, you may need to temporarily allow it by typing:
powershell
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
5. Run the Conversion: Execute the script, pointing it to the folder containing your PNG files. For example:
powershell
.\Convert-OfficeToPDF.ps1 -FolderPath "C:\YourImageFolder"
The script will process all supported files, including PNGs, and save the resulting PDFs in the same location or a specified output folder.
Basic Usage if you are wondering how to convert PNG to PDF: The script is designed for batch processing. You can run it from PowerShell to convert all supported files (including PNGs) in a folder to PDF.