question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception when specifying format for page.GetPdfAsync

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kblokcommented, Oct 9, 2020

@lvmajor yeah, I wanted to get you unblocked 😃

0reactions
lvmajorcommented, Oct 9, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found