Hi there,
I'm needing to produce a PDF file that has not been flattened (i.e., such that the form fields remain as editable form fields). I noticed in the PDFTemplateProcessor that form flattening is specifically being called : stamper.setFormFlattening(true) // line 81 Is there an option somewhere to turn flattening off somehow? Or would I need to subclass it? If subclassing, is that the only option I would need to change in order to produce PDFs that remain editable but with some fields pre-populated? Thanks Lachlan -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Yes you would have to modify or override that processor.
I confess my ignorance as to whether doing setFormFlattening(false) would provide acceptable output in all cases. If so, then we could make that configurable. -Erik On Tue, Sep 3, 2013 at 10:06 PM, Lachlan Deck <[hidden email]> wrote: > Hi there, > > I'm needing to produce a PDF file that has not been flattened (i.e., such that the form fields remain as editable form fields). > > I noticed in the PDFTemplateProcessor that form flattening is specifically being called : > stamper.setFormFlattening(true) // line 81 > > > Is there an option somewhere to turn flattening off somehow? Or would I need to subclass it? > > If subclassing, is that the only option I would need to change in order to produce PDFs that remain editable but with some fields pre-populated? > > > Thanks > Lachlan > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Hi Erik,
I've just tried overriding the PDFTemplateProcessor by merely changing the setFormFlattening(false) and it seems to have the desired effect of leaving the form fields intact. So making it configurable would be good. On 05/09/2013, at 3:39 AM, Erik Bruchez <[hidden email]> wrote: > Yes you would have to modify or override that processor. > > I confess my ignorance as to whether doing setFormFlattening(false) > would provide acceptable output in all cases. If so, then we could > make that configurable. > > -Erik > > On Tue, Sep 3, 2013 at 10:06 PM, Lachlan Deck <[hidden email]> wrote: >> Hi there, >> >> I'm needing to produce a PDF file that has not been flattened (i.e., such that the form fields remain as editable form fields). >> >> I noticed in the PDFTemplateProcessor that form flattening is specifically being called : >> stamper.setFormFlattening(true) // line 81 >> >> >> Is there an option somewhere to turn flattening off somehow? Or would I need to subclass it? >> >> If subclassing, is that the only option I would need to change in order to produce PDFs that remain editable but with some fields pre-populated? >> >> >> Thanks >> Lachlan >> >> -- >> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. >> To post to this group, send email to [hidden email]. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi,
Thanks for testing. For now, I created an RFE: https://github.com/orbeon/orbeon-forms/issues/1260 Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |