Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use QuestPDF in WebAssembly #67

Closed
pablopioli opened this issue Dec 15, 2021 · 2 comments
Closed

Document how to use QuestPDF in WebAssembly #67

pablopioli opened this issue Dec 15, 2021 · 2 comments

Comments

@pablopioli
Copy link

If found QuestPDF just recently and I think it's awesome.

I saw that the native libraries for WASM are available as a preview, so I thought on testing if QuestPDF would work in a Blazor WebAssembly app.

It worked without problems, creating the files 100% inside the browser. The only gotcha is that you can't embed a font as the sandbox would not allow it.

So, this is not really an issue. I would like to know how can I help to document what you need to do to use it in Wasm.

A sample would help, more documentation on the subject?

@MarcinZiabek
Copy link
Member

Thank you for your comment and being open to help, I really appreciate it!

As I haven't worked with WASM yet, I don't have much experience in this regard. I would like to ask you to create a pull request to the documentation repository. Please describe anything that could be useful for other developers. Especially if there are any unexpected issues or problems. I propose to include this information in the Patterns and Practices section. It uses vuepress and documentation is written in markdown.

Generally, QuestPDF should work on any dotnet environment as long as SkiaSharp is also functional there. I expect that 99% of potential problems and limitations come from the SkiaSharp dependency. It is not Skia fault, we just need to be aware of it. So, usually, we want to point developers to proper patterns and practices in this regard 😁

@pablopioli
Copy link
Author

Great! I will test it thoroughly and build a pull request.

If there is something missing we can discuss it in the PR.

Thanks to you for sharing your great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants