Solved

Save file as pdf in java

Posted on 2013-05-11
6
418 Views
Last Modified: 2013-05-12
Hi there,

I want to write text and images and generate a pdf file.

Is it possible in java ?

I read there is itext (requires license), pdfbox(that requires apache). I don't convert text but i want to write and save the file as pdf..

Any help is appreciated. thank you.
0
Comment
Question by:zizi21
  • 3
  • 2
6 Comments
 
LVL 26

Expert Comment

by:dpearson
ID: 39159042
You will need to use a library/tool to do this (PDF is complex).

Another choice is PDFJet which is pretty cheap ($300 for a single developer).
http://pdfjet.com/

Doug
0
 

Author Comment

by:zizi21
ID: 39159067
thanks for the reply.

for pdfbox, can i import their jar files without installing the apache server ?
0
 
LVL 26

Accepted Solution

by:
dpearson earned 500 total points
ID: 39159074
Yes you can just use the JARs.

Don't confuse the "Apache Software Foundation" (the guys who write and manage the software) with the "Apache Web Server" which is one particular piece of software they own.

PDFBox is just one of the tools from the foundation.  Nothing to do with the Apache web server.

Doug
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:zizi21
ID: 39159095
Thanks so much.
0
 

Author Comment

by:zizi21
ID: 39159118
could you please look at this question as well..

http://www.experts-exchange.com/Programming/Languages/Java/Q_28125451.html
0
 
LVL 26

Expert Comment

by:mrcoffee365
ID: 39159536
There's a free iText as well.  

Apache has the FOP package (again, it does not require that you also have the apache web server) as well.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now