Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
GNU General Public License v3.0
29.84k stars 2.2k forks source link

[Bug]: PDF to Image fails #1519

Open Soulplayer opened 1 week ago

Soulplayer commented 1 week ago

The Problem

I try to convert a pdf to an image and it fails. Same PDF does convert to doc, can rotate and so on.

Version of Stirling-PDF

App Version: 0.26.1

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

https://localhost:8080/pdf-to-img

Docker Configuration

No response

Relevant Log Output

14:21:29.123 [qtp1521179441-62] INFO  s.software.SPDF.utils.PdfUtils - Images successfully written to byte array as a zip
14:21:29.129 [qtp1521179441-62] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.context.request.async.AsyncRequestNotUsableException: ServletOutputStream failed to write: null]
14:22:52.668 [qtp1521179441-1235] INFO  s.software.SPDF.utils.PdfUtils - Images successfully written to byte array as a zip
14:22:52.672 [qtp1521179441-1235] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.context.request.async.AsyncRequestNotUsableException: ServletOutputStream failed to write: null]
14:23:03.775 [qtp1521179441-1242] INFO  s.software.SPDF.utils.PdfUtils - Images successfully written to byte array as a zip
14:23:03.783 [qtp1521179441-1242] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.context.request.async.AsyncRequestNotUsableException: ServletOutputStream failed to write: null]
14:24:21.210 [qtp1521179441-1238] INFO  s.software.SPDF.utils.PdfUtils - Image successfully written to byte array
14:24:21.217 [qtp1521179441-1238] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.context.request.async.AsyncRequestNotUsableException: ServletOutputStream failed to write: null]
14:26:48.255 [qtp1521179441-58] INFO  s.software.SPDF.utils.PdfUtils - Images successfully written to byte array as a zip
14:26:48.257 [qtp1521179441-58] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.context.request.async.AsyncRequestNotUsableException: ServletOutputStream failed to write: null]

Additional Information

No response

Browsers Affected

Firefox, Microsoft Edge

No Duplicate of the Issue

Soulplayer commented 1 week ago

I think it is because it is a vector pdf?

Frooodle commented 1 week ago

Are you able to provide the file at all for us to debug?

Soulplayer commented 1 week ago

Bingokaart-StormStarter.pdf Here it is.

Frooodle commented 5 days ago

Seems to crash on PDFBox's
org.apache.pdfbox.rendering.PDFRenderer renderImageWithDPI

Not sure why it just halts.. doesn't return error etc

Will raise with them

Frooodle commented 5 days ago

oh wow... It just returned a result for me about 8 minutes later... I can only assume its due to it being vector art yes... even just to view the PDF itself on my PC takes about 30 seconds