联邦快递API标签(PDF和ZPL)

2024-05-13 11:30:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试使用这个库https://python-fedex.readthedocs.io/en/latest/installation.html

在装运请求中,我有以下信息:

shipment.RequestedShipment.LabelSpecification.LabelFormatType = 'COMMON2D'
shipment.RequestedShipment.LabelSpecification.ImageType = *format*
shipment.RequestedShipment.LabelSpecification.LabelStockType = 'STOCK_4X6'

要求使用PDF、ZPLII、ELP2或其他格式的装运标签。但我只能给出一种格式

但如果我同时需要PDF和ZPLII呢。我怎么能做到

这是safo bora的examl代码,以了解我的意思: https://gist.github.com/safo-bora/2c6a67ad1299fc2a83d74fb1759f8a41


Tags: httpsiopdf格式readthedocslatesten装运