You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had a similar problem with using this element inside a paper-dialog. My problem was eventually fixed by manually setting the dimensions of the pdf-element when opening the dialog:
attached: function() {
var pdfElementToolbarHeight = 64;
var modal = this.$.modal;
var pdf = this.$.pdf;
modal.addEventListener("iron-overlay-opened", function() {
var style = window.getComputedStyle(modal, null);
pdf.height = parseInt(style.getPropertyValue("height")) - parseInt(style.paddingTop) - parseInt(style.paddingBottom) - pdfElementToolbarHeight;
pdf.width = parseInt(style.getPropertyValue("width")) - parseInt(style.paddingLeft) - parseInt(style.paddingRight);
pdf.instance.HEIGHT = pdf.height;
pdf.instance.WIDTH = pdf.width;
pdf.instance.loadPDF();
});
}
Hello
Thanks for the great work ,I am unable to add this element inside
paper-dialog
, I just get blank pdf , with no errors in the console .when I try to download the pdf , I get error saying
Can not get the page
Any idea ?
thanks in advance
The text was updated successfully, but these errors were encountered: