Skip to main content
Participant
May 29, 2023
Question

Export PDF Page to Excel by script

  • May 29, 2023
  • 2 replies
  • 850 views

Hi Everyone,

I have a PDF with 7-8 pages and i need to export just page 3 to Excel.

Is there a way to do it by writing a script so that people can do it by just clicking on a link or object?

Thanks!!

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
May 29, 2023

Do you really want to convert the PDF page to an excel document? or do you want the data on the page in Excel?

If it is the later, then you'll get better results by extracting the data from the page and formatting it for import into excel. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
May 29, 2023

Not directly, but what you can do is export this one page as a new file (using extractPages), then use the saveAs method with the correct conversion string to save it as an Excel spreadsheet, then close the newly created file without saving it.

Note that the user will have to specify the path of the Excel file, though. If you want it done completely automatically you will have to use a folder-level script file, installed on the machine of each user.