Second Bookmark Bar

PDFs and the bar: what it does and what to check

Two simplified browser windows. On the left a web page with the bar across the top, labelled A web page: bar shown. On the right a PDF in Chrome's viewer with its own toolbar and no bar, labelled A PDF in Chrome's viewer: bar stays out.

Second Bookmark Bar stays out of PDFs on purpose. This page says what that means, and what to check if a PDF will not open or one of its buttons is missing.

What the extension does on a PDF

When you open a PDF in Chrome’s built-in viewer, the extension does nothing. It adds no bar and no empty space at the top, and it changes nothing in the document. Chrome builds the PDF viewer in a special way, and touching it can leave the document blank. The extension checks for a PDF first and leaves the page alone.

So there is no bar on a PDF. That is expected. See pages where the bar can never appear.

If a PDF will not open

Because the bar does nothing on a PDF, it is rarely the cause. Check these:

  1. Try another tab. Open the same PDF address in a new tab. If it opens there, the first tab had a loading problem.
  2. Check Chrome’s PDF setting. In chrome://settings/content/pdfDocuments, see whether Chrome is set to download PDFs instead of showing them.
  3. Switch the extension off for a minute. Open chrome://extensions, switch Second Bookmark Bar off, and reload the PDF. If it behaves the same, the cause is somewhere else, for example another extension or the file itself. Switch Second Bookmark Bar back on afterwards.
  4. Update the extension. Open chrome://extensions, turn on Developer mode and click Update. The bar isn’t showing checklist has the steps with pictures.

If step 3 changes the result, please contact me. I want to know.

A PDF inside a web page

Some websites show a PDF inside their own page, in a frame that fills the window. That is an ordinary web page, so the bar is on it like on any other page, and the page is moved down by the bar’s height.

Before 5.5.0, a PDF frame that was pinned to the top and sized at 100 percent of the window could shrink to a thin strip of about 150 pixels. The browser’s PDF viewer hides its own toolbar at that size, so Print, Download, page navigation and zoom were gone. From 5.5.0 the frame is sized to the space below the bar, so it fills the window and the toolbar is back. If you still see a thin strip, update the extension first: open chrome://extensions, turn on Developer mode and click Update.

If a button is still out of reach, use one of these:

  1. Hide bar on this site. Click the extension’s icon and switch on Hide bar on this site, or right-click an empty part of the bar and choose it. It hides the bar on that site only. Do it on the page that shows the PDF.
  2. Hide it for that page only. In Settings, open Excluded sites, paste the address of the page that shows the PDF and limit the rule to that path. The bar stays on the rest of the site.
  3. Hide shortcut. In Settings, open Hide shortcut and choose a key combination. Press it to hide the bar on the current page, and press it again, or reload, to bring the bar back.
  4. Float. In the popup, choose Float on this site, or set Bar style to Smart. A floating bar takes no space, so the PDF keeps the whole window.

The bar covers a menu, a button or the top of a page has more on the first two.

Pop-up windows

The bar does not appear in pop-up windows, the small windows a website opens for a sign-in, a payment, a chat or a document. It adds no bar and no space there, so a PDF shown in such a window uses the whole window. It also does not appear in an installed web app window. Normal browser windows and tabs, including a tab you dragged out into its own window, keep the bar.

Local PDF files

A PDF opened from your own computer, with an address starting with file://, also gets no bar. The bar does not run on local files.

Still stuck?

Contact me and include your browser and its version, whether the PDF is on a website or on your computer, and what you see: a blank page, a missing button, or an error.

Try it in your own bar

Second Bookmark Bar is free to install, works entirely on your device by default, and takes about a minute to set up.

Add to Chrome — it's free

From the blog

Still stuck? Contact me — I read every message.