Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Export PDF Page to Excel by script

New Here ,
May 29, 2023 May 29, 2023

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!!

TOPICS
Edit and convert PDFs , How to , JavaScript , PDF
678
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2023 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2023 May 29, 2023
LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines