Exception when specifying format for page.GetPdfAsync
See original GitHub issueWhen specifying the format for pdf generation, an exception is thrown as a string is expected but an object is passed (of type PaperFormat
). The actual call site where the conversion should be done I think would be here
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
TargetClosedException after Page.CloseAsync() #1016
I'm facing with this exception when i try page.SetContentAsync with 160.000.000 characters and many images HTML string (1555 pages PDF). PS: I'm ...
Read more >How to use pdfkit npm in async manner
It is working in sync manner. I can explain it by giving an example- Suppose a request come to the application to generate...
Read more >Use PuppeteerSharp.Page.PdfStreamAsync in Puppeteer- ...
Open(await Page. PdfStreamAsync (new PdfOptions45 {46 Format = PaperFormat. ... ThrowsAsync<ArgumentException>(async () =>99 {100 await Page.
Read more >How to use the pdfjs-dist.getDocument function in pdfjs-dist
getDocument(fileArray) .then((pdfDocument) => { // get all the pages from pdf const numPages ... Document loaded, specifying document for the viewer. self.
Read more >Capacitor writeFile - Saving pdf file is in invalid format
No exception or warning. The only issue is an error from the google pdf app saying the file is invalid when it tries...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@lvmajor yeah, I wanted to get you unblocked 😃
Ahah ok no problem I will keep it open even though the temporary fix works well for me 😃 I was not solely blocked by this hehe, I’m still struggling to get the html content size to be as expected but those conversions from css to inches… never really seem to work as expected ahah!