1. Is it possible to get the upload image name with multiple upload field in pdf
2. Is it possible to get the upload image caption in pdf which is upload from gravity form
We are using the following code to display images in dynamically in pdf
[e2pdf-format-output explode="," explode_filter="array_filter" filter="trim" output="{0}"]{Upload:1},{Upload:2},{Upload:3},{Upload:4}[/e2pdf-format-output]
6 September, 2023 08:59:14
E2Pdf
Support
Topics: 7
Messages: 3573
Hello,
Unfortunately, there is no default function to get the file name. You can try to accomplish the task by adding a custom PHP filter to your themes functions.php or as a PHP snippet: https://codefile.io/f/Uip5ymJdJe
After the snippet is added, it must be possible to use the shortcode to output the filename:
If under "image" caption you mean the data added to the file in WordPress directly - you can try to modify the code to get the attachment ID by the URL and output the caption from the attachment but unfortunately, we can't provide you with that code example directly.
We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according our to our Cookie Policy.