Skip to content

Commit

Permalink
Merge pull request #166 from flcdrg/fix-pdf
Browse files Browse the repository at this point in the history
Fix PDFXchange
  • Loading branch information
flcdrg authored Jan 24, 2024
2 parents fe379a0 + a9928c7 commit 500127d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PDFXchangeEditor/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function global:au_GetLatest {
try {
$response = Invoke-RestMethod -Uri "https://www.tracker-software.com/trackerupdate/TrackerData8.xml"

# Unfortunately, they're including a Byte Order Mark, so we have to trim that off
$xml = [xml] $response.Substring(3)
# Trim off any Byte Order Mark
$xml = [xml] $response.Trim([char] 0xFEFF, [char] 0x200B)

$xmlNameSpace = new-object System.Xml.XmlNamespaceManager($xml.NameTable)
$xmlNameSpace.AddNamespace("t", "http://schemas.tracker-software.com/trackerupdate/tb/v1")
Expand Down
4 changes: 2 additions & 2 deletions PDFXchangePro/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function global:au_GetLatest {
try {
$response = Invoke-RestMethod -Uri "https://www.tracker-software.com/trackerupdate/TrackerData8.xml"

# Unfortunately, they're including a Byte Order Mark, so we have to trim that off
$xml = [xml] $response.Substring(3)
# Trim off any Byte Order Mark
$xml = [xml] $response.Trim([char] 0xFEFF, [char] 0x200B)

$xmlNameSpace = new-object System.Xml.XmlNamespaceManager($xml.NameTable)
$xmlNameSpace.AddNamespace("t", "http://schemas.tracker-software.com/trackerupdate/tb/v1")
Expand Down

0 comments on commit 500127d

Please sign in to comment.