Incorporate Mozilla’s PDF.js viewer into your pages and posts via a Gutenberg block or a simple shortcode. PDF.js is a javascript library for displaying pdf pages within browsers.
Features:
- Gutenberg Block and Shortcode
- Translation Support (plugin only): Spanish and French included, ready for more languages
- Elegant Theme that adapts to dark and light mode (if browser supports dynamic CSS)
- Customizable buttons
- Page navigation drawer
- Arama özelliği
- Protected PDF password entry
- Loading bar & displays partially loaded PDF (great for huge PDFs!)
- Document outline
- Classic Editor: Easy to use editor media button that generates the shortcode for you
- Support for mobile devices
Shortcode Syntax:
`
[pdfjs-viewer attachment_id=123 viewer_width=600px viewer_height=700px fullscreen=true download=true print=true] `
Veya doğrudan URL kullanın:
`
[pdfjs-viewer url=http://www.website.com/test.pdf viewer_width=600px viewer_height=700px fullscreen=true download=true print=true] `
Kısa kod parametreleri:
attachment_id(recommended): ID of the media file in WordPress media libraryurl(alternative): Direct URL to PDF file. Useattachment_idwhen possible for better security.viewer_width(optional): Width of the viewer (default:100%)viewer_height(optional): Height of the viewer (default:800px)fullscreen(optional):true/false, displays fullscreen link above viewer (default:true)fullscreen_text(optional): Text for the fullscreen link (default:View Fullscreen)- Spaces not allowed. Use
%20in place of spaces.
- Spaces not allowed. Use
fullscreen_target(optional):true/false, open the fullscreen link in a new tab (default:false)download(optional):true/false, enables or disables download button (default:true)print(optional):true/false, enables or disables print button (default:true)openfile(optional):true/false, show open file button (default:false)zoom(optional): Initial zoom level –auto,page-actual,page-fit,page-width, or percentage like75,100,150(default:auto)
Eklentinin geliştirilmesine yardımcı olmak ister misiniz? Bir hata mı buldunuz? Bizi GitHub’da bulun. Derleme talimatları ve katkı kuralları için DEVELOPER.md içindeki geliştirici kılavuzuna bakın.
Admin Notice After Updates / Invalid Block
Eklentiyi güncellediğinizde, editörler Gutenberg’in PDF içeren eski gönderileri düzenlerken “Blok Kurtarma Denemesi” uyarısı gösterebileceğini açıklayan bir yönetici başlığı görebilir. Bu başlığa tıklandığında blok formatı güncellenir; ziyaretçilerin gördükleri içerik etkilenmez. Başlığı kapatabilirsiniz; gelecekteki bir sürümde tekrar etkinleştirilene kadar başlık yeniden görünmez.
Lisans
Bu WordPress eklentisi GPLv2 veya sonraki sürümler altında lisanslanmıştır.
PDF.js (bu eklentiye dahildir) Mozilla tarafından geliştirilmiştir ve Apache Lisansı 2.0 altında lisanslanmıştır. Ayrıntılar için PDF.js deposuna bakın.
