-1
我正在使用下面的代码PdfDocument是从SpirePDF库。它打印,但文件从左边砍掉,质量差。我想在不使用Acrobat的情况下实现此目的。 我无法弄清楚如何做到这一点。谁能告诉我在哪里出了错使用c#打印PDF无acrobat
bool returnValue = false;
PdfDocument document = new PdfDocument(filePath);
try {
document.PrintDocument.PrinterSettings.PrinterName = printer;
document.PrintDocument.Print();
returnValue = true;
} catch(Exception ex) {
//throw new Exception(ex.Message);
returnValue = false;
}
return returnValue;
标题矛盾,但回答的问题。是的,人们之前已经这样做了。 – Jodrell