# Export existing Notepad documents To allow others to export existing documents as PDF or DOCX files within Workshop, use the **Notepad: Export Button** widget. This can be used in conjunction with the **Notepad: Embedded Document** widget to enable edit and export workflows. ## Notepad: Export Button widget After adding the **Notepad: Export Button** to your Workshop application, create or reference a variable containing the document RID. This variable can optionally be the output document RID of the **Notepad: Linked Documents**, **Notepad: New Notepad Button**, or **Notepad: Embedded Document** widgets. ### Options * **Output Filename:** Define the file name of the downloaded document. Defaults to the name of the Notepad document if empty. * **Export Format:** Select whether the document is exported as a PDF or DOCX file. * **Button Display:** Define layout options for the export button. * **Button Text:** Define the text for the export button. Defaults to `Export` if empty. ### Notepad: New Notepad Button widget The **Notepad: New Notepad Button** widget allows a user to [generate a new Notepad document and optionally export it from within Workshop](../workshop-templates/index.md).