Welcome Guest Search | Active Topics | Sign In | Register

Print to file doesn't work Options
Sanorbix
Posted: Thursday, October 29, 2020 11:20:58 AM
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,

eo_support
Posted: Thursday, October 29, 2020 4:09:17 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We have confirmed this to be a bug. This will be fixed in our next build.

Thanks!
Sanorbix
Posted: Thursday, October 29, 2020 4:28:42 PM
Rank: Member
Groups: Member

Joined: 8/8/2019
Posts: 16
When is the next build scheduled?

Thanks,
eo_support
Posted: Friday, October 30, 2020 11:05:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We should have a new build middle next month.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.