Generating pdfs that have private files in them

Could someone tell me if generating pdf files that have private images in them works?
While PDF generation with public images works, I’ve tested with private files and it just takes a longer time, ending with the image missing.


Private files are just for you to view. For including them in PDFs, they will have to be made public.


wkhtmltopdf does have the cookie option, which seems to be useful in this situation. Though looking at the code, the session id is already being set in options[“cookie”].