Select pdf page output on shortcode [e2pdf-download id="x"]

Gravity Forms
13 December, 2021 15:51:02
gruptemple
Topics: 7
Messages: 16
Hi team,
I have a pdf with 2 pages.
In the confirmation message of the Gravity Forms form, I want a page of the pdf to download with a link and another page with another link.
In the documentation I have seen the optional parameter for the shortcode [e2pdf-view id = "1" page = "2"]
Is such an optional paramenter possible? [e2pdf-download id = "1" page = "1"] and [e2pdf-download id = "1" page = "2"]
Thanks so much!!
13 December, 2021 23:05:01
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

There is no "page" attribute currently, however you must be able to use "args" functionality to accomplish the task:

It must be used such "shortcode" constructions:

[e2pdf-download id="1" arg1="1"]

[e2pdf-download id="1" arg1="2"]

Inside E2Pdf Template it must be used actions on pages as attached on screenshot. Pages must be hidden by default via "1" = "1" with 1st action and with 2nd action it must be showed depending on your condition, in our case it must be used [e2pdf-arg key="arg1"] which equals to "1" for 1st page or "2" for 2nd page.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
14 December, 2021 01:33:19
gruptemple
Topics: 7
Messages: 16
Hi Team,

It Work fine!! :)

This resolves my issue.

Thanks so much!!