ZD500

Not printing correctly using link-os Library on iOS Device

Hi,

I am using link-OS Zebra library in iOS app for printing badges(Images). I am using ZEBRA ZD500 printer.
And I am using following method for print:

- (BOOL) printImage:(CGImageRef)image
atX:(NSInteger)x
atY:(NSInteger)y
withWidth:(NSInteger)width
withHeight:(NSInteger)height
andIsInsideFormat:(BOOL)isInsideFormat
error:(NSError **)error

I am passing -1 for width and height.
because passing -1 will preserve original width and height.