tis-pdfsam

4.1.4-1
PDFsam Basic or PDF Split and Merge is a free and open-source cross-platform desktop application to split, merge, extract pages, rotate and mix PDF documents.
2766 downloads
Download

  Description 

  • package : tis-pdfsam
  • version : 4.1.4-1
  • architecture : x64
  • categories : Utilities,Office
  • maintainer : WAPT Team,Jimmy PELÉ
  • description : PDFsam Basic or PDF Split and Merge is a free and open-source cross-platform desktop application to split, merge, extract pages, rotate and mix PDF documents.
  • locale : all
  • target_os : windows
  • min_os_version : 6.0
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://github.com/torakiki/pdfsam/releases
  • installed_size : 131706880
  • impacted_process :
  • description_fr : PDFsam Basic ou PDF Split and Merge est un logiciel libre multiplateforme pour diviser, fusionner, extraire des pages, faire pivoter et associer des documents PDF.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Andrea Vacondio
  • licence : AGPLv3
  • signature_date : 2020-08-03T11:54:52.865293
  • Homepage : https://pdfsam.org/
  • Depends :

  Setup.py 

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

uninstallkey = []

#https://github.com/torakiki/pdfsam/wiki/Properties-and-arguments

# Declaring specific app values (TO CHANGE)
bin_name_string = 'pdfsam-%s.msi'
silent_args = 'PREMIUM_MODULES=false CHECK_FOR_NEWS=false CHECK_FOR_UPDATES=false SKIPTHANKSPAGE=true DONATE_NOTIFICATION=false PLAY_SOUNDS=false'
app_name_icon = 'PDFsam Basic'

def install():
    # Specific app values
    package_version = control.version.split('-',1)[0]

	# Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

    # Installing the package
    install_msi_if_needed(bin_name_string % package_version
        ,properties=silent_args
        ,min_version=package_version)

    remove_desktop_shortcut(app_name_icon)

	# Return used storage of the program. (place it on the bottom)
    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print("Storage used: " + str(free_space_after_diff))


def update_package():
    print('Download/Update package content from upstream binary sources')
    from waptpackage import PackageEntry
    import json

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Specific app values
    app_name = control.name
    url_api = 'https://api.github.com/repos/torakiki/pdfsam/releases/latest'

    # Getting latest informations from Github API
    json_load = json.loads(wgets(url_api,proxies=proxy))
    for download in json_load['assets']:
        if download['browser_download_url'].endswith('.msi'):
            url_dl = download['browser_download_url']
            break

    version = (url_dl.split('-')[-1]).replace('.msi','')
    latest_bin = bin_name_string % version

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)

		# Change version of the package
        print('Writing ' + version + '-0 in WAPT\\control')
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())

        pe.version = version + '-0'
        pe.save_control_to_wapt(os.getcwd())
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)


if __name__ == '__main__':
    update_package()


										

  Changelog 


https://github.com/torakiki/pdfsam/releases
  manifest.sha256 
[[".vscode/launch.json","a9a5d4f2034c62f5ee173b543fbce9852483abfe0db40027f09d17e9cf69debb"],[".vscode/settings.json","7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012"],["Jenkinsfile","d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d"],["pdfsam-4.1.4.msi","8fb5f22885bafeded489a57e278f6cea77a96aa36529cc4f9b3da84479215852"],["README.md","f5cfeaa846fc2ac97784239505b9ac9cc5ce940c72c7412ac89028fa2c3dba2d"],["setup.py","0ae58d9b0919c89e35243c00a4363da7d4870981b4ae3629e6629eb0aae7a500"],["WAPT/changelog.txt","ba8da87e49c35f9ee9e7f9476e60419718cfb338daf311dca605a05bbd813460"],["WAPT/icon.png","7332a01aa80f667ce3cd79545bc9d3974baabe25bc7bc476deaee6bf5df4ad11"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","fee1eb332278254ffd2f939724bf863dd4b0421e49e2d7b0de75015ca5ea996d"]]