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.

But it is not printing in correct dimensions. Even I have passed actual width and height then also it is not printing in correct dimensions.

Alexander Palchikov
Hi ManishWhy do you think

Hi Manish

Why do you think your label is printed incorrectly?
It looks like it is printed correctly. I think you have an issue in preview mode, I believe the reason is in differences between DPI of printer and device screen (preview).
Look at the texts. They are placed correctly and the image is placed correctly in relation to the texts.

 

Alexander Palchikov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Manish Khandelwal
Hi Alexander

Hi Alexander
Thanks for the reply.
Issue is it is not printing in actual dimensions.Text and image is very small compare to text and image in PDF(which I am printing).
It is not printing in actual width and height same like in PDF.

When I print same pdf using Brother Label printer. It prints perfectly.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alexander Palchikov
Hi ManishCould you please

Hi Manish

 

Could you please share a picture after printing label from PDF?

I think the reason for the different results is that PDF can be scaled before printing, but as in your implementation you print pure text and image, they are not being scaled, they have exactly the same proportions (and also they look like the same) as in you preview. And since you have some differences between DPI you can see smaller size of printed label than in the preview.

Alexander Palchikov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments