Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF won't render text on v2.5.0 #253

Open
FilCZ opened this issue Mar 31, 2017 · 26 comments
Open

PDF won't render text on v2.5.0 #253

FilCZ opened this issue Mar 31, 2017 · 26 comments

Comments

@FilCZ
Copy link

FilCZ commented Mar 31, 2017

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.

@1stmetro
Copy link

Send the file will try it out.

@FilCZ
Copy link
Author

FilCZ commented Apr 1, 2017

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.

@juhasuni
Copy link

juhasuni commented Apr 7, 2017

I'm encountering the same issue.

@1stmetro
Copy link

1stmetro commented Apr 7, 2017

Down Grade pdfium works fine.

@barteksc
Copy link
Collaborator

barteksc commented Apr 7, 2017

Are there any log messages? Please provide your document

@juhasuni
Copy link

juhasuni commented Apr 7, 2017

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
Copy link

juhasuni commented Apr 7, 2017

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

@barteksc
Copy link
Collaborator

barteksc commented Apr 7, 2017

@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
Copy link
Collaborator

barteksc commented Apr 7, 2017

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

@juhasuni
Copy link

juhasuni commented Apr 7, 2017

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
Copy link

juhasuni commented Apr 7, 2017

DSC_PC585_pikaohje.pdf

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

@barteksc
Copy link
Collaborator

barteksc commented Apr 7, 2017

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

@barteksc
Copy link
Collaborator

barteksc commented Apr 8, 2017

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

@1stmetro
Copy link

1stmetro commented Apr 8, 2017

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

@juhasuni
Copy link

juhasuni commented Apr 8, 2017 via email

barteksc added a commit that referenced this issue Apr 8, 2017
@barteksc
Copy link
Collaborator

barteksc commented Apr 8, 2017

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

@1stmetro
Copy link

1stmetro commented Apr 8, 2017

Any extras in 2.51?

@barteksc
Copy link
Collaborator

barteksc commented Apr 8, 2017

No, just quickfix

@karlsoft
Copy link

karlsoft commented May 9, 2017

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

@barteksc
Copy link
Collaborator

barteksc commented May 9, 2017

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

@karlsoft
Copy link

karlsoft commented May 9, 2017

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

@barteksc
Copy link
Collaborator

barteksc commented May 9, 2017

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

@wonday
Copy link

wonday commented May 25, 2017

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

@1stmetro
Copy link

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.

@wonday
Copy link

wonday commented May 26, 2017

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

@barteksc
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants