Skip to content

Commit

Permalink
Fixing ^PQ command
Browse files Browse the repository at this point in the history
  • Loading branch information
sungaila committed Jul 11, 2024
1 parent f98b742 commit 7e9a0a6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body:
attributes:
label: PDFtoZPL version
description: Which version of PDFtoZPL is affected?
value: 5.0.3
value: 5.1.0
validations:
required: true
- type: dropdown
Expand Down
2 changes: 1 addition & 1 deletion Console/Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AssemblyName>PDFtoZPL.Console</AssemblyName>
<RootNamespace>PDFtoZPL.Console</RootNamespace>
<StartupObject>PDFtoZPL.Console.Program</StartupObject>
<Version>5.0.3</Version>
<Version>5.1.0</Version>
<Configurations>Debug;Release;ReleaseSigned</Configurations>
</PropertyGroup>

Expand Down
3 changes: 1 addition & 2 deletions PDFtoZPL/Conversion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,8 @@ private static string ConvertBitmapImpl(SKBitmap pdfBitmap, ZplOptions zplOption
zpl = zpl.Replace("^XA", $"^XA^LL{inputBitmap.Height}");

// set the ^PQ to control the number of labels to print
// no print pausing and one replicate per serial number
if (zplOptions.PrintQuantity > 0)
zpl = $"^PQ{Math.Min(zplOptions.PrintQuantity, 99999999)},0,1,Y" + zpl;
zpl = zpl.Replace("^XZ", $"^PQ{Math.Min(zplOptions.PrintQuantity, 99999999)}^XZ");

// finally return the complete ZPL code
return zpl;
Expand Down
2 changes: 1 addition & 1 deletion PDFtoZPL/PDFtoZPL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<!-- NuGet -->
<PropertyGroup>
<VersionPrefix>5.0.3</VersionPrefix>
<VersionPrefix>5.1.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Authors>David Sungaila</Authors>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand Down
12 changes: 6 additions & 6 deletions Tests/PrintQuantityTests.ExpectedResults.cs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions WebConverter/WebConverter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<AssemblyName>PDFtoZPL.WebConverter</AssemblyName>
<RootNamespace>PDFtoZPL.WebConverter</RootNamespace>
<StartupObject>PDFtoZPL.WebConverter.Program</StartupObject>
<VersionPrefix>5.0.3</VersionPrefix>
<VersionPrefix>5.1.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<RunAOTCompilation>true</RunAOTCompilation>
<WasmNativeStrip>true</WasmNativeStrip>
Expand Down Expand Up @@ -46,8 +46,8 @@
<ItemGroup>
<PackageReference Include="ByteSize" Version="2.1.2" />
<PackageReference Include="Markdig.Signed" Version="0.37.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.6" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.7" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.7" PrivateAssets="all" />
<PackageReference Include="Thinktecture.Blazor.FileHandling" Version="2.0.0" />
<PackageReference Include="Thinktecture.Blazor.WebShare" Version="2.0.0" />
</ItemGroup>
Expand Down

0 comments on commit 7e9a0a6

Please sign in to comment.