How to Email Only One Page from a PDF Using Acrobat JavaScript
Question details
The user wants to create a form button in Adobe Acrobat that uses JavaScript to prepare and email a specific single page from a multi-page PDF document, ensuring the process works for Adobe Reader and mobile users.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Automating the extraction and emailing of a single PDF page using an interactive form button and custom JavaScript.
- Observed behavior
- Standard JavaScript methods like deletePages require Acrobat Pro, causing the script to fail when executed by end-users operating the free Adobe Reader software.
Verify whether the end-users of your PDF form will be using Adobe Acrobat Pro or the free Adobe Reader, as JavaScript permissions for page manipulation vary significantly between the two versions.
Attach the Required Page as a Separate PDF
This is the most robust method for users who only have Adobe Reader, as it bypasses the need for restricted page deletion scripts.
Because standard page manipulation methods like deletePages are heavily restricted in Adobe Reader, creating a script to delete unwanted pages often fails for end-users. Instead, preparing the specific page as a standalone PDF attachment ensures compatibility across all PDF viewers, including mobile applications.
Extract the specific page you want users to send and save it to your computer as a separate PDF file.
Open your main multi-page Acrobat form, navigate to the attachments panel, and embed the newly saved single-page PDF as a file attachment.
Write a JavaScript code for your form button to trigger an email that includes the embedded file attachment rather than the active parent document.
Use the deletePages Method in Acrobat Pro
If all users interacting with the form have Adobe Acrobat Pro, you can script the button to delete unwanted pages and email the remainder.
Easily Extract and Share PDF Pages with WPS Office
Writing complex JavaScript just to email a single page can be frustrating, especially with software limitations. WPS PDF offers a built-in, user-friendly interface to quickly extract, split, and share specific pages from any PDF document without writing a single line of code.
- 1. Open your PDF: Launch WPS Office and open your multi-page PDF document in the WPS PDF reader.
- 2. Extract the page: Navigate to the 'Page' tab on the top ribbon and select 'Extract Pages'. Choose the specific page number you want to isolate.
- 3. Save and Email: Save the newly extracted single-page PDF, then click the 'Share' or 'Email' icon to instantly attach it to a new message in your default email client.

Frequently Asked Questions
Why does my Acrobat JavaScript for deleting pages not work in Adobe Reader?
Adobe Reader restricts page manipulation functionalities like deletePages or extractPages for security and licensing reasons. These advanced JavaScript methods require Adobe Acrobat Pro to execute successfully.
Can I use JavaScript to silently email a PDF without user intervention?
No, modern PDF readers enforce strict security protocols. The mailDoc method will always prompt the user or open their default email client so they can review the email and recipient address before sending.
Is there a way to extract a PDF page on mobile using form buttons?
Mobile PDF viewers have extremely limited JavaScript support and generally do not support page extraction scripts. Providing the single page as an embedded attachment is a much more mobile-friendly workaround.




