How should I structure this though, this is what is confusing me:
RewriteRule ^book\.php$ http://example.com/book/%1.pdf [R=301,L]
The original rule which I have working (obviously without a redirect) is:
RewriteRule ^book/([-a-zA-Z0-9_]+) /book.php?name=$1 [L]
I'm having difficulties putting the two together, I have tried a few different variations with no success.