PDF Embedder - Version 2.5.5

Version Description

Fixes for right-to-left languages.

Download this release

Release Info

Developer danlester
Plugin Icon 128x128 PDF Embedder
Version 2.5.5
Comparing to
See all releases

Code changes from version 2.5.4 to 2.5.5

css/pdfemb-embed-pdf.css CHANGED
@@ -7,6 +7,7 @@ div.pdfemb-viewer {
7
  border: 1px solid black;
8
  position: relative;
9
  text-align: left;
 
10
  }
11
 
12
  div.pdfemb-inner-div {
7
  border: 1px solid black;
8
  position: relative;
9
  text-align: left;
10
+ direction: ltr;
11
  }
12
 
13
  div.pdfemb-inner-div {
js/all-pdfemb-basic.min.js CHANGED
@@ -2,23 +2,23 @@ var pdfembGrabToPan=function(){function c(a){this.element=a.element;this.documen
2
  (this.overlay=document.createElement("div")).className="grab-to-pan-grabbing"}c.prototype={CSS_CLASS_GRAB:"grab-to-pan-grab",activate:function(){if(!this.active&&(this.active=!0,this.element.addEventListener("mousedown",this._onmousedown,!0),this.element.addEventListener("DOMMouseScroll",this._onmousewheel),this.element.addEventListener("mousewheel",this._onmousewheel),this.element.classList.add(this.CSS_CLASS_GRAB),this.onActiveChanged))this.onActiveChanged(!0)},deactivate:function(){if(this.active&&
3
  (this.active=!1,this.element.removeEventListener("mousedown",this._onmousedown,!0),this._endPan(),this.element.classList.remove(this.CSS_CLASS_GRAB),this.onActiveChanged))this.onActiveChanged(!1)},toggle:function(){this.active?this.deactivate():this.activate()},ignoreTarget:function(b){return b[a]("a[href], a[href] *, input, textarea, button, button *, select, option")},_onmousedown:function(a){if(0===a.button&&!this.ignoreTarget(a.target)){this.scrollLeftStart=this.element.scrollLeft;this.scrollTopStart=
4
  this.element.scrollTop;this.clientXStart=a.clientX;this.clientYStart=a.clientY;this.document.addEventListener("mousemove",this._onmousemove,!0);this.document.addEventListener("mouseup",this._endPan,!0);this.element.addEventListener("scroll",this._endPan,!0);a.preventDefault();a.stopPropagation();this.document.documentElement.classList.add(this.CSS_CLASS_GRABBING);var b=document.activeElement;b&&!b.contains(a.target)&&b.blur()}},_onmousemove:function(a){this.element.removeEventListener("scroll",this._endPan,
5
- !0);var b;b="buttons"in a&&f?!(a.buttons|1):e||d?0===a.which:void 0;b?this._endPan():(b=a.clientX-this.clientXStart,this.element.scrollTop=this.scrollTopStart-(a.clientY-this.clientYStart),this.element.scrollLeft=this.scrollLeftStart-b,this.overlay.parentNode||document.body.appendChild(this.overlay))},_onmousewheel:function(a){this.element.removeEventListener("scroll",this._endPan,!0);a="DOMMouseScroll"===a.type?-a.detail:a.wheelDelta/40;this.scrollLeftStart=this.element.scrollLeft;this.scrollTopStart=
6
  this.element.scrollTop;this.element.scrollTop=this.scrollTopStart-40*a;this.overlay.parentNode||document.body.appendChild(this.overlay)},_endPan:function(){this.element.removeEventListener("scroll",this._endPan,!0);this.document.removeEventListener("mousemove",this._onmousemove,!0);this.document.removeEventListener("mouseup",this._endPan,!0);this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)}};var a;["webkitM","mozM","msM","oM","m"].some(function(b){b+="atches";b in document.documentElement&&
7
- (a=b);b+="Selector";b in document.documentElement&&(a=b);return a});var f=!document.documentMode||9<document.documentMode,b=window.chrome,e=b&&(b.webstore||b.app),d=/Apple/.test(navigator.vendor)&&/Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);return c}();function pdfembGetPDF(c,a){a(c,!1)}function pdfembWantMobile(c,a,f,b){return!1}function pdfembMakeMobile(c,a,f){}function pdfembAddMoreToolbar(c,a,f){}function pdfembPremiumJumpToTop(c){};jQuery(document).ready(function(c){c.fn.pdfEmbedder=function(){this.each(function(a,f){var b=c(f);b.append(c("<div></div>",{"class":"pdfemb-loadingmsg"}).append(document.createTextNode(pdfemb_trans.objectL10n.loading)));"on"==b.data("disablerightclick")&&b.bind("contextmenu",function(a){a.preventDefault()});var e=function(a,d){b.empty().append(c("<div></div>",{"class":"pdfemb-inner-div"}).append(c("<canvas></canvas>",{"class":"pdfemb-the-canvas"})));b.data("pdfDoc",a);var f=b.data("toolbar");"bottom"!=
8
- f&&c.fn.pdfEmbedder.addToolbar(b,!0,"on"==b.data("toolbar-fixed"),d);"top"!=f&&c.fn.pdfEmbedder.addToolbar(b,!1,"on"==b.data("toolbar-fixed"),d);b.on("pdfembGotopage",function(a,g){g>b.data("pdfDoc").numPages||0>=g||b.data("pagenum")==g||(b.data("pagenum",g),c.fn.pdfEmbedder.queueRenderPage(b,g),pdfembPremiumJumpToTop(b))});b.on("pdfembGotoHash",function(a,g){if(g.dest){dest=g.dest;var d;"string"===typeof dest?(destString=dest,d=b.data("pdfDoc").getDestination(dest)):d=Promise.resolve(dest);d.then(function(a){a instanceof
9
- Array&&!(1>a.length)&&b.data("pdfDoc").getPageIndex(a[0]).then(function(a){a+=1;a>b.data("pdfDoc").numPages||0>=a||b.data("pagenum")==a||(b.data("pagenum",a),c.fn.pdfEmbedder.queueRenderPage(b,a),pdfembPremiumJumpToTop(b))})})}});b.on("pdfembGotoAction",function(a,d){var f=b.data("pagenum"),e=f;switch(d){case "GoBack":--e;break;case "GoForward":++e;break;case "NextPage":++e;break;case "PrevPage":--e;break;case "LastPage":e=b.data("pdfDoc").numPages;break;case "FirstPage":e=1}e==f||e>b.data("pdfDoc").numPages||
10
- 0>=e||(b.data("pagenum",e),c.fn.pdfEmbedder.queueRenderPage(b,e))});b.data("pageCount",a.numPages);(!b.data("pagenum")||1>b.data("pagenum")||b.data("pagenum")>a.numPages)&&b.data("pagenum",1);b.data("showIsSecure",d);b.data("pageNumPending",null);b.data("zoom",100);c.fn.pdfEmbedder.renderPage(b,b.data("pagenum"));b.find("span.pdfemb-page-count").text(a.numPages);f=new pdfembGrabToPan({element:b.find("div.pdfemb-inner-div")[0]});b.data("grabtopan",f);c(window).resize(function(){setTimeout(function(){c.fn.pdfEmbedder.queueRenderPage(b,
11
- b.data("pagenum"))},100)})},d=function(a,d){null===a?b.empty().append(c("<div></div>",{"class":"pdfemb-errormsg"}).append(msgnode=c("<span></span>").append(document.createTextNode("Failed to load and decrypt PDF")))):PDFJS.getDocument(a).then(function(a){e(a,d)},function(a){var d=document.createTextNode(a.message);"UnexpectedResponseException"==a.name&&0==a.status&&(d=c("<span></span>").append(document.createTextNode(pdfemb_trans.objectL10n.domainerror+" ")).append(c('<a href="https://wp-pdf.com/troubleshooting/#unexpected" target="_blank">'+
12
- pdfemb_trans.objectL10n.clickhereinfo+"</a>")));b.empty().append(c("<div></div>",{"class":"pdfemb-errormsg"}).append(d))})};if(b.data("pdfDoc"))e(b.data("pdfDoc"),b.data("showIsSecure"));else{var m=b.attr("data-pdf-url");pdfembGetPDF(m,d)}});return this};c.fn.pdfEmbedder.annotationsLayerFactory="undefined"!=typeof pdfembPremiumAnnotationsLayerFactory?new pdfembPremiumAnnotationsLayerFactory:{createAnnotationsLayerBuilder:function(a,c){return null}};c.fn.pdfEmbedder.checkForResize=function(a){var f=
13
- c(window).height(),b=c(window).width(),e=a.data("checked-window-height"),d=a.data("checked-window-width");if(!e||!d)a.data("checked-window-height",f),a.data("checked-window-width",b);else if(e!=f||d!=b)c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum")),a.data("checked-window-height",f),a.data("checked-window-width",b);"true"!=a.data("fullScreenClosed")&&setTimeout(function(){c.fn.pdfEmbedder.checkForResize(a)},1E3)};c.fn.pdfEmbedder.renderPage=function(a,f,b){a.data("pageRendering",!0);a.data("pdfDoc").getPage(f).then(function(e){var d=
14
- a.find(".pdfemb-the-canvas"),m=null,r=null,u=null,v=null;b&&(u=d.width(),v=d.height(),r=d[0].getContext("2d"),m=r.getImageData(0,0,u,v));var n,g=e.getViewport(1),k=g.width,l=g.height;if(0>=k||0>=l)a.empty().append(document.createTextNode(pdfemb_trans.objectL10n.widthheightinvalid));else{var q=a.parent().width(),g=k,p=l;if("max"==a.data("width"))g=q;else if("auto"==a.data("width"))g=k;else if(g=parseInt(a.data("width"),10),isNaN(g)||0>=g)g=q;0>=g&&(g=k);g>q&&0<q&&(g=q);n=g/k;var p=l*n,w=a.find("div.pdfemb-toolbar-fixed"),
15
- t=(q=pdfembWantMobile(c,a,g,h))?0:w.length,h=parseInt(a.data("height"),10);if(isNaN(h)||0>=h||h>p)h="auto"==a.data("height")?a.parent().height()-t*w.height():p;var g=Math.floor(g),p=Math.floor(p),x=100,k=g,l=p,y=0,z=0;q||(x=a.data("zoom"),k=g*x/100,l=p*x/100,k<g&&(y=(g-k)/2),l<h&&(z=(h-l)/2));var A=e.getViewport(n*x/100);g!=a.width()&&a.width(g);a.height()!=h&&a.height(h+t*w.height());n=a.find("div.pdfemb-inner-div");var x=n[0].scrollLeft,B=n[0].scrollTop;n.width(g);n.height(h);w=w.filter(".pdfemb-toolbar-top");
16
- 0<t&&n.css("top",w.height());d[0].width=k;d[0].height=l;d.css("width",k);d.css("height",l);d.css("left",y).css("top",z);(k>g||l>p||l>h)&&!q?(h=a.data("fromZoom"),t=a.data("toZoom"),0<h&&0<t&&(y=B+p/2,n.scrollLeft((x+g/2)*t/h-g/2),n.scrollTop(y*t/h-p/2)),a.data("grabtopan").activate()):("on"==a.data("fullScreen")?a.data("grabtopan").activate():a.data("grabtopan").deactivate(),a.find("div.pdfemb-inner-div").scrollLeft(0).scrollTop(0));a.data("fromZoom",0).data("toZoom",0);pdfembMakeMobile(c,q,a);b?
17
- (a.data("pagenum",f),a.data("pageRendering",!1),d=c("<canvas>").attr("width",m.width).attr("height",m.height)[0],d.getContext("2d").putImageData(m,0,0),r.scale(k/u,l/v),r.drawImage(d,0,0)):(m={canvasContext:d[0].getContext("2d"),viewport:A},e.render(m).promise.then(function(){a.data("pagenum",f);a.data("pageRendering",!1);a.find("div.pdfemb-toolbar .pdfemb-page-num").each(function(a,b){var d=c(b);d.is("span")?d.text(f):d.val(f)});f<a.data("pageCount")?a.find(".pdfemb-next").removeAttr("disabled").removeClass("pdfemb-btndisabled"):
18
- a.find(".pdfemb-next").attr("disabled","disabled").addClass("pdfemb-btndisabled");1<f?a.find(".pdfemb-prev").removeAttr("disabled").removeClass("pdfemb-btndisabled"):a.find(".pdfemb-prev").attr("disabled","disabled").addClass("pdfemb-btndisabled");var b=c.fn.pdfEmbedder.annotationsLayerFactory.createAnnotationsLayerBuilder(a.find("div.pdfemb-inner-div")[0],e);null!=b&&(a.find("div.pdfembAnnotationLayer").remove(),b.setupAnnotations(A,a.data("newwindow")));null!==a.data("pageNumPending")&&(c.fn.pdfEmbedder.renderPage(a,
19
- a.data("pageNumPending")),a.data("pageNumPending",null))}))}})};c.fn.pdfEmbedder.queueRenderPage=function(a,f,b){a.data("pageRendering")?a.data("pageNumPending",f):c.fn.pdfEmbedder.renderPage(a,f,b)};c.fn.pdfEmbedder.goFullScreen=function(a){a=c('<div class="pdfemb-fs-window"></div>');c(document.body).append(a)};c.fn.pdfEmbedder.changeZoom=function(a,f){var b=a.data("zoom"),e=b+f;a.data("zoom",e);a.find("span.pdfemb-zoom").text(e+"%");c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum"));a.data("fromZoom",
20
- b).data("toZoom",e)};c.fn.pdfEmbedder.magnifyZoom=function(a,f){var b=a.data("zoom"),e=Math.floor(b*f);20>e&&(e=20);500<e&&(e=500);a.data("zoom",e);a.find("span.pdfemb-zoom").text(e+"%");c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum"),!0);a.data("fromZoom",b).data("toZoom",e)};c.fn.pdfEmbedder.addToolbar=function(a,f,b,e){var d=c("<div></div>",{"class":"pdfemb-toolbar pdfemb-toolbar"+(b?"-fixed":"-hover")+" "+(f?" pdfemb-toolbar-top":"pdfemb-toolbar-bottom")}),m=c('<button class="pdfemb-prev" title="'+
21
- pdfemb_trans.objectL10n.prev+'"></button>');d.append(m);var r=c('<button class="pdfemb-next" title="'+pdfemb_trans.objectL10n.next+'"></button>');d.append(r);d.append(c('<div class="pdfemb-page-area">'+pdfemb_trans.objectL10n.page+' <span class="pdfemb-page-num">0</span> / <span class="pdfemb-page-count"></span></div>'));var u=c('<button class="pdfemb-zoomout" title="'+pdfemb_trans.objectL10n.zoomout+'"></button>');d.append(u);var v=c('<button class="pdfemb-zoomin" title="'+pdfemb_trans.objectL10n.zoomin+
22
- '"></button>');d.append(v);d.append(c("<div>"+pdfemb_trans.objectL10n.zoom+' <span class="pdfemb-zoom">100%</span></div>'));e&&d.append(c("<div>"+pdfemb_trans.objectL10n.secure+"</div>"));f?a.prepend(d):a.append(d);m.on("click",function(b){1>=a.data("pagenum")||(a.data("pagenum",a.data("pagenum")-1),c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum")),pdfembPremiumJumpToTop(a))});r.on("click",function(b){a.data("pagenum")>=a.data("pdfDoc").numPages||(a.data("pagenum",a.data("pagenum")+1),c.fn.pdfEmbedder.queueRenderPage(a,
23
- a.data("pagenum")),pdfembPremiumJumpToTop(a))});v.on("click",function(b){500<=a.data("zoom")||c.fn.pdfEmbedder.changeZoom(a,10)});u.on("click",function(b){20>=a.data("zoom")||c.fn.pdfEmbedder.changeZoom(a,-10)});pdfembAddMoreToolbar(c,d,a);b||(a.on("mouseenter",function(b){b=a.find("div.pdfemb-toolbar-hover");!0!==b.data("no-hover")&&b.show()}),a.on("mouseleave",function(b){a.find("div.pdfemb-toolbar-hover").hide()}));pdfemb_trans.poweredby&&d.append(c("<div></div>",{"class":"pdfemb-poweredby"}).append(c('<a href="https://wp-pdf.com/?utm_source=Poweredby&utm_medium=freemium&utm_campaign=Freemium" target="_blank">wp-pdf.com</a>')))};
24
- PDFJS.workerSrc=pdfemb_trans.worker_src;PDFJS.cMapUrl=pdfemb_trans.cmap_url;PDFJS.cMapPacked=!0;c(".pdfemb-viewer").pdfEmbedder()});
2
  (this.overlay=document.createElement("div")).className="grab-to-pan-grabbing"}c.prototype={CSS_CLASS_GRAB:"grab-to-pan-grab",activate:function(){if(!this.active&&(this.active=!0,this.element.addEventListener("mousedown",this._onmousedown,!0),this.element.addEventListener("DOMMouseScroll",this._onmousewheel),this.element.addEventListener("mousewheel",this._onmousewheel),this.element.classList.add(this.CSS_CLASS_GRAB),this.onActiveChanged))this.onActiveChanged(!0)},deactivate:function(){if(this.active&&
3
  (this.active=!1,this.element.removeEventListener("mousedown",this._onmousedown,!0),this._endPan(),this.element.classList.remove(this.CSS_CLASS_GRAB),this.onActiveChanged))this.onActiveChanged(!1)},toggle:function(){this.active?this.deactivate():this.activate()},ignoreTarget:function(b){return b[a]("a[href], a[href] *, input, textarea, button, button *, select, option")},_onmousedown:function(a){if(0===a.button&&!this.ignoreTarget(a.target)){this.scrollLeftStart=this.element.scrollLeft;this.scrollTopStart=
4
  this.element.scrollTop;this.clientXStart=a.clientX;this.clientYStart=a.clientY;this.document.addEventListener("mousemove",this._onmousemove,!0);this.document.addEventListener("mouseup",this._endPan,!0);this.element.addEventListener("scroll",this._endPan,!0);a.preventDefault();a.stopPropagation();this.document.documentElement.classList.add(this.CSS_CLASS_GRABBING);var b=document.activeElement;b&&!b.contains(a.target)&&b.blur()}},_onmousemove:function(a){this.element.removeEventListener("scroll",this._endPan,
5
+ !0);var b;b="buttons"in a&&d?!(a.buttons|1):f||e?0===a.which:void 0;b?this._endPan():(b=a.clientX-this.clientXStart,this.element.scrollTop=this.scrollTopStart-(a.clientY-this.clientYStart),this.element.scrollLeft=this.scrollLeftStart-b,this.overlay.parentNode||document.body.appendChild(this.overlay))},_onmousewheel:function(a){this.element.removeEventListener("scroll",this._endPan,!0);a="DOMMouseScroll"===a.type?-a.detail:a.wheelDelta/40;this.scrollLeftStart=this.element.scrollLeft;this.scrollTopStart=
6
  this.element.scrollTop;this.element.scrollTop=this.scrollTopStart-40*a;this.overlay.parentNode||document.body.appendChild(this.overlay)},_endPan:function(){this.element.removeEventListener("scroll",this._endPan,!0);this.document.removeEventListener("mousemove",this._onmousemove,!0);this.document.removeEventListener("mouseup",this._endPan,!0);this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)}};var a;["webkitM","mozM","msM","oM","m"].some(function(b){b+="atches";b in document.documentElement&&
7
+ (a=b);b+="Selector";b in document.documentElement&&(a=b);return a});var d=!document.documentMode||9<document.documentMode,b=window.chrome,f=b&&(b.webstore||b.app),e=/Apple/.test(navigator.vendor)&&/Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);return c}();function pdfembGetPDF(c,a){a(c,!1)}function pdfembWantMobile(c,a,d,b){return!1}function pdfembMakeMobile(c,a,d){}function pdfembAddMoreToolbar(c,a,d){}function pdfembPremiumJumpToTop(c){};jQuery(document).ready(function(c){c.fn.pdfEmbedder=function(){this.each(function(a,d){var b=c(d);b.append(c("<div></div>",{"class":"pdfemb-loadingmsg"}).append(document.createTextNode(pdfemb_trans.objectL10n.loading)));"on"==b.data("disablerightclick")&&b.bind("contextmenu",function(a){a.preventDefault()});var f=function(a,e){b.empty().append(c("<div></div>",{"class":"pdfemb-inner-div"}).append(c("<canvas></canvas>",{"class":"pdfemb-the-canvas"})));b.data("pdfDoc",a);var d=b.data("toolbar");"bottom"!=
8
+ d&&c.fn.pdfEmbedder.addToolbar(b,!0,"on"==b.data("toolbar-fixed"),e);"top"!=d&&c.fn.pdfEmbedder.addToolbar(b,!1,"on"==b.data("toolbar-fixed"),e);b.on("pdfembGotopage",function(a,d){d>b.data("pdfDoc").numPages||0>=d||b.data("pagenum")==d||(b.data("pagenum",d),c.fn.pdfEmbedder.queueRenderPage(b,d),pdfembPremiumJumpToTop(b))});b.on("pdfembGotoHash",function(a,d){if(d.dest){dest=d.dest;var e;"string"===typeof dest?(destString=dest,e=b.data("pdfDoc").getDestination(dest)):e=Promise.resolve(dest);e.then(function(a){a instanceof
9
+ Array&&!(1>a.length)&&b.data("pdfDoc").getPageIndex(a[0]).then(function(a){a+=1;a>b.data("pdfDoc").numPages||0>=a||b.data("pagenum")==a||(b.data("pagenum",a),c.fn.pdfEmbedder.queueRenderPage(b,a),pdfembPremiumJumpToTop(b))})})}});b.on("pdfembGotoAction",function(a,d){var e=b.data("pagenum"),f=e;switch(d){case "GoBack":--f;break;case "GoForward":++f;break;case "NextPage":++f;break;case "PrevPage":--f;break;case "LastPage":f=b.data("pdfDoc").numPages;break;case "FirstPage":f=1}f==e||f>b.data("pdfDoc").numPages||
10
+ 0>=f||(b.data("pagenum",f),c.fn.pdfEmbedder.queueRenderPage(b,f))});b.data("pageCount",a.numPages);(!b.data("pagenum")||1>b.data("pagenum")||b.data("pagenum")>a.numPages)&&b.data("pagenum",1);b.data("showIsSecure",e);b.data("pageNumPending",null);d=parseInt(b.data("startzoom"));if(isNaN(d)||20>d||500<d)d=100;b.data("zoom",d);100!=d&&b.find("span.pdfemb-zoom").text(d+"%");c.fn.pdfEmbedder.renderPage(b,b.data("pagenum"));b.find("span.pdfemb-page-count").text(a.numPages);d=new pdfembGrabToPan({element:b.find("div.pdfemb-inner-div")[0]});
11
+ b.data("grabtopan",d);c(window).resize(function(){setTimeout(function(){c.fn.pdfEmbedder.queueRenderPage(b,b.data("pagenum"))},100)})},e=function(a,d){null===a?b.empty().append(c("<div></div>",{"class":"pdfemb-errormsg"}).append(msgnode=c("<span></span>").append(document.createTextNode("Failed to load and decrypt PDF")))):PDFJS.getDocument(a).then(function(a){f(a,d)},function(a){var d=document.createTextNode(a.message);"UnexpectedResponseException"==a.name&&0==a.status&&(d=c("<span></span>").append(document.createTextNode(pdfemb_trans.objectL10n.domainerror+
12
+ " ")).append(c('<a href="https://wp-pdf.com/troubleshooting/#unexpected" target="_blank">'+pdfemb_trans.objectL10n.clickhereinfo+"</a>")));b.empty().append(c("<div></div>",{"class":"pdfemb-errormsg"}).append(d))})};if(b.data("pdfDoc"))f(b.data("pdfDoc"),b.data("showIsSecure"));else{var m=b.attr("data-pdf-url");pdfembGetPDF(m,e)}});return this};c.fn.pdfEmbedder.annotationsLayerFactory="undefined"!=typeof pdfembPremiumAnnotationsLayerFactory?new pdfembPremiumAnnotationsLayerFactory:{createAnnotationsLayerBuilder:function(a,
13
+ c){return null}};c.fn.pdfEmbedder.checkForResize=function(a){var d=c(window).height(),b=c(window).width(),f=a.data("checked-window-height"),e=a.data("checked-window-width");if(!f||!e)a.data("checked-window-height",d),a.data("checked-window-width",b);else if(f!=d||e!=b)c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum")),a.data("checked-window-height",d),a.data("checked-window-width",b);"true"!=a.data("fullScreenClosed")&&setTimeout(function(){c.fn.pdfEmbedder.checkForResize(a)},1E3)};c.fn.pdfEmbedder.renderPage=
14
+ function(a,d,b){a.data("pageRendering",!0);a.data("pdfDoc").getPage(d).then(function(f){var e=a.find(".pdfemb-the-canvas"),m=null,r=null,u=null,v=null;b&&(u=e.width(),v=e.height(),r=e[0].getContext("2d"),m=r.getImageData(0,0,u,v));var n,g=f.getViewport(1),k=g.width,l=g.height;if(0>=k||0>=l)a.empty().append(document.createTextNode(pdfemb_trans.objectL10n.widthheightinvalid));else{var q=a.parent().width(),g=k,p=l;if("max"==a.data("width"))g=q;else if("auto"==a.data("width"))g=k;else if(g=parseInt(a.data("width"),
15
+ 10),isNaN(g)||0>=g)g=q;0>=g&&(g=k);g>q&&0<q&&(g=q);n=g/k;var p=l*n,w=a.find("div.pdfemb-toolbar-fixed"),t=(q=pdfembWantMobile(c,a,g,h))?0:w.length,h=parseInt(a.data("height"),10);if(isNaN(h)||0>=h||h>p)h="auto"==a.data("height")?a.parent().height()-t*w.height():p;var g=Math.floor(g),p=Math.floor(p),x=100,k=g,l=p,y=0,z=0;q||(x=a.data("zoom"),k=g*x/100,l=p*x/100,k<g&&(y=(g-k)/2),l<h&&(z=(h-l)/2));var A=f.getViewport(n*x/100);g!=a.width()&&a.width(g);a.height()!=h&&a.height(h+t*w.height());n=a.find("div.pdfemb-inner-div");
16
+ var x=n[0].scrollLeft,B=n[0].scrollTop;n.width(g);n.height(h);w=w.filter(".pdfemb-toolbar-top");0<t&&n.css("top",w.height());e[0].width=k;e[0].height=l;e.css("width",k);e.css("height",l);e.css("left",y).css("top",z);(k>g||l>p||l>h)&&!q?(h=a.data("fromZoom"),t=a.data("toZoom"),0<h&&0<t&&(y=B+p/2,n.scrollLeft((x+g/2)*t/h-g/2),n.scrollTop(y*t/h-p/2)),a.data("grabtopan").activate()):("on"==a.data("fullScreen")?a.data("grabtopan").activate():a.data("grabtopan").deactivate(),a.find("div.pdfemb-inner-div").scrollLeft(0).scrollTop(0));
17
+ a.data("fromZoom",0).data("toZoom",0);pdfembMakeMobile(c,q,a);b?(a.data("pagenum",d),a.data("pageRendering",!1),e=c("<canvas>").attr("width",m.width).attr("height",m.height)[0],e.getContext("2d").putImageData(m,0,0),r.scale(k/u,l/v),r.drawImage(e,0,0)):(m={canvasContext:e[0].getContext("2d"),viewport:A},f.render(m).promise.then(function(){a.data("pagenum",d);a.data("pageRendering",!1);a.find("div.pdfemb-toolbar .pdfemb-page-num").each(function(a,b){var e=c(b);e.is("span")?e.text(d):e.val(d)});d<a.data("pageCount")?
18
+ a.find(".pdfemb-next").removeAttr("disabled").removeClass("pdfemb-btndisabled"):a.find(".pdfemb-next").attr("disabled","disabled").addClass("pdfemb-btndisabled");1<d?a.find(".pdfemb-prev").removeAttr("disabled").removeClass("pdfemb-btndisabled"):a.find(".pdfemb-prev").attr("disabled","disabled").addClass("pdfemb-btndisabled");var b=c.fn.pdfEmbedder.annotationsLayerFactory.createAnnotationsLayerBuilder(a.find("div.pdfemb-inner-div")[0],f);null!=b&&(a.find("div.pdfembAnnotationLayer").remove(),b.setupAnnotations(A,
19
+ a.data("newwindow")));null!==a.data("pageNumPending")&&(c.fn.pdfEmbedder.renderPage(a,a.data("pageNumPending")),a.data("pageNumPending",null))}))}})};c.fn.pdfEmbedder.queueRenderPage=function(a,d,b){a.data("pageRendering")?a.data("pageNumPending",d):c.fn.pdfEmbedder.renderPage(a,d,b)};c.fn.pdfEmbedder.goFullScreen=function(a){a=c('<div class="pdfemb-fs-window"></div>');c(document.body).append(a)};c.fn.pdfEmbedder.changeZoom=function(a,d){var b=a.data("zoom"),f=b+d;a.data("zoom",f);a.find("span.pdfemb-zoom").text(f+
20
+ "%");c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum"));a.data("fromZoom",b).data("toZoom",f)};c.fn.pdfEmbedder.magnifyZoom=function(a,d){var b=a.data("zoom"),f=Math.floor(b*d);20>f&&(f=20);500<f&&(f=500);a.data("zoom",f);a.find("span.pdfemb-zoom").text(f+"%");c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum"),!0);a.data("fromZoom",b).data("toZoom",f)};c.fn.pdfEmbedder.addToolbar=function(a,d,b,f){var e=c("<div></div>",{"class":"pdfemb-toolbar pdfemb-toolbar"+(b?"-fixed":"-hover")+" "+(d?" pdfemb-toolbar-top":
21
+ "pdfemb-toolbar-bottom")}),m=c('<button class="pdfemb-prev" title="'+pdfemb_trans.objectL10n.prev+'"></button>');e.append(m);var r=c('<button class="pdfemb-next" title="'+pdfemb_trans.objectL10n.next+'"></button>');e.append(r);e.append(c('<div class="pdfemb-page-area">'+pdfemb_trans.objectL10n.page+' <span class="pdfemb-page-num">0</span> / <span class="pdfemb-page-count"></span></div>'));var u=c('<button class="pdfemb-zoomout" title="'+pdfemb_trans.objectL10n.zoomout+'"></button>');e.append(u);var v=
22
+ c('<button class="pdfemb-zoomin" title="'+pdfemb_trans.objectL10n.zoomin+'"></button>');e.append(v);e.append(c("<div>"+pdfemb_trans.objectL10n.zoom+' <span class="pdfemb-zoom">100%</span></div>'));f&&e.append(c("<div>"+pdfemb_trans.objectL10n.secure+"</div>"));d?a.prepend(e):a.append(e);m.on("click",function(b){1>=a.data("pagenum")||(a.data("pagenum",a.data("pagenum")-1),c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum")),pdfembPremiumJumpToTop(a))});r.on("click",function(b){a.data("pagenum")>=
23
+ a.data("pdfDoc").numPages||(a.data("pagenum",a.data("pagenum")+1),c.fn.pdfEmbedder.queueRenderPage(a,a.data("pagenum")),pdfembPremiumJumpToTop(a))});v.on("click",function(b){500<=a.data("zoom")||c.fn.pdfEmbedder.changeZoom(a,10)});u.on("click",function(b){20>=a.data("zoom")||c.fn.pdfEmbedder.changeZoom(a,-10)});pdfembAddMoreToolbar(c,e,a);b||(a.on("mouseenter",function(b){b=a.find("div.pdfemb-toolbar-hover");!0!==b.data("no-hover")&&b.show()}),a.on("mouseleave",function(b){a.find("div.pdfemb-toolbar-hover").hide()}));
24
+ pdfemb_trans.poweredby&&e.append(c("<div></div>",{"class":"pdfemb-poweredby"}).append(c('<a href="https://wp-pdf.com/?utm_source=Poweredby&utm_medium=freemium&utm_campaign=Freemium" target="_blank">wp-pdf.com</a>')))};PDFJS.workerSrc=pdfemb_trans.worker_src;PDFJS.cMapUrl=pdfemb_trans.cmap_url;PDFJS.cMapPacked=!0;c(".pdfemb-viewer").pdfEmbedder()});
js/pdfemb-embed-pdf.js CHANGED
@@ -136,7 +136,14 @@ jQuery(document).ready(function ($) {
136
 
137
  divContainer.data('showIsSecure', showIsSecure);
138
  divContainer.data('pageNumPending', null);
139
- divContainer.data('zoom', 100);
 
 
 
 
 
 
 
140
  $.fn.pdfEmbedder.renderPage(divContainer, divContainer.data('pagenum'));
141
 
142
  divContainer.find('span.pdfemb-page-count').text( pdfDoc_.numPages );
136
 
137
  divContainer.data('showIsSecure', showIsSecure);
138
  divContainer.data('pageNumPending', null);
139
+
140
+ var startZoom = parseInt(divContainer.data('startzoom'));
141
+ if (isNaN(startZoom) || startZoom < 20 || startZoom > 500) { startZoom = 100;}
142
+ divContainer.data('zoom', startZoom);
143
+ if (startZoom != 100) {
144
+ divContainer.find('span.pdfemb-zoom').text(startZoom + '%');
145
+ }
146
+
147
  $.fn.pdfEmbedder.renderPage(divContainer, divContainer.data('pagenum'));
148
 
149
  divContainer.find('span.pdfemb-page-count').text( pdfDoc_.numPages );
lang/pdf-embedder-de_DE.mo ADDED
Binary file
lang/pdf-embedder-de_DE.po ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of Development (trunk) in German
2
+ # This file is distributed under the same license as the Development (trunk) package.
3
+ msgid ""
4
+ msgstr ""
5
+ "PO-Revision-Date: 2016-04-19 15:14-0000\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
10
+ "X-Generator: Poedit 1.6.4\n"
11
+ "Project-Id-Version: Development (trunk)\n"
12
+ "POT-Creation-Date: \n"
13
+ "Last-Translator: \n"
14
+ "Language-Team: \n"
15
+ "Language: de\n"
16
+
17
+ #: pdf_embedder.php:76
18
+ msgid "Options only available in Premium versions"
19
+ msgstr ""
20
+
21
+ #: pdf_embedder.php:80
22
+ msgid "Provide PDF download button on toolbar"
23
+ msgstr ""
24
+
25
+ #: pdf_embedder.php:87
26
+ msgid "Count number of views and downloads"
27
+ msgstr ""
28
+
29
+ #: pdf_embedder.php:92
30
+ msgid "External Links"
31
+ msgstr ""
32
+
33
+ #: pdf_embedder.php:94
34
+ msgid "Open links in a new browser tab/window"
35
+ msgstr ""
36
+
37
+ #: pdf_embedder.php:99
38
+ msgid "Scroll to Top"
39
+ msgstr "Nach oben scrollen"
40
+
41
+ #: pdf_embedder.php:101
42
+ msgid "Scroll to top of page when user clicks next/prev"
43
+ msgstr ""
44
+
45
+ #: pdf_embedder.php:85
46
+ msgid "Track Views/Downloads"
47
+ msgstr ""
48
+
49
+ #: pdf_embedder.php:105
50
+ msgid ""
51
+ "Find out more about <a href=\"%s\" target=\"_blank\">Premium Versions of the "
52
+ "plugin on our website</a>."
53
+ msgstr ""
54
+
55
+ #: pdf_embedder.php:187
56
+ msgid ""
57
+ "Track downloads and views with <a href=\"%s\" target=\"_blank\">PDF Embedder "
58
+ "Premium</a>"
59
+ msgstr ""
60
+
61
+ #: pdf_embedder.php:189
62
+ msgid "Downloads/Views"
63
+ msgstr ""
64
+
65
+ #: pdf_embedder.php:78
66
+ msgid "Download Button"
67
+ msgstr ""
68
+
69
+ #: pdf_embedder.php:115
70
+ msgid "Mobile-friendly embedding using PDF Embedder Premium"
71
+ msgstr ""
72
+
73
+ #: pdf_embedder.php:116
74
+ msgid ""
75
+ "This free version of the plugin should work on most mobile browsers, but it "
76
+ "will be cumbersome for users with small screens - it is difficult to "
77
+ "position\n"
78
+ " the document entirely within the screen, and your users' fingers "
79
+ "may catch the entire browser page when\n"
80
+ " they're trying only to move about the document..."
81
+ msgstr ""
82
+
83
+ #: pdf_embedder.php:120
84
+ msgid ""
85
+ "Our <b>PDF Embedder Premium</b> plugin solves this problem with an "
86
+ "intelligent 'full screen' mode.\n"
87
+ " When the document is smaller than a certain width, the document "
88
+ "displays only as a 'thumbnail' with a large\n"
89
+ " 'View in Full Screen' button for the\n"
90
+ " user to click when they want to study your document.\n"
91
+ " This opens up the document so it has the full focus of the "
92
+ "mobile browser, and the user can move about the\n"
93
+ " document without hitting other parts of\n"
94
+ " the web page by mistake. Click Exit to return to the regular web "
95
+ "page."
96
+ msgstr ""
97
+
98
+ #. Plugin URI of the plugin/theme
99
+ #. Author URI of the plugin/theme
100
+ msgid "http://wp-pdf.com/"
101
+ msgstr ""
102
+
103
+ #. Description of the plugin/theme
104
+ msgid ""
105
+ "Embed PDFs straight into your posts and pages, with flexible width and "
106
+ "height. No third-party services required."
107
+ msgstr ""
108
+
109
+ #. Author of the plugin/theme
110
+ msgid "Dan Lester"
111
+ msgstr ""
112
+
113
+ #: core/core_pdf_embedder.php:289
114
+ msgid "Toolbar Hover"
115
+ msgstr ""
116
+
117
+ #: core/core_pdf_embedder.php:292
118
+ msgid "Toolbar appears only on hover over document"
119
+ msgstr ""
120
+
121
+ #: core/core_pdf_embedder.php:297
122
+ msgid "Toolbar always visible"
123
+ msgstr ""
124
+
125
+ #: core/core_pdf_embedder.php:309
126
+ msgid ""
127
+ "You can override these defaults for specific embeds by modifying the "
128
+ "shortcodes - see <a href=\"%s\" target=\"_blank\">instructions</a>."
129
+ msgstr ""
130
+
131
+ #: core/core_pdf_embedder.php:329
132
+ msgid "Protect your PDFs using PDF Embedder Secure"
133
+ msgstr ""
134
+
135
+ #: core/core_pdf_embedder.php:330
136
+ msgid ""
137
+ "Our <b>PDF Embedder Premium Secure</b> plugin provides the same simple but "
138
+ "elegant viewer for your website visitors, with the added protection that\n"
139
+ " it is difficult for users to download or print the original PDF "
140
+ "document."
141
+ msgstr ""
142
+
143
+ #: core/core_pdf_embedder.php:333
144
+ msgid ""
145
+ "This means that your PDF is unlikely to be shared outside your site where "
146
+ "you have no control over who views, prints, or shares it."
147
+ msgstr ""
148
+
149
+ #: core/core_pdf_embedder.php:335 pdf_embedder.php:129
150
+ msgid ""
151
+ "See our website <a href=\"%s\">wp-pdf.com</a> for more details and purchase "
152
+ "options."
153
+ msgstr ""
154
+
155
+ #: core/core_pdf_embedder.php:381
156
+ msgid "Width must be \"max\" or an integer (number of pixels)"
157
+ msgstr ""
158
+
159
+ #: core/core_pdf_embedder.php:382
160
+ msgid "Height must be \"max\" or an integer (number of pixels)"
161
+ msgstr ""
162
+
163
+ #: core/core_pdf_embedder.php:388
164
+ msgid "Unspecified error"
165
+ msgstr ""
166
+
167
+ #: core/core_pdf_embedder.php:429
168
+ msgid "Settings saved"
169
+ msgstr "Einstellungen gesichert"
170
+
171
+ #: core/core_pdf_embedder.php:525
172
+ msgid "Settings"
173
+ msgstr "Configuración"
174
+
175
+ #: core/core_pdf_embedder.php:283
176
+ msgid "Bottom"
177
+ msgstr "Unterseite"
178
+
179
+ #: core/core_pdf_embedder.php:284
180
+ msgid "Both"
181
+ msgstr "Beide"
182
+
183
+ #: core/core_pdf_embedder.php:272
184
+ msgid "Height"
185
+ msgstr "H&ouml;he"
186
+
187
+ #: core/core_pdf_embedder.php:276
188
+ msgid "Enter <b>max</b> or an integer number of pixels"
189
+ msgstr ""
190
+
191
+ #: core/core_pdf_embedder.php:280
192
+ msgid "Toolbar Location"
193
+ msgstr ""
194
+
195
+ #: core/core_pdf_embedder.php:282
196
+ msgid "Top"
197
+ msgstr "Oberseite"
198
+
199
+ #: core/core_pdf_embedder.php:266
200
+ msgid "Default Viewer Settings"
201
+ msgstr ""
202
+
203
+ #: core/core_pdf_embedder.php:268
204
+ msgid "Width"
205
+ msgstr "Breite:"
206
+
207
+ #: core/core_pdf_embedder.php:210
208
+ msgid "Mobile"
209
+ msgstr "Mobil"
210
+
211
+ #: core/core_pdf_embedder.php:238
212
+ msgid "Save Changes"
213
+ msgstr "Einstellungen speichern "
214
+
215
+ #: core/core_pdf_embedder.php:68
216
+ msgid "PDFs"
217
+ msgstr ""
218
+
219
+ #: core/core_pdf_embedder.php:68
220
+ msgid "Manage PDFs"
221
+ msgstr ""
222
+
223
+ #: core/core_pdf_embedder.php:68
224
+ msgid "PDF <span class=\"count\">(%s)</span>"
225
+ msgid_plural "PDFs <span class=\"count\">(%s)</span>"
226
+ msgstr[0] ""
227
+ msgstr[1] ""
228
+
229
+ #: core/core_pdf_embedder.php:172 core/core_pdf_embedder.php:177
230
+ msgid "PDF Embedder settings"
231
+ msgstr ""
232
+
233
+ #. Plugin Name of the plugin/theme
234
+ #: core/core_pdf_embedder.php:172 core/core_pdf_embedder.php:177
235
+ msgid "PDF Embedder"
236
+ msgstr ""
237
+
238
+ #: core/core_pdf_embedder.php:197
239
+ msgid "PDF Embedder setup"
240
+ msgstr ""
241
+
242
+ #: core/core_pdf_embedder.php:199
243
+ msgid ""
244
+ "To use the plugin, just embed PDFs in the same way as you would normally "
245
+ "embed images in your posts/pages - but try with a PDF file instead."
246
+ msgstr ""
247
+
248
+ #: core/core_pdf_embedder.php:200
249
+ msgid ""
250
+ "From the post editor, click Add Media, and then drag-and-drop your PDF file "
251
+ "into the media library.\n"
252
+ " When you insert the PDF into your post, it will "
253
+ "automatically embed using the plugin's viewer."
254
+ msgstr ""
255
+
256
+ #: core/core_pdf_embedder.php:209
257
+ msgid "Main Settings"
258
+ msgstr "Haupeinstellungen"
259
+
260
+ #: core/core_pdf_embedder.php:42
261
+ msgid "Zoom In"
262
+ msgstr "vergrößern"
263
+
264
+ #: core/core_pdf_embedder.php:43
265
+ msgid "Zoom Out"
266
+ msgstr "verkleinern"
267
+
268
+ #: core/core_pdf_embedder.php:44 core/core_pdf_embedder.php:211
269
+ msgid "Secure"
270
+ msgstr ""
271
+
272
+ #: core/core_pdf_embedder.php:45
273
+ msgid "Download PDF"
274
+ msgstr ""
275
+
276
+ #: core/core_pdf_embedder.php:46
277
+ msgid "Full Screen"
278
+ msgstr "Vollbild"
279
+
280
+ #: core/core_pdf_embedder.php:47
281
+ msgid ""
282
+ "Error: URL to the PDF file must be on exactly the same domain as the current "
283
+ "web page."
284
+ msgstr ""
285
+
286
+ #: core/core_pdf_embedder.php:48
287
+ msgid "Click here for more info"
288
+ msgstr ""
289
+
290
+ #: core/core_pdf_embedder.php:49
291
+ msgid "PDF page width or height are invalid"
292
+ msgstr ""
293
+
294
+ #: core/core_pdf_embedder.php:50
295
+ msgid "View in Full Screen"
296
+ msgstr "Vollbild ansehen"
297
+
298
+ #: core/core_pdf_embedder.php:41
299
+ msgid "Next page"
300
+ msgstr "Nächste Seite"
301
+
302
+ #: core/core_pdf_embedder.php:39
303
+ msgid "Zoom"
304
+ msgstr "Zoom"
305
+
306
+ #: core/core_pdf_embedder.php:40
307
+ msgid "Previous page"
308
+ msgstr "Vorherige Seite"
309
+
310
+ #: core/core_pdf_embedder.php:38
311
+ msgid "Page"
312
+ msgstr "auf Seite"
313
+
314
+ #: core/core_pdf_embedder.php:37
315
+ msgid "Loading..."
316
+ msgstr "Lädt..."
pdf_embedder.php CHANGED
@@ -4,7 +4,7 @@
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.
7
- * Version: 2.5.4
8
  * Author: Dan Lester
9
  * Author URI: http://wp-pdf.com/
10
  * License: GPL3
@@ -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 = '2.5.4';
19
 
20
  protected function useminified() {
21
  /* using-minified */ return true;
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.
7
+ * Version: 2.5.5
8
  * Author: Dan Lester
9
  * Author URI: http://wp-pdf.com/
10
  * License: GPL3
15
 
16
  class pdfemb_basic_pdf_embedder extends core_pdf_embedder {
17
 
18
+ protected $PLUGIN_VERSION = '2.5.5';
19
 
20
  protected function useminified() {
21
  /* using-minified */ return true;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: danlester
3
  Tags: doc, docx, pdf, office, powerpoint, google, document, embed, intranet
4
  Requires at least: 3.5
5
  Tested up to: 4.5
6
- Stable tag: 2.5.4
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -11,9 +11,6 @@ Embed PDFs straight into your posts and pages, with intelligent resizing of widt
11
 
12
  == Description ==
13
 
14
- > Problems after upgrading to WordPress 4.5? Almost certainly, your other Themes and Plugins need updating. Please install all updates and then get in touch with us
15
- > or your Theme author if PDF Embedder still isn't working.
16
-
17
  Upload PDFs and embed them straight into your site - just like adding images! PDFs will be automatically sized to their natural size and shape (or just fill the width available if they are too big). Optionally, you can specify a width and the correct height will be calculated automatically. The shape will be recalculated whenever the page is resized by the user.
18
 
19
  The plugin has a unique method for embedding PDFs, using Javascript only, and _not_ using iframes or third-party services. This gives a lot of flexibility over the appearance of your document.
@@ -167,6 +164,10 @@ the Plugins section of your Wordpress admin
167
 
168
  == Changelog ==
169
 
 
 
 
 
170
  = 2.5.4 =
171
 
172
  Added French translation thanks to Thierry Gaillou of JDFitForme.
3
  Tags: doc, docx, pdf, office, powerpoint, google, document, embed, intranet
4
  Requires at least: 3.5
5
  Tested up to: 4.5
6
+ Stable tag: 2.5.5
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
11
 
12
  == Description ==
13
 
 
 
 
14
  Upload PDFs and embed them straight into your site - just like adding images! PDFs will be automatically sized to their natural size and shape (or just fill the width available if they are too big). Optionally, you can specify a width and the correct height will be calculated automatically. The shape will be recalculated whenever the page is resized by the user.
15
 
16
  The plugin has a unique method for embedding PDFs, using Javascript only, and _not_ using iframes or third-party services. This gives a lot of flexibility over the appearance of your document.
164
 
165
  == Changelog ==
166
 
167
+ = 2.5.5 =
168
+
169
+ Fixes for right-to-left languages.
170
+
171
  = 2.5.4 =
172
 
173
  Added French translation thanks to Thierry Gaillou of JDFitForme.