Print PDF gdpicture9

Example requests & Code samples for GdPicture Toolkits.
Post Reply
Posts: 1
Joined: Mon May 07, 2018 6:29 pm

Print PDF gdpicture9

Post by Albertotj » Mon May 07, 2018 6:42 pm

Good afternoon, this is my code and I try to print a c: \ file.pdf, but when I send it to the printer I realized that the size of the file is smaller than the original file can you help me,

This is my code, the commented are the different attempts I have made to get it printed.

thanks and best regards

path = "c:\\imprimir\\123.pdf"

impresora = "Sertec"
public void gdpicture(string path, string impresora)

GdPicturePDF oGdPicturePDFSrc = new GdPicturePDF();
GdPicturePDF oGdPicturePDFSrc1 = new GdPicturePDF();
GdPictureImaging ogdimagen = new GdPictureImaging();
GdPictureStatus Status = GdPictureStatus.OK;

if (oGdPicturePDFSrc1.LoadFromFile(path, false) == GdPictureStatus.OK)
System.Drawing.Printing.PrinterSettings prnSettings;
prnSettings = oGdPicturePDFSrc1.PrintGetPrinterSettings();

//prnSettings.FromPage = 0;
//prnSettings.ToPage = 4;
//prnSettings.MinimumPage = 1;
//prnSettings.PrintRange = PrintRange.SomePages;
//prnSettings.Collate = true;
prnSettings.FromPage = 1;
prnSettings.DefaultPageSettings.Color = false;
////prnSettings.PrintFileName = @"C:\imprimir\123.pdf";


//setting = prnSettings.ToString();



Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests