Мы должны просмотреть PDF-файлы перед созданием PDF-файла. Мы попытались добавить приведенный ниже код, но он не работает в WinForm, и наше приложение зависает.
using QuestPDF.Fluent;
using QuestPDF.Helpers;
using QuestPDF.Infrastructure;
// code in your main method
var document = Document.Create(container =>
{
container.Page(page =>
{
// page content
});
});
// instead of the standard way of generating a PDF file
document.GeneratePdf("hello.pdf");
// use the following invocation
document.ShowInPreviewer();
// optionally, you can specify an HTTP port to communicate with the previewer host (default is 12500)
document.ShowInPreviewer(12345);
Может ли QuestPDF просмотреть PDF перед созданием файла?
Мы должны просмотреть PDF-файлы перед созданием PDF-файла. Мы попытались добавить приведенный ниже код, но он не работает в WinForm, и наше приложение зависает. [code]using QuestPDF.Fluent; using QuestPDF.Helpers; using QuestPDF.Infrastructure;
// code in your main method var document = Document.Create(container => { container.Page(page => { // page content }); });
// instead of the standard way of generating a PDF file document.GeneratePdf("hello.pdf");
// use the following invocation document.ShowInPreviewer();
// optionally, you can specify an HTTP port to communicate with the previewer host (default is 12500) document.ShowInPreviewer(12345); [/code] Может ли QuestPDF просмотреть PDF перед созданием файла?