{
  "schema_version": "1.0.0",
  "classes": [
    {
      "description": "Polymer element which renders PDF documents. It uses [PDF.js](https://mozilla.github.io/pdf.js/) library behind.\n\nExample:\n\nMinimum configuration:\n```html\n<pdf-element src=\"../example.pdf\" width=800 height=600></pdf-element>\n```\nOptionally following parameters could be triggered:\n - `elevation` material elevation;\n - `downloadable` to be able to download document;\n - `show-file-name` to show name of the file in the PDF toolbar.\n\n\n ```html\n <pdf-element src=\"../example.pdf\" elevation=\"5\" downloadable show-file-name width=800 height=600></pdf-element>\n ```\n\nAnother awesome feature is dynamically load PDF file. So you can change the `src` attribute of the element and document will be automatically reloaded (checkout the demo):\n\n```html\n<pdf-element src=\"[[pdfFile]]\" width=800 height=600></pdf-element>\n```",
      "summary": "",
      "path": "pdf-element.js",
      "properties": [],
      "methods": [
        {
          "name": "connectedCallback",
          "description": "",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 275,
              "column": 2
            },
            "end": {
              "line": 281,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "loadPDF",
          "description": "For the first time the pdf is loaded.\nThe inital page is set to 1 and it sets the total Pages",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 350,
              "column": 2
            },
            "end": {
              "line": 358,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "attributeChanged",
          "description": "When a new pdf is selected and loaded, this sets the properties for the switch",
          "privacy": "protected",
          "sourceRange": {
            "start": {
              "line": 363,
              "column": 2
            },
            "end": {
              "line": 375,
              "column": 3
            }
          },
          "metadata": {},
          "params": [
            {
              "name": "name"
            },
            {
              "name": "type"
            }
          ],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "_initializeReader",
          "description": "",
          "privacy": "protected",
          "sourceRange": {
            "start": {
              "line": 377,
              "column": 2
            },
            "end": {
              "line": 381,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "_setFitWidth",
          "description": "",
          "privacy": "protected",
          "sourceRange": {
            "start": {
              "line": 383,
              "column": 2
            },
            "end": {
              "line": 385,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "zoomInOut",
          "description": "Is called from zoomIn function to control the zoom in",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 390,
              "column": 2
            },
            "end": {
              "line": 399,
              "column": 3
            }
          },
          "metadata": {},
          "params": [
            {
              "name": "step"
            }
          ],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "zoomIn",
          "description": "Zoom in to the pdf as long as it is loaded",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 404,
              "column": 2
            },
            "end": {
              "line": 408,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "zoomOut",
          "description": "Zoom out of the pdf as long as it is loaded",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 413,
              "column": 2
            },
            "end": {
              "line": 417,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "zoomFit",
          "description": "When the zoom in/out button is selected. Reformats the pdf to the original display",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 422,
              "column": 2
            },
            "end": {
              "line": 432,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "pageNumSearch",
          "description": "Controls the page search functionality.\nWhen a number is input it checks to see if it is a valid page\nIf it is valid then it will change the view to that page\nas well as update the page number",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 440,
              "column": 2
            },
            "end": {
              "line": 452,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "sideBarClick",
          "description": "Is called when a page is selected from the sidebar\nChecks to make sure a valid page is selected, then changes the page\nThe currentInstance is passed in to make sure it is changing the proper pdf if multiple are loaded",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 459,
              "column": 2
            },
            "end": {
              "line": 474,
              "column": 3
            }
          },
          "metadata": {},
          "params": [
            {
              "name": "page"
            },
            {
              "name": "currentInstance"
            },
            {
              "name": "currentThis"
            }
          ],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "showPrev",
          "description": "Is called to show the previous page and update page number",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 479,
              "column": 2
            },
            "end": {
              "line": 485,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "showNext",
          "description": "Is called to show the next page and update page number",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 490,
              "column": 2
            },
            "end": {
              "line": 496,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "sideBar",
          "description": "The sidebar is a scrollable bar on the side of the page that allows you to scroll and select a page to change to\nChecks if the pdf loaded changed\nThen checks if the sidebar is open or not\nIf it is open, close. Else open sidebar. Set sidebarOpen to either T or F",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 504,
              "column": 2
            },
            "end": {
              "line": 531,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        },
        {
          "name": "download",
          "description": "Is called when the download pdf button is selected",
          "privacy": "public",
          "sourceRange": {
            "start": {
              "line": 536,
              "column": 2
            },
            "end": {
              "line": 540,
              "column": 3
            }
          },
          "metadata": {},
          "params": [],
          "return": {
            "type": "void"
          }
        }
      ],
      "staticMethods": [],
      "demos": [
        {
          "url": "demo/index.html",
          "description": ""
        },
        {
          "url": "demo/index.html",
          "description": ""
        }
      ],
      "metadata": {},
      "sourceRange": {
        "start": {
          "line": 38,
          "column": 0
        },
        "end": {
          "line": 541,
          "column": 1
        }
      },
      "privacy": "public",
      "name": "PdfElement"
    }
  ]
}
