pdf improvements