In the goverment form example
[http://www.orbeon.com/ops/forms/], i could see that a pdf is generated based on the data i select. It's pretty nice. When i dugg the source code [ detail/pdf-detail-view.xpl ], i could see that it's making use of a pdf template. But in the documentation, i couldn't find any mention on that. Could someone tell me How can i create a pdf template? Is it a standard? How the fields are identified? Is there any way to create a template from an existing pdf file programmatically / manually? how do i mark each fields in pdf for orbeon.com / xforms to identify that. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
On Wed, Aug 27, 2008 at 8:54 AM, Priyadarsan Venugopalan
<[hidden email]> wrote: > In the goverment form example > [http://www.orbeon.com/ops/forms/], i could see that a pdf > is generated based on the data i select. It's pretty nice. > When i dugg the source code [ detail/pdf-detail-view.xpl ], > i could see that it's making use of a pdf template. But in > the documentation, i couldn't find any mention on that. In the Government Forms example, the location where the insertion should be done is provided using coordinates; see for instance apps/forms/forms/DMV-14/pdf-model.xml. Instead of using coordinates, you can also use PDF form fields. You need to use Acrobat Professional to create those fields on top of the PDF file. Each field has a name and you use something like <field acro-field-name="pdf-field-name'" value="XPath"/>. This is what we do in Form Runner. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Alex,
How did you mark the co-ordinates? Is there any tool, third party/orbeon/programming method, which helps to mark co-ordinates for each of the field either visually/programmatically. Am i right to say that, in case of co-ordinates based autofilling, the generated pdf has an additional layer, with the autofilled data. Can you put some light on it. Thanks for the snippet for the pdf form fields. Please point me to an example, where orbeon is making use of form fields. Priyan On Thu, Aug 28, 2008 at 7:14 AM, Alessandro Vernet <[hidden email]> wrote: In the Government Forms example, the location where the insertion should be done is provided using coordinates; see for instance apps/forms/forms/DMV-14/pdf-model.xml. Instead of using coordinates, you can also use PDF form fields. You need to use Acrobat Professional to create those fields on top of the PDF file. Each field has a name and you use something like <field acro-field-name="pdf-field-name'" value="XPath"/>. This is what we do in Form Runner. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
...you have a template/@show-grid attribute which you can set to "true" to see a greed with coordinates that should help you quite a bit.... A. On Aug 28, 2008, at 4:18 AM, Priyadarsan Venugopalan wrote:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In case of co-ordinates based autofilling, does the
generated pdf has an additional layer (than the pdf template), with the autofilled data. Can
you put some light on it? What library do you use for this functionality?
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Priyadarsan Venugopalan
Priyan,
On Wed, Aug 27, 2008 at 7:18 PM, Priyadarsan Venugopalan <[hidden email]> wrote: > How did you mark the co-ordinates? Is there any tool, third > party/orbeon/programming method, which helps to mark co-ordinates for each > of the field either visually/programmatically. There might be a tool out there that helps with this; I haven't really searched and so am not aware of any. > Am i right to say that, in case of co-ordinates based autofilling, the > generated pdf has an additional layer, with the autofilled data. Can you put > some light on it. If you use coordinates, you can just take any PDF and the data will be just added "on top of it". If you have fields defined as part of the PDF file, then the value of those fields is provided when the PDF is generated. Unless you have a very limited number of PDFs you need to do this for, and that those PDFs won't change much in the future, I would personally use the fields method rather than the coordinates methods. > Thanks for the snippet for the pdf form fields. Please point me to an > example, where orbeon is making use of form fields. The Form Runner is doing this. See the file resources/apps/fr/print-pdf-template.xpl. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |