Improve page query syntax in print