|
|
|
|
|
Hi We're trying to create some text and insert it into a document, which is displayed in the WPF viewer. I've been able to create a text string and add it to the document at the X, Y. But it doesn't persist in the document. If you scroll a few pages away the come back, it disappears. It also doesn't get saved with the document. I've been looking through past posts and there doesn't seem to be much I can find to help with this. Could you please provide some assistance in how we can get this to happen? Trying to add annotations similar to what is accomplished in Acrobat. The text should be persisted over any viewer, I'm hoping. The code below is what I've done that seems to add the text in (still not sure about the Viewer.Invalidate* methods either, is this correct?). Thanks for your help! Code:
var obj = PdfTextObject.Create(Text, X, Y, Font, FontSize);
obj.FillColor = Color.BlueViolet;
obj.StrokeColor = Color.BlueViolet;
Page.PageObjects.Add(obj);
Viewer.InvalidateMeasure();
Viewer.InvalidateVisual();
Viewer.UpdateDocLayout();
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close