PDF manipulation best practices