|
Rank: Member Groups: Member
Joined: 8/8/2019 Posts: 16
|
Hi - I'm trying to print the pdf to a file, but it doesn't seem to work and I'm not getting any error.
here's a sample code
//created PdfDocument instance pdffile from bytearray from database System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings(); ps.PrinterName = "Microsoft Print to PDF"; // to flatten the pdf ps.FromPage = 1; ps.ToPage = pdfFile.Pages.Count; ps.PrintFileName = "c:\\temp\\flatpdfoutput.pdf"; ps.PrintToFile = true; pdfFile.Print(ps); code returns no error but not creating "c:\\temp\\flatpdfoutput.pdf" either
What am I doing wrong?
Thanks,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
We have confirmed this to be a bug. This will be fixed in our next build.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/8/2019 Posts: 16
|
When is the next build scheduled?
Thanks,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
We should have a new build middle next month.
Thanks!
|
|