Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Save file as pdf in java

Posted on 2013-05-11
6
Medium Priority
?
445 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 28

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 28

Accepted Solution

by:
dpearson earned 2000 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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 

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 27

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 to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

721 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