I has a strange question. Maybe it's not strange for you.
Due to the logic of my printer, I must read out the whole raster data to know the rectangle non-blank image region first. After that, above information will be sent to printer by PCL commands(like move cursor to the start point of the rectangle non-blank image). And next step is sending the rectangle non-blank image pixels to printer with Esc*b#W line by line.
My question is why I can't keep the raster data in my printer driver?
Here I had tried two methods to solve it. But both of them don't work.
Method 1:
Use malloc( ) to allocate a big chunk(about 22M) of buffer to keep data.
Method 2:
Try to create a file to keep data like below shown. But I can't open it. In other directory, like /usr/lib,using the open function to test is okay. It looks like permission problem. But I don't know how to solve in printer driver.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden
This email sent to email@hidden