• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

PDF opening

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Thanks in advance.
In our application we are creating PDF at runtime in J2EE using iText.And whenever I am opening the PDF through my browser it is opening in previous zoom mode. Can any one tell me how can I open the PDF always in 100% zoom.

Regards,
Sree
 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Browsers don't understand pdf, they render it through plugins like adobe.
It is not the problem with your application or your browser but a feature of plugin/pdf-reader. I doubt if it is possible to program these controls.
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we open it through Java?
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know what exactly you are trying to do? If your intent is to generate a pdf-formatted data (pertaining to your application) and give it to the client, then your application has done it, you dont have to worry about what method/program/application the client uses to view it or may be you need not even think on what he does with the file.
or are you trying to write another 'adobe-pdf-reader/writer' equivalent in java?
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to open PDF through my website in 100% zoom.
Please visit http://www.junlu.com/msg/89334.html I have similar kind of question
 
Ranch Hand
Posts: 258
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can have open or save popup options for the pdf you are generating. You can also have the name dynamically set from the java class just add the following lines of code in java class after document.close. in itext



it will automatically pop up a window. But i dont know how to set the pdf size i think you should search for that in itext tutorials
 
He baked a muffin that stole my car! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic