Windows 10, Scribus v1.4.7, Build ID C-*-T-*-C1.8.6-Windows, Using Ghostscript version 9.06, export Compattibility=PDF 1.3 (Acrobat 4)
I am using image import via a button using java script "event.target.buttonImportIcon();" This works very well, however, depending on the image source, the image may display with incorrect orientation for the end user. I would like to add a button that end user may use to rotate uploaded image.
I've searched the web and our Scribus Forums, for several weeks now, for a way to modify the orientation on an uploaded image in an active pdf form but just cant seem to find anything specific to this. I have found java code to change image orientaiton (see below) but I believe this will only work on an HTML or CSS document, not a PDF form.
Does anyone know how I can add a button with the necessary code to change the orientation of the target image on the form?
I have tested these codes:
var angle = 0;
$('#button').on('click', function() {
angle += 90;
$("#image").rotate(angle);
});
-------------------------------------------------
I also tried:
$('input').click(function(){
var img = $('img');
if(img.hasClass('north')){
img.attr('class','west');
}else if(img.hasClass('west')){
img.attr('class','south');
}else if(img.hasClass('south')){
img.attr('class','east');
}else if(img.hasClass('east')){
img.attr('class','north');
}
});
Thank you!
[attachment deleted by admin]