File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Control Zoom of shown pdf file on client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Control Zoom of shown pdf file on client side" Watch "Control Zoom of shown pdf file on client side" New topic
Author

Control Zoom of shown pdf file on client side

sandeep kale
Greenhorn

Joined: Sep 11, 2008
Posts: 4
Hi All!
I am showing p.d.f. file in browser.But the zoom percentile is varying for each file.
I want to keep it by default to a fixed size.
Can I do this. Please advise me.
Thanks in advance.
Bye
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there and welcome to Javaranch!

Firstly it is Javaranch policy to have a 'real' firt and last name as your screen name, so please do take time to change this.

Secondly, I can't see how this is a Struts question? Please post questions in the correct forum (A staff member will move this eventually).

Now onto your Q:

Are you simply viewing a PDF from a file system? Loading it from Java?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
sandeep kale
Greenhorn

Joined: Sep 11, 2008
Posts: 4
Hi.
I am showing jasper report in p.d.f. format on browser i.e. am writing pdf
stream to s.e.r.v.l.e.t. Output Stream.Now issue is that stream on client browser is having different zooming percentile.I just want to have a fixed zoom percentage for the stream. Thank you.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Sorry I don't know enough about JasperReports and PDF display to help you. Hopefully someone else can chime in. It might be a case of the client dictating what the zoom percentage is, which in that case there is very little you can do.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Control Zoom of shown pdf file on client side