Posted 2 June 2026, 4:09 pm EST - Updated 2 June 2026, 4:14 pm EST
I use version 7.2 of DsPdf.
I used the exact sample code that can flatten a pdf that has form fields found here:
https://developer.mescius.com/document-solutions/dot-net-pdf-api/demos/features/modify/flatten-form/code-cs
My flattened output does not look quite right when compared to my source file.
I have attached the source pdf (form-fields.pdf) and the flattened output pdf (form-fields-flattened.pdf)
These are the things that I noticed:
- the source file has a custom page size: 9.33 x 11.83 but the flattened output has a different page size: 8.5 x 11
- the position of the “SalesDeskPhone” field is different in the output
- the position of the image is different in the output
- the size of the image is different in the output
- the image in the output has the “Headshot1” field name overlayed on the image (in the source file, the Headshot1 field was hidden and an image was placed over it, scaled to the size of the Headshot1 field)
I am trying to find out if these issues are due to a bug in the sample code or would they be due to a bug in DsPdf?
I’d appreciate any info regarding this since I now have a requirement to add a flattening option to my solution.
Thank you.


