Zooming an Image Drawn on a PDF Document

At some point this week one of you asked whether it is possible to zoom an image that has been put on a PDF document. The answer is: Yes, it is absolutely possible!

Zooming an Image Drawn on a PDF Document

In fact, we are using this handy feature in our new Android development: An image to PDF converter called PicsPDFun.

Let’s see how to programmatically zoom an image in a context like the one described below.

The following two lines of code should be set according to the zoom level you want to obtain:

Figure 1. Zoom level 2:1 (200%)

Figure 1. Zoom level 2:1 (200%)

Figure 2. Zoom level 1:1 (100%)

Figure 2. Zoom level 1:1 (100%)

Figure 3. Zoom level 1:2 (50%)

Figure 3. Zoom level 1:2 (50%)

Figure 4. Zoom level 1:4 (25%)

Figure 4. Zoom level 1:4 (25%)

That’s it! We hope you’ve liked today’s tip.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *