Return-Path: Delivered-To: apmail-jakarta-poi-user-archive@www.apache.org Received: (qmail 25233 invoked from network); 28 Jan 2004 22:30:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Jan 2004 22:30:56 -0000 Received: (qmail 60095 invoked by uid 500); 28 Jan 2004 22:30:35 -0000 Delivered-To: apmail-jakarta-poi-user-archive@jakarta.apache.org Received: (qmail 60048 invoked by uid 500); 28 Jan 2004 22:30:35 -0000 Mailing-List: contact poi-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "POI Users List" Reply-To: "POI Users List" Delivered-To: mailing list poi-user@jakarta.apache.org Received: (qmail 59995 invoked from network); 28 Jan 2004 22:30:34 -0000 Received: from unknown (HELO tdsupport.ksc.nasa.gov) (163.205.16.2) by daedalus.apache.org with SMTP; 28 Jan 2004 22:30:34 -0000 Received: from tdryan ([163.205.218.126]) by tdsupport.ksc.nasa.gov (8.11.6/8.11.6) with SMTP id i0SM3Yu17494 for ; Wed, 28 Jan 2004 17:03:34 -0500 Message-ID: <026201c3e5ee$dab02560$7edacda3@tdryan> Reply-To: "Ryan Ackley" From: "Ryan Ackley" To: "POI Users List" References: <09BE6374E680A0468101E61F90D1765B3A30C5@server2.travelclick.net> Subject: Re: can POI create a PDF from an XLS? Date: Wed, 28 Jan 2004 17:34:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N In your case you might be better off doing the XML->PDF. I believe the XLS->XML has been done before. PDF templates don't exist in the same sense as XLS templates. You would need to get into PDF forms . Last time I checked, Acrobat had a pure java library for filling out forms. It creates an FDF file as compared to a PDF. Its like the PDF is the template and the FDF is the filled out form. The caveat is that you have to either buy the full version of Acrobat and create the original form/template. I don't remember if iText supports doing this programmatically. One advantage of buying the full version of Acrobat is that you can print out the Excel template to a PDF file and then create your form on top of that. This way the finished PDF will look virtually identical to the Excel worksheet. I am an expert on document management. If you need more help I offer consulting services through superlink software (http://www.superlinksoftware.com ). Maybe one of the Excel guys will chime in about the XML... -Ryan ----- Original Message ----- From: "Mark Meyer" To: "'POI Users List'" Sent: Wednesday, January 28, 2004 4:51 PM Subject: RE: can POI create a PDF from an XLS? > hello ryan.. > > > Given that you are programmatically creating the xls, you can > > programmatically create your PDF also. No need to convert > > from xls->PDF, it > > may be easier to just convert to PDF from your original data. > > yes - i agree. i like going straight from the data to PDF. my only concern > with this approach is: > > 1) at the moment - i have no experience with libs like iText that allow you > to programmatically produce PDF from raw data. i am not sure how difficult > it would be to stuff data in to a PDF document using "real world" > requirements (graphs, logo images and so on). > > 2) as our environment stands right now - we have numerous "template" files > (Excel .XLT files) that are developed by our product development people. > once they have the template looking nice - our process (using POI) just > pumps data programmatically in to a datasheet in the workbook. all of the > other sheets on the template then - just refer to the datasheet. although > the end result is not trivial - the process - from a development point of > view is pretty straight forward. > > using the approach above (i think ?) would necessitate the development of > parallel "templates" in PDF format. then we would simply drive data in to > the PDF template... > > > > > > > FOP is for > > XML-> PDF and iText is for programmatically creating PDF files. > > understood - this is also what i gather from reading the info i have found > so far. > > > > > > I don't work on the Excel side of POI so I don't know if > > there is something > > for converting Excel -> XML. If there is, it *might* be > > easier to do FOP. > > agreed! it would be neat if this did exist. > > > > But you would still have to convert this XML into the XML > > namespace that FOP > > understands, believe me this is not trivial. > > understood. also ... how would you move images and logos on the XLS > template in to the XML definition? i guess it could be done with something > like an HTML href (just thinking outloud). > > > > > I believe iText > > would probably > > fit your needs better. I would just generate the PDF from the > > data you used > > to create the Excel. > > agreed - i just need to gather more info regarding the process of creating a > "non-trivial" PDF template and then driving information in to the template. > > does anyone have any comment on this? > > thanks so much for all of the feedback! > mark > --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: poi-user-help@jakarta.apache.org