We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Problem displaying text using PdfTrueTypeFont in PdfLightTable

Hi,

I'm using a PdfLightTable to display text in a table.
I used PdfStandardFont but I had to change to PdfTrueTypeFont to support unicode characters.

When I used PdfStandardFont, the text fitted nicely in the table cells, but now with PdfTrueTypeFont it goes beyond the bottom of the cells when several lines are displayed, and the last lines of a cell are displayed over the next cell.

Do I have to set each cell's MinimalHeight depending on the text it contains, or is there something else I'm missing ?

Thank you.

5 Replies

CM Chinnu Muniyappan Syncfusion Team April 11, 2016 12:40 PM UTC

Hi Kyrill,

We are not able to reproduce the issue and we have created a simple sample which we have tried in our side. Could you please modified this sample to reproduce the issue, it will be more helpful for us to investigate further in this.

Sample link:
http://www.syncfusion.com/downloads/support/forum/123670/ze/PdfLightTableSample690861602

Regards,
Chinnu


KY Kyrill April 11, 2016 02:06 PM UTC

Hi Chinnu,

Sorry I should have specified that I'm working on a Xamarin.iOS project, and I'm loading fonts from .ttf files.

I made changes to the Form1.cs in the sample project, please tell me if it helps you reproduce the problem. I couldn't test this sample project as I only have Xamarin Studio.

Also, I noticed the problem only happens on device (iPad Air 2, iOS 9) and not in the iOS Simulator (also iPad, iOS 9).

Thanks for your help.

Kyrill

Attachment: PdfLightTableSample_edited_c110778b.zip


CM Chinnu Muniyappan Syncfusion Team April 12, 2016 01:13 PM UTC

Hi Kyrill,
We have created a sample and tested with ipad it was working fine. Can you please check the below sample for your environment and let us know the details; Meanwhile we are trying with different devices.
Sample link;
http://www.syncfusion.com/downloads/support/forum/123670/ze/PdfTableCreation-2045597184

Regards,
Chinnu


KY Kyrill April 13, 2016 09:18 AM UTC

Hi,

I changed your code to reproduce the problem, this time it happens also on the simulator...
Maybe it has something to do with the font used ? I noticed the problem by using Helvetica and Courier.

Thanks for your help.

Kyrill

Attachment: PdfTableCreation_Updated_Code_a4c6037.zip


CM Chinnu Muniyappan Syncfusion Team April 14, 2016 08:58 AM UTC

Hi Kyrill,


We were able to reproduce the problem and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents 


Please let me know if you have any questions.


Regards,
Chinnu


Loader.
Live Chat Icon For mobile
Up arrow icon