Since scripting is not that powerful in case of Preview.app, I am trying to find the solution with Automator. Here's the problem:
I've got a protected pdf file of 130 pages. It happens that I can't print it, but I can save it page by page as jpg file. The problem is when I save it as jpeg, it closes the original file and opens the newly created jpeg file. So the task is pretty much simple (with the proper knowledge of variables and loops).
I need to make a loop, that would open my pdf file with Preview.app, go to page number i, save the document as i&".jpg", wait a second and close Preview.app.
- I can't find any example of building a loop.
- The Russian translation is disgusting (and I am not aware of a simple way of making it English once again), which makes the task even harder.
- I can't find any example of using variables as a parameter of the recorded 'Type' command.
After googling for a while, it looks like the best solution for this simple task is to do that manually...