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

TOPIC:

Save font method not working 6 years 11 months ago #12323

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 45
  • Thank you received: 0
Hi,

When in the App_init() method the font Arial is saved Global_SaveFont the given method is returning nothing.
The applications hangs and further methods are not executed. What could be the reason for this?

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

Save font method not working 6 years 11 months ago #12324

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

this error could be caused by a wrong font path or if the font file doesn't exist

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

Save font method not working 6 years 11 months ago #12328

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 45
  • Thank you received: 0
Hi,

In the following code
strcpy( dst, dd1 );
strcat( dst, "/Arial.ttf" );
if( ![fileManager fileExistsAtPath:NSString alloc] initWithUTF8String:dst )
{
if( Global_SaveFont("Arial", dst) )
Global_fontfileListAdd(dst);
}
else Global_fontfileListAdd(dst);
strcpy( dst, dd1 );
strcat( dst, "/Verdana.ttf" );
if( ![fileManager fileExistsAtPath:NSString alloc] initWithUTF8String:dst )
{
if( Global_SaveFont("Verdana", dst) )
Global_fontfileListAdd(dst);
}
else Global_fontfileListAdd(dst);

Global_SaveFont creates the mentioned font in Cache folder. While executing this method the app hangs.

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

Save font method not working 6 years 11 months ago #12329

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 45
  • Thank you received: 0
Is there anything else that i am missing as a part of initialisation?

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

Save font method not working 6 years 11 months ago #12330

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
It seems you are using an old version of the SDK, because the code mentioned by you has been removed.
I suggest to download the updated version here: www.radaeepdf.com/download/file/83-radaeepdf-3-8-1

Other about integration: be sure to include cmaps and fdat folders into your project using "Create folder references" option

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

  • Page:
  • 1
Powered by Kunena Forum