0 votes
572 views
I’m using PTXprint to export my Paratext project text to PDF files.

If I choose “Multiple Books” under the “Basic”, “Project and Scope” section in PTXprint, and select all the books of the Bible, this will create one PDF file which contains all the books of the Bible.

Is there a way to have each book of the Bible exported to a separate PDF file? I know I could select one book, click “Print”, then select another book, click “Print”, but that would be tedious. Is there a way to do it in one step?
PTXprint by (495 points)
recategorized by | 572 views

2 Answers

+3 votes
Best answer

Hi @bit!
Unfortunately we removed this option from the PTXprint UI (to produce individual PDFs for each book) about a year ago due to 3 factors:
(i) very few people used it (you’re the 2nd person who has asked about it since we removed it!)
(ii) it created a lot of additional complications in the code which we would rather not have to deal with
(iii) it is possible to do what you are requesting through the command-line interface (see details below)

Essentially, if you open a command prompt and type in this command, you’ll get a PDF of just that book (e.g. MRK):
"C:\Program Files\PTXprint\PTXprint.exe" -c ConfigName -b MRK -P ProjID

Now, by wrapping that command in a loop with a list of books, it will run it once per book, and you’ll end up with individual PDFs. Here’s what it would look like as a batch file (and you will have to put your own specific details into the set commands highlighted in yellow):

Unzip this .bat file and edit as needed: PTXprintAsSeparatePDFs.zip (520 Bytes)

Note that there are many other command-line parameters which actually work when used, even though the regular -h (–help) displays nothing {we’re working on that issue!}

by (3.2k points)

Thank you so much! I can edit the .bat file to select the books I want and use this script to produce PDF files.

Just a note for any lurkers: the produced PDF files end up in C:\My Paratext 9 Projects\PROJECTCODE\local\ptxprint\ or equivalent.

Is there a way to get PTXprint to print just one chapter?
0 votes

This is an addition to Mark P's answer. Here is the script in a copy and pastable format:

@echo off
REM This batch file was created to make it easy to create
REM separate PDFs for each scripture book using PTXprin's
REM commandline options (by Mark Penny, July 2022)

set PtxtDir=C:\My Paratext 9 Projects
set Program2Use="C:\Program Files\PTXprint\PTXprint.exe"
set PrjId=WSGlatin
set ConfigName=Default
set Booklist=MAT MRK LUK JHN ACT REV

For %%B IN (%Booklist%) DO (
echo -----------------------------------
echo === producing PDF for %%B . . .
%Program2Use% -c %ConfigName% -b %%B -P %PrjID%
)

pause

by (495 points)

Related questions

0 votes
2 answers 85 views
In both the base LTR project and the transliterated RTL project PTXprint behaves as expected and produces usable output. But ... Win 10 Pro 22H2 build 19045.5608 PTXprint v2.7.27
Mark Skinner 104 asked Mar 21, 2025
+1 vote
5 answers 385 views
I am trying to produce nice looking PDFs of the translated books. I have custom.sty in our project folder. Changes I make to ... PDF. What am I missing? Using Paratext 9.0.103.41
Iska 164 asked Nov 11, 2020
0 votes
2 answers 296 views
I am working on an LTR transliteration of an RTL project. For some reason, the directionality of punctuation around numerals ... over from the source project that I need to change?
DVM 175 asked Jul 8, 2021
0 votes
3 answers 485 views
Hi Friends, I have a list of Scripture references tagged as follows (this is justified right in Ptxt, mind you, which ... identified and set. Where might that be? anon303076 (SAB)
anon303076 118 asked Mar 25, 2021
0 votes
3 answers 347 views
Now and then I've encountered an issue where I can't use Export to PDF for a particular project, where the ... not installed for all users will also effect users of PTXPrint.
[Expert]
sewhite
3.3k
asked Feb 27, 2020
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And I tell you that you are Peter, and on this rock I will build my church, and the gates of Hades will not overcome it.
Matthew 16:18
3,037 questions
5,994 answers
5,661 comments
2,022 users