-
Notifications
You must be signed in to change notification settings - Fork 209
Blank pages when returning buffer of generated PDF #82
Comments
I'm getting exactly the same thing. Thanks for letting me know that the data written to disk works!! |
Related to #87 |
I've think I replicated this locally. I can confirm:
My best guess on the reason is:
My first thought on a work-around would be to drop back to the file-system in case of large operations such as generating PDFs or setting content (see #87). This would require to catch the calls/responses and write/load from the FS instead of relying on the passed information. Does this match your impression @nesk ? |
The communication between PHP and JS is done through sockets, not through CLI operations, I don't thing the limits shown by xargs apply here. The real issue here is the poor implementation of the socket communication, the problem is described in rialto-php/rialto#12. Rialto should be entirely agnostic, I don't think we should try to fall back to custom implementations (like the filesystem one) for some specific methods. |
Ah okay. Good to know. Learned something more 👍 |
I'm trying to generate a PDF from an url and return this pdf without saving it to the server filesystem.
For testing purposes, I use the
path
option to actually generate a PDF on the filesystem. This generated PDF is absolutely fine whereas the one returned by Symfony in the client browser is blank, though the number of pages is alright.I had tried to return a
BinaryFileRespones
or aStreamedResponse
with no luck.Any hints appreciated
puphpeteer.log
The text was updated successfully, but these errors were encountered: