Lowyat.NET Forums

Welcome Guest ( Log In | Register )

 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Inserting "microsoft excel" to pdf using java api, Need a suggestion on this

eone
post Jun 26 2006, 06:40 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #1


Prime
*******

Group: Senior Member
Posts: 2,173
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: Putrajaya/Subang/USJ/Setiawangsa/Wangsa Maju






hi, i'm currently on developing an application using java and needed some suggestion on the best APIs on inserting microsoft documents(words and excel) to pdf.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
anthony_yio
post Jun 26 2006, 07:14 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #2


........
Group Icon
Codemasters

Group: Elite
Posts: 1,794
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003





QUOTE(eone @ Jun 26 2006, 06:40 PM)
hi, i'm currently on developing an application using java and needed some suggestion on the best APIs on inserting microsoft documents(words and excel) to pdf.
*


The "best" API would be undoubtably the principal Acrobat ActiveX objects model itself.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
eone
post Jun 28 2006, 01:10 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #3


Prime
*******

Group: Senior Member
Posts: 2,173
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: Putrajaya/Subang/USJ/Setiawangsa/Wangsa Maju






QUOTE(anthony_yio @ Jun 26 2006, 07:14 PM)
The "best" API would be undoubtably the principal Acrobat ActiveX objects model itself.
*



Thanks anthony_yio, but other than that? didn't want to popout the acroread when running my application..

.. went medc and men, they give away 10 iPaQ 6828 ><
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sunbeams
post Jun 28 2006, 01:50 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #4


Enthusiast
Group Icon

Group: Elite
Posts: 877
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: May 2006
From: Kuala Lumpur, Penang, Bangkok, Singapore






Sorry, I couldn't catch your question. Are you referring to:

1. Loading and displaying PDF files from a Java application?

2. Converting Microsoft Excel spreadsheets to PDF format?

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
dopodplaya
post Jun 28 2006, 03:30 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #5


Look at all my stars!!
*******

Group: Senior Member
Posts: 2,255
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jun 2006






There are some Third Party Java libraries/programs that can generate/display Adobe Acrobat/PDF file. Google? Btw, the stock Java API does not support ActiveX or any other native libraries (Windows DLL/OCX, GNU/Linux native .so or .o).

Suggestion, instead of Java, you can use Microsoft .NET Framework, Visual Basic 6.0 or C/C++ for that purpose. These tools are more suitable to work with ActiveX controls and Windows DLLs.

This post has been edited by dopodplaya: Jun 28 2006, 03:35 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
eone
post Jun 28 2006, 02:09 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #6


Prime
*******

Group: Senior Member
Posts: 2,173
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: Putrajaya/Subang/USJ/Setiawangsa/Wangsa Maju






QUOTE(sunbeams @ Jun 28 2006, 01:50 AM)
Sorry, I couldn't catch your question. Are you referring to:

1. Loading and displaying PDF files from a Java application?

2. Converting Microsoft Excel spreadsheets to PDF format?
*



yup, referring to the no. 2 only, and includes editing that converted spreadsheet.

QUOTE(dopodplaya @ Jun 28 2006, 03:30 AM)
There are some Third Party Java libraries/programs that can generate/display Adobe Acrobat/PDF file. Google? Btw, the stock Java API does not support ActiveX or any other native libraries (Windows DLL/OCX, GNU/Linux native .so or .o).

Suggestion, instead of Java, you can use Microsoft .NET Framework, Visual Basic 6.0 or C/C++ for that purpose. These tools are more suitable to work with ActiveX controls and Windows DLLs.
*



at first going to do on .net, but it seems that we needed the framework installed on every client, which consist of OSes ranging between windows 98 to 2003 and some on linux/unix sweat.gif and thousands of them sweat.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sunbeams
post Jun 29 2006, 03:09 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #7


Enthusiast
Group Icon

Group: Elite
Posts: 877
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: May 2006
From: Kuala Lumpur, Penang, Bangkok, Singapore






QUOTE(eone @ Jun 28 2006, 01:09 PM)
yup, referring to the no. 2 only, and includes editing that converted spreadsheet.
*



Do you mean to embed a Microsoft Excel Spreadsheet into a PDF document (like how one can embed spreadsheets, Visio drawings, Charts etc in to a Microsoft Word document), and allow editing it at later time (double-click, use Excel to change, then save...)?

I don't think this is possible. Even if it were, that would violate the main purpose of PDF.

Converting Excel to PDF is possible. There are many options available. You could simply use any PDF Converter tools (e.g. Adobe Distiller, GhostScript), which acts as a printer. So all you need to do is print the spreadsheet, but target the PDF Converter software as a target printer.

Alternatively, if you wish the Java-rise the process, take a look at OpenOffice.org. Try opening an Excel spreadsheet, then simply export as PDF. If it gives you the result you want, read through the Developer's Guide, and learn how to use Java to integrate with the OOo API. It's getting popular, and I've seen some companies using OpenOffice.org widespreadly.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
TheUrbNorm
post Jun 29 2006, 04:24 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #8


On my way
****

Group: Senior Member
Posts: 530
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Apr 2005






try google around sourceforge.net...i believe there are tones of open source API available.....

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 

Lo-Fi Version Time is now: 21st March 2010 - 06:50 PM
All Rights Reserved 2003-2009 Vijandren Ramadass (~living on a prayer~)