Converting PNG files to PDF
Why You Need to Convert PNG Files to PDF
There are several reasons why converting PNG files (or other image formats) to PDF is necessary.
For instance, some web platforms, such as the social-media platform LinkedIn, only accept a single image per post. If you have created two images for a post, you cannot simply add both. In this scenario, you need to combine those pictures into a single PDF file.
Another common reason is job applications. If your certificates are saved as individual PNG or JPEG files, but your potential employer requires you to upload documents as a single PDF file, you must convert and merge them.
What is LinkedIn?
LinkedIn is a social-media platform primarily focused on professional networking and business contacts. It is the ideal platform if you are looking for a job, seeking new business partnerships, or expanding your professional network. Users on this platform are generally more focused on professional interaction than those on other platforms like Facebook, Instagram, Threads, or Reddit.
I also maintain a profile on LinkedIn, and the link leads to my personal profile.
The Preparation
If you have many PNG files that you want to combine, it’s best practice to organize them first.
- Create a temporary folder:Bash
mkdir <new_folder_name>
- Move the PNG files to this folder:Bash
mv *.png <new_folder_name>/
- Navigate into this folder:Bash
cd <new_folder_name>
The conversion command relies on the convert
utility, which is part of the ImageMagick package. You must ensure this package is installed first.
Checking for ImageMagick (Example for Fedora)
On Fedora, you can check the package information using:
Bash
dnf info ImageMagick
This command will show information similar to the following:
- …your displayed information about the package follows here…
- Description: ImageMagick is an image display and manipulation tool for the X Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF, and Photo CD image formats. It can resize, rotate, sharpen, color reduce, or add special effects to an image, and when finished you can either save the completed work in the original format or a different one.
The Conversion
Once your files are organized and ImageMagick is installed, the conversion is a single command. The convert
utility is smart enough to combine all input files into a multipage PDF document when you list them all and specify a PDF output file.
Bash
convert *.png <filename>.pdf
You will then find a single PDF file (<filename>.pdf
) in the same directory. You can now easily upload this file to platforms like LinkedIn or use it for your job application forms.
„OpenSource Traveler,“ founded on October 6, 2025. I am self-employed and offer Linux courses covering these types of topics.
