如何删除ZPL代码标签顶部的空白?

时间:2018-11-07 18:00:12

标签: api base64 label fedex zpl

我正在尝试设置FedEx ShipRequest API并将图像格式用作ZPLII。

但是当我请求时,我会在下面收到。

XlhBXkNGLDAsMCwwXlBSMTJeTUQzMF5QVzgwMF5QT0leQ0kxM15MSDAsMjAKXkZPMTIsMzAxXkdCNzUzLDIsMl5GUwpeRk8xMiw1NjdeR0I3NzcsMiwyXkZTCl5GTzQ2NCwxNzBeR0IyLDEyOSwyXkZTCl5GTzQ3OCwyMDheQWROLDAsMF5GV05eRkheRkRDQUQ6IDExODc5MDI2NC9XU1hJMzQwMF5GUwpeRk8yOCw5MDleQTBOLDI0LDI0XkZXTl5GSF5GRFRSSyNeRlMKXkZPMjgsOTY3XkEwTiwyNywzMl5GV05eRkheRkReRlMKXkZPMTM2LDg3OV5BME4sMjcsMzZeRldOXkZIXkZEXkZTCl5GTzMyLDE3Ml5BZE4sMCwwXkZXTl5GSF5GRE9SSUdJTiBJRDpTQ0tBIF5GUwpeRk8yMjQsMTcyXkFkTiwwLDBeRldOXkZIXkZEMDAwMDAwMDAwXkZTCl5GTzMyLDE5MF5BZE4sMCwwXkZXTl5GSF5GRFRFU1RJTkcuIFNISVBQSU5HIERFUFReRlMKXkZPMzIsMjA4XkFkTiwwLDBeRldOXkZIXkZEQU1BWk9OLkNPTV5GUwpeRk8zMiwyMjZeQWROLDAsMF5GV05eRkheRkRURVNUIFBBUktXQVleRlMKXkZPMzIsMjQ0XkFkTiwwLDBeRldOXkZIXkZEXkZTCl5GTzMyLDI2Ml5BZE4sMCwwXkZXTl5GSF5GRFRSSSwgQ0EgOTUzNzdeRlMKXkZPMzIsMjgwXkFkTiwwLDBeRldOXkZIXkZEVU5JVEVEIFNUQVRFUyBVU15GUwpeRk8xNSwzMTNeQTBOLDIxLDIxXkZXTl5GSF5GRFRPXkZTCl5GTzYwLDMxMV5BME4sMzgsMzheRldOXkZIXkZEVEVTVF5GUwpeRk82MCwzNTNeQTBOLDM4LD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^ FS ^ FO224,172 ^ AdN,0,0 ^ FWN ^ FH ^ FD000000000 ^ FS ^ FO32,190 ^ AdN,0,0 ^ FWN ^ FH ^ FDTESTING。运输部^ FS ^ FO32,208 ^ AdN,0,0 ^ FWN ^ FH ^ FDAMAZON.COM ^ FS ^ FO32,226 ^ AdN,0,0 ^ FWN ^ FH ^ FDTEST PARKWAY ^ FS ^ FO32,244 ^ AdN,0,0 ^ FWN ^ FH ^ FD ^ FS ^ FO32,262 ^ AdN,0,0 ^ FWN ^ FH ^ FDTRI,CA 95377 ^ FS ^ FO32,280 ^ AdN,0,0 ^ FWN ^ FH ^ FD美国(美国) ^ FO15,313 ^ A0N,21,21 ^ FWN ^ FH ^ FDTO ^ FS ^ FO60,311 ^ A0N,38,38 ^ FWN ^ FH ^ FDTEST ^ FS ^ FO60,353 ^ A0N,38,38 ^ FWN ^ FH ^ FD ^ FS ^ FO60,395 ^ A0N,38,38 ^ FWN ^ FH ^ FD9260 MCFADDEN ^ FS ^ FO60,437 ^ A0N,38,38 ^ FWN ^ FH ^ FD 测试标签-请勿运输 ^ FS ^ FO60,479 ^ A0N,43,40 ^ FWN ^ FH ^ FDWEST CA 92683 ^ FS ^ FO35,521 ^ A0N,21,21 ^ FWN ^ FH ^ FD00000000000000 ^ FS ^ FO677,673 ^ GB104,10,10 ^ FS ^ FO677,683 ^ GB10,112,10 ^ FS ^ FO771,683 ^ GB10,112,10 ^ FS ^ FO677,795 ^ GB104,10,10 ^ FS ^ FO652,611 ^ A0N,43,58 ^ FWN ^ FH ^ FDFedEx ^ FS ^ FO708,650 ^ A0N,19,26 ^ FWN ^ FH ^ FDExpress ^ FS ^ FO697,691 ^ A0N,128,137 ^ FWN ^ FH ^ FDE ^ FS ^ FO21,578 ^ BY2,3 ^ BCN,25,N,N,N ^ FWN ^ FD79260 MCFADDEN ^ FS ^ FO21,611 ^ BY2,2 ^ B7N,10,5,14 ^ FH ^ FWN ^ FH ^ FD [)> _ 1E01_1D0292683_1D840_1D20_1D7946359217400201_1DFDE_1D510087780_1D311_1D_1D1 / 1_1D22.00LB_1DN_1D9260 MCFADDEN_1DWEST_1DCA_1DTest_1E06_1D10ZED007_1D12Z00000000000000_1D15Z118790264_1D20Z_1C_1D31Z1001921761100009268300794635921740_1D32Z0210_1D34Z01_1D39ZSCKA_1DK112-0625455-1958644_1D_1E09_1DFDX_1Dz_1D8_1D,#_ 1B_1271_7F @ _1E_04 ^ FS ^ FO478,262 ^ AdN,0,0 ^ FWN ^ FH ^ FDBILL SENDER ^ FS ^ FO12,856 ^ GB777,2,2 ^ FS ^ FO494,1052 ^ A0N,43,43 ^ FWN ^ FH ^ FD ^ FS ^ FO791,282 ^ AbN,11,7 ^ FWB ^ FH ^ FD552J3 / C3B2 / DCA5 ^ FS ^ FO95,913 ^ A0N,53,40 ^ FWN ^ FH ^ FD7946 3592 1740 ^ FS ^ FO409,862 ^ A0N,51,38 ^ FWN ^ FH ^ FB390 ,,, R,^ FD MON-12 NOV 4:30P ^ FS ^ FO309,914 ^ A0N,51,38 ^ FWN ^ FH ^ FB490 ,,, R,^ FD EXPRESS SAVER ^ FS ^ FO413,966 ^ A0N,40,40 ^ FWN ^ FH ^ FB386 ,,, R,^ FD DSR ^ FS ^ FO495,1008 ^ A0N,44,44 ^ FWN ^ FH ^ FB298 ,,, R,^ FD 92683 ^ FS ^ FO574,1068 ^ A0N,24,24 ^ FWN ^ FH ^ FB120 ,,, R,^ FD CA-US ^ FS ^ FO695,1052 ^ A0N,43,43 ^ FWN ^ FH ^ FB100 ,,, R,^ FDSNA ^ FS ^ FO39,1094 ^ A0N,27,32 ^ FWN ^ FH ^ FD ^ FS ^ FO75,1155 ^ BY3,2 ^ BCN,200,N,N,N,N ^ FWN ^ FD>; 1001921761100009268300000000000000 ^ FS ^ FO28,1004 ^ A0N,107,96 ^ FWN ^ FH ^ FDCZ APVA ^ FS ^ FO790,685 ^ A0N,13,18 ^ FWB ^ FH ^ FDJ182118081501uv ^ FS ^ FO478,172 ^ AdN,0,0 ^ FWN ^ FH ^ FDSHIP日期:07NOV18 ^ FS ^ FO478,190 ^ AdN,0,0 ^ FWN ^ FH ^ FDACTWGT:22.00磅^ FS ^ FO478,226 ^ AdN,0,0 ^ FWN ^ FH ^ FDDIMS:10x9x7 IN ^ FS ^ FO328,526 ^ AbN,11,7 ^ FWN ^ FH ^ FDREF:OG-ROME-3-BLK ^ FS ^ FO38,540 ^ AbN,11,7 ^ FWN ^ FH ^ FDINV:ORD3642065 ^ FS ^ FO38,554 ^ AbN,11,7 ^ FWN ^ FH ^ FDPO:112-0625455-1958644 ^ FS ^ FO428,554 ^ AbN,11,7 ^ FWN ^ FH ^ FDDEPT:^ FS ^ FO25,930 ^ GB58,1,1 ^ FS ^ FO25,930 ^ GB1,26,1 ^ FS ^ FO83,930 ^ GB1,26,1 ^ FS ^ FO25,956 ^ GB58,1,1 ^ FS ^ FO31,936 ^ AdN,0,0 ^ FWN ^ FH ^ FD0201 ^ FS ^ PQ1 ^ XZ

但是,如果我在ZPL查看器中看到此代码,则它显示如下,

Fedex Label

顶部似乎有一些空白,底部却被切断了。

有人可以帮助我解决这个问题吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

如果您选择使用带有标签标签的热敏标签格式,这是一种正常现象,该标签带有可移动的粘性标签以及其他运输信息。

在“热敏标签元件”上查看《 Fedex开发人员指南》文档,以选择要使用的正确标签尺寸。