How to convert PNG to PDF

0

I've see everywhere that a "convert" command works. But I'm using windows and convert does the following

"In computing, convert is a command-line utility included in the Windows NT operating system line. It is used to convert volumes using the FAT file systems to NTFS."

How can I manage to do this in Windows? I have PDFTK installed.

digit

Posted 2017-10-03T17:17:53.003

Reputation: 101

convert as described above is from the ImageMagick utilities, which are on Linux/other *nixes and ported to Windows. See http://www.thekoikeepers.com/ImageMagick-5.5.7/www/windows.html – LawrenceC – 2017-10-03T17:31:25.123

Windows 10 has "Microsoft Print to PDF" have you tried printing to that? open your PNG (or image) in whatever editor you use and then use that printer. – Aaron Sulwer – 2017-10-03T19:02:09.837

MY answer IS not a comment! I posted a valid answer and thus it should not be treated as a 'comment' – Aaron Sulwer – 2017-10-03T19:12:34.447

@Aaron.S "have you tried printing to that?" is a suggestion not an answer. – DavidPostill – 2017-10-03T19:18:23.737

If they were JPEG's I'd suggest https://github.com/josch/img2pdf

– user1686 – 2017-10-10T13:24:45.607

Answers

3

You are almost certainly seeing references to ImageMagick, which has a "convert" utility that potentially allows .png to .pdf conversion e.g.

convert image1.png image2.png image3.png output.pdf

You will need to install ImageMagick to use its "convert" utility (make sure it's properly added to your Windows PATH).

I am not personally familiar with PDFTK (so I could be wrong) but I get the impression it is primarily used in conjunction with ImageMagick because it does splitting and merging (not conversion).

Anaksunaman

Posted 2017-10-03T17:17:53.003

Reputation: 9 278

1Unfortunately ImageMagick's PDF support has been unusably buggy in some recent versions – consuming gigabytes of memory even for trivial conversions. – user1686 – 2017-10-03T20:33:39.417