aspose file tools*
The moose likes Java in General and the fly likes working with pdf.... in java j2ee Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "working with pdf.... in java j2ee" Watch "working with pdf.... in java j2ee" New topic
Author

working with pdf.... in java j2ee

vijaykumar shah
Greenhorn

Joined: Jul 02, 2003
Posts: 23
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
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ashish Vegaraju
Ranch Hand

Joined: Aug 19, 2004
Posts: 47
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

Joined: Jul 02, 2003
Posts: 23
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: working with pdf.... in java j2ee
 
Similar Threads
java-to-PDF with jdk1.4 (or java 5)
Comparing PDF files
Appending to PDF form fields using iText APIs
How to convert PDF file to an image files using java.
Java : avalon framework configuration exception