LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2018, 07:11 AM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Rep: Reputation: Disabled
Convert .png to .pdf offline?


I use Linux Mint 17.3 Cinnamon.

I save a lot of webpage scans using the excellent Firefox add-on "Page Saver WE". It saves them as .png files which I find impossible to print to paper because they shrink to the page. I have tried lots of different image viewers and other software and made many adjustments to try to print them, without success. PDF files always print without many problems.

Is there any offline software available that will convert png files to pdf files?

Thanks.
 
Old 03-01-2018, 07:25 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
[imagemagick]:
Code:
convert sample.png sample.pdf
 
1 members found this post helpful.
Old 03-01-2018, 10:50 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
And
Code:
mogrify sample.png sample.pdf
does the same thing, but also deletes the original if you don't want to keep it. Both commands will work in batch mode:
Code:
mogrify *.png *.pdf
will deal with every png in the working directory.

Last edited by DavidMcCann; 03-01-2018 at 10:52 AM.
 
Old 03-01-2018, 01:43 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Open/Libre office should be able to convert too.
 
Old 03-01-2018, 04:50 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Another option is the free version of Master PDF Editor (https://code-industry.net/get-masterpdfeditor/).

As the name implies, it also provides more complex PDF-handling functionality.
 
Old 03-04-2018, 03:10 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i think there's a different problem here:
once the pages are saved as PNG, they are images, not text files.
a conversion to PDF will simply create a PDF with the PNG image embedded, not a text PDF.
this might or might not have similar printing problems.
 
Old 03-08-2018, 07:24 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I tend to a2ps and ps2pdf for that conversion. But I find it simpler to print with the gimp. Although I tend to adjust the image to be grayscale or higher contrast so it prints better. And because my printer is out of color ink and oddly hard to find off the shelf for a decade old printer.
 
Old 03-09-2018, 05:30 AM   #8
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
I agree with ondoho.
 
Old 03-09-2018, 12:59 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
You guys may be correct.

To convert to pdf is one thing.

To take an image and read the OCR part and convert it is another.
 
Old 04-21-2018, 11:26 AM   #10
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
I did try printing a pdf made from wrapping a png in a pdf wrapper.

Unfortunately that pdf would also only print to one page, as did the original png file. The print-out was unreadable as several pages were shrunk to one page, because it was fitted to the page by length rather than width.

I am still looking for something that can print out a long thin png file on to a page by width rather than length, and hence print it over more than one page.
 
Old 04-21-2018, 12:39 PM   #11
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
I had a set of PNG files That I wanted to transfer to my Book reader.
I did it by saving a copy of each as a BMP in a folder. I then used a program called BMP2PDF to create the PDF from the folder.
 
Old 04-21-2018, 10:48 PM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I tend to a2ps some pdf's to get "single" pages, and then print the single pages in gimp (which can open PS files / and PDFs). But it takes a few options to get single pages out as the defaults seem to favor two to a page (like a book / pamplet). I did OCR someone's PDF resume that they had done, it was a PDF file which was an un-editable image. The results were not pretty as lower case Ls were almost always 1's. And various other issues with (, ), [, ], I, l, |, and whatnot. It was a heavy proof reading process and I still missed some corrections.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to XML. But how do I convert xmlpdf back to another pdf? dedec0 Linux - Software 6 05-01-2017 06:22 PM
[SOLVED] pdf to .png converter Pedroski Linux - Software 2 05-16-2016 05:44 AM
[SOLVED] command line to convert png to pdf anon091 Linux - Newbie 12 10-20-2014 06:17 PM
Convert pdf to html or txt or remaster the pdf? jago25_98 Linux - Software 1 12-13-2005 01:11 AM
PDF to PNG converter Kostko Linux - Software 10 05-05-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration