dymo - DYMO 打印标签文本被截断
问题描述
我正在尝试在 dymo labelwriter 450 turbo 上打印地址标签但文本被截断
我正在使用下面的 xml 来格式化文本
function getAddressLabelXml()
{
var labelXml = '<?xml version="1.0" encoding="utf-8"?>\
<DieCutLabel Version="8.0" Units="twips">\
<PaperOrientation>Landscape</PaperOrientation>\
<Id>Address</Id>\
<PaperName>30252 Address</PaperName>\
<DrawCommands>\
<RoundRectangle X="0" Y="0" Width="1581" Height="5040" Rx="270" Ry="270" />\
</DrawCommands>\
<ObjectInfo>\
<AddressObject>\
<Name>Address</Name>\
<ForeColor Alpha="255" Red="0" Green="0" Blue="0" />\
<BackColor Alpha="0" Red="255" Green="255" Blue="255" />\
<LinkedObjectName></LinkedObjectName>\
<Rotation>Rotation0</Rotation>\
<IsMirrored>False</IsMirrored>\
<IsVariable>True</IsVariable>\
<HorizontalAlignment>Left</HorizontalAlignment>\
<VerticalAlignment>Middle</VerticalAlignment>\
<TextFitMode>ShrinkToFit</TextFitMode>\
<UseFullFontHeight>True</UseFullFontHeight>\
<Verticalized>False</Verticalized>\
<StyledText/>\
<ShowBarcodeFor9DigitZipOnly>False</ShowBarcodeFor9DigitZipOnly>\
<BarcodePosition>BelowAddress</BarcodePosition>\
<LineFonts/>\
</AddressObject>\
<Bounds X="332" Y="150" Width="4455" Height="1260" />\
</ObjectInfo>\
</DieCutLabel>';
return labelXml;
}
根据文本的长度和高度,文本要么在顶部截断,要么在右侧截断
我正在寻找一种方法来自动适应标签内的文本
提前致谢。
解决方案
推荐阅读
- python-3.x - 如何在 Pycharm 中设置 shell 提示符
- python - 将循环添加/附加到另一个循环的末尾
- javascript - Vue.js 中有没有办法在使用 v-for 时生成分隔符(类似于`Array.join()` FreeMarker 的`<#sep>`)
- r - 即使设置为另一个值,主题中设置的图例位置也保存为“正确”
- ios - 在回调中以编程方式推送视图,SwiftUI
- c# - 模型中的模型返回为 null
- c - 为什么(有符号的)强制转换仅在有时表示最小整数(32 位系统)时才需要?
- javascript - 将活动类添加到 html 元素不起作用
- reactjs - 如何让 event.preventDefault() 在 React 中工作
- file - $(file < $@) 扩展为空,但不应该