LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2014, 12:50 AM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,466

Rep: Reputation: 85
can I convert a url (web page) into a pdf?


This site advertised to download a pdf but when I went to download it, it just opened in my browser. I Googled around and found a couple of url-->pdf converter sites but none of them worked. Is it possible and if so, can you point me to a site that works. (preferably free) Thanks.
 
Old 12-11-2014, 01:10 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Open your html file in LibreOffice Writer. Then, under File in the menu, choose export to PDF
 
Old 12-11-2014, 01:36 AM   #3
ndc85430
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
If you're using Firefox, can't you just print it to file? That's always worked for me.
 
Old 12-11-2014, 01:58 AM   #4
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,466

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by bigrigdriver View Post
Open your html file in LibreOffice Writer. Then, under File in the menu, choose export to PDF
driver, thanks but I don't have an html file. All I have is a url. Specifically this one:

http://authormarketingclub.com/membe...1368724670.pdf

I guess that begs the question: how to turn the url into an html.

Or like I like this book site. It says 'download complete book.' But when you click it just takes you to the entire book displayed in a browser.

eg. http://www.classicreader.com/fulltext/74/

I would just like to get a .pdf (or .epub) actual file to read when and where I want.

Thanks.

---------- Post added 12-11-14 at 12:59 AM ----------

Quote:
Originally Posted by ndc85430 View Post
If you're using Firefox, can't you just print it to file? That's always worked for me.
Thanks ndc. I can get to Firefox but I'm not sure what you mean by "print it to file."
 
Old 12-11-2014, 02:03 AM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,876
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
For your first example url, no conversion is necessary - it is already a pdf.

Simply right click on the url, select "Save link as..." and you have the pdf file.

For other web pages, you cannot directly convert them to pdf or ebook formats without first saving them locally, open in libreoffice as described above and export to pdf.

But I suspect you are really more looking for ways to save offered pdfs locally instead of opening them - right-click and save...

EDIT ***

If you want to save the second url for offline reading, try this:

Code:
cd
mkdir mybook
cd mybook
wget --mirror --no-parent http://www.classicreader.com/fulltext/74/
Then use your browser's File >> open dialog to find the index page down the ~/mybook/... path and read it as HTML at your leisure!

Last edited by astrogeek; 12-11-2014 at 02:16 AM.
 
1 members found this post helpful.
Old 12-11-2014, 02:18 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
In a nutshell there is a browser plugin that automatically opens the PDF when you select the link. There should be a navigation bar depending on version that could be visible or invisible. Move the mouse bar to the bottom middle of the page and it should appear.
You should see icons to save, print, search etc.
 
Old 12-11-2014, 03:02 AM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,466

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by astrogeek View Post
For your first example url, no conversion is necessary - it is already a pdf.

Simply right click on the url, select "Save link as..." and you have the pdf file.

For other web pages, you cannot directly convert them to pdf or ebook formats without first saving them locally, open in libreoffice as described above and export to pdf.

But I suspect you are really more looking for ways to save offered pdfs locally instead of opening them - right-click and save...

EDIT ***

If you want to save the second url for offline reading, try this:

Code:
cd
mkdir mybook
cd mybook
wget --mirror --no-parent http://www.classicreader.com/fulltext/74/
Then use your browser's File >> open dialog to find the index page down the ~/mybook/... path and read it as HTML at your leisure!
Simply right click on the url, select "Save link as..." and you have the pdf file.

Amazing. Thanks.

I found a way to get the books. "Ctrl A" on one of their pages in the browser. Right click. Copy. Paste it in Libre Office and then export it to PDF.

Which leads to a new question. Is it better to just click on the export pdf icon in the tool bar or go through left clicking on file and then 'export as pdf.' And which things to choose once there?
 
Old 12-11-2014, 03:04 AM   #8
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,466

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by michaelk View Post
In a nutshell there is a browser plugin that automatically opens the PDF when you select the link. There should be a navigation bar depending on version that could be visible or invisible. Move the mouse bar to the bottom middle of the page and it should appear.
You should see icons to save, print, search etc.
Thanks. Seems astro's way is a little easier though.
 
Old 12-11-2014, 03:06 AM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,876
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Quote:
Originally Posted by Gregg Bell View Post
Simply right click on the url, select "Save link as..." and you have the pdf file.

Amazing. Thanks.

I found a way to get the books. "Ctrl A" on one of their pages in the browser. Right click. Copy. Paste it in Libre Office and then export it to PDF.

Which leads to a new question. Is it better to just click on the export pdf icon in the tool bar or go through left clicking on file and then 'export as pdf.' And which things to choose once there?
Glad that worked!

The new question - I better defer to someone else as I am not a frequent LibreOffice user. That said, my guess would be that there is no difference between the icon and the file >> export options.
 
Old 12-11-2014, 03:07 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
True, just thought I would provide some additional info.
 
Old 12-11-2014, 01:18 PM   #11
ndc85430
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
Quote:
Originally Posted by Gregg Bell View Post
Thanks ndc. I can get to Firefox but I'm not sure what you mean by "print it to file."
Exactly what I said. From the menu bar, File > Print ... and then you should see a "Print to File" item in the list of printers.
 
Old 12-11-2014, 02:06 PM   #12
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,466

Original Poster
Rep: Reputation: 85
Thanks guys. I'm in good shape now. Appreciate all your help.
 
  


Reply

Tags
conversion, pdf, url


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to get xml file of any web page by giving its url as an input? twinklegupta Linux - Newbie 2 06-03-2013 05:55 AM
How to Convert Web-page into a PDF File in Ubuntu 10.10(Maverick) allu john sudhakar Linux - Newbie 3 02-22-2011 11:36 AM
How can I fetch all embedded URL from web page? archana999 Linux - Newbie 2 08-02-2008 03:35 AM
Web page to PDF miykle Linux - Newbie 2 04-04-2008 06:07 AM
Bash: Can we convert/print2pdf a html page to PDF format ? frenchn00b Linux - General 3 03-02-2008 09:02 AM


All times are GMT -5. The time now is 10:39 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration