06-21-2012, 01:14 PM | #1 |
Wizard
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Building pdfviewer from PocketBook sources
I'm a bit disappointed with the way fonts are rendered in AdobeViewer and pdfviewer. Thin fonts that were designed for paper end up mostly as grey pixels when rendered with anti-aliasing turned on. Turning off ant-aliasing (in the main configuration) does nothing for AdobeViewer on my device, but it does affect pdfviewer. In the latter case, the fonts are rendered darker, but the strokes are very thin.
Long ago, @LoneTech suggested that ebook specific hints for fontconfig might be useful for improving the output. So, with that in mind, I downloaded the source code for pdfviewer from the repository to hack on it and see if I could make the text look clearer. Unfortunately, the source code seems to be all there, but the makefiles and configuration info isn't. So, there is no way to build the code as is. Has anyone put together the necessary files for building pdfviewer? Edit: the config.h file is there for poppler, so that helps when trying to decide what configure options to use. Last edited by rkomar; 06-23-2012 at 06:12 PM. |
03-04-2013, 08:44 AM | #2 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Feb 2013
Location: France
Device: PocketBook 912 + Kindle 3
|
Hi,
Quote:
Is that the pdfviewer from https://github.com/pocketbook-free/pdfviewer ? Did you manage to compile it? And change font hinting? Or maybe just add a gamma setting (the e-ink display is linear, whereas most rendering software assumes a display gamma of 2.2)? Any hint on how to compile this code would be helpful. This pdfviewer seems to be using poppler, which needs a lot of ressources. A lightweight PDF viewer would rather use mupdf (as kindlepdfviewer does). There is a comparison of both engines at http://hzqtc.github.com/2012/04/poppler-vs-mupdf.html Fred |
|
03-04-2013, 02:52 PM | #3 |
Wizard
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
I was able to get it to build, but it was a lot of work. The source code was out of date with the current firmware versions, and one of the necessary libraries wasn't on the devices anymore (libpbframework.so). After I got it working (added library to device, and library and header files to the build environment), and upgraded to a newer version of poppler, I played with the font rendering hints but never noticed any difference in the output. I was probably changing stuff in poppler/splash that was never used in the program. So given my lack of success and the fact that a different source version was actually being used on the devices, I gave up.
If you like, I could zip up what I have and make it available to you, but it's in a state of hackiness, and I can't even remember what I did to make it all work. I vaguely recall using Sergey's build environment for the last step rather than cmake, but I could be wrong. As far as swapping out the rendering engine, if you look at the source code, you'll see that that would be a massive undertaking. I think you'd be better off starting a new application from scratch. At least that way, you won't have to mess with pbframework anymore. |
03-08-2013, 10:05 AM | #4 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Feb 2013
Location: France
Device: PocketBook 912 + Kindle 3
|
What parameters did you try to change in poppler? screen gamma?
Quote:
|
|
03-08-2013, 10:26 AM | #5 |
Junior Member
Posts: 9
Karma: 10
Join Date: Feb 2013
Location: France
Device: PocketBook 912 + Kindle 3
|
I just came across this: https://bitbucket.org/vamonster/adva...for-pocketbook
They seem to have fixed many compilation issues (as I can see from the commits - I didn't test it) |
03-08-2013, 01:26 PM | #6 | |
Wizard
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
modified pdfviewer? | paola | PocketBook | 8 | 02-12-2012 01:32 PM |
What is wrong with the pdfviewer? | jshzh | PocketBook | 4 | 05-31-2011 11:09 AM |
where is pdfviewer | rtdog | PocketBook | 6 | 04-30-2011 01:14 PM |
Zoomstufen im PDFviewer | Galina | PocketBook | 1 | 03-29-2011 05:06 PM |
pdfviewer vs. djviewer | Pocketbookie | PocketBook | 0 | 12-20-2010 05:29 AM |