Rank: Member
Groups: Registered
Joined: 6/1/2016(UTC) Posts: 28  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();
}
|
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 6/1/2016(UTC) Posts: 28  Location: Hessen Thanks: 2 times Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
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.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close