• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

working with pdf.... in java j2ee

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is two in one question ...

i already have a Java program using FO in XSL that generated pdf as o/p file in the browser..... now i want to save that file on hard disk .. how can i save it .. is there any api for saving the pdf file.... as we have for generating pdf files


secondly .. how do we append two pdf files in java ... i am using jdk1.3 , weblogic . I need api .. pure java program to append the pdf files

vijay
 
author & internet detective
Posts: 41933
910
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vijay,

i already have a Java program using FO in XSL that generated pdf as o/p file in the browser..... now i want to save that file on hard disk .. how can i save it .. is there any api for saving the pdf file.... as we have for generating pdf files


Are you trying to write it to disk on the server or client?
If the server: The PDF file is written to a stream. Just write that stream to a location on disk.
If the client: Set the type to attachment. The user will be prompted to select a download location.

secondly .. how do we append two pdf files in java ... i am using jdk1.3 , weblogic . I need api .. pure java program to append the pdf files


I think you will need a commercial API for that. The free ones don't seem to read in PDF.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

For appending pdf files....u can use Lowagie's iText Java APIs.
log on to www.lowagie.com/iText

Any info on format convertion feel free to ask.
Ashish.
 
vijaykumar shah
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You got me very right .. and u suggested right answer . i have worked in the same fashion and i got the results what i needed..

Thanks

Vijay
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic