Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

PDF opening

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we open it through Java?
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic