Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Move image

More
IP: 89.148.20.150 7 years 8 months ago #13971 by thirukamu
Move image was created by thirukamu
I am using below code to draw an image, i am able to resize the image. But unable to move the image

- (void)drawStampStart:(CDVInvokedUrlCommand*)command
{
self.cdv_command = command;

NSDictionary *params = (NSDictionary*) [cdv_command argumentAtIndex:0];

NSString *imageBase64 = [params objectForKey:@"image"];

if (imageBase64 == nil) {
[m_pdf drawImage];
} else {
NSData *data = [[NSData alloc] initWithBase64EncodedString:imageBase64 options:0];
UIImage *image = [UIImage imageWithData:data];
[m_pdf drawImageWithImage:image];
}


[self cdvOkWithMessage:@"success"];
}

Is it possible to move the image? or if i can place the image as annotation can it be moved.

Appreciate your support.
More
IP: 212.97.62.176 7 years 8 months ago #13974 by emanuele
Replied by emanuele on topic Move image
Hi,

you should edit canMoveAnnot method in PDFObjc class in this way:
- (BOOL)canMoveAnnot
{
return (self.type == 4 || self.type == 5 || self.type == 6 || self.type == 13 || self.type == 15);
}

to move image annotations
More
IP: 89.31.193.201 7 years 8 months ago #13989 by thirukamu
Replied by thirukamu on topic Move image
Its working, Thanks a lot.
Time to create page: 0.382 seconds
Powered by Kunena Forum