MyNixOS website logo
Description

Extract, Convert, and Merge 'pdf' Files from 'zip' Files.

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

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.

Installation

To install LJexm from source, run:

# Install from source  
install.packages("LJexm", repos = NULL, type = "source")  

Usage

Load the package and run the application:

library(LJexm)  
run_app()  

Error Handling

  • Errors and status messages are logged in conversion_log.txt during execution.
  • After processing, messages are printed using message() in R.

Manually Checking Errors (If Needed)

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)  
}  

Features

  • Extracts ZIP files in a given directory.
  • Converts .docx and .xlsx files to PDFs using VBScript.
  • Converts .html and .htm files to PDFs using webshot and PhantomJS.
  • Merges PDF files in alphabetical order, ensuring correct sequencing.
  • Case-insensitive processing for .docx, .xlsx, .pdf, .html, and .htm files.
  • Automatically logs errors and prints them in R using message().
  • Works in both RStudio and Base R.

Dependencies

This package requires the following dependencies:

  • fs
  • pdftools
  • rstudioapi
  • utils
  • webshot

These dependencies will be automatically installed when you install LJexm.

License

This package is licensed under GPL-3.

Metadata

Version

1.0.5

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows