Pass thru does not work for me when I follow the instructions exactly. The PDF shows up as blank in the browser whether I send it as inline or attachment.
To work around this, I am saving the file out to the filesystem and then sending it through as a file. That works (so I know Prince is running fine), but it is not ideal, because I don't want to write to the filesystem.
Ideally, I would like to save the output to a variable/string and then I could echo it AND send it as an attachment via email.
To work around the passthrough problem, I tried using ob_start() and ob_get_clean() etc. and put pass thru in the middle. That does capture the output in a variable, but when I try to output that to the browser, it fails also. Is it something in the encoding that is causing this?
To work around this, I am saving the file out to the filesystem and then sending it through as a file. That works (so I know Prince is running fine), but it is not ideal, because I don't want to write to the filesystem.
Ideally, I would like to save the output to a variable/string and then I could echo it AND send it as an attachment via email.
To work around the passthrough problem, I tried using ob_start() and ob_get_clean() etc. and put pass thru in the middle. That does capture the output in a variable, but when I try to output that to the browser, it fails also. Is it something in the encoding that is causing this?