How to specify a page number in PDF lightbox

Product:

WonderPlugin Lightbox Version 6.8 or above

Question:

Is there a method for using the lightbox plugin to link to a specific page of the pdf?

Answer:

Yes, you could add #page=PAGENUMBER to the end of the PDF URL, for example, http://www.yourwordpresssite.com/thedoc.pdf#page=2.

A demo is as follows:

Open PDF page 2 in Lightbox

The PDF URL must also comply with the following requirements:

  • The PDF file MUST be hosted on the SAME DOMAIN as your WordPress website.
  • The PDF URL MUST be an absolute URL, that's, the URL must start with http:// or https://.
  • Make sure there are no special characters in the PDF URL, for example, apostrophes, double quotes, accented letters etc.