Comment fonctionne SpotLocation? Le code suivant n'affichera pas la demande de signature numérique (DSR) sur la page fixe à l'emplacement du spot. Le DSR doit-il apparaître automatiquement à l'emplacement sur la page ou dois-je définir l'image de la signature, le texte et le bouton et le placer sur la page xps?XpsSignatureDefinition.SpotLocation - Comment ça marche?
...
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();
....