rajeshpatil0707 / apv

Automatically exported from code.google.com/p/apv
GNU General Public License v3.0
0 stars 0 forks source link

Problem opening specific CJK PDF file #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. load 2-396.pdf on android (attached)
2. Use apv to view
3. got error: couldn't render page 0

What is the expected output? What do you see instead?
The file contains CJK content. If requested glyph not available,
at least empty characters should be shown.

What version of the product are you using? On what operating system?
Current latest version on site. Tried on phone and emulator (2.2).

Please provide any additional information below.

I/mupdf   (  334): + pdf_fontfile.c:159: loadsystemcidfont(): no builtin CJK fon
t file
I/mupdf   (  334): | pdf_font.c:891: pdf_loadfontdescriptor(): cannot load font 
descriptor (753 0 R)
I/mupdf   (  334): | pdf_font.c:794: loadcidfont(): cannot load cid font (755 0 
R)
I/mupdf   (  334): | pdf_font.c:824: loadtype0(): cannot load descendant font 
(755 0 R)
I/mupdf   (  334): | pdf_font.c:979: pdf_loadfont(): cannot load font (757 0 R)
I/mupdf   (  334): | pdf_interpret.c:837: pdf_runkeyword(): cannot load font 
(757 0 R)
I/mupdf   (  334): | pdf_interpret.c:1459: pdf_runcsifile(): cannot run keyword 

Original issue reported on code.google.com by yuanc...@gmail.com on 1 Jan 2011 at 11:07

Attachments:

GoogleCodeExporter commented 9 years ago
The problem is that including CJK fonts would greatly increase file size.  I 
think it would be good if we had two releases, one with CJK fonts and one 
without.

Original comment by arpruss on 24 Jul 2011 at 6:16

GoogleCodeExporter commented 9 years ago
Separated packages would be very useful!

Original comment by yuanc...@gmail.com on 24 Jul 2011 at 11:49

GoogleCodeExporter commented 9 years ago
Hi arpruss,
I want to ask: how to add more fonts in Mupdf (ex: cjk fonts).
Can u help me please?
Thanks
Best regards

Original comment by trungnd1...@gmail.com on 15 Aug 2011 at 5:33

GoogleCodeExporter commented 9 years ago
run ndk-build apv project.

modify the apv\pdfview\jni\mupdf\pdf\Android.mk
in line 9: 
#LOCAL_CFLAGS := -DNOCJK -O3 -DARCH_ARM 
change to:
LOCAL_CFLAGS :=  -O3 -DARCH_ARM
because the fonts is included by file:apv\pdfview\jni\mupdf\pdf\pdf_fontfile.c
-------------------------
#ifdef NOCJK  
#define NOCJKFONT  
#endif  

#include "../generated/font_base14.h"  

#ifndef NODROIDFONT  
#include "../generated/font_droid.h"  
#endif  

#ifndef NOCJKFONT  
#include "../generated/font_cjk.h"  
#endif  
-------------------------

then ,download mupdf-source,and make, to generate "generated" directory:"I 
don't know how to genera the file by build apv project... so,i copy files from 
mupdf."
-------------------------
copy cmap*.h,font_cjk.h to \apv\pdfview\jni\mupdf\generated

run ndk-build to get a new apk! good luck.

Original comment by arc...@gmail.com on 5 Mar 2012 at 1:23