0

SpotLocationはどのように機能しますか?次のコードは、スポットロケーションの固定ページにデジタル署名要求(DSR)を表示しません。DSRはページのスポット位置に自動的に表示されますか、それとも署名画像、テキスト、およびボタンを定義してxpsページに配置する必要がありますか?

...
XpsSignatureDefinition newSign = new XpsSignatureDefinition();
newSign.Intent = "I am the author of this document.";
newSign.RequestedSigner = "Jonnie ";
newSign.SigningLocale = "Richmond";

newSign.SpotLocation = new SpotLocation();
newSign.SpotLocation.PageUri 
    = PackUriHelper.CreatePartUri(new Uri(@"/Documents/1/Pages/1.fpage",UriKind.Relative));
newSign.SpotLocation.StartX = 30.00;
newSign.SpotLocation.StartY = 30.00;

newSign.SignBy = DateTime.Now + new TimeSpan(10, 0, 0, 0);
Guid g = System.Guid.NewGuid();
newSign.SpotId = g;

XpsDocument document = new XpsDocument(package);
IXpsFixedDocumentSequenceReader docSeqReader = document.FixedDocumentSequenceReader;

docSeqReader.FixedDocuments[0].AddSignatureDefinition(newSign);
docSeqReader.FixedDocuments[0].CommitSignatureDefinition();
....
4

1 に答える 1

0

MicrosoftのXPSViewerは、特定の場所(たとえば、スポットIDで指定された場所)での署名要求の配置をサポートしていません。

于 2010-05-25T20:24:10.167 に答える