{"library":"pdfobject","type":"library","category":null,"description":"PDFObject is a lightweight JavaScript utility designed for embedding PDF documents directly into HTML pages. Currently at version 2.3.1, it provides a robust solution for displaying PDFs inline across various browsers. The project maintains a steady release cadence, with significant updates (like 2.3) introducing major architectural changes approximately annually, alongside minor patches for fixes and enhancements. A key differentiator is its shift to a pure `<iframe>` approach in v2.3, abandoning the less consistent `<embed>` element, which enhances cross-browser compatibility and reliability. It also intelligently leverages `navigator.pdfViewerEnabled` to determine native PDF viewing capabilities and automatically falls back to download options on unsupported platforms, especially mobile devices. This makes it a pragmatic choice for integrating PDF content without external plugins.","language":"javascript","status":"active","version":"2.3.1","tags":["javascript","pdf","pdfobject"],"install":[{"cmd":"npm install pdfobject","imports":["import PDFObject from 'pdfobject'","PDFObject.embed(url, targetElement, options)","if (PDFObject.supportsPDFs) { /* ... */ }"]},{"cmd":"yarn add pdfobject","imports":[]},{"cmd":"pnpm add pdfobject","imports":[]}],"homepage":"https://pdfobject.com","github":"https://github.com/pipwerks/PDFObject","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/pdfobject","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/pdfobject/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}