AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

PDF won't render text on v2.5.0

Open FilCZ opened this issue 9 years ago • 26 comments

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.

FilCZ avatar Mar 31 '17 12:03 FilCZ

Send the file will try it out.

1stmetro avatar Mar 31 '17 22:03 1stmetro

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.

FilCZ avatar Apr 01 '17 11:04 FilCZ

I'm encountering the same issue.

juhasuni avatar Apr 07 '17 14:04 juhasuni

Down Grade pdfium works fine.

1stmetro avatar Apr 07 '17 15:04 1stmetro

Are there any log messages? Please provide your document

barteksc avatar Apr 07 '17 19:04 barteksc

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.

juhasuni avatar Apr 07 '17 20:04 juhasuni

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 avatar Apr 07 '17 20:04 juhasuni

@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.

barteksc avatar Apr 07 '17 20:04 barteksc

@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?

barteksc avatar Apr 07 '17 20:04 barteksc

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.

juhasuni avatar Apr 07 '17 22:04 juhasuni

DSC_PC585_pikaohje.pdf

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

juhasuni avatar Apr 07 '17 22:04 juhasuni

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

barteksc avatar Apr 07 '17 22:04 barteksc

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

barteksc avatar Apr 08 '17 11:04 barteksc

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

1stmetro avatar Apr 08 '17 12:04 1stmetro

I'll try the old version. Let's wait until the issue is resolved in Android Pdfium project.

On 8 Apr 2017, at 15.26, 1stmetro [email protected] wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

juhasuni avatar Apr 08 '17 19:04 juhasuni

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

barteksc avatar Apr 08 '17 19:04 barteksc

Any extras in 2.51?

1stmetro avatar Apr 08 '17 20:04 1stmetro

No, just quickfix

barteksc avatar Apr 08 '17 20:04 barteksc

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

karlsoft avatar May 09 '17 12:05 karlsoft

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

barteksc avatar May 09 '17 12:05 barteksc