Forum Discussion
How to convert png image to pdf format on Windows 11?
This method uses a dedicated .NET command-line tool designed specifically for you to turn a PNG file into a PDF format. It is free and powerful, offering precise control over the process.
Img2Pdf is a .NET tool you install as a global command. Here's the process to turn a PNG file into a PDF format:
1. Install the Tool: Open a command prompt or PowerShell and run:
cmd
dotnet tool install --global Img2Pdf
2. Navigate to Your Folder: In the terminal, use cd to go to the folder containing your PNG files.
3. Run the Conversion: Use the img2pdf command. To merge all PNG images in the folder into a single PDF, you can simply run:
cmd
img2pdf
This default command will give you an interactive option to process all images in the current directory .
For more control, you can use specific parameters. For instance, to convert a specific file:
cmd
img2pdf -i image.png -o output.pdf
To process a whole folder and sort images by creation date:
cmd
img2pdf -i C:\YourImageFolder -o combined.pdf -s ctime
You can also use the -k false switch to have the images fit the PDF page size rather than maintaining their original dimensions .
System Requirements: This tool requires .NET 6.0 or higher and is compatible with Windows, Linux, and macOS.