Skip to content
New issue

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

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

Already on GitHub? # to your account

bug(ExportPdfButton): 导出pdf控件的数据会丢失 #4841

Open
1 task done
oneguester01 opened this issue Dec 13, 2024 · 2 comments
Open
1 task done

bug(ExportPdfButton): 导出pdf控件的数据会丢失 #4841

oneguester01 opened this issue Dec 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@oneguester01
Copy link

oneguester01 commented Dec 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

https://www.blazor.zone/export-pdf-button
这个网页上导出pdf按钮,文本框、日期类型等控件数据都不能导出成pdf

Expected Behavior

控件中的数据应该能导出pdf文件中

Interactive render mode

Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)

Steps To Reproduce

https://www.blazor.zone/export-pdf-button

Exceptions (if any)

No response

.NET Version

NET8.0

Anything else?

No response

@oneguester01 oneguester01 added the bug Something isn't working label Dec 13, 2024
Copy link

bb-auto bot commented Dec 13, 2024

@oneguester01 Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project that illustrates the problem.

@bb-auto bb-auto bot added this to the v9.0.0 milestone Dec 13, 2024
@ArgoZhang ArgoZhang changed the title bug(): export-pdf-button导出pdf控件的数据会丢失 bug(ExportPdfButton): 导出pdf控件的数据会丢失 Dec 14, 2024
@ArgoZhang
Copy link
Collaborator

ArgoZhang commented Dec 14, 2024

@oneguester01 已复现,我再研究一下想想办法

public async Task<Stream> PdfStreamAsync(string url)
{
    await using var browser = await LaunchBrowserAsync();
    await using var page = await browser.NewPageAsync();
    await page.GoToAsync(url);

    return await page.PdfStreamAsync();
}

使用的是 PuppeteerSharpPdfStreamAsync 方法,所以这个问题需要再找找资料解决

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants