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

function to extract pages

Participant ,
Jun 21, 2023 Jun 21, 2023

Hi
Please, can anyone tell me if it is possible to create a function to extract pages containing a certain field from a pdf file?

TOPICS
JavaScript
639
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
2 ACCEPTED SOLUTIONS
Community Expert ,
Jun 21, 2023 Jun 21, 2023

Yes, it's possible, but the extractPages command can only extract a range of pages, so if the pages you want to extract are not sequential you'll need to run it multiple times, once for each page (or range of consecutive pages).

View solution in original post

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 ,
Jun 21, 2023 Jun 21, 2023

The page property of a field object gives you a page number or an array of page numbers (when there are multiple instances of the field).

View solution in original post

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 ,
Jun 21, 2023 Jun 21, 2023

Yes, it's possible, but the extractPages command can only extract a range of pages, so if the pages you want to extract are not sequential you'll need to run it multiple times, once for each page (or range of consecutive pages).

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
Participant ,
Jun 21, 2023 Jun 21, 2023
LATEST

Thanks for the information.
I would like to extract the field "SIGNATURE SURNAME NAME"
Can you please give me a function?

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 ,
Jun 21, 2023 Jun 21, 2023

The page property of a field object gives you a page number or an array of page numbers (when there are multiple instances of the field).

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