Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Bug]: Auto Split not working

Open zhang0116 opened this issue 1 year ago • 3 comments

Installation Method

Docker

The Problem

I want to use the automatic PDF splitting feature, but after uploading, the downloaded file is the same as the original PDF and is not split. I found issue #743, and I believe my situation is the same. The QR code link is https://github.com/Stirling-Tools/Stirling-PDF. What should I do?

Version of Stirling-PDF

0.33.1

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

/auto-split-pdf

Docker Configuration

No response

Relevant Log Output

No response

Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

  • [X] I have verified that there are no existing issues raised related to my problem.

zhang0116 avatar Nov 21 '24 06:11 zhang0116

Hey @zhang0116! 👋 I'm here to help you with any bugs, questions, or contributions for Stirling-PDF. I'm a bot designed to assist you while waiting for a human maintainer.

I found a similar closed issue, Unable to open 2nd split file, which was resolved in version 0.21.0. The issue was related to the auto-split feature, and the solution was implemented in that version [1].

For your specific problem with the auto-split feature in version 0.33.1, ensure that the QR code in your PDF matches one of the specified QR codes that trigger a split:

  • "https://github.com/Stirling-Tools/Stirling-PDF"
  • "https://github.com/Frooodle/Stirling-PDF"

Additionally, check if the duplex mode is enabled, as it might affect the splitting process by skipping pages. If the issue persists, consider verifying your Docker setup or checking for any updates or patches that might address this issue in the current version.

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Nov 21 '24 06:11 dosubot[bot]

Sorry, there was a mistake in my previous statement. The QR code link is https://github.com/Frooodle/Stirling-PDF. Auto Splitter Divider (with instructions).pdf

zhang0116 avatar Nov 21 '24 06:11 zhang0116

For me it does not even work, it gives an error and there is no details in the Docker logs, no details in the UI. I also tried running the EXE and get no other details. Just error.

etlweather avatar Dec 17 '24 06:12 etlweather

Can anyone provide a example PDF you used for testing? I am unable to reproduce this

Frooodle avatar Feb 07 '25 11:02 Frooodle

I cant reproduce this issue, closing ticket for now unless example PDFs can be provided

Frooodle avatar Feb 07 '25 19:02 Frooodle

I just found this one. The order of operations matters. "remove-blanks" -> "auto-split-pdf" -> "ocr-pdf" works, but "ocr-pdf" -> "remove-blanks" -> "auto-split-pdf" doesn't.

autosplit_test.pdf ocr-rev.json ocr.json

benj919 avatar Feb 07 '25 21:02 benj919

Thanks will investigate

Frooodle avatar Feb 07 '25 21:02 Frooodle

Interesting - my PDF were already OCRed by my copier.

etlweather avatar Feb 07 '25 21:02 etlweather

I tried again with the latest 0.41.0, docker image stirlingtools/stirling-pdf:0.41.0 and I get the following error whether the PDF is OCRed or not:

Setting up fake worker failed: "error loading dynamically imported module".

etlweather avatar Feb 08 '25 08:02 etlweather