I want to export a pdf that is located in a container to be able to attach it to an email (via a script).
I checked a lot of solutions figuring out that there is no native way to do it.
I finally tried to do this via Base Element Plugin and its BE_ExportFieldContents function
It could work but the file that get exported (to temp directory) is an hex file, not a pdf (the format of the file inside the container). Yes this pdf have been inserted as file, not image in its container.
The documentation states that you can provide an export Path as optional argument, but in my case no second argument works. (result will be ?) and tried multiple options.
If someone have any clue of how I could solve this trivial need he's welcome.