webOS Nation Forums >  Homebrew >  webOS patches > [PATCH REQUEST] PDF View Improvements
[PATCH REQUEST] PDF View Improvements

  Reply
Like Tree1Likes

 
LinkBack Thread Tools Display Modes
Old 04/14/2012, 03:48 PM   #41 (permalink)
Member
 
Join Date: Nov 2011
Posts: 41
Likes Received: 0
Thanks: 8
Thanked 1 Time in 1 Post
Smile I have an Idea for more perfect PDF screen viewer in this case

Quote:
Originally Posted by tarirene View Post
Landscape view in pdf is already available as a patch through preware (Enable Landscape PDF Viewer).

Ok, so I found a way to get rid of the page count ("1 / 100" for example); the arrows are still there though with my method. And I'm still not convinced you'd want to get rid of them (there doesn't seem to be another way to scroll through pages). Patch is attached; it won't interfere with any other patches for the pdf viewer.

As I thought, the two requests of the OP are way beyond me. It's not the first time someone's complained about it though; palm should get on this! PDF viewer in its current form really does suck.


Edit: This shouldn't be used in conjunction with pdf redux; they modify the same file.
This picture show us that: the pdf view not fit the screen (you can see the black bar at the bottom)

So you can sold this by using this step:

1. open file: document-assistant.js
(usr/palm/application/com.palm.app.pdfviewer/app/controllers)

2. approximate line 786 (I don't remember exactly)
after the line:
// TODO FIXME: plugin wants unscaled coordinates, but here we pass it coordinate/1.5
// var width = this.controller.window.innerWidth;
// var height = this.controller.window.innerHeight - headerHeight;


You can see two lines:
var width = 480;
var height = 702;

3. Change height=702 to height = 800.

4. Save and restart device.

5. Enjoy it!

You can see the pdf full screen, (except the bar ).

Last edited by truongtuananhhau1; 04/15/2012 at 03:43 AM.
truongtuananhhau1 is offline   Reply With Quote
Old 04/15/2012, 03:34 AM   #42 (permalink)
Member
 
Join Date: Nov 2011
Posts: 41
Likes Received: 0
Thanks: 8
Thanked 1 Time in 1 Post
Default

ah, here is the result ^^
Attached Images
File Type: png pdfviewer_2012-15-04_032718.png (168.1 KB, 6 views) Email Attachment
truongtuananhhau1 is offline   Reply With Quote
Old 04/15/2012, 03:36 AM   #43 (permalink)
Member
 
Join Date: Nov 2011
Posts: 41
Likes Received: 0
Thanks: 8
Thanked 1 Time in 1 Post
Default

Hi Tarirene!

Do you know the code to hide the bar (time, WiFi, battery...) at the top of phone screen when open the app?

thank you.
truongtuananhhau1 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0