Uri("memorystream://printstream"); var xpsDocument= new XpsDocument(package, CompressionOption.Fast, packageUri.OriginalString);
return xpsDocument.GetFixedDocumentSequence
xpsDocument = new System.Windows.Xps.Packaging.XpsDocument(xpsTempFilePath, FileAccess.Read);}public static XpsDocument OpenXpsDocument(string url) WebClientxpsDocument = new XpsDocument(package, Com
如果我试图签署一个XPS文档,它会运行到NullReferenceException: at System.Windows.Xps.Packaging.XpsDocument.get_IsSignable() at System.Windows.Xps.Packaging.XpsDocument.SignDigitally(X509Certificate证书,布尔embedCertificate,XpsDigSigPartAlteringRestrictions限制,字符串signatureId,Boolean testIsSignable) at Syst
mainDocRef = GetMainDoc(); // created in memory
XpsDocumentxpsDoc = new XpsDocument("flyer.xps", FileAccess.Read);
var docSequenceFromFile = xpsDoc.GetFixedDocumentSequence我已经尝试过几种方法来做这件事,但是最后还是会出