'Controlling Zoom in & out features in apps (have zoom/scale capability) from another android app programatically

Can we control zoom in & out function in apps like pdfreader, Image viewer from another app programatically with service running in background. I'm trying to make pdfreader and imageviewer apps (i.e. having zooming / scaling capability) to zoom in & out programatically. I've doubt that pdfreader, imageviewer and other apps have different zooming/scaling methods. How to achieve that programatically?

Right now I'm just researching about posibilities to control zooom in & out programatically.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source