# Add PDF generation Restlet code to Netsuite

Download the below Restlet code (Right click -> Save link as->Extract the .js file from the zip file) and follow the steps given below.&#x20;

The Restlet code allows Invoice PDFs to be shared with customers through PDF download links on the application.

{% embed url="<https://www.payorcrm.com/wp-content/uploads/2024/06/getInvoicePdf.zip>" %}

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


---

# Agent Instructions: 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:

```
GET https://help.payorcrm.com/connecting-to-qb-desktoponline/netsuite/add-pdf-generation-restlet-code-to-netsuite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
