Issue #20675:fix persistentprint to allow printing multiple documents