Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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.

Test

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

Test.pdf

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
Test_merged_unsigned(1)

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?