Skip to main content
Known Participant
June 28, 2023
Question

Template trouble

  • June 28, 2023
  • 1 reply
  • 427 views

I am trying to create multiple templates in a PDF. Currently page 1 generates the "Temp1" perfectly as a new page with a button click.

 

this.getTemplate("Temp1").spawn(true, false).(bRename,false);

 

When that page is generated, and I click the button on the new page, it generates the "Temp2" ontop of that page instead of as a new page.

this.getTemplate("Temp2").spawn(true, false).(bRename,false);

 

What do I need to do?

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
June 28, 2023

Your use of the method spawn is not correct. 

Known Participant
June 28, 2023

How should it look? Is the script for the first template wrong even though it generates the template as desired?

Bernd Alheit
Community Expert
Community Expert
June 28, 2023

Read the documentation of the spawn method.