Skip to content

restruct/docsys-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portable set of FUSE/DocSys CLI tools

To define named contants for the paths of various FUSE cli tools:
DocSysTools\DocSysTools::init(); in specific classes
OR include in global scope (eg in project _config.php – less optimal, results in two shell_exec commands on every request):
require BASE_PATH . '/vendor/restruct/docsys-tools/bootstrap.php' ); eg in your _config.php

To prevent running two shell_exec commands (to detect OS + version) altogether, define OS + version before instantiating DocSysTools;
define('DOCSYS_OS_NAME', 'macOS');
define('DOCSYS_OS_VERSION', 13);
DocSysTools\DocSysTools::init();

NOTE (OSX): apply +x/755 to (wkhtmltopdf) binaries on server:
chmod +x /path/to/file

NOTE (OSX): "“wkhtmltopdf” cannot be opened because the developer cannot be verified."
To remove the quarantine attribute from executable files on OSX: xattr -d com.apple.quarantine /path/to/file

Wkhtmltopdf static builds
Last version is 0.12.4, after that they stopped because of library version issues between systems.

NOTE: .deb extraction
(https://www.cyberciti.biz/faq/how-to-extract-a-deb-file-without-opening-it-on-debian-or-ubuntu-linux/)
unzipped & unzipped data.tar.xz, copied usr/local dir to docsys-tools/wkhtmltopdf-amd64-0.12.6-UbuntuXX.YY

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages