Using sed with PDF file

I’m trying to use “do shell script sed…” with a PDF file to read a specific line of the PDF file. When I’m working with grep, I need to specify the -a option to allow it to read binary files as text, does sed have a similar option?

Sample of what I’m using…

sed -n 52,53p /Users/me/Desktop/test3.pdf

Of course I spent hours working on this and the minute I posted the question, I figured out my issue…

do shell script "tr '\\r' '\\n' < " & (quoted form of POSIX path of sourcePDF) & " | sed -n 52,53p"