tis-pdftk-builder icon

PDFTK

Silent install package for PDFTK

3.10.0-2

  • package: tis-pdftk-builder
  • name: PDFTK
  • version: 3.10.0-2
  • categories: Office
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,cpe:/a:gnu:gpl_v2,wapt_private
  • target_os: windows
  • impacted_process: PDFTKBuilder
  • architecture: all
  • signature_date:
  • size: 3.29 Mo
  • homepage : https://angusj.com/pdftkb/

package           : tis-pdftk-builder
version           : 3.10.0-2
architecture      : all
section           : base
priority          : optional
name              : PDFTK
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : PDFTK Builder is a free graphical user interface for PDFTK
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : PDFTKBuilder
description_fr    : PDFTK Builder est une interface graphique gratuite pour PDFTK
description_pl    : PDFTK Builder to darmowy interfejs graficzny dla PDFTK
description_de    : PDFTK Builder ist eine kostenlose grafische Benutzeroberfläche für PDFTK
description_es    : PDFTK Builder es una interfaz gráfica gratuita para PDFTK
description_pt    : O PDFTK Builder é uma interface gráfica gratuita para o PDFTK
description_it    : PDFTK Builder è un'interfaccia grafica gratuita per PDFTK
description_nl    : PDFTK Builder is een gratis grafische interface voor PDFTK
description_ru    : PDFTK Builder - это бесплатный графический интерфейс для PDFTK
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,cpe:/a:gnu:gpl_v2,wapt_private
homepage          : https://angusj.com/pdftkb/
package_uuid      : ebc78d67-4eac-43fc-a076-b8aa98264344
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : cf26238442d2461e377b98fa19dcd7fe1e4a87560edddeff37a745d913356b8f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-01-25T09:21:16.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         : J3wfl5KWIq8/avLryCpfWgzavZFYri5mFAmf3SojMpB1OgmJrihuFfC1Lc0AaLXvnUSfekqMFPUVcLsbcR7Ud7e3xWKj7H5L5tJpo/lGImb14GSTS+rXM/VRc/STewgjwDxisl0GJNZzC+MSolZvP8nbx+OoQgrFcJ+TJncc8k0PTOBVEYP2jlKpyhTWmaH4E+KKF1n8/MOsxnCt8/97HhwKNLftJnxYBlB1PdxfGS1oOAoxnJg/giA8NT9Zn7AfUVWwaw/Pk18BfJdOOITA2tjLnoSaxVFnzsmpw+x+3V/CRbIi3B9bDC2NQ3TmKhaGxrYPQMFnRcKlVZgW9sq2FA==

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


def install():
    # Declaring local variables

    # Installing the software
    install_exe_if_needed(
        "pdftkb_setup.exe",
        silentflags="/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-",
        key="PDFTK Builder_is1",
        min_version=control.get_software_version(),
        get_version=get_version
    )


def get_version(app_registry_dict):
    return app_registry_dict["name"].split(" ")[-1]

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


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

    user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
    url_base = "https://angusj.com/pdftkb"
    download_url = f"{url_base}/pdftkb_setup.exe"

    latest_bin = download_url.rsplit("/", 1)[-1]
    latest_bin_extension = latest_bin.rsplit('.', 1)[-1]

    version = bs_find_all(url_base, "td", "valign", "top", proxies=proxies, user_agent=user_agent)[0].text
        
    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3a3f77002ee5baad302601f034d6b913b9755672b6fac911e8332b37e7a7f656 : WAPT/control
cf26238442d2461e377b98fa19dcd7fe1e4a87560edddeff37a745d913356b8f : WAPT/icon.png
9fe728d22d1637e3d8322835110646b6527ead3e56d67aa024957fcc9e32386c : luti.json
c6eacc1e93185d2e8608dbae643267c893108b699dfef22bcda885b484fafc86 : pdftkb_setup.exe
c8b4d9c5d99f4f388dee6cfda936e7d9656616e6cea080a727b9cf78c2337f0b : setup.py
1379325faebb9a2b4fc2a11436643af756055c65a016b147f36bcc584e1b80ed : update_package.py