static private PrintImagesToPrinter ( PDFLibNet pdfDoc ) : bool | ||
pdfDoc | PDFLibNet | |
Результат | bool |
public bool Print() { if (pdfDoc == null) { return(false); } else { return(PrinterUtil.PrintImagesToPrinter(pdfDoc)); } }
public bool Print(string filename) { //TODO if (filename != null && filename != "" && ImageUtil.IsPDF(filename)) { PDFLibNet.PDFWrapper tmpDoc = new PDFLibNet.PDFWrapper(""); tmpDoc.LoadPDF(filename); return(PrinterUtil.PrintImagesToPrinter(tmpDoc)); } else { return(false); } }