Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

text is not written correct showing squres 8 years 3 months ago #10089

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
Hi radaeepdf Team,

I am trying to write the text at pdf file . I am trying this link www.radaeepdf.com/support/knowledge-base...component&kbartid=35 for write at pdf file
please see the attachment for error ..AS you can see the sqare box at the top of the pdf page in attachment

Please suggest how can i resolve ?

Thanks

Please Log in or Create an account to join the conversation.

Last edit: by ankur123987.

text is not written correct showing squres 8 years 2 months ago #10093

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
hello radaeepdf team,

I am surprised to see that my attachment is not showing here . I dont know you got it or not . please provide the solution of rect boxes while write text at pdf file.

please provide the solution as soon as possible

Thanks

Please Log in or Create an account to join the conversation.

text is not written correct showing squres 8 years 2 weeks ago #10478

  • gabmor
  • gabmor's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Did you solve this problema?

Please Log in or Create an account to join the conversation.

text is not written correct showing squres 8 years 2 weeks ago #10480

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Normally squares are due to not available fonts.
Android doesn't provide any fonts apart of Roboto and few more.

Our package contains free to be distributed fonts that substitute standard PS font sets and you should include them in your own application.

If you've some particular needs, please explain them here... we will be glad to help you.

Please Log in or Create an account to join the conversation.

text is not written correct showing squres 8 years 2 weeks ago #10486

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
in spite of predefined fonts . can we pass our customize ttf or font file to native methods i have OpenSans-Light_0.ttf file how can i use it in RAdaeepdf library . it would easy to kept the file in assert folder and its available to every-device instead to depend on devices font ..

thanks

Please Log in or Create an account to join the conversation.

Last edit: by ankur123987.

text is not written correct showing squres 8 years 2 weeks ago #10488

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you could replace the instance of fallback fonts and the default font for annots.

Use this to load your font, add this in Global class between fontfileListStart() and fontfileListEnd() :
load_truetype_font(Resources res, int res_id, File dst);
And this to use your font instead of the default font for annots ;
// set text font for edit-box and combo-box editing.
if (!setAnnotFont("Your Font") && face_name != null) {
	setAnnotFont(face_name);
}

Note: you may need to remap your font with the font used in the pdf.
For example you can check Global.java


We checked and we found that font license is ok for distribution in commercial app.

The only thing to watch out is that it does not include Chinese, Japanese and Korean.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum