Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1
  • 2

TOPIC:

Android PDF Viewer Display Issue 11 years 5 months ago #534

  • thekono
  • thekono's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi,

The Android PDF viewer is not properly displaying the following document (5 pages). If you use Acrobat reader or other viewer, you are seeing it properly displayed.

Thanks

Stanley

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

Android PDF Viewer Display Issue 11 years 5 months ago #535

  • thekono
  • thekono's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
As the file size exceeded the limit. Here is the link to the file -

docs.google.com/open?id=0B9nboFXvPjaPWVM3WHlGYTI5RkU

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

Android PDF Viewer Display Issue 11 years 5 months ago #536

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
this file need CJK font as default font. so modify Global.init
and set default font to "DroidSansFallback".
this font may has some problems for some extern Latin characters.

the best way to support all characters is using fonts you owned.

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

Android PDF Viewer Display Issue 11 years 5 months ago #543

  • ysh19841211
  • ysh19841211's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
I have already seen the following code in Global.Init

if( !setDefaultFont( "CNS1", "DroidSansFallback", true ) && face_name != null )
setDefaultFont( null, face_name, true );
if( !setDefaultFont( "CNS1", "DroidSansFallback", false ) && face_name != null )
setDefaultFont( null, face_name, false );


Can you tell me what to change?

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

Android PDF Viewer Display Issue 11 years 5 months ago #546

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
the problem is:
font in PDF using CJK characters.
but this font not defined for "CNS1" collection.
so you need modify:
if( !setDefaultFont( null, "DroidSansFallback", true ) && face_name != null )
setDefaultFont( null, face_name, true );
if( !setDefaultFont( null, "DroidSansFallback", false ) && face_name != null )
setDefaultFont( null, face_name, false );

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

Android PDF Viewer Display Issue 11 years 5 months ago #555

  • ysh19841211
  • ysh19841211's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
I replaced the code you posted here into Global.init, but with no luck. Have any idea?

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum