-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow custom label sizes #4
Comments
Actually going to park this for now. To complete this ticket properly, we need to find a way to interpret the XML that the Dymo software spits out. |
I might do this just for env file setting - is that good enough for now? You can do the Dymo stuff if you want, but I think that should also have some flag since (as in my case) the printers are not Dymo |
I just understood what you meant by this, and I thought I should clarify. So, first, a bit of background... If you want to build custom applications that talk to a Dymo label printer, their recommended way to do this is to install Dymo connect on your computer. This does two things.
The expectation then is that you use the WYSIWYG editor to generate some XML, which you then export and feed to your application to populate as it wishes. Your application should then The XML in question looks a little like this: <?xml version="1.0" encoding="utf-8"?>
<DieCutLabel Version="8.0" Units="twips">
<PaperOrientation>Landscape</PaperOrientation>
<Id>LargeShipping</Id>
<PaperName>30256 Shipping</PaperName>
<DrawCommands>
<RoundRectangle X="0" Y="0" Width="3331" Height="5715" Rx="270" Ry="270"/>
</DrawCommands>
<ObjectInfo>
<TextObject>
<Name>TEXT</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>False</IsVariable>
<HorizontalAlignment>Left</HorizontalAlignment>
<VerticalAlignment>Middle</VerticalAlignment>
<TextFitMode>AlwaysFit</TextFitMode>
<UseFullFontHeight>True</UseFullFontHeight>
<Verticalized>False</Verticalized>
<StyledText>
<Element>
<String>T</String>
<Attributes>
<Font Family="Helvetica" Size="13"
Bold="False" Italic="False" Underline="False" Strikeout="False"/>
<ForeColor Alpha="255" Red="0" Green="0" Blue="0"/>
</Attributes>
</Element>
<Element>
<String>EST123</String>
<Attributes>
<Font Family="Helvetica" Size="13"
Bold="False" Italic="False" Underline="False" Strikeout="False"/>
<ForeColor Alpha="255" Red="0" Green="0" Blue="0"/>
</Attributes>
</Element>
</StyledText>
</TextObject>
<Bounds X="335.9998" Y="57.6001" Width="5337.6" Height="3192"/>
</ObjectInfo>
</DieCutLabel> That was taken from the Coming back to the XML though, it seems like it would make sense to standardize on something that this application understands and converts into commands to PDFKit. I picked the XML flavored XML simply because it's the first one that I came across and (one would assume) is fairly widely used. But, the actual make of printer being used is irrelevant as the XML is just used to tell the app how to lay the label out and what size it should be. |
Label sizes are currently hard coded in the software. This should be configurable via environment variables.
The text was updated successfully, but these errors were encountered: