Hello,
4 times out of 10 , I receive an error with the size of a control.
The XSize.FromSizeF(SizeF size) throws a WidthAndHeightCannotBeNegative exception and the width is coming as a small negative number.
This is the call stack :
PdfSharp.Drawing.XSize..ctor(Double width, Double height) in C:\...\PDFsharp\code\PdfSharp\PdfSharp.Drawing\XSize.cs:ligne 60
PdfSharp.Pdf.PdfRectangle.get_Size() in C:\...\PDFsharp\code\PdfSharp\PdfSharp.Pdf\PdfRectangle.cs:ligne 301
PdfSharp.Pdf.AcroForms.PdfTextField.RenderAppearance() in C:\...\PDFsharp\code\PdfSharp\PdfSharp.Pdf.AcroForms\PdfTextField.cs:ligne 144
PdfSharp.Pdf.AcroForms.PdfTextField.set_Text(String value) in C:\...\PDFsharp\code\PdfSharp\PdfSharp.Pdf.AcroForms\PdfTextField.cs:ligne 64
I can't figured it out , because when I modify the field size of a control and retry (Fake modification) , it's always works then.
Does someone have any clue
Thanks