[Bug]: PDF to image conversion incorrect with different page sizes (One Big Image)
Skillkiller opened this issue · comments
The Problem
If a PDF file has different page sizes and is to be converted to a large contiguous image, the image is created incorrectly. I have a test file with two portrait pages and one landscape page. The landscape page is cut off and there are black lines at the bottom.
I have tested it with the PNG file format.
Version of Stirling-PDF
0.26.0
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
http://localhost:8080/pdf-to-img
Docker Configuration
No response
Relevant Log Output
No response
Additional Information
Browsers Affected
No response
No Duplicate of the Issue
- I have verified that there are no existing issues raised related to my problem.
This PDF file is even worse:
Test_merged_unsigned.pdf
I can submit a corresponding fix later. However, if I am to do this, I need to decide how the pages should be aligned.
Should I centre the shorter images of a PDF page horizontally? Or should all images start on the left side?