> For the complete documentation index, see [llms.txt](https://docs.sharinpix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sharinpix.com/documentation/features/download-images/personalized-image-download-with-annotations-developer-oriented.md).

# Personalized image download with annotations (Developer-Oriented)

The present article will show how it is possible to create a custom hyperlink that will download the image along with its corresponding annotations.

{% hint style="info" %}
**Info:**&#x20;

The **Visualforce Page** and **Apex Class**  used in the present article can be found on GitHub by following this link: <https://github.com/SharinPix/demo-apex/tree/custom-annotation-download>
{% endhint %}

* In the current context, the Visualforce Page is launched from a **custom Lightning action** found on the record page of the **Contact** object. The screenshot below describes the custom lightning action being executed.

<figure><img src="/files/Vqm1BWsJkIjrHhRmulxz" alt=""><figcaption></figcaption></figure>

* Upon clicking on an image's thumbnail, the **Download Image** hyperlink appears.

![](/files/p3fnZnxMgsERbF3tYo7D)

* When clicking on the **Download Image** hyperlink, the image that is currently being viewed is downloaded along with its annotations.

{% hint style="warning" %}
For the example to work, the image to be downloaded must already possess one or more annotations.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sharinpix.com/documentation/features/download-images/personalized-image-download-with-annotations-developer-oriented.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
