We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3bcbb commit bad9cc5Copy full SHA for bad9cc5
PdfSharpCore/Pdf.Advanced/PdfCatalog.cs
@@ -160,14 +160,15 @@ internal PdfOutlineCollection Outlines
160
/// </summary>
161
public PdfAcroForm AcroForm
162
{
163
- get
+ get { return (PdfAcroForm)Elements.GetValue(Keys.AcroForm); }
164
+ set
165
- if (_acroForm == null)
166
- _acroForm = (PdfAcroForm)Elements.GetValue(Keys.AcroForm);
167
- return _acroForm;
+ if (Elements.ContainsKey(Keys.AcroForm))
+ Elements[Keys.AcroForm] = value;
168
+ else
169
+ Elements.Add(Keys.AcroForm, value);
170
}
171
- PdfAcroForm _acroForm;
172
173
/// <summary>
174
/// Gets or sets the language identifier specifying the natural language for all text in the document.
0 commit comments