We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PdfDocument document = new PdfDocument(); PdfGenerateConfig config = new PdfGenerateConfig(); config.PageOrientation = PdfSharpCore.PageOrientation.Portrait; config.PageSize = PdfSharpCore.PageSize.A4; config.MarginLeft = 10; config.MarginRight = 10; config.MarginTop = 10; config.MarginBottom = 10; const string filename = "HelloWorld.pdf"; MemoryStream stream = new MemoryStream(); document = PdfGenerator.GeneratePdf(sbHTML.ToString(), config); PdfGenerator.AddPdfPages(document, sbHTML.ToString(), config, null,null); document.Save(@"D:\AForge\" + filename); //UploadFile(stream, filename);
failed with exception "Cannot save a PDF document with no pages"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PdfDocument document = new PdfDocument(); PdfGenerateConfig config = new PdfGenerateConfig(); config.PageOrientation = PdfSharpCore.PageOrientation.Portrait; config.PageSize = PdfSharpCore.PageSize.A4; config.MarginLeft = 10; config.MarginRight = 10; config.MarginTop = 10; config.MarginBottom = 10; const string filename = "HelloWorld.pdf"; MemoryStream stream = new MemoryStream(); document = PdfGenerator.GeneratePdf(sbHTML.ToString(), config); PdfGenerator.AddPdfPages(document, sbHTML.ToString(), config, null,null); document.Save(@"D:\AForge\" + filename); //UploadFile(stream, filename);
failed with exception "Cannot save a PDF document with no pages"
The text was updated successfully, but these errors were encountered: