webOS Nation Forums >  Homebrew >  webOS Patches > [PATCH/IPK]Adobe PDF Reader Enhancements
[PATCH/IPK]Adobe PDF Reader Enhancements
  Reply
Like Tree33Likes

 
Thread Tools Display Modes
Old 12/11/2011, 05:03 PM   #1 (permalink)
Homebrew Developer
 
Posts: 415
PDF Reader - Enhancement Bundle

This thread is a properly named continuation of this thread. If you have a question or suggestion regarding this patch please review the original and this thread and see if it has already been discussed otherwise post it here.

This thread contains an installable version of the Adobe Reader that has several useful patches provided by a few webOS nation members.

The patch contributers are:

knownboyofno, filmor_, sagipe, devwithoutpower, and kjhenrie (me)

The list of features in the most recent version:
  • Retain and open on the last page viewed on each document
  • A goto page text field
  • The ability to set an offset so that the goto page value matches the book page number
  • Improved rendering resolution with a quality level selector
  • Table of contents with links
  • User bookmarks with basic page notes
  • Horizontal and vertical scroll retention
  • Thumbnail view scrolls to current page
  • Document database to persist settings and state
  • Folder view of documents
  • Two page spread
  • Global and document level settings dialog
  • View password protected docs
  • Full page view
  • Page turn tap zones
  • Zoom level retention across page turns

See the version history below for the various versions and the features introduced in each.

NOTE ON VERSION NUMBERS: Version numbers ending in .0 to .4 (e.g. 1.8.0) use the original rendering service provided by adobe. Versions ending in. 5 to .9 (e.g. 1.8.5) use a service based on mupdf modified and provided by filmor_.

If you are having problems opening a document with an mupdf based version try using the feature equivalent Adobe based version.

Installation

Patched Versions:

2.0.0 and 2.0.6 based on the features below with the Adobe version number bumped to 10.3.492. These patches do not include the enhancements in 10.3.492 but the version number has been bumped up to prevent the patched 10.3.484 versions to be overridden by the new 10.3.492 version.

2.0.0 (Adobe Renderer)
2.0.6 (Mupdf Renderer)

2.0.6 - This is a mupdf based release only that fixes printing.

Mupdf Renderer

2.0.0 - This includes a lot of enhancements contributed by knownboyofno with contributions by devwithoutpower and wknaeble.

a. Enhanced page positioning
b. Added opening protected PDFs patch from devwithoutpower. Link: http://forums.webosnation.com/native...pdf-files.html
c. Added new icon to launch a new patch menu with the following:

PDF settings with:

- Maximum Zoom - This allows the user to select the maximum amount the image is magnified at max zoom. Each number is a magnification i.e. 10 = 10X.
- Quality Settings - Low (L), Medium (M), High (H), Portrait in 1 Page View (P-1) and Portrait in 2 Page View (P-2)
- Keep Position - This allows you to turn off, lock horizontal (x), lock vertical (y) or keep the auto page positioning.
- Different Even/Odd Pages - This allows the odd and even numbered pages to have different page positioning.
- Page Offset
- Fullscreen*
- Two Page View - This activates the two page view mode.
Behavior: When the left page changes the right page changes but not the reverse. The right page has the same position and zoom level applied as left page.
General settings (applied for first time a PDF is opened then becomes the new settings unless changed) with:

- Maximum Zoom - This allows the user to select the maximum amount the image is magnified to zoom in. Each number is a magnification i.e. 10 = 10X. Allowed
- Quality Settings - Low (L), Medium (M), High (H), Portrait in 1 Page View (P-1) and Portrait in 2 Page View (P-2)
- Keep Position - This allows you to turn off, lock horizontal (x), lock vertical (y) or keep the auto page positioning between pages.
- Two Page View - This activates the two page view mode.
Behavior: When the left page changes the right page changes but not the reverse. The right page has the same position and zoom level applied as left page. On Next/Prev page tap the left view is updated two pages.
- Render # Pages - This will render 2-10 pages before and 2-10 pages after the current page. This can take some time to render and can slow down changing pages sometimes. This patch was provided by wknaeble. Link: PDF Reader - Open on the Last Viewed Page
- Height - This switch allows you to to select the full/half height of the page to cause a page change.
- Width - This allows you to select how much of the page's width will change the page.

Credit goes to devwithoutpower for the base code (here) to enable tap area improvements.

* - Setting is not saved.
Download:

Adobe Renderer
Mupdf Renderer

1.8.8/3

a. fixed a bug causing duplicate folders

Download:

For webOS 3.0.5:

NOTE: While the QO version number is 10.3.484 for now this is based on 10.3.404. I created this to allow it to be used with 3.0.5 until we can merge the patches in to the new version.

Adobe Renderer
Mupdf Renderer

For webOS 3.0.4:

Adobe Renderer
Mupdf Renderer


1.8.7/2

a. Fixed bug blocking access to non-local document sources (box.net, etc...)
b. Fixed bug causing duplicate folders
c. Restricted folders to those containing PDF documents
d. Filtered out zinio folders

1.8.6/1

a. Replaced flat PDF file view with folder view as outlined here (devwithoutpower)

1.8.5/0

a. A lock horizontal scroll button that can be used in conjunction with zoom in both portrait and landscape mode. (kjhenrie/knownboyofno)
b. Cleaned up zooming (knownboyofno)
c. Updated mupdf arxservice (filmor_)

1.7.5/0

a. User Bookmarks are now ordered by page number
b. User Bookmark names can span more than one line (poor mans page notes)
c. Fixed bug causing an 8-10 second delay when opening the Pages/Bookmarks (TOC) panel the first time

1.6.5/0

a. Added patch to filter out PDF documents created by Zinio from the document list
b. The "Pages" panel is scrolled to the current page. There is a known issue with this that causes a long delay when opening the pages/bookmarks toaster the first time after a document is opened. This will be fixed in a future version.
c. Reworked User Bookmarks eliminating thumbnails in favor of named bookmarks
d. Increased the next/previous page bottom tap area to 30px from 8px making it easier to change pages

1.5 - This version includes all of the features in 1.4 and the following new features:

a. Fixed blank page issue by forcing the highest resolution to 1800 (knownboyofno)
b. Added Table of Contents bookmarks as outlined here (devwithoutpower)
c. Added zoom memory across page changes as outlined here (devwithoutpower) and last zoom level retention when closing and reopening the document (knownboyofno)
d. Minor bug fixes in last page viewed retention (kjhenrie)
e. Renamed Bookmarks panel to User Bookmarks to eliminate redundancy with the new Bookmarks panel (Table of Contents) (kjhenrie)

1.4 - This version includes all of the features in 1.3 merged into the latest quickoffice version 10.3.406.

1.3 - This version adds a few new features brought to you by knownboyofno .

a. A portrait setting "P" was added to the quality setting for better zoomed out portrait views
b. An auto off (default) and auto on was added to the page offset
c. You can change pages by either swiping from the edge on the right to the left for tapping the bottom of the screen on the right (for next page and reverse for previous page)

[B]1.2[B] - In addition to the features in 1.1, version 1.2 adds

a. Bookmarks

Click on the bookmark icon on the toolbar and add the current page as a bookmark, select an existing bookmark, or if you are on a bookmarked page, remove the selected bookmark.

1.1 - In addition to the features in 1.0, 1.1 adds two new features created by knownboyofno.

a. You can set and enable/disable a page offset which is used to make the book table of contents page numbers line up with the page number entered in the goto page field.
b. You can select the page output quality to balance speed with quality.

1.0 - Includes the features described at the top of the post.

Uninstall

Option 1:
  1. Uninstall the Adobe Reader using preware
  2. Do a full device restart
  3. Open the Software Manager and an update notification for the Adobe Reader should show up. Install the latest version. If the update doesn't show up right away wait for a few minutes and try again.

Option 2 (use if the update doesn't show up in the catalog after option 1):
  1. Uninstall the Adobe Reader using preware
  2. Download and install this version. This version was built using an old version number to trigger an update in the Sofware Manager.
  3. Open the Software Manager and an update notification for the Adobe Reader should show up. Install the latest version. If the update doesn't show up right away wait for a few minutes and try again.

Wish List
  • Retain x/y page position on page change - kjhenrie/knownboyofno - 1.8.5 (horizontal scroll lock), 2.0.0 x/y memory setting
  • Even and odd page horizontal scroll lock settings - knownboyofno - 2.0.0
  • Two-page spread view - knownboyofno - 2.0.0
  • Annotations
  • Smooth previous/next page scrolling (remove snap to page)
  • View password protected documents - devwithoutpower - 2.0.0
  • Support hyperlinks
  • Text search
  • Improve mupdf based service rendering quality
  • Page notes (enhance user bookmarks) - kjhenrie - 1.7+
  • Support multiline user bookmark names - kjhenrie - 1.7+
  • Improved file organization - devwithoutpower - 1.8.1+(default) & 1.8.6+(mupdf)
  • Recent document list
  • Improve folder navigation performance. Consider storing paths in a database and adding a refresh button.

Bug Fixes
  • Order user bookmarks by page number - kjhenrie - 1.7+
  • Fix delay when opening the pages/bookmarks toaster - kjhenrie - 1.7+
  • Fix bug preventing remote file services - kjhenrie - 1.8.2+(default) & 1.8.7+(mupdf)
  • Fix duplicate folder issue - kjhenrie - 1.8.2+(default) & 1.8.7+(mupdf)
  • Remove resolution selector in mupdf version and default to H ???

WARNING: I am not responsible for any damage caused by installing and using this patched version of this application. INSTALL AND USE AT YOUR OWN RISK!

Last edited by kjhenrie; 04/01/2012 at 10:08 AM. Reason: Updated patched ipk version numbers to 10.3.492
kjhenrie is offline   Reply With Quote
Liked by Goyena, Rnp, Yellowhammer and 9 others like this.
Old 12/11/2011, 10:04 PM   #2 (permalink)
Member
 
Posts: 554
The thread is dead! Long live the thread! It was definitely about time.

That folder support looks pretty great. Considering how little code was added I expected something a bit more clunky, but it's pretty slick. I haven't tested 1.8.6 extensively but it installs and works just fine for me.
jdale is offline   Reply With Quote
Old 12/11/2011, 11:27 PM   #3 (permalink)
Homebrew Developer
 
Posts: 415
Quote:
Originally Posted by jdale View Post
The thread is dead! Long live the thread! It was definitely about time.

That folder support looks pretty great. Considering how little code was added I expected something a bit more clunky, but it's pretty slick. I haven't tested 1.8.6 extensively but it installs and works just fine for me.
Yeah devwithoutpower did a good job on that. Having folder support is a big win. I have dozens of technical manuals and while the search is nice I don't always remember the name of the book I am looking for. Now A list of recently viewed docs is at the top of my task list. I hope to have some time to work on it over the next couple of weeks.
kjhenrie is offline   Reply With Quote
Old 12/11/2011, 11:50 PM   #4 (permalink)
Member
 
Posts: 48
Quote:
Originally Posted by kjhenrie View Post
Yeah devwithoutpower did a good job on that. Having folder support is a big win. I have dozens of technical manuals and while the search is nice I don't always remember the name of the book I am looking for. Now A list of recently viewed docs is at the top of my task list. I hope to have some time to work on it over the next couple of weeks.
It does work really good, should have been a standard feature from quick office. Thanks devwithoutpower and kjhenrie.
I did notice, for some reason, that I get duplicates of the same folder. Not sure why that is.
Dogma is offline   Reply With Quote
Old 12/12/2011, 01:07 PM   #5 (permalink)
Member
 
stbxxl's Avatar
 
Posts: 513
Version 1.8.6. works just fine on my TP. Thank you.
stbxxl is offline   Reply With Quote
Old 12/12/2011, 05:00 PM   #6 (permalink)
Member
 
Posts: 18
1.8.6 installed and working. Thanks
BCPeter is offline   Reply With Quote
Old 12/12/2011, 06:50 PM   #7 (permalink)
Member
 
kayphoonstar's Avatar
 
Posts: 630
Wow! This is a great advance. Thank you!!
kayphoonstar is offline   Reply With Quote
Old 12/14/2011, 09:29 PM   #8 (permalink)
Member
 
kayphoonstar's Avatar
 
Posts: 630
Quote:
Originally Posted by BCPeter View Post
1.8.6 installed and working. Thanks
I had to drop back to 1.8.1 because of the "(error -604)" printer error - just fyi.
kayphoonstar is offline   Reply With Quote
Old 12/16/2011, 04:19 AM   #9 (permalink)
Member
 
Posts: 2
I am using 1.8.1 due to some errors with the 1.8.6.

I have problems with large pdfs. The blurry image shows up for a while for each page, then it just becomes a white screen. I can still see the thumbnails but the text doesn't show.
nagarjuna is offline   Reply With Quote
Old 12/18/2011, 10:00 AM   #10 (permalink)
Member
 
Posts: 79
Decided I'd try reading a magazine on my TP but was shocked by the terrible quality of the text I was attempting to read. After some digging found this patch. Fantastic work people, really appreciate it!
Boopop is offline   Reply With Quote
Old 12/19/2011, 08:13 AM   #11 (permalink)
Homebrew Developer
 
Posts: 222
Quote:
Originally Posted by nagarjuna View Post
I am using 1.8.1 due to some errors with the 1.8.6.
Please be more specific.

Quote:
Originally Posted by nagarjuna View Post
I have problems with large pdfs. The blurry image shows up for a while for each page, then it just becomes a white screen. I can still see the thumbnails but the text doesn't show.
Try using a lower quality level (that worked for me). There should maybe be an option to clear the cache to work around problems like this.

Quote:
Originally Posted by kayphoonstar View Post
I had to drop back to 1.8.1 because of the "(error -604)" printer error - just fyi.
Printing is not supported with the mupdf service for now, as I didn't have the time (nor need) to implement the corresponding callback. I'll look into that, but you would need to do some testing for me, as I don't have a compatible printer.
filmor_ is offline   Reply With Quote
Old 12/19/2011, 12:44 PM   #12 (permalink)
Member
 
Posts: 48
Quote:
Originally Posted by filmor_ View Post
Printing is not supported with the mupdf service for now, as I didn't have the time (nor need) to implement the corresponding callback. I'll look into that, but you would need to do some testing for me, as I don't have a compatible printer.
You do have a compatible printer, if you have a windows computer and then install this:

http://forums.webosnation.com/hp-tou...-solution.html
Dogma is offline   Reply With Quote
Old 12/19/2011, 01:09 PM   #13 (permalink)
Member
 
Posts: 48
I really wish it would be possible to add the ability to the QO Reader to support landscape printing. I found a couple commands that might do this but not sure how or where to add this:

https://developer.palm.com/content/a...t-manager.html

autoRotate - Not required - boolean - If true, input data is rotated to best match the printable area. Landscape photos are rotated to the printer's photo paper orientation while not affecting portrait photos.

https://developer.palm.com/content/a...-printing.html

frameToPrint.landscape - Not required - boolean - Print frame content in landscape or portrait flag.

Last edited by Dogma; 12/19/2011 at 01:16 PM.
Dogma is offline   Reply With Quote
Old 12/20/2011, 08:29 AM   #14 (permalink)
Member
 
Posts: 2
Thanks so much for this patch. Awesome work. Makes reading pdf's so much easier.

THANK YOU!
gitzo1028 is offline   Reply With Quote
Old 12/20/2011, 11:12 AM   #15 (permalink)
Member
 
Posts: 2
Thanks for your reply filmor. My problem with 1.8.6 was that no pdf could be opened at all. I can't recall the exact error message but it's something like "Could not read source file".

I tried decreasing quality to L and it didn't work for this book. It just shows black blurs on a brown page.
nagarjuna is offline   Reply With Quote
Old 12/20/2011, 05:52 PM   #16 (permalink)
Member
 
Posts: 7
Quote:
Originally Posted by Dogma View Post
It does work really good, should have been a standard feature from quick office. Thanks devwithoutpower and kjhenrie.
I did notice, for some reason, that I get duplicates of the same folder. Not sure why that is.
I get duplicate folders, also. I think it might to do with having nested folders with the same names. Also, with the folders extension installed, I no longer see PDFs in either Box.net or Google Docs. So, I backed it out. Still, it would be nice to have so I hope the developer takes another look at it.
bndrummo is offline   Reply With Quote
Old 12/20/2011, 10:47 PM   #17 (permalink)
Homebrew Developer
 
Posts: 415
Quote:
Originally Posted by bndrummo View Post
I get duplicate folders, also. I think it might to do with having nested folders with the same names. Also, with the folders extension installed, I no longer see PDFs in either Box.net or Google Docs. So, I backed it out. Still, it would be nice to have so I hope the developer takes another look at it.
If devwithoutpower doesn't beat me to it I'll take a look at this over the next few days. I plan on adding a recently viewed documents list so I'll be in that part of the code.
kjhenrie is offline   Reply With Quote
Thanked By: Dogma
Old 12/21/2011, 02:41 PM   #18 (permalink)
Member
 
Posts: 48
Quote:
Originally Posted by kjhenrie View Post
If devwithoutpower doesn't beat me to it I'll take a look at this over the next few days. I plan on adding a recently viewed documents list so I'll be in that part of the code.
Cool, thanks for looking into that!
Dogma is offline   Reply With Quote
Old 12/21/2011, 11:37 PM   #19 (permalink)
Member
 
Posts: 7
Thanks for working on this.
Does this enhancement package allow me to view bookmarks that were previously added to PDF documents?
For instance, I have some 2000 page textbooks that come in PDF files, pre-bookmarked and table of contents etc.
I thought I downloaded this patch but the bookmarks are not showing up on my touchpad... help!
I have an opportunity to sell my touchpad. If I cannot get the bookmarks to show up, I may need to sell it and buy something else.
nobelsmoke is offline   Reply With Quote
Old 12/21/2011, 11:56 PM   #20 (permalink)
Member
 
Posts: 280
Quote:
Originally Posted by nobelsmoke View Post
Thanks for working on this.
Does this enhancement package allow me to view bookmarks that were previously added to PDF documents?
For instance, I have some 2000 page textbooks that come in PDF files, pre-bookmarked and table of contents etc.
I thought I downloaded this patch but the bookmarks are not showing up on my touchpad... help!
I have an opportunity to sell my touchpad. If I cannot get the bookmarks to show up, I may need to sell it and buy something else.
Have you pressed the icon that looks like page with lines on it then the Bookmarks button?
knownboyofno is offline   Reply With Quote
Liked by nobelsmoke likes this.
Thanked By: nobelsmoke
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0