Solved

Save file as pdf in java

Posted on 2013-05-11
6
442 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 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

623 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