DImuthuUpe/AndroidPdfViewer

PDF won't render text on v2.5.0

FilCZ opened this issue · 26 comments

FilCZ commented

Hi, I've recently changed to your version 2.5.0, because I wanted to try the .enableAntialiasing() method. Unfortunately, my example.pdf, which could be easily rendered on v2.4.0, won't render. There are some lines, but not text.

Does anyone have the same issue or know to repair it?

Thank you.

Send the file will try it out.

FilCZ commented

I can't do it now, because I have it in my computer at work, I will send it as soon as I get to work.

Thank you for your time.

I'm encountering the same issue.

Down Grade pdfium works fine.

Are there any log messages? Please provide your document

linkkeja-universal.pdf

I think it was this one. It contains just text, with link annotations, but the text doesn't render (or renders white?).

I already checked that it should't be too hard to add support for links, but that's another topic. I'm very impressed by the performance of pdfium, compared to many commercial SDKs.

By the way, there's a newer branch android-7.1.1_r38 available for the pdfium, but I quess you already know it.

@juhasuni Thanks for document, I will check it. I didn't know about new branch, I see there are many new branches since my last version, maybe it will fix issues with text.

@juhasuni That's strange, I just checked your document on my phone with Android 7.0 and on emulator with Android 5.0 and 4.1 and text looks like on PC. What is your phone model and Android version?

It is one of our test devices, Samsung, running on Android 4.x. I'll test again on Monday on more devices. Thanks for taking a look at it.

DSC_PC585_pikaohje.pdf

Here's another document that didn't show texts, if I recall right.

Indeed I don't see text. I will try pdfium from newer branch

It seems that this is known bug in pdfium since SDK 23 and after two month fix still is not released.
Report available here https://code.google.com/p/android/issues/detail?id=231586

thanks @barteksc will be looking forward to the release, although not really noticed any differences with the older version and the latest release,

I have just released 2.5.1, which downgrades pdfium to working version

Any extras in 2.51?

No, just quickfix

I'm encountering the same issue. it just show pictrues and text is gone.
pls help!!

@karlsoft I don't understand what do you expect? Everything is written in this issue

Thanks for answer! my problem is There are some lines and pictrues, but no text. all text is gone ,is on v2.5.1

Version 2.5.1 uses same engine as older versions (excluding 2.5.0), so if it doesn't work for you it is not related to this issue

I also has the problem on 2.5.1.

source pdf (with Chinese)
NG Result:
NG result

NG:
MX4 pro android 5.0.1
LG G4 android 5.1
Samsung S4 android 5.0.1
Sony ZU android 5.1.1

OK:
Samsung S7 edge android 7.0

I would say this is a pdf form not a flat pdf hence why you lose a layer. Flatten as pdf file not a form and it will display. Forms and layered pdf are not supported.

@1stmetro
Thank you for your answer.
I got it.

I have just released version 2.7.0-beta which uses new PdfiumAndroid that should not have problems with font rendering