Extracts 'zip' files, converts 'Word', 'Excel', and 'html'/'htm' files to 'pdf' format. 'Word' and 'Excel' conversion uses 'VBScript', while 'html'/'htm' conversion uses 'webshot' and 'PhantomJS'. Additionally, the package merges 'pdf' files into a single document. This package is only supported on 'Windows' due to 'VBScript' dependencies.
LJexm is an R package designed to automate the process of extracting ZIP files, converting 'Word', 'Excel', and 'HTML/HTM' files to PDFs, and merging PDF files in a structured order.
To install LJexm from source, run:
# Install from source
install.packages("LJexm", repos = NULL, type = "source")
Load the package and run the application:
library(LJexm)
run_app()
conversion_log.txt during execution.message() in R.If you need to check errors manually before running the script, you can view the log file:
log_file <- file.path("path/to/your/folder", "conversion_log.txt")
if (file.exists(log_file)) {
log_content <- readLines(log_file)
message(log_content, appendLF = TRUE)
}
.docx and .xlsx files to PDFs using VBScript..html and .htm files to PDFs using webshot and PhantomJS..docx, .xlsx, .pdf, .html, and .htm files.message().This package requires the following dependencies:
fspdftoolsrstudioapiutilswebshotThese dependencies will be automatically installed when you install LJexm.
This package is licensed under GPL-3.