LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can I convert a url (web page) into a pdf? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-convert-a-url-web-page-into-a-pdf-4175527951/)

Gregg Bell 12-10-2014 11:50 PM

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.

bigrigdriver 12-11-2014 12:10 AM

Open your html file in LibreOffice Writer. Then, under File in the menu, choose export to PDF

ndc85430 12-11-2014 12:36 AM

If you're using Firefox, can't you just print it to file? That's always worked for me.

Gregg Bell 12-11-2014 12:58 AM

Quote:

Originally Posted by bigrigdriver (Post 5282836)
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 (Post 5282839)
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."

astrogeek 12-11-2014 01:03 AM

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!

michaelk 12-11-2014 01:18 AM

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.

Gregg Bell 12-11-2014 02:02 AM

Quote:

Originally Posted by astrogeek (Post 5282845)
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?

Gregg Bell 12-11-2014 02:04 AM

Quote:

Originally Posted by michaelk (Post 5282850)
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.

astrogeek 12-11-2014 02:06 AM

Quote:

Originally Posted by Gregg Bell (Post 5282862)
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.

michaelk 12-11-2014 02:07 AM

True, just thought I would provide some additional info.

ndc85430 12-11-2014 12:18 PM

Quote:

Originally Posted by Gregg Bell (Post 5282843)
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.

Gregg Bell 12-11-2014 01:06 PM

Thanks guys. I'm in good shape now. Appreciate all your help.


All times are GMT -5. The time now is 09:25 PM.