Font Size = Auto

Hey, I am evaluating Syncfusion for one of my large enterprise clients. The need is to fill PDF template (form) at run time. I am able to set values for the textboxes successfully however struggling to put the values for the text boxes that have Auto Font = True. The data is being truncated there in final PDF. However; the iTextSharp is giving me the output as expected for this functionality. Could you please help how can I work with text boxes having auto font = true.  


I tried by setting Flaterren = true, data is being truncated in the textbox even though property Font Size = auto is set in the template. This problem occurs with "PdfLoadedDocument" also.

PdfDocument doc1 = new PdfDocument();
doc1.ImportPageRange(pdfReader, 0, pdfReader.Pages.Count - 1);
doc1.Form.Flatten = true;
doc1.Save(msFinalPDF);

 



1 Reply

SL Sowmiya Loganathan Syncfusion Team March 8, 2018 12:41 PM UTC

Hi Kulvinder, 

We can achieve your requirement by not truncating in final PDF document.  On this sample, we will resize the font size for the large text to fit into the form fields bounds.  

Please find the sample for the same from below location: 

Please let us know that the above sample meets your requirement.  

Regards, 
Sowmiya L 


Loader.
Up arrow icon