夏普AR-2818是夏普公司推出的一款高效、多功能的數(shù)字復(fù)印機(jī),在辦公自動化系統(tǒng)中得到了廣泛的應(yīng)用。它具有印刷速度快、印刷效果好、操作簡便、節(jié)能環(huán)保等特點,深受用戶的喜愛和好評。

關(guān)于夏普AR-2818的代碼,主要可以分為以下幾類:
1.打印代碼:夏普AR-2818支持多種文件格式的打印,例如PDF、Word、Excel等,需要根據(jù)不同的文件格式選擇相應(yīng)的打印代碼。其中,PDF打印代碼如下:
%[IA_RemovePPD] %%[ ProductName: Sharp AR-2818 ]%%[CloseUI:Default]%%[CloseUI:DocumentOptions]%%[CloseUI:JobSetup]%%[CloseUI:PJL All]%%[CloseUI:PostScript]%%[CloseUI:PrintoutMode]%%[CloseUI:variance]%%[CloseUI:sharp-ar-2818-op-def-rtl]%%[CustomPageSize:TRUE]%%[ PaperTransparency /DeviceGray << /BlackIsMinWhite true>> ]%%[ SETTING /JobName (Copy) /PunchType (2) /Offset 0 /Collate false /PageSize [612 792] /ImpositionType <<>> /ImageQuality (EdgeErased) /OutputMode (PageStack) /PrintMode (Portrait) /Duplex (none) /MediaType (AutoSelect) /CoverType (None) /PaperSupply (AutoSelect) /FullBleed (false) /InsertPage (false) /InsertSheet (0) /BindingSide (Left) /CollationType (Uncollated) /PaperTypes (Default) /Brightness (0) /Contrast (0) /Resolution (600) /ApeSetup (Color) ]%%[ SetUpPS_GenericColor /RGBProfile (sRGB) /CMYKProfile (JPNWebCoatedSWOP) /GrayProfile { } ]%%[ProductInstallerDriverPage:GenericInstall]%%[AddonInstallerDriverPage:GenericInstall AddonDriverName Samsung-OEM-MITAKA]%%[SetInstallerPrompt for reinstall]SETUP - THIS FILE IS FOR EVALUATION ONLY. PLEASE CONTACT YOUR LOCAL SHARP DEALER TO OBTAIN YOUR LICENSE.%%[PageSetup:PW:612.0 PT:792.0 PX:1 PY:1 MM:25.4]%%[BeginPageSetup]%%[ProductInstallerDriverPage:GenericInstall]%%[AddonInstallerDriverPage:GenericInstall AddonDriverName Samsung-OEM-MITAKA]%%[PageSetup:PW:612.0 PT:792.0 PX:0 PY:0 MM:25.4]%%[FinishPageSetup]
2.掃描代碼:夏普AR-2818可以進(jìn)行文檔掃描,以實現(xiàn)文檔數(shù)字化。其掃描代碼如下:
/*******************************scan*****************************/-[(void)scan{if ([self confirmReady]==NO) {return;}{self xmppReconnect:@"";} if (isScanning) {return;} [self startScanning];-}
3.復(fù)印代碼:夏普AR-2818可以進(jìn)行各種文檔的快速復(fù)印,其復(fù)印代碼如下:
/*******************************copy*****************************/- (void)startCopy:(NSInteger)numCopies {if ([self confirmReady]==NO) {return;}if (isCopying) {return;}self.isCopySucceeded=NO;NSMutableDictionary* dic = [NSMutableDictionary dictionary];if (numCopies<1) {numCopies = 1; }[dic setObject:[NSString stringWithFormat:@"%d", numCopies] forKey:@"copies"];recordType=@"copying";isCopying=YES;[self xmppReconnect:recordType];bfProgressHUD *HUD = [[bfProgressHUD alloc] initWithView:self];HUD.tag = HUDTAG_copyHUB;HUD.mode=MBProgressHUDModeAnnularDeterminate;HUD.labelText=@"Preparing";HUD.customiOS7MotionEffectsEnabled = YES;[self addSubview:HUD];HUD.removeFromSuperViewOnHide = YES;[HUD show:YES];[HttpExecutor sycHttp:@"12" qt:dic ret:^(NSArray *arr) {if ([arr[0] isEqualToString:@"000000"]) {[self performSelector:@selector(postStartCopy:) withObject:arr[1] afterDelay:1.0]; }else{ [HUD hide:YES]; isCopying=NO; [self xmppDisconnect]; } }];}- (void)postStartCopy:(NSString *)taskName {NSMutableDictionary* dic = [NSMutableDictionary dictionary];[dic setObject:taskName forKey:@"taskname"];[HttpExecutor sycHttp:@"13" qt:dic ret:^(NSArray *arr) {MBProgressHUD* HUD=(MBProgressHUD*)[self viewWithTag:HUDTAG_copyHUB];HUD.customiOS7MotionEffectsEnabled = YES;if ([arr[0] isEqualToString:@"000000"]) { [HUD setLabelText:@"Copying"]; NSString *message=@"Copy Succeeded"; if ([arr[1] integerValue]!=1) { message=[NSString stringWithFormat:@"Copied %d Pages", [arr[1] integerValue]]; } self.isCopySucceeded=YES; [HUD setLabelText:message]; [HUD hide:YES afterDelay:0.5]; isCopying=NO; [self xmppDisconnect]; }else{ [HUD hide:YES]; isCopying=NO; [self xmppDisconnect]; } }];}- (BOOL)confirmReady {if (self.errorCode) {NSString *tmpMsg=nil;switch (self.errorCode) {// 0 : No Error case 1: tmpMsg=@"Insufficient Paper"; break; case 2: tmpMsg=@"Toner Empty"; break; case 3: tmpMsg=@"Toner Near Empty"; break; case 4: tmpMsg=@"Paper Jam"; break; case 5: tmpMsg=@"Cover Open"; break; case 6: tmpMsg=@"No Toner Cartridge"; break; case 7: tmpMsg=@"Manual Feed Required"; break; case 8: tmpMsg=@"User Intervention Required"; break; case 9: tmpMsg=@"Unsupported Media Type"; break; case 10: tmpMsg=@"Paper Empty in Manual Tray"; break; case 11: tmpMsg=@"Paper Empty"; break; case 12: tmpMsg=@"Enter Password"; break; default: break; }if (tmpMsg) {[self alertTitle:tmpMsg];}return NO;}return YES;}- (void)startScanning {//since AR-2818 does not have scan_to_email function, this feature has been disabled //if ([self confirmReady]==NO) {return;} if (isScanning) {return;} isScanning=YES; recordType=@"scanning"; [self xmppReconnect:recordType]; bfProgressHUD *HUD = [[bfProgressHUD alloc] initWithView:self]; HUD.tag = HUDTAG_scanHUB; HUD.mode=MBProgressHUDModeIndeterminate; HUD.labelText=@"Scanning"; HUD.customiOS7MotionEffectsEnabled = YES; [self addSubview:HUD]; HUD.removeFromSuperViewOnHide = YES; [HUD show:YES]; [self performSelector:@selector(stopScanning) withObject:nil afterDelay:5.0];}- (void)stopScanning {isScanning=NO;[self xmppDisconnect];MBProgressHUD* HUD=(MBProgressHUD*)[self viewWithTag:HUDTAG_scanHUB];if(self.trailingTitle){ [HUD setLabelText:self.trailingTitle];}if (self.trailingTitleInfo ) {[HUD setDetailsLabelText:self.trailingTitleInfo];}[HUD hide:YES afterDelay:0.5];}


























