the code i'm using is
window.innerWindow = $("iframe[src*=WebViewer]")[0].contentWindow;
myWebViewer.instance.docViewer.on('pageComplete', function (t, e) {
window.innerWindow.$('[id^=pageWidgetContainer] div').each(function () {
var $this = $(this);
$this.find('input[type=text]').css({ "direction" : "rtl", "text-align" : "right"});
});
});
can you please explain why do you think my code is different from your suggestion ? for me it seems identical.
and i manage to get access to whole iframe inner objects,
via window.innerWindow.$('[id^=pageWidgetContainer] div').each
nothing to do with "outer html pae"
please take a look at my
video and above detailed explanation,
in short again,
i think the pageComplete event doesn't triggered when you use scroll,
and i also think that your suggested selector [id^=pageWidgetContainer] div' only return objects which are displayed under an active page (for practicum moment the pageComplete triggered - when first page shown or use select another page, but not when user scrolls up/down),
i need a solution which i can modify ALL fields, in ALL total pages, regardless what is been shown right now, right after doc has been loaded.
this solution should be by code, but it will be also interesting to hardcode it via css, which i didn't manage to do either as i believe the pdfnet js engine modify text-align:left property internally. (after custom css applied)
attached the file again
thanks
Danny