-
I'm making a web server that returns PDFs rendered from HTML templates. Right now I have to create a temporary file, pass its name to the From what I can tell, it seems that CEF's printToPDF method returns a base64-encoded PDF bytes, or alternatively an experimental |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can try out the dev tools client. Here is an example for screenshots but the CDP printToPdf API you mentioned is also available: |
Beta Was this translation helpful? Give feedback.
OffScreen and headless are different things.
CefSharp.OffScreen
is technically a non-headless browser even though it renders to a bitmap.Try switching to puppeteer sharp, you should be able to get the PDF in memory.