I’m trying to “move” the layer named “Layer II” in attached image by using the updateText function.
logodpwit_006.zip (33.6 KB)
I am using the java version combined with the php-javabridge
I’m trying to move the layer with this function:
//Create a coördinate point
$point = new Java('com.aspose.imaging.Point',$left,$top);
//Update the text to the new location
$textlayer->updateText($text, $point);
When setting the values to
$top = 457;
$left = 582;
everything goes okay, but when going 1 higher in the top I get the following error:
java.lang.RuntimeException: PHP Warning: Unchecked exception detected: [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared java.lang.RuntimeException detected. java.lang.Exception: Invoke failed: [[o:TextLayer]]->updateText((o:String)[o:String], (o:Point)[o:Point]). Cause: class com.aspose.imaging.internal.Exceptions.ArgumentException: Coordinate of left top corner is incorrect
before the move the coördinates where:
Left: 1512
Top: 759
When only changing the text the program doesn’t crash but when changing the location it does.
When going down (to say 100) for left it works without a problem.
Could you please tell me what I’m doing wrong here?