Search found 4 matches

by iwishiknew
18 Mar 2019 08:14
Forum: DOS Batch Forum
Topic: Splitting PDFs by page count with pdfgrep and pdftk
Replies: 5
Views: 5436

Re: Splitting PDFs by page count with pdfgrep and pdftk

Awesome! Thanks that is definitely a step in the right direction. Thank you so much for your help penpen. Something that didn't occur to me until I was looking at the output, currently it's splitting the list correctly, however, it's only getting the first page of the two page letters, is there a wa...
by iwishiknew
15 Mar 2019 12:57
Forum: DOS Batch Forum
Topic: Splitting PDFs by page count with pdfgrep and pdftk
Replies: 5
Views: 5436

Re: Splitting PDFs by page count with pdfgrep and pdftk

To clarify, the part that I need help with is looping through the pages.txt file created by the first bat file and assigning the contents to the correct variable. Something along the lines of: line 1 = i line 2 = j If line 2 = i+1 then add i to %1page% else, add i to %2page% delete line 1, loop unti...
by iwishiknew
12 Mar 2019 14:44
Forum: DOS Batch Forum
Topic: Splitting PDFs by page count with pdfgrep and pdftk
Replies: 5
Views: 5436

Splitting PDFs by page count with pdfgrep and pdftk

Hello! I'm attempting to put together a batch file that will split a pdf consisting of 1 page and 2 page letters into two pdfs based on page count. What I've got so far is pdfgrep -n -r "Id Number: L[0-9]{8}">>grep.txt for /f "tokens=2 delims=:" %%G in (grep.txt) DO @echo %%G>>pages.txt del grep.txt...