logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ju1989  
#1 Posted : Wednesday, January 11, 2017 2:00:59 AM(UTC)
ju1989

Rank: Member

Groups: Registered
Joined: 6/1/2016(UTC)
Posts: 28
Germany
Location: Hessen

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
I use the following code for printing. When I print, for example digital born documents ( 10SeitenLorem.zip (132kb) downloaded 17 time(s).), the file size send to the printer is very large (37,5MB) compared to printing with Adobe Acrobat Reader (600KB).

Do you have any solution?

Code:

var doc = PdfDocument.Load(bytes);
var printDoc = new PdfPrintDocument(doc);
            
var dialog = new PrintDialog();
dialog.AllowCurrentPage = false;
dialog.AllowSomePages = true;
dialog.AllowSelection = false;
dialog.AllowPrintToFile = false;
dialog.ShowHelp = false;
dialog.ShowNetwork = false;
dialog.UseEXDialog = true;
dialog.Document = printDoc;

if (dialog.ShowDialog() == DialogResult.OK)
{
   printDoc.Print();
}
ju1989  
#2 Posted : Friday, February 10, 2017 12:52:26 AM(UTC)
ju1989

Rank: Member

Groups: Registered
Joined: 6/1/2016(UTC)
Posts: 28
Germany
Location: Hessen

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Is there any update?
Paul Rayman  
#3 Posted : Monday, February 13, 2017 2:46:02 PM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Unfortunately no.
I suppose this behaviour caused by .Net printing system. It uses GDI, so each page rendered into bitmap before print.
I'm guessing Adobe uses another printing method. Direct print, if printer supports PDF, for example.
Users browsing this topic
Guest
Forum Jump  
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.