Page 1 of 1
Check if PDF is damaged
Posted: Mon Jan 22, 2024 12:24 pm
by magnussandstrom
Hi, one of our customers recently started having trouble with generating their PDF files, and some files are corrupt.
The files is going to a fully automated order flow in our Switch. But when a damaged PDF arrives the files get stucked in the Pitstop Server process and wont release until you manually kill the process in windows. I've also tried using Fastlane but with the same result. I need to automaticaly check if the file is damaged or not to be able to send an email to our customer, but since the file gets stucked in the flow I cannot do this. Any suggestion how to solve this?

- corrupt.png (88.97 KiB) Viewed 5244 times
Re: Check if PDF i damaged
Posted: Mon Jan 22, 2024 12:35 pm
by rhd_ole
magnussandstrom wrote: ↑Mon Jan 22, 2024 12:24 pm
Hi, one of our customers recently started having trouble with generating their PDF files, and some files are corrupt.
The files is going to a fully automated order flow in our Switch. But when a damaged PDF arrives the files get stucked in the Pitstop Server process and wont release until you manually kill the process in windows. I've also tried using Fastlane but with the same result. I need to automaticaly check if the file is damaged or not to be able to send an email to our customer, but since the file gets stucked in the flow I cannot do this. Any suggestion how to solve this?
corrupt.png
This is interesting since I was going to suggest using FastLane since that is how we do it currently since we ran into your issue with Pitstop Sever, same issue it would just break the PS app in switch.
Our flow is completely automated as well from submission to press.
For any non-readable or damaged PDFs, they fail to problem jobs and we use the fail message to notify the submitter of the issue. We switched to this when FastLane came out and haven't had issue.
Re: Check if PDF i damaged
Posted: Mon Jan 22, 2024 12:38 pm
by magnussandstrom
Interesting, could you give me a screenshot of your Fastlane settings?
Re: Check if PDF is damaged
Posted: Mon Jan 22, 2024 12:50 pm
by rhd_ole
Sure. They are really basic, only using the presets and traffic lights, although I don't think any file has ever went down the fail path just actually fails to problem jobs.
Here you go!

- Screenshot 2024-01-22 at 5.49.52 AM.png (249.05 KiB) Viewed 5232 times
Re: Check if PDF is damaged
Posted: Mon Jan 22, 2024 12:54 pm
by magnussandstrom
Thanks, what settings are you using in Switch Preferences > Error handling > Abort processes after (minutes) ?
Re: Check if PDF is damaged
Posted: Mon Jan 22, 2024 1:42 pm
by rhd_ole
It's just the default, 20min. These failures are about immediate, they don't hang out, just fail.
Re: Check if PDF is damaged
Posted: Mon Jan 22, 2024 2:13 pm
by freddyp
I submitted a feature request for the FastLane app to send the job along the error connection instead sending it to Problem jobs when the input file is not a valid PDF. The error connection is there and it makes for a nicer flow design.
Re: Check if PDF is damaged
Posted: Mon Jan 22, 2024 2:17 pm
by rhd_ole
freddyp wrote: ↑Mon Jan 22, 2024 2:13 pm
I submitted a feature request for the FastLane app to send the job along the error connection instead sending it to Problem jobs when the input file is not a valid PDF. The error connection is there and it makes for a nicer flow design.
I agree, I built the flow thinking it would use the error connections but I've yet to see one go down the fail path, so thanks for doing that.
Re: Check if PDF is damaged
Posted: Mon Jan 22, 2024 2:47 pm
by magnussandstrom
Thanks Freddy!