Please visit the new Mac-Forums Facebook page:
https://www.facebook.com/macforums1




Results 1 to 13 of 13
  1. #1
    What is the best way to save webpage as a pdf?
    I'm trying to save a web page (which is more than a single page) as a pdf.

    What would be the best way to do that?

    I tried using the print command and the "Save as pdf", but that either cuts off some of the images or the images don't show at all.
    Tried various page set up options, different orientations and different page sizes.
    There is always something missing in the pdf - varies from setting to setting.

    Tried Adobe Acrobat 9 which I have, that downloaded bits and pieces of the website but didn't create a pdf

    Tried pdfEditor and pdfElement - they seem to be pretty much the same the way the UI is laid out, but with those I ended up with mostly blank pages as the pdf.

    I'm tempted to use "Grab" to get a few 'screen shots' and then combine them into a pdf, but there has to be a better way.
    Any suggestions?

    The web page has text, some images and also a few links.
    Need the text and images in the correct locations - don't care about the links

  2. #2
    What is the best way to save webpage as a pdf?
    ferrarr's Avatar
    Member Since
    May 21, 2012
    Location
    Pawtucket, RI, US
    Posts
    6,524
    Your Mac's Specs
    L2014 Mac mini macOS 14, iPhone 8+ iOS 12, 12.9" iPad Pro 1 iOS 12, Pencil 1
    Rep Power
    13
    In my version of Safari (12.1.2), there is an option under File to Export as PDF, also on macOS Mojave.
    -- Bob --
    Please backup. Everything has a life cycle, unexpected and warning free. Nothing will last as long as you want it to.

  3. #3
    What is the best way to save webpage as a pdf?
    Slydude's Avatar
    Member Since
    Nov 16, 2009
    Location
    North Louisiana, USA
    Posts
    14,366
    Your Mac's Specs
    2.8 GHz 2008 MacBook Pro 10.11, 8 GB mem, iPhone XS, 2015 iMac 16 GB 10.14.4 beta
    Rep Power
    24
    Quote Originally Posted by ferrarr View Post
    In my version of Safari (12.1.2), there is an option under File to Export as PDF, also on macOS Mojave.
    You're right Bob but if I am understanding the original post correctly this has been tried using the Save As PDF version that was in earlier versions of Safari.

    That method is good but not 100% accurate. Some elements of the page will be missing. On one of our shorter threads, for example, the page may appear correctly but longer threads may break in such a way that part of a post is missing as you near the bottom of the page. It's similar to what happens when you print a hard copy of the page.
    “Hard work beats talent when talent fails to work hard.”
    Kevin Durant

  4. #4
    I have tried "Save as pdf", but from the print menu, not from Safari.

    I tried the "Export to pdf" in Safari just now, the text seems to be OK but some of the images are missing completely.
    I remember in the past when I tried to make pdf's (not necessarily from a web page), I would sometimes get a page break in the middle of an image.

  5. #5
    Well, poking around, I found a somewhat possible solution.

    In Firefox, when one does a right click, the very bottom option is to take a screen shot.
    I selected that and that gives one a cursor where one can select any part of the screen.
    The nice thing is that one can drag the cursor down beyond the bottom of the screen which then causes the web page to scroll up and thus one can continue to select all of the web page (as far as one wants to scroll).
    Once the whole web page has been selected that way, there are two options at the bottom right - either "copy" or download
    I tried "copy" and then pasted that into TextEdit - that gave me the complete web page with text and images all in the right location, as an rtf file.

    Converting that rtf into pdf went sort of OK, but the text became quite small and somewhat faint - not yet where I want it, but at least I'm making progress.

    I'll try the download option next to see what that gives me.

  6. #6
    What is the best way to save webpage as a pdf?
    Slydude's Avatar
    Member Since
    Nov 16, 2009
    Location
    North Louisiana, USA
    Posts
    14,366
    Your Mac's Specs
    2.8 GHz 2008 MacBook Pro 10.11, 8 GB mem, iPhone XS, 2015 iMac 16 GB 10.14.4 beta
    Rep Power
    24
    I have not tried any of them but there is software out there that can save webpages for off-line viewing. I have not used any of them in quite some time so I couldn't tell you which ones might be worth looking into.
    “Hard work beats talent when talent fails to work hard.”
    Kevin Durant

  7. #7
    What is the best way to save webpage as a pdf?
    Lifeisabeach's Avatar
    Member Since
    Sep 30, 2007
    Location
    The Republic of Neptune
    Posts
    7,953
    Your Mac's Specs
    27" 2019 iMac
    Rep Power
    22
    I'm trying a couple options here (Safari 12.1.2 on Mojave), and here are my observations. Using "Save as PDF" via the print dialogue gives me a very different appearance of this very discussion here vs using "Export as PDF" from Safari's "File" menu. The Export option gives me the exact same appearance as the site looks in the browser, with the exception of page breaks. Unfortunately you can't get away without page breaks using the PDF format. PDF is intended to replicate on-screen the dimensions of real-world paper. Short of finding a 3rd party option that lets you use custom "paper" sizes (you'd have to create a crazy long one to be a single page), page breaks are unavoidable in this format. But try "Export" in Safari... that may work better.

    EDIT: Dangit... I missed your followup comment where you tried the export option.

    Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
    ------
    Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac » Adware Removal Guide | Uninstall MacKeeper
    ------
    Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.

  8. #8
    By far the best option I found so far to save a web page in a format other than html is using the Firefox "Take a Screenshot" right-click.
    What I had not noticed initially that there is then also an option at the top right that comes up where one can just select the complete webpage instead of scrolling down.
    I have used that option a few times since and it work well each time, but I pasted the copy into TextEdit which works perfectly, but then trying to create a pdf from that TextEdit becomes a problem. For some reason the text ends up much smaller and is not really legible unless magnified.

    Maybe I need to play around a bit more with the options - lik paste the copied website into Word, that would allow adjusting page breaks if required, and then converting the result to a pdf.
    Creating a pdf directly from a wbpage (in Firefax, Safari or any other browser) seems to be a crap shot - one ever knows what one ends up with. Not only is the format totaly different, I find I often have some of the text actually missing completely

  9. #9
    Hmmm...

    Just tried the following:

    On this webpage right here
    1. Opened with Firefox
    2. Right-click on page and select "Take a Screenshot" at very bottom of dropdown
    3. At top right then select either the whole page (which is what I did) or any part of the page
    4. Choose "Download"
    That will download the whole page as a .png file to whatever folder is set up in Firefox for web downloads
    5. Open the downloaded .png file in Preview
    6. Export page as a pdf
    It seems if you use "Export as PDF... you get only the tiny reduced version of the webpage the way all of it fits on a single screen, if you select "Export..." and then choose pdf from the options, the pdf will be a single pdf but the full size.
    Maybe viewing the png as "actual size" before creating the pdf will do the same - I haven't tried all the combinations.

    I then tried opening that pdf with both Preview and also Acrobat Reader - worked perfectly both ways.

  10. #10
    What is the best way to save webpage as a pdf?
    IWT's Avatar
    Member Since
    Jan 23, 2009
    Location
    Born in Scotland, Worked in Scotland then England, Now live in Wales
    Posts
    5,747
    Your Mac's Specs
    iMac 5K Retina 27", August 2019, 3.6GHz Intel Core i9, Memory 32GB, 2TB SSD, macOS Mojave 10.14.6
    Rep Power
    19
    @krs

    I've held off responding because I'm pretty sure you want either an in-house solution or a free app.

    If what you are wanting to achieve is a regular thing, in other words, your are likely to be doing this frequently, AND, even more importantly, if you want links in the web page included - then there is an app that will do this, but it is pricey.

    Because I do this a lot, I have for many years, used PDFpenPro. What you do is type the URL of the web page into the title space of the app. It will then fetch that web page automatically and convert it to a PDF. No cut pages, images intact etc. Done in a flash.

    You can (or not) ask it to include links from the main web page. You decide how many layers you want it to follow and also the maximum number of pages you are willing to accept. This is an optional extra.

    This is the link to their site: PDFpenPro - Mac PDF Editor - PDF Tools | Smile Software

    Watch the video or look under "Put the Web in your PDFs".

    I am bound to state that I have no connection with the company or its various products in any way whatsoever. I just pay for and use them.

    Ian
    Ian

  11. #11
    Ian,

    Thanks for the suggestion, but PDFpenPro has the same problem.

    I just tried the demo option of version 9 - the latest I can use with El Capitan, but I doubt later versions are any different.

    The one problem is that one has to select a page size and page orientation before creating the pdf.
    If the page size elected is too small, then the text is not rendered properly - if it's too large then the position of some of the text is not correct.
    I tried US letter size both portrait and landscape, then A4 landscape and finally "tabloid" (which sounded BIG
    With US letter and A4 the text was broken up - if a word was too long the pdf would just put the last four letters of the word on the next line
    With tabloid the text was OK, but some of the webpage was way over on the right with a big wide space between the left and right part of the page.

    But in all the pdfs created, even the tabloid size, the image on the webpage was totally missing.

    Seems to me in general, PDFpenPro otherwise would be a good, and reasonably priced, replacement for Adobe Acrobat.
    Can anyone comment who has both?

    I bought version 9 of Acrobat many moons ago - it works a bit the same as PDFpenPro when trying to create a pdf from a webpage, but it does not work either.

    I'm going to try my workaround on this webpage which btw was the one that I was working on when I started this thread - see if I can get that to work.

    PS: Tried to create the page as pdf via
    FF >Take screenshot >Export png as pdf
    only took a few seconds and came out perfectly
    Last edited by krs; 08-10-2019 at 05:47 PM.

  12. #12
    What is the best way to save webpage as a pdf?
    IWT's Avatar
    Member Since
    Jan 23, 2009
    Location
    Born in Scotland, Worked in Scotland then England, Now live in Wales
    Posts
    5,747
    Your Mac's Specs
    iMac 5K Retina 27", August 2019, 3.6GHz Intel Core i9, Memory 32GB, 2TB SSD, macOS Mojave 10.14.6
    Rep Power
    19
    So sorry that your version of PDFpenPro doesn't work. It was a reasonable thought though. Incidentally, the latest version is 11.1 which might/might not be relevant.

    For what it's worth - not much probably - this is how mine is set up:

    Screen Shot 2019-08-10 at 10.42.02 pm?.png

    Sorry I couldn't help you

    Ian
    Ian

  13. #13
    Ian,
    I very much appreciate you trying.
    And I may buy PDFpenPro yet to replace Acrobat 9 which will no longer work once I get to 64-bit only apps.
    Acrobat 9 is shaky right now and crashes more often than I like, but the new versions are too expensive for my taste.

    My setup was exactly the same as what you show in your post.
    One of the problems was that there is no option to make the "Page Size" flexible so that it automatically adapts to whatever page size the webpage is.
    That would at least solve the text rendering issue.
    Don't really know why the image would not show even when I tried 'tabloid' as Page Size.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can't Bulk-Save Size-Adjusted Images in Preview (Must Re-Save 1-by-1!)
    By trevor25220 in forum Images, Graphic Design, and Digital Photography
    Replies: 7
    Last Post: 12-10-2017, 01:40 PM
  2. Safari couldn’t Save a Webpage for Offline Viewing
    By Jingol in forum macOS - Operating System
    Replies: 4
    Last Post: 04-28-2014, 12:04 PM
  3. Why won't google chrome or safari save or ask to save password?
    By xammax in forum macOS - Apps and Games
    Replies: 4
    Last Post: 08-15-2010, 01:10 AM
  4. Replies: 7
    Last Post: 07-11-2007, 05:06 PM
  5. How to save an icon I am designing in Photoshop, What file extension do I save as?
    By GT5.0 in forum Images, Graphic Design, and Digital Photography
    Replies: 8
    Last Post: 07-01-2006, 07:24 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •