Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 245C7EBFB for ; Fri, 30 Nov 2012 20:24:49 +0000 (UTC) Received: (qmail 44827 invoked by uid 500); 30 Nov 2012 20:24:48 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 44810 invoked by uid 500); 30 Nov 2012 20:24:48 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 44801 invoked by uid 99); 30 Nov 2012 20:24:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 20:24:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of SRS0=RcmleN=J2=technoracle-systems.com=duane@yourhostingaccount.com designates 65.254.253.88 as permitted sender) Received: from [65.254.253.88] (HELO mailout11.yourhostingaccount.com) (65.254.253.88) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 20:24:43 +0000 Received: from mailscan16.yourhostingaccount.com ([10.1.15.16] helo=mailscan16.yourhostingaccount.com) by mailout11.yourhostingaccount.com with esmtp (Exim) id 1TeX8I-0004qq-63 for users@pdfbox.apache.org; Fri, 30 Nov 2012 15:24:22 -0500 Received: from impout02.yourhostingaccount.com ([10.1.55.2] helo=impout02.yourhostingaccount.com) by mailscan16.yourhostingaccount.com with esmtp (Exim) id 1TeX8H-0001Cb-Mg for users@pdfbox.apache.org; Fri, 30 Nov 2012 15:24:21 -0500 Received: from authsmtp11.yourhostingaccount.com ([10.1.18.11]) by impout02.yourhostingaccount.com with NO UCE id VwQM1k00B0EKrUA01wQMhp; Fri, 30 Nov 2012 15:24:21 -0500 X-Authority-Analysis: v=2.0 cv=HIVB5/Rv c=1 sm=1 a=Ai0yUh9FnnfGknE0mjn8Jg==:17 a=VGyoxfwBYx8A:10 a=OqL4oJhYFnMA:10 a=xAmRWg7EO_AA:10 a=IkcTkHD0fZMA:10 a=HrwbXxiEAAAA:8 a=FRO-EtBH4hAA:10 a=Nky2hzzcAAAA:8 a=mV9VRH-2AAAA:8 a=acuFBh5KAAAA:8 a=_FK2Yw0TFnQOJj6nXUQA:9 a=QEXdDO2ut3YA:10 a=gA6IeH5FQcgA:10 a=NWVoK91CQyQA:10 a=5bnIr+R+vs56oWgm0tidcA==:117 X-EN-OrigOutIP: 10.1.18.11 X-EN-IMPSID: VwQM1k00B0EKrUA01wQMhp Received: from s0106602ad06b7bdf.vc.shawcable.net ([24.84.35.95] helo=[192.168.0.12]) by authsmtp11.yourhostingaccount.com with esmtpa (Exim) id 1TeX8H-0000XH-6N for users@pdfbox.apache.org; Fri, 30 Nov 2012 15:24:21 -0500 User-Agent: Microsoft-MacOutlook/14.2.4.120824 Date: Fri, 30 Nov 2012 12:02:07 -0800 Subject: Re: XML to PDF From: Duane Nickull To: Message-ID: Thread-Topic: XML to PDF In-Reply-To: <20121130143501.F0E0.60BA733C@jeremias-maerki.ch> Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable X-EN-UserInfo: 60f228330f5b315013890e73c698f9eb:2f1e48c4d61ea23f0071fa28fa4423f9 X-EN-AuthUser: duane@technoracle-systems.com Sender: Duane Nickull X-EN-OrigIP: 24.84.35.95 X-EN-OrigHost: s0106602ad06b7bdf.vc.shawcable.net X-Virus-Checked: Checked by ClamAV on apache.org Alternatively, you can easily write a few classes that translate DOM objects into COS objects. We have done this in our product. It took very few days. XSLT/XSL-FO is one way to do the transformations using that methodology. We did not use it as our target is mobile forms which do not require very complex layouts. Most are horizontally centered and vertically flowed. Duane Nickull *********************************** Technoracle Advanced Systems Inc. Consulting and Contracting; Proven Results! i. Neo4J, PDF, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile b. http://technoracle.blogspot.com t. @duanechaos "Don't fear the Graph! Embrace Neo4J" On 2012-11-30 5:35 AM, "Jeremias Maerki" wrote: >An ideal candidate for that sort of thing is XSLT/XSL-FO with Apache FOP: >http://xmlgraphics.apache.org/fop/ > > >Jeremias Maerki > > >On 30.11.2012 13:29:50 Patrik Berzander wrote: >> Hi all, >>=20 >> The PDFBox application can create PDF from text files, which is great. >> But is there anyone out there that knows if it's possible to create a >>PDF from structured content such as XML? >>=20 >> I would like to to have a simple web form where someone can upload an >>image, type some text and from that we would create a PDF. >> There would be a fixed layout of course. >>=20 >> If anyone know if this is possible, please let me know. >>=20 >> _____________________________________________________ >>=20 >> V=C3=A4nliga h=C3=A4lsningar / Best regards, >> Patrik Berzander >>=20 >> Laidback Solutions AB >> Norrk=C3=B6ping =C2=95 Sweden >>=20 >> Mobile: +46 11-12 84 36 >> Office: +46 11-12 75 80 >> www.laidbacksolutions.se >> _____________________________________________________ >>=20 >