|
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 |
Answered by
amaitland
Jul 16, 2024
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: |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OffScreen and headless are different things.
CefSharp.OffScreenis 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.