Ensuring consistent PDF opening behavior
Hi all,
On the left, there is a document-opening function. If a PDF was saved in Photoshop, it will open without any additional parameters. However, if the file was created in Illustrator or InDesign, the specified parameters will be applied when opening it.
Now imagine a situation where layouts from a client come in different formats: some files were saved via Photoshop, others via Illustrator. Let’s say there are ten layouts in total, and five of them have different color modes, resolutions, and layer structures. In this case, during batch processing, you can’t be completely sure that each document will open with the desired settings — some may be opened while ignoring them.

In my opinion, it’s not possible to change this behavior directly through JSX. However, this isn’t a major problem if you know exactly where the relevant data is stored. It’s possible to use a Node.js library to modify or remove the necessary entries before opening the document — most likely in the XMP metadata. I haven’t worked with this before, so I’d appreciate it if you could recommend which Node.js library to use and how to delete or modify a specific line, if that’s possible in the context of this task.
Thank you in advance!
