|
This code snippet is taken from TaggedPDF.cs line 87 in the
AccessiblePDF example project.
List<Element> items = new List<Element>();
FindAll(item, items);
return items;
This code snippet is taken from Annotations.cs line 464 in the
Annotations example project.
if (inKids.Count == 0)
throw new Exception("Cannot have a group field with no kids");
int fieldID = Doc.AddObject("<< /Kids [] >>");
FormField formField = new FormField(this, inName, fieldID, inKids);
formField.FieldElement.EntryV = new Element(new StringAtom(inValue), formField.Host);
return formField;
This code snippet is taken from Annotations.cs line 480 in the
Annotations example project.
TextFieldAnnotation textField = new TextFieldAnnotation(this, inRect);
FormField formField = new FormField(this, inName, textField);
formField.FieldElement.EntryFT = "Tx";
formField.FieldElement.EntryFf = (int)Field.FieldFlags.Multiline;
formField.FieldElement.EntryQ = 1;
if (inText != null)
formField.FieldElement.EntryV = new Element(new StringAtom(inText), formField.FieldElement.Host);
return formField;
This code snippet is taken from Annotations.cs line 514 in the
Annotations example project.
CheckBoxAnnotation checkBox = new CheckBoxAnnotation(this, inRect, inValue);
FormField formField = new FormField(this, inName, checkBox);
formField.FieldElement.EntryFT = "Btn";
formField.FieldElement.EntryV = new Element(new NameAtom(inValue ? "Yes" : "Off"), formField.Host);
return formField;
This code snippet is taken from Annotations.cs line 529 in the
Annotations example project.
List<WidgetAnnotation> kids = new List<WidgetAnnotation>();
for (int i = 0; i < inRects.Length; i++) {
RadioButtonAnnotation radioButton = new RadioButtonAnnotation(this, inRects[i], i.ToString(), i == inSelectedButton);
kids.Add(radioButton);
}
int fieldID = Doc.AddObject("<</FT /Btn /Ff 49152 /Kids [] /DA (/ZaDb 0 Tf 0 g)>>");
FormField formField = new FormField(this, inName, fieldID, kids);
formField.FieldElement.EntryV = new Element(new NameAtom(inSelectedButton.ToString()), formField.Host);
return formField;
This code snippet is taken from Annotations.cs line 1944 in the
Annotations example project.
RichMediaParamsElement pars = RichMediaElement.EntryRichMediaSettings.EntryActivation.EntryConfiguration.EntryInstances[0].EntryParams;
if (string.IsNullOrEmpty(value))
pars.EntryFlashVars = null;
else if (value.Length <= 128)
pars.EntryFlashVars = new Element(new StringAtom(value), AnnotationElement.Object);
else {
StreamObject so = new StreamObject(Form.Doc.ObjectSoup);
so.SetText(value);
so.CompressFlate();
pars.EntryFlashVars = new Element(new RefAtom(so), AnnotationElement.Object);
}
|
|
|