tis-pdf-xchange-pro icon

PDF-XChange PRO

Silent install package for PDF-XChange PRO

10.4.4.392-2

  • package: tis-pdf-xchange-pro
  • name: PDF-XChange PRO
  • version: 10.4.4.392-2
  • maintainer: Amel FRADJ
  • licence: https://www.pdf-xchange.com/licensing
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 417.57 Mo
  • homepage : https://pdf-xchange.eu/DL/pdf-xchange.htm

package           : tis-pdf-xchange-pro
version           : 10.4.4.392-2
architecture      : x64
section           : base
priority          : optional
name              : PDF-XChange PRO
categories        : 
maintainer        : Amel FRADJ
description       : PDF-XChange PRO is the ultimate PDF solution. It's a bundle package that combines the three best-selling applications that Tracker Software produces
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : PDF-XChange PRO est la solution PDF ultime. Il s'agit d'une offre groupée qui combine les trois applications les plus vendues de Tracker Software
description_pl    : PDF-XChange PRO to najlepsze rozwiązanie do obsługi plików PDF. Jest to pakiet, który łączy w sobie trzy najlepiej sprzedające się aplikacje produkowane przez Tracker Software
description_de    : PDF-XChange PRO ist die ultimative PDF-Lösung. Es ist ein Bundle-Paket, das die drei meistverkauften Anwendungen von Tracker Software kombiniert
description_es    : PDF-XChange PRO es la solución PDF definitiva. Es un paquete que combina las tres aplicaciones más vendidas que produce Tracker Software
description_pt    : O PDF-XChange PRO é a derradeira solução para PDF. Trata-se de um pacote que combina as três aplicações mais vendidas produzidas pela Tracker Software
description_it    : PDF-XChange PRO è la soluzione PDF definitiva. È un pacchetto che combina le tre applicazioni più vendute prodotte da Tracker Software
description_nl    : PDF-XChange PRO is de ultieme PDF-oplossing. Het is een bundelpakket dat de drie best verkopende toepassingen van Tracker Software combineert
description_ru    : PDF-XChange PRO - это идеальное решение для работы с PDF. Это пакет, объединяющий три самых продаваемых приложения, которые производит Tracker Software
audit_schedule    : 
editor            : 
keywords          : 
licence           : https://www.pdf-xchange.com/licensing
homepage          : https://pdf-xchange.eu/DL/pdf-xchange.htm
package_uuid      : 31579bf4-2312-4a72-9881-ad408de50a37
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 6906db0f2253d1a05bd5933269255f91e0f830e192f01b7ce5152416aa5dbb6b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-23T12:03:18.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : aQI1MoHacKAXAQHwRsHlt2qqfgfsBJoJiC1WNQT715qWbh2ghWy/yZEG8o4wzSsdHArzBo6EFQnAw47DlU8khvX9LHqjDDhalHSzz/+0uTbxkn37SGIudCf3fxUXGGXr7llMlt1kNR+GHW2lGAFQfpBnleV9eVw3ZxNETymHHh+YRHEcIskfPRzxBOzhDY6gonraGUXG3oJmvF15Sk7oxo+TumsDROaLHoACzKf+TjROqSFIw7ZKGAGKM8xJYU3tzD998owrOTvEvyTy1RFVYJKslllhmmu4K8c9Ey5G+Nve7FDun7yG494Gbf6I6oaD33xhPIxltalA24+g0qDJgw==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('*.x64.msi')[0]
    # Installing the software
    install_msi_if_needed(bin_name)



# -*- coding: utf-8 -*-
from setuphelpers import *
import setupdevhelpers 
import re
import requests


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    download_dict = {
         "windows": "https://pdf-xchange.eu/DL/pdf-xchange.htm",
    }

    # Fetch the HTML content of the download page
    response = requests.get(download_dict[control.target_os], proxies=proxies)
    response.raise_for_status()
    page_content = response.content
    paragraph = bs_find(download_dict[control.target_os],"div", "class", "content p7ehc-1")
    
    # Extract the version from the h1 tag
    h1_tag = paragraph.find('h1')
    if h1_tag is None:
        print("Error: Could not find the h1 tag within the paragraph.")
        return package_updated

    version_text = h1_tag.text
    version = version_text.split(" ")[4]  # Assuming the version is the last element
    
    dict_arch = {
        "x64" : "Pro{}.x64.msi".format(version),
        "x86" : "Pro{}.x86.msi".format(version)
    }
    download_url = f"https://downloads.pdf-xchange.com/{dict_arch[control.architecture]}"
    latest_bin = download_url.split("/")[-1]

    # Deleting binaries
    for f in glob.glob("*.msi"):
        if f != latest_bin:
            remove_file(f)

    print("Downloading: %s" % latest_bin)
    wget(download_url, latest_bin, proxies=proxies)

    version =get_version_from_binary(latest_bin)
    # Updating the package
    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

2484de2acefed14fe8ec6d93c6fbf48396121c015fcf0baef8e3eb32ba31948a : ProV10.x64.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
33f1db2d67d072a6c90847098345e47b24579cfdb411b862d55010e48d72d8f0 : WAPT/control
6906db0f2253d1a05bd5933269255f91e0f830e192f01b7ce5152416aa5dbb6b : WAPT/icon.png
047982c8c5caba07a6fe9fb1128560212107e10c326eb4ce36bfb3904d2a0ebb : luti.json
47a1f9fa070a783f71c00c5ccc151e6dd823501b26010719b5e55ae2e854995e : setup.py
8cc7c98734d2f8b0b5631489962ca3e675f94f70e1465900c8311f5ee4baa83d : update_package.py