我正在使用Xamarin.iOS的Pdftron PdfNet库,并介绍了打印函数:
if (UIPrintInteractionController.PrintingAvailable)
{
var printerController = UIPrintInteractionController.SharedPrintController;
var printInfo = UIPrintInfo.PrintInfo;
printInfo.Duplex = UIPrintInfoDuplex.LongEdge;
printInfo.OutputType = UIPrintInfoOutputType.General;
printInfo.JobName = "Print";
printerController.PrintInfo = printInfo;
printerController.ShowsPageRange = true;
var formatter = this.mPdfViewCtrl.ViewPrintFormatter;
printerController.PrintFormatter = formatter;
printerController.Present(true, (handler, completed, err) =>
{
if (!completed && err != null)
{
Console.WriteLine("Printer Error");
}
});
}其中mPdfViewCtrl是PDFViewCtrl类型。
现在的问题是页面是全白打印的,并且不会触发错误。我认为问题出在PDFViewCtrl ViewPrinterFormatter没有正确的数据。有没有人有这个问题?
发布于 2018-02-24 06:21:10
这将出现在用于Xamarin.iOS的PDFTron的下一个版本中。你是在评估PDFTron,还是在开发新的发行版?
https://stackoverflow.com/questions/48944318
复制相似问题