PDFANDROID-176 (Text is not bold- line isn't seen)

Hello,

We are making an Android application that generates the pdf using some data.
We have used the Aspose.Pdf for Android 1.7.0 in our application.

Before we were using Aspose.Pdf for Android 1.6.0 and we saw that there are some bug fixes in the new version i.e 1.7.0 like (PDFANDROID-176 Text is not bold, line isn't seen) so we downloaded it and try to use in the application but we found that there was no difference and we are still not able to get the text bold and lines between rows are still missing. Also when we implemented the new version the time it took to generate the pdf increased as compared to 1.6.0 . So we are not getting which version is more helpful and which to use. Please do need full for the same.

Sample Code
TextState m_headerState = new TextState();
m_headerState.setFontSize(m_headerTitleSize);
m_headerState.setForegroundColor(com.aspose.java.awt.Color.BLACK);
m_headerState.setFontStyle(FontStyles.Bold);


Thanks

Hi Kalpit,


Thanks for your inquiry. Please note it is recommended to use latest release, as it contains bug fixes of old versions, new features and improvements. However, regarding performance difference in 1.6 an 1.7 release, please share some sample code to observe the difference.

Moreover, regarding Font issue, I have tested the scenario using Aspose.Pdf for Android 1.7 as following and unable to notice the issue. We will appreciate it if you please share your complete code. So we can replicate it at our end and provide you information accordingly.

Document doc = new Document();

Page page = doc.getPages().add();

TextFragment fragment = new TextFragment("");



TextSegment segment = new TextSegment(" This is a sample text.");

TextState m_headerState = new TextState();

m_headerState.setFontSize(15);

m_headerState.setForegroundColor(com.aspose.java.awt.Color.BLACK);

m_headerState.setFontStyle(FontStyles.Bold);

segment.setTextState(m_headerState);

fragment.getSegments().add(segment);

page.getParagraphs().add(fragment);



doc.save(outputPath);<o:p></o:p>


We are sorry for the inconveneicne caused.

Best Regards,

Hi,


Thanks for the reply. We are facing the same issue with both the versions. When we implement with version 1.7.0 the time it took to generate the pdf is much more as compared to the version 1.6.0. We are not getting why we are facing such issue, although using the latest version.

And when we implemented the solution for the font to be bold as suggested by you , we are not able to make the text bold and instead the whole text become invisible. So please help us solve the issue.

Thanks.




Hi Kalpit,


We are sorry for the delayed response. Please find attached screenshot, I am unable to replicate the issue. We will appreciate it if you please share you sample code,input/output document and environment details. We will look into it and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,