Skip to main content
Participant
May 29, 2024
Question

How to realize Trusted function in button by click

  • May 29, 2024
  • 3 replies
  • 747 views

Hello and good day, please give me example of code should be added in js script to run extractPages function like trusted or whichever I can by push button and run script like

this.extractPages(0,0, "myfirstpage.pdf")

this.extractPages(1,1, "mysecondpage.pdf")

this.extractPages(15,16 "mypages 15-16.pdf"), etc 

Thanks and best regards!

This topic has been closed for replies.

3 replies

Nesa Nurani
Community Expert
Community Expert
May 29, 2024

If you don't know how to make a folder level script, you can run your script from console or create an action, it's easier.

If you still want to run your script from a button, you can add your file to privileged location in preferences under Security(enhanced):

Participant
May 29, 2024

Tell me please how to createv action 🙋 I tried to add file and still not working🥺

Nesa Nurani
Community Expert
Community Expert
May 29, 2024

Read this about trusted functions (there are also script samples).

https://www.pdfscripting.com/public/Using-Trusted-Functions.cfm 

Participant
May 29, 2024

Yes I already read but links in post not correct and not possible to realize function with my function, I already tried, give me please code. Thanks

Bernd Alheit
Community Expert
Community Expert
May 29, 2024
Participant
May 29, 2024

Could you just give me code and clear instructions how to, I read this post but have no idea how to do it 😇