Bulk convert jnt to pdf format

Asked By 0 points N/A Posted on -
qa-featured

Hello Techyv Experts,

I am in search of a tool for command line conversion that will bulk convert jnt to PDF format.

Please help me by providing a solution to automate this conversion.

Waiting for a perfect solution,

Angela D Sloan

SHARE
Answered By 0 points N/A #198626

Bulk convert jnt to pdf format

qa-featured

You can use this command line to convert your JNT files to PDF:

This Cygwin cmd_script is able to print JNT files to PDF, if you have PDF creator installed in your computer, and configure it as your default printer.

Execute this script in the directory containing JNT files.

#!/bin/bash

 

PDFDIR="pdfs"

JOURNAL_EXE="C:Program FilesWindows JournalJournal.exe"

AUTOSAVE_FNAME_FLAG="<REDMON_DOCNAME_FILE>"

PWD_CYGWIN_FORMAT="$(pwd -P)"

PWD_WIN_FORMAT="$(sed -e 's|/|\|g'

                        -e 's|^.cygdrive.||g'

                        -e 's|^(.)|1:|g' <<< $PWD_CYGWIN_FORMAT)"

AUTOSAVE_DIR_WIN_FORMAT="$PWD_WIN_FORMAT"''"$PDFDIR"

 

# set up PDFCreator autosave

REG ADD 'HKEY_CURRENT_USERSoftwarePDFCreatorProgram' /f /v UseAutosave /d 1

REG ADD 'HKEY_CURRENT_USERSoftwarePDFCreatorProgram' /f /v Autosavedirectory /d "$AUTOSAVE_DIR_WIN_FORMAT"

REG ADD 'HKEY_CURRENT_USERSoftwarePDFCreatorProgram' /f /v Autosavefilename /d "$AUTOSAVE_FNAME_FLAG"

 

for file in *.jnt; do

    file_w_path="$PWD_WIN_FORMAT"''"$file"

    eval 'cygstart ''"'"$JOURNAL_EXE"'"'' /p '"'"'"'"$file_w_path"'"'"'"

#strip 's cygstart   "  c:prog…    "   /p   '  "  c:home…   "  '

    sleep 0.5 # just in case

done

 

Related Questions