Showing posts with label Safari. Show all posts
Showing posts with label Safari. Show all posts

Wednesday, March 18, 2015

A Workaround When Acrobat says a PDF is an "Unsupported File Type"

Today I needed to download a PDF from a website. I use Safari, and usually I can just save the file as a PDF using File > Save As.


But today, that didn't work. I got the following message when I tried to open the file in Acrobat:
"Acrobat could not open 'Ecomar-e.pdf' because it is either not a supported file type of because the file has been damaged (for example, it was sent as an attachment and wasn't correctly decoded). To create an Adobe PDF document, go to the source application. Then choose Save as Adobe PDF from the PDF drop down in the Print dialog.
So next I tried File > Export as PDF. But I got the same result.

In the past, I've used Preview when Acrobat can't open PDF files. But when I tried that today, I got the following message:

So I took a look at the file properties in Finder. For whatever reason, the file is 0KB.


So I decided to try using Acrobat to open the PDF. It's not well known, but there is a way to open a PDF directly from Acrobat. But you won't find it under File > Open. You'll find it under File > Create > PDF from Web Page...

If I recall correctly, years ago this feature may have been in the File > Open section of Acrobat, because notice the keyboard shortcut for this command: Shift + Cmd + O (which is just one key different than the Shift + O of File > Open). That brings up the following dialog box. 

I just pasted in the URL of the PDF I was trying top open and clicked "Create." And Voila! The PDF opened perfectly!

But there is much more to this tool than first meets the eye. Create PDF from Web Page does just when the name says: it creates PDFs from HTML files. If you click on the "Settings" button, you are presented with a few options.

Web Page Conversion Settings: General Tab
Web Page Conversion Settings: Page Layout
In the General Tab, there is a "Settings" button near the top of the dialog box. That gives additional settings for how the HTML will be displayed visually when the file is converted to PDF.
Web Page Conversion Settings > General > HTML Conversion Settings
Since my document was already a PDF, I didn't need to adjust any of the HTML conversion settings. But it is nice to know that they are there.


Thursday, March 10, 2011

An Easier Way to Open Web-based PDFs from Safari

In the past, I struggled with how to easily work with PDFs from Safari. I used to save the PDF to my desktop, then launch Acrobat, and then open the PDF in Acrobat. I wanted to find an easier way. Here are some of the ways I use web-based PDFs on an everyday basis.
  • Filling in PDF form fields and saving the completed document...with completed form fields intact
  • Saving PDFs that are loaded as part of a web archive
  • Properly viewing PDFs that I know have interactive features such as buttons and rollovers
  • Because I'm curious, I want to see the Document Properties of the PDF (who made it, if there are any keywords applied, if it has embedded fonts, and most importantly, if it was created by a respectable software).
To demonstrate how to more easily work with PDFs, we'll go through the task of downloading some PDF bank statements from online banking.


I've got twelve different PDFs that I need to download, so I need to find a way to make the process easy. And it should be easy, right? PDFs make everything better, don't they?

So, I've got my first PDF loaded, and I try to save it. But it is saving as something called a .webarchive. A what? I don't know what a .webarchive is, nor what types of files it could contain. So I want to stay away from this mystery file type. 


I know my bank statement is a PDF, so I just need to find the best way to save it as a PDF. In Safari, when you are viewing a PDF, if you hover near the bottom of the PDF, you'll get a little pop-up that allows you to save the PDF to your download folder.


Unless you've changed the default setting in Safari preferences, the files will automatically download into your Downloads folder.


So saving to the downloads folder seems like a pretty good solution. So one by one, I save the PDFs to my Downloads folder. But then I take a look at the file names and they are very cryptic and need to be changed.


So I went back and looked at the other buttons that show up at the bottom of a PDF viewed in Safari. The button on the far right is "Open PDF in Preview." I love Preview and use it every day for certain purposes, but it's not my first choice when I want to view the metadata of a PDF. (To see what I use Preview for, read my blog article about it. Also see the Design Geek article on the same subject.) 


So I know how to open a PDF in Preview with 1-click, but what I really want is to be able to open a PDF in Acrobat Pro with 1-click.

And a few weeks ago, I found it! While viewing a PDF in Safari, right click and then choose "Open with Acrobat Pro."


Ahhhh...that's better. Now I can open my PDFs is Acrobat, and easily save them wherever I want, with whatever file name I want. 

I want to mention that this article is based on using Acrobat Pro 9, on a Mac. I've heard Acrobat X is totally amazing, and I look forward to using it, but currently, there is no Mac trial available (and I don't like to buy software without first testing it out for a few weeks). Bummer.