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

Spawning template page using the relative location of the page the spawn button is located.

Explorer ,
Feb 14, 2024 Feb 14, 2024

Copy link to clipboard

Copied

Hi all,

 

How do I spawn a page from the relative location of the page where the spawn button is hosted?

 

Kind regards,

 

Steve

TOPICS
JavaScript , Modern Acrobat , PDF

Views

138

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Feb 14, 2024 Feb 14, 2024

Hey,

 

The spawn call has the following params:

BarlaeDC_0-1707928456745.png

so the first param is nPage is that page to place the spawned template after if the bOverlay option is false.

 

This means that you could pass the current page number into that variable and it would spawn the page after that page.

the page can be found out from the properties of the button that you are wanting to spawn the page from.

Votes

Translate

Translate
Community Expert ,
Feb 14, 2024 Feb 14, 2024

Copy link to clipboard

Copied

LATEST

Hey,

 

The spawn call has the following params:

BarlaeDC_0-1707928456745.png

so the first param is nPage is that page to place the spawned template after if the bOverlay option is false.

 

This means that you could pass the current page number into that variable and it would spawn the page after that page.

the page can be found out from the properties of the button that you are wanting to spawn the page from.

Votes

Translate

Translate

Report

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