I have the following code that can produce a flattened PDF with losing field values:
using (var doc = new Document("intput.pdf"))
{
doc.Flatten();
doc.Save("output.pdf");
}
The output.pdf
has all of the field values except:
- the amount entered in 2a after “in the amount of”
- the amount entered in 3 after “Past due rent in the amount of”
image.png (74.9 KB)
Here is the sample PDF document: input.pdf (470.1 KB)
This is reproducible in version 22.8.0.