Pattern-Projector / pattern-projector

https://www.patternprojector.com/
MIT License
81 stars 18 forks source link

Chalk and notch stitched pattern not exporting correctly #320

Open courtneypattison opened 1 month ago

courtneypattison commented 1 month ago

From projectors for sewing: "... I stitched a letter pdf, but when opening in PP or adobe, says file has an error. I stitched another pattern (same maker-it's a small file with a neckline variation added later.) When opening (saved pdf) in PP, it opened ok, but didn't save the layers chosen or tiles deleted, but when opened in adobe, it did. This was the same pattern co. for both--I don't know if that's a factor..."

Chalk and notch pony tank using Firefox.

Tagging @cfcurtis in case you have any ideas for this one!

cfcurtis commented 1 month ago

I'm going to guess it's an upstream issue with pdflib (I had the same issue with Jalie). I'm on vacation without a computer at the moment but can take a look next week to see if anything jumps out!

courtneypattison commented 1 month ago

Ooo have fun!!!

cfcurtis commented 1 month ago

Okay, I spent some time on this and while I don't have a Chalk and Notch pattern to test, I did narrow down the Jalie issue to a problem with encryption. Since encryption is so common in patterns I'm going to guess it might be the same issue, and it's a relatively new feature in pdf-lib.

Of course debugging this is tricky (encryption is one of the things that pdf-mangler struggles with, so I can't very well submit an issue with a test document). That said, it can be confirmed by removing encryption (with PDFStitcher or probably Sejda) and seeing if that makes PP stitch saving behave.

courtneypattison commented 1 month ago

Thank you so much for looking into this issue! I've reached out to Chalk and Notch to see if we can get a copy to reproduce this issue. I'll suggest removing the encryption to see if that helps in the meantime.