LPS-37491 Fix error (was writing empty files)
Merge branch 'LPS-37491_fix_transfer' into LPS-37243_PDFBOX_version