Solved

Save file as pdf in java

Posted on 2013-05-11
6
422 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
difference of if loops 23 49
MySqlDump not dumping triggers 1 32
how to install java on RHEL image on EC2 4 28
runtime exception 2 29
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 contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

803 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