ZPL代码:
Task.txt
^XA
^FO30,390^GFA,8064,8064,32,,:::::::::::::::::::K07VFCM03FC003FE003VFE,K0WFCM07FE007FE003WF,::::::::K0FFCR07FCR07FE003FER03FF,:::::::::K0FFCR07FCW03FER03FF,K0FFC007LFC007FC007FE007FEM03FE003LFE003FF,::::::::K0FFC007LFC007FCW03FE003LFE003FF,K0FFC007LFC007FCR07FE003FE003LFE003FF,:::::::::K0FFC007LFC007FCJ01FF801JFE003FE003LFE003FF,::::::::K0FFCR07FCJ01FF801FF8J03FER03FF,K0FFCR07FCJ01MF8J03FER03FF,::::::::K0FFCR07FCM07FEM03FER03FF,K0WFC007FE007FE007FE003WF,::::::::gK07FE007FE,::::::::::K0MFC007QFE007FE007LFEM03FE,::::::::K0MFC007QFE007FE003LFEM03FE,K0FFC007FCJ01FFK07FE007JF800FF800FF800FF800FF8,::::::::K07FC007FCJ01FFK07FC007JF800FF800FF800FF800FF8,P07FC007FC007FCJ01FF801FF800MF800MF8,:::::::::M01FFK07JF001FF001RF800MF800JFE,M01FFK07JF001FF801RF800MF800KF,M01FFK07JF001FF001RF800MF800KF,:::::::K07JF001RF001MF801MF800MF8,K0KF001RF001MF800MF800MF8,:::::::K0KF001RF801MF801MF800MF8,gK0403JFEM03FEM03JF8,gK07LFEM03FEM03JF8,::::::::gK07FE,K0WFC007FEM07FEM03FEM03FF,::::::::K0FFCR07FC007FE,K0FFCR07FC007LFEM03FEM03JF8,::::::::K0FFCR07FC007FER03FEM03FF,K0FFC007LFC007FC007FEM07FE003FE003FE003FE003FF,::::::::K0FFC007LFC007FC,K0FFC007LFC007FCJ01FF801FF801FF800FF800FF800FF8,K0FFC007LFC007FCJ01FF801FF800FF800FF800FF800FF8,:::::::K0FFC007LFC007FCO01FF800FF800FF800FF8,K0FFC007LFC007FC007FE007JF800MF800JFE003FF,::::::::K0FFCR07FC007FEJ01FF801FF801FF800FFC,K0FFCR07FC007JF801MF800MF800FF8,::::::::K0FFCR07FC007JF801FF801FF800FFC01FF800FFC,K0WFC007JF801FF800MF800PF,:::::::K0WFC007JF801FF801MF800PF,K07VFC007JFI0FF800MF800OFE,,:::::::::::::::::::^FS
^FO30,25^GFA,1512,1512,14,,:::R08,P07FFE,O07JFE,N01LF8,N07LFC,M01NF,M03NF8,M0OFC,L01PF,L03PF8,L07PF8,L0QFC,L0QFE,K01RF,K03RF8,:K07RFC,K07RFE,K0SFE,::J01SFC078,J01SFC001,J01SF80804,J03SFJ01,J03SF01I08,J03RFE02I02,J03RFEK01,J03RFC04J08,J03RF808J04,J03RF808,J03RF01,J03RFM01,J03QFE02,J07QFC04L08,I03RFC04,I07RF808L04,I0SF,003MF01F01F01,003LFE01F03E02M02,007LFE03E03EO02,00MFC07E07C04M02,01MFC07C0F8,01MF80F80F808,03MF01F81F01,03MF01F03F,07LFE03F03E02,07LFE03E07C04,07LFC07C07C,07LF80FC0F808,07LF81F81F81O02,07LF01F01F01O02,07LF03F03E02,07KFE03E03E,07KFC07E07C04O04,07KFC0FC0FC08O04,07KF80F80F8Q08,07KF81F81F01P08,03KF03F03FQ01,03JFE03E03E02,01JFE07E07C04O02,01JFC07C07CQ04,00JFC0FC0F808O08,007IF81F81F8P01,003IF01F01F01O02,001IF03F03E02,I0FFE07E03EP01,I07FE07E07C04N04,I01FC0FC0F808M01,J0F81F80F808M0C,L01F80F00MFE,,::::::::::03C0FF807F8J07F81FE01FF,03C0FFC07FEJ07F81FF01FF8,03C0FFE07FEJ07F81FF81FFC,03C0F3E079FJ07801E7C1F7C,03C0F1E078FJ07801E7C1E3C,03C0F1E078FJ07801C3C1E3C,03C0F3E079EJ07801E781E3C,03C0FFC07FCJ07F01FF81FFC,03C0FFC07FCJ07F01FF01FF8,03C0FFC07FEJ07F01FF01FF,03C0F9E079F07E07801FF01F8,03C0F1E078F07E07801CF01F,03C0F0F078F07E07801CF01E,03C0F1E079FJ07801C781E,03C0FFE07FFJ07F81E781E,03C0FFE07FEJ07F81E7C1E,03C0FF807FCJ07F81E3C1E,01807C003EK03F00C180C,,:::^FS
^CF0,30
^FO490,40^GB310,45,45^FS
^FO500,50^FR^AC^FDPACKING LIST^FS
^CF0,35
^FO30,150^FDAct #: 12345^FS
^FO29,151^FDAct #: 12345^FS
^FO30,178^FDPicker: John Dow^FS
^FO29,179^FDPicker: John Dow^FS
^FO625,150^FDOrder #: 65785^FS
^FO626,151^FDOrder #: 65785^FS
^FO575,178^FDOrder Date: 8/15/17^FS
^FO576,179^FDOrder Date: 8/15/17^FS
^FO30,220^GB755,180,1^FS
^FO400,220^GB1,180,1^FS
^CF0,30
^FO80,250^FDONE STOP TOBACCO, INC^FS
^FO79,251^FDONE STOP TOBACCO, INC^FS
^CF0,30
^FO140,280^FDSamuel Johnson^FS
^FO150,305^FD877.566.6786^FS
^CF0,36
^FO60,360^FDTruck#^FS
^FO59,361^FDTruck#^FS
^CF0,36
^FO133,360^FD:^FS
^CF0,36
^FO150,360^FD102^FS
^CF0,36
^FO240,360^FDStop#^FS
^FO239,361^FDStop#^FS
^CF0,36
^FO303,360^FD:^FS
^CF0,36
^FO323,360^FD02^FS
^CF0,30
^FO420,250^FDShip to:^FS
^FO419,251^FDShip to:^FS
^CF0,30
^FO420,280^FD51w56 South Main Street,^FS
^FO420,310^FDBlock # 14^FS
^FO420,340^FDAtlantic Beach, South Carolina,^FS
^FO420,370^FD89764 - USA^FS
^CF0,55
^FO430,500^FDBOX:^FS
^CF0,200
^FO700,450^FD9^FS
^CF0,30
^FO25,630^GB760,45,45^FS
^FO35,640^FR^FDItem #^FS
^FO145,640^FR^FDDescription^FS
^FO700,640^FR^FDQty^FS
^FO25,670^GB760,460,1^FS
^FO130,670^GB0,460,0^FS
^FO650,670^GB1,460,1^FS
^CF0,35
^FO35,690^FD678998^FS
^FO35,720^FD677868^FS
^FO35,750^FD677848^FS
^FO35,780^FD678888^FS
^FO35,810^FD679838^FS
^FO35,840^FD678588^FS
^CF0,35
^FO150,690^FDDescription 1^FS
^FO150,720^FDDescription 2^FS
^FO150,750^FDDescription 1^FS
^FO150,780^FDDescription 1^FS
^FO150,810^FDDescription 1^FS
^FO150,840^FDDescription 1^FS
^CF0,35
^FO710,690^FD1^FS
^FO710,720^FD2^FS
^FO710,750^FD1^FS
^FO710,780^FD1^FS
^FO710,810^FD1^FS
^FO710,840^FD10^FS
^CF0,30
^FO70,1150^FDHave a Question? Call today: (888) 484-6872^FS
^FO490,1145^FD.^FS
^FO489,1146^FD.^FS
^FO491,1147^FD.^FS
^CF0,30
^FO525,1150^FDwww.usawdistributing.com^FS
^CF0,30
^FO200,1183^FD203 Blount Street, Fayetteville, NC 28301 - USA^FS
^XZ
我将Zebra Technologies ZTC GC420t(EPL)打印机通过USB连接到我的Mac。
我有4个驱动程序:1。Zebra EPL1标签打印机2. Zebra EPL2标签打印机 3.Zebra EPL3标签打印机4.Zebra ZPL标签打印机。
我选择了Zebra ZPL标签打印机。
我是ZPL的新人。
问题:我希望我的ZPL代码的输出像ZPL Viewer但是我只得到文本,而不是输出。
任何建议都将受到赞赏。
答案 0 :(得分:1)
我相信.zpl文件扩展名是正确的,但我认为它也适用于.txt扩展名。
此外,您应该能够将ZPL打印到ZTC GC420t,因为它的产品页面表明此打印机支持ZPL II。
最后,要在Mac上通过USB将ZPL文件发送到打印机,您必须使用CUPs驱动程序。您可以在此处找到有关为Zebra打印机设置的教程:
答案 1 :(得分:0)
如果您只是在 Mac 上“打印”ZPL,无论驱动程序如何,您都只会得到您发送的文本的渲染。 (但您应该使用 EPL2 或 ZPL 以获得标准“打印”的最佳输出)您应该可以使用操作系统驱动程序,不需要 CUPS 的东西。您只需使用命令行发送到设备...
lpr -P <PRINTER_NAME> -o raw <FILENAME.zpl>