I'm using the code below to generate PDF from multipage TIFF file. For some reason, for a specific TIFF with 4 pages, generated PDF has only one page. When I substract or add fifth page to input TIFF, PDF generation is successful.The TIFF file, which causes problems, does not seem to be corrupted and can be opened normally. Am I missing some configuration or doing something wrong? The logs show that the job completed successfully.
I would be grateful for any hint how to solve this problem.