Forum Discussion

Uomasm's avatar
Uomasm
Tin Contributor
Aug 21, 2026

How to convert png image to pdf format on Windows 11?

I need to convert multiple PNG images to a single PDF file on Windows 11 and am looking for the best built-in method. Can someone guide me on how to do this without installing third-party software, or suggest a reliable free tool if necessary?

9 Replies

  • DevonZhang's avatar
    DevonZhang
    Iron Contributor

    If you use the built-in "Print to PDF" feature, you might see unwanted horizontal white lines across the pages of your PDF.

  • Ziaoik's avatar
    Ziaoik
    Iron Contributor

    Yes, using the File Converter Node. js Package is a great way to turn a PNG file into a PDF format. Here’s a breakdown of the steps involved, making it a suitably complex method to turn a PNG file into a PDF format.

    1. Install Node. js: Before you can use any Node. js package, you must download and install Node. js from its official website. This is the foundation for running the tool.

    2. Install the Package: Open your command prompt or terminal and run the following command. This downloads and installs the converter:

    bash

    npm install file-converter-nodejs

    3. Install Libre Office and Python: This package acts as a wrapper for other tools. To actually perform the conversion, it requires Libre Office and Python to be installed on your Windows PC . You'll need to download and install both from their official websites.

    4. Write a Script: With everything installed, you can turn a PNG file into a PDF format by creating a small Node. js script. Here's a code example to do just that :

    javascript

    import FileProcessor from "file-converter-node js";

     

    const processor = new FileProcessor();

    await processor.convertFile({

    filePath: "/path/to/your/image.png",

    from: "png",

    to: "pdf",

    outdir: "/path/to/output/folder",

    });

    the file-converter-nodejs package offers a robust, albeit dependency-heavy, way to turn a PNG file into a PDF format. It fits your request for a complex method and gives you full control over the process through code, but be prepared for the multi-step setup.

  • Darcry's avatar
    Darcry
    Tin Contributor

    If you are interested in understanding how to convert PNG to PDF on Windows using a Node. js-based approach, here is what the documentation for HonoConvert suggests for setup and usage.

    HonoConvert is designed for a web server environment, not as a desktop application. It has specific requirements for setup on Windows.

    • Prerequisites: You need to install Node. js (v18 or higher) and Libre Office. For Windows, Libre Office must be downloaded from its official website and added to your system's PATH so the application can find it.
    • Installation: You would need to clone the project's repository from GitHub, navigate to the folder in your terminal, and run npm install to set up the dependencies.
    • Running the Server: Once installed, you can start a local development server with npm start. The server listens for requests, typically at http//localhost :3000.
    • Converting an Image: To convert an image, you would use a tool like cURL to send a POST request to the server's endpoint. An example command provided is:

    bash

    curl -X POST -F "image=@path/to/your/image .png" http://localhost:3000/convert/image-to-pdf --output output .pdf

    This command sends a POST request with your PNG file, and the server returns the converted PDF, which you save as output .pdf.

    For a more straightforward solution on how to convert PNG to PDF on Windows, this is a complex method designed for developers building web applications. It involves setting up a local web server and making API calls, which is a challenging but educational path.

  • Pallui's avatar
    Pallui
    Copper Contributor

    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.

  • Leilaoivb's avatar
    Leilaoivb
    Copper Contributor

    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.

  • AustinGreen's avatar
    AustinGreen
    Iron Contributor

    If you want to handle local‑file PDF conversion without uploading files to web services, there is a solid offline utility worth checking out. Many people search How to convert PNG to PDF on Windows and worry about privacy risks from online converters. This program processes everything locally on your PC, so your images never leave your device.

    Operation steps:

    1. Launch the utility and locate the “Image to PDF” tool from the main menu
    2. Drag and drop your PNG files into the program window
    3. Adjust page layout and image sizing according to your needs
    4. Pick an output folder, then run the conversion and save your finished PDF

    Cons

    • Initial startup takes slightly longer than lightweight small apps
    • The menu layout can feel overwhelming for total beginners

    A lot of regular users look up How to convert PNG to PDF on Windows when they need to batch‑process multiple screenshots or photos. This tool works well for bulk jobs and keeps all file processing offline.

    Notes

    • Sort your PNG files beforehand to get correct page order in the final PDF
    • Close other heavy apps when converting large batches to avoid slowdowns
  • DanielHarvey's avatar
    DanielHarvey
    Iron Contributor

    Windows already includes basic tools for viewing and exporting image files, but they offer limited control over page ordering, quality tuning, and batch‑processing workflows. If you want flexible options to arrange multiple graphic files into one document, a dedicated utility can be helpful when considering How to convert PNG to PDF on Windows.

    NAPS2 is an open‑source document tool built primarily for scanning, which also supports importing local image files and exporting them as PDF documents. It lets you reorder pages, adjust image quality, rotate content, and assemble multi‑page outputs, making it suitable for combining batches of PNG files into a single PDF on your desktop.

    To get started, launch the application, import your PNG image files, rearrange pages in your preferred sequence, and tweak output settings before saving your final PDF file. You can also adjust brightness or apply rotation corrections to images before export. If you're exploring How to convert PNG to PDF on Windows, NAPS2 provides a capable alternative when built‑in Windows tools lack sufficient batch‑processing features.

  • AidenWhite's avatar
    AidenWhite
    Iron Contributor

    For developers and power users who want a highly customizable solution, combining Python with the Pillow and PyPDF2 libraries is an excellent choice. This scripting approach provides ultimate flexibility and is perfect for anyone looking to automate their workflow when figuring out how to convert png to pdf in bulk.

    Steps:

    • Install Python and the required libraries via command line:

    pip install Pillow PyPDF2

    • Write a Python script that contains the following code:
    import os
    from PIL import Image
    from PyPDF2 import PdfMerger
    
    # Convert PNGs to PDFs and merge them
    merger = PdfMerger()
    png_files = sorted([f for f in os.listdir('.') if f.endswith('.png')])
    
    for png in png_files:
        img = Image.open(png)
        pdf = png.replace('.png', '.pdf')
        img.save(pdf, 'PDF', resolution=100)
        merger.append(pdf)
    
    merger.write('output.pdf')
    merger.close()
    
    # Clean up individual PDFs
    for png in png_files:
        pdf = png.replace('.png', '.pdf')
        os.remove(pdf)
    • Run the script in the folder containing the PNG files:

    python convert_png_to_pdf.py

    This method is the ultimate answer to how to convert png to pdf for those who frequently process large batches of images and prefer a scriptable, hands-off automation over manual GUI tools.

  • FreePDF is an open-source PDF tool that serves as a convenient How to convert png to pdf. It supports batch conversion, merging multiple images, and offers basic settings for organizing output files.

    How to convert png to pdf

    Step 1: Download and install the software.

    Step 2: Open the app → Tap Insert Image → Select your PNG file.

    Step 3: Tap Save → Select Sort and Settings.

    The PDF has now been generated.

    The software has no watermarks and no usage restrictions. Its simple interface makes it easy to quickly convert files, though its features may be somewhat limited for advanced users.

    Pros:

    • Open-source and compact
    • Supports batch conversion of multiple images
    • Can merge multiple images into a single PDF file

    Cons:

    • The interface is very basic and outdated
    • Limited advanced settings and editing features
    • No preview available before saving