In the Quick Boxes above the description are a number of "S". In the section about Quick Bars explains the meaning of the "S". There have been some additional security added and additional code need to be used. This is also noted in the red note:
Privileged versus non-privileged context provides more information about the process.
You will need to add the special code in a special folder for Acrobat/Reader scripts.
GKaiseril thank you for quick replay.
I read all your links and suggestions but can you explain how it is related with my question, please? (I am beginner)
How "special code" can change resolution of PDF or JPG I am saving to? Where can I read about "special code" API/functions which allow me manipulate resolution?
It is worth to mention problems starts when I was trying convert bigger PDF to JPEG. Adobe Acrobat shows error: "The image is too wide to output. Please crop it or reduce resolution and try again".
Before you start worrying about image resolution, you might want to see if your script will even save a file without errors. Then you can research about image resolution within a PDF.
An image within a PDF is an object. The only way manipulate image down sampling resolution throughout the entire PDF is to use the Optimizer available in Acrobat Professional.
You might want to review the PDF specification for information about how images are really stored within a PDF.
My point is - why I can do this using Adobe Acrobat Professional XI v11.0.10 but can't be easily done by script - for example function "SaveAs" with additional attribute :-)
Thank you for all suggestions. I will start from inspecting all images/objects in PDF and try resize them.
A script can't do everything that can be done in the application's GUI, not
even close to it.