|
1 | | -export function generateXmlExample(dymoName = "Prueba", dymoAddress = "Prueba") { |
| 1 | +export function generateXmlExample(dymoName = "Your name") { |
2 | 2 | var labelXml = `<?xml version="1.0" encoding="utf-8"?> |
3 | | -<DieCutLabel Version="8.0" Units="twips" MediaType="Default"> |
4 | | - <PaperOrientation>Landscape</PaperOrientation> |
5 | | - <Id>Storage</Id> |
6 | | - <PaperName>30258 Diskette</PaperName> |
7 | | - <DrawCommands> |
8 | | - <RoundRectangle X="0" Y="0" Width="3060" Height="3960" Rx="370" Ry="370"/> |
9 | | - </DrawCommands> |
10 | | - <ObjectInfo> |
11 | | - <TextObject> |
12 | | - <Name>Practice name (label)</Name> |
13 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
14 | | - <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> |
15 | | - <LinkedObjectName></LinkedObjectName> |
16 | | - <Rotation>Rotation0</Rotation> |
17 | | - <IsMirrored>False</IsMirrored> |
18 | | - <IsVariable>False</IsVariable> |
19 | | - <HorizontalAlignment>Left</HorizontalAlignment> |
20 | | - <VerticalAlignment>Top</VerticalAlignment> |
21 | | - <TextFitMode>None</TextFitMode> |
22 | | - <UseFullFontHeight>False</UseFullFontHeight> |
23 | | - <Verticalized>False</Verticalized> |
24 | | - <StyledText> |
25 | | - <Element> |
26 | | - <String>${dymoName}</String> |
27 | | - <Attributes> |
28 | | - <Font Family="Courier" Size="9" Bold="False" Italic="False" Underline="False" Strikeout="False"/> |
29 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
30 | | - </Attributes> |
31 | | - </Element> |
32 | | - </StyledText> |
33 | | - </TextObject> |
34 | | - <Bounds X="316.7999" Y="129.6" Width="3484.8" Height="230.4"/> |
35 | | - </ObjectInfo> |
36 | | - <ObjectInfo> |
37 | | - <TextObject> |
38 | | - <Name>Office address where visit happened</Name> |
39 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
40 | | - <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> |
41 | | - <LinkedObjectName></LinkedObjectName> |
42 | | - <Rotation>Rotation0</Rotation> |
43 | | - <IsMirrored>False</IsMirrored> |
44 | | - <IsVariable>False</IsVariable> |
45 | | - <HorizontalAlignment>Left</HorizontalAlignment> |
46 | | - <VerticalAlignment>Top</VerticalAlignment> |
47 | | - <TextFitMode>None</TextFitMode> |
48 | | - <UseFullFontHeight>False</UseFullFontHeight> |
49 | | - <Verticalized>False</Verticalized> |
50 | | - <StyledText> |
51 | | - <Element> |
52 | | - <String>${dymoAddress}</String> |
53 | | - <Attributes> |
54 | | - <Font Family="Courier" Size="9" Bold="False" Italic="False" Underline="False" Strikeout="False"/> |
55 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
56 | | - </Attributes> |
57 | | - </Element> |
58 | | - </StyledText> |
59 | | - </TextObject> |
60 | | - <Bounds X="316.7999" Y="360" Width="3484.8" Height="230.4"/> |
61 | | - </ObjectInfo> |
62 | | - <ObjectInfo> |
63 | | - <TextObject> |
64 | | - <Name>Patient Name</Name> |
65 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
66 | | - <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> |
67 | | - <LinkedObjectName></LinkedObjectName> |
68 | | - <Rotation>Rotation0</Rotation> |
69 | | - <IsMirrored>False</IsMirrored> |
70 | | - <IsVariable>False</IsVariable> |
71 | | - <HorizontalAlignment>Left</HorizontalAlignment> |
72 | | - <VerticalAlignment>Top</VerticalAlignment> |
73 | | - <TextFitMode>None</TextFitMode> |
74 | | - <UseFullFontHeight>False</UseFullFontHeight> |
75 | | - <Verticalized>False</Verticalized> |
76 | | - <StyledText> |
77 | | - <Element> |
78 | | - <String>Jesse I. Fernandez</String> |
79 | | - <Attributes> |
80 | | - <Font Family="Courier" Size="10" Bold="True" Italic="False" Underline="False" Strikeout="False"/> |
81 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
82 | | - </Attributes> |
83 | | - </Element> |
84 | | - </StyledText> |
85 | | - </TextObject> |
86 | | - <Bounds X="316.7999" Y="1046.278" Width="3484.8" Height="259.2"/> |
87 | | - </ObjectInfo> |
88 | | - <ObjectInfo> |
89 | | - <ShapeObject> |
90 | | - <Name>SHAPE</Name> |
91 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
92 | | - <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> |
93 | | - <LinkedObjectName></LinkedObjectName> |
94 | | - <Rotation>Rotation0</Rotation> |
95 | | - <IsMirrored>False</IsMirrored> |
96 | | - <IsVariable>False</IsVariable> |
97 | | - <ShapeType>HorizontalLine</ShapeType> |
98 | | - <LineWidth>20</LineWidth> |
99 | | - <LineAlignment>LeftOrTop</LineAlignment> |
100 | | - <FillColor Alpha="0" Red="0" Green="0" Blue="0"/> |
101 | | - </ShapeObject> |
102 | | - <Bounds X="317.8156" Y="2148.055" Width="3384" Height="144"/> |
103 | | - </ObjectInfo> |
104 | | - <ObjectInfo> |
105 | | - <TextObject> |
106 | | - <Name>User Dosage Instructions</Name> |
107 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
108 | | - <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> |
109 | | - <LinkedObjectName></LinkedObjectName> |
110 | | - <Rotation>Rotation0</Rotation> |
111 | | - <IsMirrored>False</IsMirrored> |
112 | | - <IsVariable>False</IsVariable> |
113 | | - <HorizontalAlignment>Left</HorizontalAlignment> |
114 | | - <VerticalAlignment>Top</VerticalAlignment> |
115 | | - <TextFitMode>None</TextFitMode> |
116 | | - <UseFullFontHeight>False</UseFullFontHeight> |
117 | | - <Verticalized>False</Verticalized> |
118 | | - <StyledText> |
119 | | - <Element> |
120 | | - <String>This is a test note generated |
121 | | -for the preview of the labe |
122 | | - </String> |
123 | | - <Attributes> |
124 | | - <Font Family="Courier" Size="9" Bold="False" Italic="False" Underline="False" Strikeout="False"/> |
125 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
126 | | - </Attributes> |
127 | | - </Element> |
128 | | - </StyledText> |
129 | | - </TextObject> |
130 | | - <Bounds X="316.7999" Y="2447.37" Width="3484.8" Height="432"/> |
131 | | - </ObjectInfo> |
132 | | - <ObjectInfo> |
133 | | - <TextObject> |
134 | | - <Name>Office Phone Number</Name> |
135 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
136 | | - <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> |
137 | | - <LinkedObjectName></LinkedObjectName> |
138 | | - <Rotation>Rotation0</Rotation> |
139 | | - <IsMirrored>False</IsMirrored> |
140 | | - <IsVariable>False</IsVariable> |
141 | | - <HorizontalAlignment>Left</HorizontalAlignment> |
142 | | - <VerticalAlignment>Top</VerticalAlignment> |
143 | | - <TextFitMode>None</TextFitMode> |
144 | | - <UseFullFontHeight>False</UseFullFontHeight> |
145 | | - <Verticalized>False</Verticalized> |
146 | | - <StyledText> |
147 | | - <Element> |
148 | | - <String>(456) 839-7392</String> |
149 | | - <Attributes> |
150 | | - <Font Family="Courier" Size="9" Bold="False" Italic="False" Underline="False" Strikeout="False"/> |
151 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
152 | | - </Attributes> |
153 | | - </Element> |
154 | | - </StyledText> |
155 | | - </TextObject> |
156 | | - <Bounds X="310.7999" Y="576" Width="1487.977" Height="201.6"/> |
157 | | - </ObjectInfo> |
158 | | - <ObjectInfo> |
159 | | - <TextObject> |
160 | | - <Name>Filled by practitioner</Name> |
161 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
162 | | - <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> |
163 | | - <LinkedObjectName></LinkedObjectName> |
164 | | - <Rotation>Rotation0</Rotation> |
165 | | - <IsMirrored>False</IsMirrored> |
166 | | - <IsVariable>False</IsVariable> |
167 | | - <HorizontalAlignment>Left</HorizontalAlignment> |
168 | | - <VerticalAlignment>Top</VerticalAlignment> |
169 | | - <TextFitMode>None</TextFitMode> |
170 | | - <UseFullFontHeight>False</UseFullFontHeight> |
171 | | - <Verticalized>False</Verticalized> |
172 | | - <StyledText> |
173 | | - <Element> |
174 | | - <String>Filled: 25/04/19</String> |
175 | | - <Attributes> |
176 | | - <Font Family="Courier" Size="9" Bold="False" Italic="False" Underline="False" Strikeout="False"/> |
177 | | - <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
178 | | - </Attributes> |
179 | | - </Element> |
180 | | - </StyledText> |
181 | | - </TextObject> |
182 | | - <Bounds X="1915.2" Y="576" Width="1872" Height="201.6"/> |
183 | | - </ObjectInfo> |
184 | | -</DieCutLabel>`; |
| 3 | + <DieCutLabel Version="8.0" Units="twips"> |
| 4 | + <PaperOrientation>Landscape</PaperOrientation> |
| 5 | + <Id>Small30336</Id> |
| 6 | + <IsOutlined>false</IsOutlined> |
| 7 | + <PaperName>30336 1 in x 2-1/8 in</PaperName> |
| 8 | + <DrawCommands> |
| 9 | + <RoundRectangle X="0" Y="0" Width="1440" Height="3060" Rx="180" Ry="180" /> |
| 10 | + </DrawCommands> |
| 11 | + <ObjectInfo> |
| 12 | + <TextObject> |
| 13 | + <Name>TEXT</Name> |
| 14 | + <ForeColor Alpha="255" Red="0" Green="0" Blue="0" /> |
| 15 | + <BackColor Alpha="0" Red="255" Green="255" Blue="255" /> |
| 16 | + <LinkedObjectName /> |
| 17 | + <Rotation>Rotation0</Rotation> |
| 18 | + <IsMirrored>False</IsMirrored> |
| 19 | + <IsVariable>False</IsVariable> |
| 20 | + <GroupID>-1</GroupID> |
| 21 | + <IsOutlined>False</IsOutlined> |
| 22 | + <HorizontalAlignment>Center</HorizontalAlignment> |
| 23 | + <VerticalAlignment>Middle</VerticalAlignment> |
| 24 | + <TextFitMode>ShrinkToFit</TextFitMode> |
| 25 | + <UseFullFontHeight>True</UseFullFontHeight> |
| 26 | + <Verticalized>False</Verticalized> |
| 27 | + <StyledText> |
| 28 | + <Element> |
| 29 | + <String xml:space="preserve">${dymoName}</String> |
| 30 | + <Attributes> |
| 31 | + <Font Family="Arial" Size="12" Bold="False" Italic="False" Underline="False" Strikeout="False" /> |
| 32 | + <ForeColor Alpha="255" Red="0" Green="0" Blue="0" HueScale="100" /> |
| 33 | + </Attributes> |
| 34 | + </Element> |
| 35 | + </StyledText> |
| 36 | + </TextObject> |
| 37 | + <Bounds X="130" Y="300" Width="2846" Height="720" /> |
| 38 | + </ObjectInfo> |
| 39 | + </DieCutLabel>`; |
185 | 40 | return labelXml; |
186 | 41 | } |
0 commit comments