PDF Embedder - Version 4.3

Version Description

Fixed Scrollbar issues with Firefox and iOS devices. Improved compatibility

Download this release

Release Info

Developer levertechadmin
Plugin Icon 128x128 PDF Embedder
Version 4.3
Comparing to
See all releases

Code changes from version 4.2 to 4.3

Files changed (3) hide show
  1. css/pdfemb-embed-pdf.css +15 -55
  2. pdf_embedder.php +3 -3
  3. readme.txt +13 -46
css/pdfemb-embed-pdf.css CHANGED
@@ -9,49 +9,8 @@ div.pdfemb-viewer {
9
  text-align: left;
10
  direction: ltr;
11
  background-color: lightGrey;
12
- touch-action: none;
13
  }
14
 
15
-
16
- /* new code start */
17
-
18
- /* Fix for bouncing behaviour when scrolling on mobile devices */
19
- div.pdfemb-viewer{
20
- touch-action: none;
21
- }
22
- canvas.pdfemb-the-canvas {
23
- touch-action: none;
24
- }
25
- @media only screen and (min-width:375px) and (max-width: 1200px){
26
- .pdfemb-pagescontainer{
27
- overflow: scroll !important;
28
- }
29
- }
30
-
31
-
32
- .pdfemb-inner-div {
33
- background-color: white !important;
34
- }
35
-
36
- a@media only screen and (min-width:375px) and (max-width: 768px){
37
- div.pdfemb-toolbar div {
38
- margin: 6px 5px 6px 2px !important;
39
- }
40
- }
41
-
42
- /* Hide text shadow */
43
- .textLayer.pdfembTextLayer div {
44
- display: none !important;
45
- }
46
-
47
- /* Hide an embedded PDF on Print */
48
- @media print {
49
- div.pdfemb-viewer {
50
- display: none !important;
51
- }
52
- }
53
- /* new code end */
54
-
55
  div.pdfemb-inner-div {
56
  overflow: hidden;
57
  line-height: 1;
@@ -128,7 +87,7 @@ div.pdfemb-wantmobile-fsarea {
128
  cursor: -moz-grabbing;
129
  cursor: grabbing;
130
 
131
- z-index: 50000; / should be higher than anything else in PDF.js! /
132
  }
133
 
134
  div.pdfemb-loadingmsg {
@@ -174,7 +133,7 @@ div.pdfemb-toolbar-top {
174
  div.pdfemb-toolbar-bottom {
175
  bottom: 0px;
176
  left: 0px;
177
- / padding-top: 1px; /
178
  }
179
 
180
  div.pdfemb-toolbar button, div.pdfemb-toolbar button[disabled] {
@@ -371,7 +330,7 @@ input.pdfemb-page-num {
371
  height: 100%;
372
  }
373
 
374
- .pdfembAnnotationLayer .linkAnnotation > a / -ms-a / {
375
  background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
376
  border: none;
377
  opacity: 0;
@@ -453,22 +412,14 @@ input.pdfemb-page-num {
453
  }
454
 
455
  .pdfemb-pagescontainer {
456
- overflow: scroll !important;
457
  display: block;
458
  position: relative;
459
  background-color: lightGrey;
460
  }
461
 
462
- .pdfemb-pagescontainer::-webkit-scrollbar {
463
- display: none;
464
- }
465
-
466
- .pdfemb-pagescontainer { -ms-overflow-style: none; }
467
-
468
- .pdfemb-pagescontainer { overflow: -moz-scrollbars-none; }
469
 
470
-
471
- / Safari 6.1+ (9.0 is the latest version of Safari at this time) /
472
 
473
  @media screen and (min-color-index:0)
474
  and(-webkit-min-device-pixel-ratio:0) { @media
@@ -476,5 +427,14 @@ and(-webkit-min-device-pixel-ratio:0) { @media
476
  .pdfemb-pagescontainer {
477
  margin-left: 1px;
478
  }
 
 
 
 
 
479
  }
480
- }
 
 
 
 
9
  text-align: left;
10
  direction: ltr;
11
  background-color: lightGrey;
 
12
  }
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  div.pdfemb-inner-div {
15
  overflow: hidden;
16
  line-height: 1;
87
  cursor: -moz-grabbing;
88
  cursor: grabbing;
89
 
90
+ z-index: 50000; /* should be higher than anything else in PDF.js! */
91
  }
92
 
93
  div.pdfemb-loadingmsg {
133
  div.pdfemb-toolbar-bottom {
134
  bottom: 0px;
135
  left: 0px;
136
+ /* padding-top: 1px; */
137
  }
138
 
139
  div.pdfemb-toolbar button, div.pdfemb-toolbar button[disabled] {
330
  height: 100%;
331
  }
332
 
333
+ .pdfembAnnotationLayer .linkAnnotation > a /* -ms-a */ {
334
  background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
335
  border: none;
336
  opacity: 0;
412
  }
413
 
414
  .pdfemb-pagescontainer {
415
+ overflow: hidden ;
416
  display: block;
417
  position: relative;
418
  background-color: lightGrey;
419
  }
420
 
 
 
 
 
 
 
 
421
 
422
+ /* Safari 6.1+ (9.0 is the latest version of Safari at this time) */
 
423
 
424
  @media screen and (min-color-index:0)
425
  and(-webkit-min-device-pixel-ratio:0) { @media
427
  .pdfemb-pagescontainer {
428
  margin-left: 1px;
429
  }
430
+ }}
431
+
432
+ .scrollbar-none{
433
+ overflow: scroll;
434
+ scrollbar-width: none
435
  }
436
+
437
+ .scrollbar-none::-webkit-scrollbar {
438
+ display: none;
439
+ }
440
+ .scrollbar-none { -ms-overflow-style: none; }
pdf_embedder.php CHANGED
@@ -4,8 +4,8 @@
4
  * Plugin Name: PDF Embedder
5
  * Plugin URI: http://wp-pdf.com/
6
  * Description: Embed PDFs straight into your posts and pages, with flexible width and height. No third-party services required. Compatible with Gutenberg Editor WordPress
7
- * Version: 4.2
8
- * Author: Dan Lester
9
  * Author URI: http://wp-pdf.com/
10
  * License: GPL3
11
  * Text Domain: pdf-embedder
@@ -15,7 +15,7 @@ require_once( plugin_dir_path(__FILE__).'/core/core_pdf_embedder.php' );
15
 
16
  class pdfemb_basic_pdf_embedder extends core_pdf_embedder {
17
 
18
- protected $PLUGIN_VERSION = '4.2';
19
 
20
  // Singleton
21
  private static $instance = null;
4
  * Plugin Name: PDF Embedder
5
  * Plugin URI: http://wp-pdf.com/
6
  * Description: Embed PDFs straight into your posts and pages, with flexible width and height. No third-party services required. Compatible with Gutenberg Editor WordPress
7
+ * Version: 4.3
8
+ * Author: Lever Technology LLC
9
  * Author URI: http://wp-pdf.com/
10
  * License: GPL3
11
  * Text Domain: pdf-embedder
15
 
16
  class pdfemb_basic_pdf_embedder extends core_pdf_embedder {
17
 
18
+ protected $PLUGIN_VERSION = '4.3';
19
 
20
  // Singleton
21
  private static $instance = null;
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === PDF Embedder ===
2
- Contributors: levertechadmin, danlester
3
  Tags: doc, pdf, pdf viewer, office, google, document, embed, intranet
4
  Requires at least: 3.5
5
- Tested up to: 5.2.1
6
- Stable tag: 4.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -31,7 +31,7 @@ Once installed and Activated, click Add Media from any page or post, just like a
31
 
32
  When you insert into your post, it will appear in the editor as a 'shortcode' as follows:
33
 
34
- [pdf-embedder url="https://mysite.com/wp-content/uploads/2015/01/Plan-Summary.pdf"]
35
 
36
  You can change the default appearance - e.g. width, and toolbar position/appearance through **Settings -> PDF Embedder**.
37
 
@@ -203,6 +203,10 @@ the Plugins section of your Wordpress admin
203
 
204
  == Changelog ==
205
 
 
 
 
 
206
  = 4.2 =
207
 
208
  Fixed script problem on some Gutenberg editor installations. Improved compatibility
@@ -215,52 +219,15 @@ Added compatibility for Wordpress 5.2.1
215
 
216
  Fixed general bug & added compatibility
217
 
218
- = 3.2 =
219
-
220
- Added compatibility with Gutenberg Editor
221
-
222
- = 3.1.8 =
223
-
224
- Updated version of underlying pdf.js library, fixes some rendering bugs.
225
-
226
- Recalculates fresh viewer size more often in response to resize events. Previous versions attempted to increase performance by only recalculating viewer size when it had changed, but this missed some required resizing after Javascript-based tabs are clicked.
227
-
228
- Fixed some issues with zoom appearance.
229
-
230
- Mouse scroll wheel is now more consistent across all browsers (in terms of scroll speed).
231
-
232
- When scrollbars are always visible, no longer cuts off edge of PDF underneath.
233
-
234
- = 3.1.2 =
235
-
236
- Ready for compatibility with WordPress 4.8.
237
-
238
- New mouse wheel scrolling in Firefox wasn't working with some themes.
239
-
240
- Latest version of pdf.js library, and newest code bringing the free version into line with the premium versions.
241
-
242
- Mouse wheel scrolling in Firefox no longer also scrolls the window unless at very top or bottom of page.
243
-
244
- = 3.0.1 =
245
-
246
- Latest version of pdf.js library, and newest code bringing the free version into line with the premium versions.
247
-
248
- Improved responsiveness and redraw of pages.
249
-
250
- Plugin now respects the SCRIPT_DEBUG flag in wp-config.php and displays non-minified versions of the JS files if this is set to true.
251
- Helps debugging any issues.
252
-
253
- Added NL language.
254
-
255
- == 3.2.1 ==
256
 
257
  Added compatibility for WordPress 5.2.1
258
 
259
- == 3.2 ==
260
 
261
  Added compatibility with Gutenberg Editor
262
 
263
- == 3.1.8 ==
264
 
265
  Updated version of underlying pdf.js library, fixes some rendering bugs.
266
 
@@ -272,7 +239,7 @@ Mouse scroll wheel is now more consistent across all browsers (in terms of scrol
272
 
273
  When scrollbars are always visible, no longer cuts off edge of PDF underneath.
274
 
275
- == 3.1.2 ==
276
 
277
  Ready for compatibility with WordPress 4.8.
278
 
@@ -282,7 +249,7 @@ Latest version of pdf.js library, and newest code bringing the free version into
282
 
283
  Mouse wheel scrolling in Firefox no longer also scrolls the window unless at very top or bottom of page.
284
 
285
- == 3.0.1 ==
286
 
287
  Latest version of pdf.js library, and newest code bringing the free version into line with the premium versions.
288
 
1
  === PDF Embedder ===
2
+ Contributors: levertechadmin
3
  Tags: doc, pdf, pdf viewer, office, google, document, embed, intranet
4
  Requires at least: 3.5
5
+ Tested up to: 5.2.2
6
+ Stable tag: 4.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
31
 
32
  When you insert into your post, it will appear in the editor as a 'shortcode' as follows:
33
 
34
+ [pdf-embedder url='https://mysite.com/wp-content/uploads/2015/01/Plan-Summary.pdf']
35
 
36
  You can change the default appearance - e.g. width, and toolbar position/appearance through **Settings -> PDF Embedder**.
37
 
203
 
204
  == Changelog ==
205
 
206
+ = 4.3 =
207
+
208
+ Fixed Scrollbar issues with Firefox and iOS devices. Improved compatibility
209
+
210
  = 4.2 =
211
 
212
  Fixed script problem on some Gutenberg editor installations. Improved compatibility
219
 
220
  Fixed general bug & added compatibility
221
 
222
+ = 3.2.1 =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
 
224
  Added compatibility for WordPress 5.2.1
225
 
226
+ = 3.2 =
227
 
228
  Added compatibility with Gutenberg Editor
229
 
230
+ = 3.1.8 =
231
 
232
  Updated version of underlying pdf.js library, fixes some rendering bugs.
233
 
239
 
240
  When scrollbars are always visible, no longer cuts off edge of PDF underneath.
241
 
242
+ = 3.1.2 =
243
 
244
  Ready for compatibility with WordPress 4.8.
245
 
249
 
250
  Mouse wheel scrolling in Firefox no longer also scrolls the window unless at very top or bottom of page.
251
 
252
+ = 3.0.1 =
253
 
254
  Latest version of pdf.js library, and newest code bringing the free version into line with the premium versions.
255