You can put as many NOPs as you like in any of fo:simple-page-master, fo:page-sequence and fo:declarations. But only with the current FOP Trunk which is available from our Subversion repository. See here for details: http://xmlgraphics.apache.org/fop/download.html#source
You can also try a nightly build if you're unfamiliar with building Java applications: http://xmlgraphics.apache.org/fop/download.html#binary On 04.02.2011 10:59:58 Dhulia, Sandeep wrote: > It may not solve the issue since nop in fo:declaration will be outputted > once for document and nop in page sequence is for each page but within > the BPG and EPG. I guess the printer is expecting to see the NOP before > page begins to get additional information for the page. Is it possible > to add multiple nops within fo:declaration and page-sequence as we do it > in simple page master? Can you please guide me from where can I download > your fix and a short description on how to use your changes to get the > output. > > > Thanks & Regards, > Sandeep > > ________________________________________ > From: Jeremias Maerki [d...@jeremias-maerki.ch] > Sent: Friday, February 04, 2011 1:50 PM > To: fop-users@xmlgraphics.apache.org > Subject: Re: AFP Rendering > > Just FYI, I've added the possibility to add NOP's in fo:declarations > (NOP appearing just after BDT) and fo:page-sequence (NOP appearing just > after BPG). Not exactly what you want, I know, but I thought I'd mention > it. Adding NOPs outside their respective containers will not be trivial, > I think. > > > On 04.02.2011 08:48:19 Dhulia, Sandeep wrote: > > Hi Peter, > > > > Thanks Peter and appreciate your help in this issue. I will raise this as > > a feature request in bugzilla. > > > > Thanks & Regards, > > Sandeep > > ________________________________________ > > From: Peter Hancock [peter.hanc...@gmail.com] > > Sent: Friday, January 28, 2011 3:09 PM > > To: fop-users@xmlgraphics.apache.org > > Subject: Re: AFP Rendering > > > > Hi Sandeep, > > > > Sorry for the delayed response. The code that handles the rendering > > of NOPs is within IFRenderer.renderPage() and I can confirm that FOP > > will always render a page header before a NOP. I am not sure how > > popular the use case is for declaring NOPs outside of the page scope. > > The MO:DCA specification only stipulates that a NOP must be enclosed > > within begin-end domain, and so your requirement is certainly valid. > > > > Perhaps a FOP developer with the available time would be willing to > > provide a patch that extends the afp:no-operation element with an > > attribute to specify the placement of the NOP at document or page > > level. You should raise a feature request in the ASFs bugzilla > > https://issues.apache.org/bugzilla, stating your requirements. I > > would also recommend that you advertise your request for this > > requirement in a new thread on the fop-dev mailing list. > > > > I hope I have been of help, > > > > Pete > > > > On Fri, Jan 28, 2011 at 5:11 AM, Dhulia, Sandeep > > <sandeep.dhu...@patni.com> wrote: > > > Not yet!!! > > > > > > BR, > > > Sandeep > > > > > > ________________________________________ > > > From: Peter Weber [peter.we...@garaio.com] > > > Sent: Thursday, January 27, 2011 7:33 PM > > > To: fop-users@xmlgraphics.apache.org > > > Cc: Dhulia, Sandeep > > > Subject: RE: AFP Rendering > > > > > > Hello Sandeep > > > > > > Have You got an answer or a solution on that issue? > > > I would really appreciate to place NOPs or other elements as valid NOPs > > > in the document structure. > > > > > > Otherwise, I have to find a way to solve this with TLEs, which needs > > > change in the solution of the customer. > > > > > > Thanks and Regards > > > Peter > > > > > > > > > -----Original Message----- > > > From: Dhulia, Sandeep [mailto:sandeep.dhu...@patni.com] > > > Sent: Dienstag, 18. Januar 2011 15:14 > > > To: fop-users@xmlgraphics.apache.org > > > Subject: RE: AFP Rendering > > > > > > Hi Peter, > > > > > > Thanks for your prompt response. Please find attached sample.fo which we > > > are generating. I am also attaching an image(snap) of what is getting > > > printed in afp file. > > > > > > As per the document we can use the tag only in simple page master, but is > > > there any configuration related parameters that can give me finer control > > > on output (like not print Named Group (BNG) or position of NOP etc) > > > > > > Thanks & Regards, > > > Sandeep > > > > > > ________________________________________ > > > From: Peter Hancock [peter.hanc...@gmail.com] > > > Sent: Tuesday, January 18, 2011 6:32 PM > > > To: fop-users@xmlgraphics.apache.org > > > Subject: Re: AFP Rendering > > > > > > Hi Sandeep, > > > > > > > > > Reading > > > http://xmlgraphics.apache.org/fop/trunk/output.html#afp-no-operation, > > > it appears that FOP only allows NOP declarations in the Simple Page > > > Master, and so there may not be a way to control the position relative to > > > where pages begin and end. > > > > > > Can you please attach the fo file or perhaps a suitably cut down version > > > if you require further investigation. > > > > > > Thanks, > > > > > > Peter > > > > > > > > > On Tue, Jan 18, 2011 at 11:45 AM, Dhulia, Sandeep > > > <sandeep.dhu...@patni.com> wrote: > > >> Hi All, > > >> > > >> > > >> > > >> I am new to Apache AFP rendering and need your help. I am using Apache > > >> FOP to get an AFP output for printing. I am using an afp extension > > >> (no-operation) in fo file inside simple page master tag. I get the afp > > >> output file with below structure i.e. > > >> > > >> <BDT>(Document Start) > > >> > > >> .... > > >> > > >> ..... > > >> > > >> <BNG>(Named Group Start) > > >> > > >> <BPG>(Page) > > >> > > >> .... > > >> > > >> .... > > >> > > >> <NOP>(This is coming > > >> at page > > >> level) > > >> > > >> <EPG>(Page) > > >> > > >> <ENG>(Named Group End) > > >> > > >> > > >> > > >> <BNG>(Named Group) > > >> > > >> <BPG>(Page) > > >> > > >> .... > > >> > > >> .... > > >> > > >> <NOP>(This is coming > > >> at page > > >> level) > > >> > > >> <EPG>(Page) > > >> > > >> <ENG>(Named Group) > > >> > > >> > > >> > > >> <EDT> (Document End) > > >> > > >> > > >> > > >> But my client wants to see the output in below format (without BNG tag > > >> and NOP at document level) > > >> > > >> > > >> > > >> <BDT>(Document Start) > > >> > > >> <NOP>(for page below at document level) > > >> > > >> <BPG>(Page Start) > > >> > > >> .... > > >> > > >> .... > > >> > > >> <EPG>(Page End) > > >> > > >> <NOP>(for page below at document level) > > >> > > >> <BPG>(Page Start) > > >> > > >> ... > > >> > > >> .... > > >> > > >> <EPG>(Page Start) > > >> > > >> <EDT> (Document End) > > >> > > >> > > >> > > >> How can I achieve this with Apache FOP.? I appreciate all your help. I > > >> am using FOP 1.0 > > >> > > >> > > >> > > >> Thanks & Regards, > > >> > > >> Sandeep > > >> > > >> ________________________________ > > >> Information contained and transmitted by this e-mail is confidential > > >> and proprietary to Patni Computer Systems Ltd and its affiliates > > >> (hitherto referred as Patni Computers) and is intended for use only by > > >> the recipient. > > >> If you are not the intended recipient , you are hereby notified that > > >> any dissemination, distribution, copying or use of this e-mail is > > >> strictly prohibited and you are requested to delete this e-mail > > >> immediately and notify the originator or netad...@patni.com. Patni > > >> Computers does not enter into any agreement with any party by e-mail. > > >> Any views expressed by an individual do not necessarily reflect the > > >> view of Patni Computers. Patni Computers is not responsible for the > > >> consequences of any actions taken on the basis of information > > >> provided, through this email. The contents of an attachment to this > > >> e-mail may contain software viruses, which could damage your own > > >> computer system. While Patni Computers has taken every reasonable > > >> precaution to minimise this risk, we cannot accept liability for any > > >> damage which you sustain as a result of software viruses. You should > > >> carry out your own virus checks before opening an attachment. To know > > >> more about Patni Computers please visit www.patni.com. > > >> > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > > > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > > > > > Information contained and transmitted by this e-mail is confidential and > > > proprietary to Patni Computer Systems Ltd and its affiliates (hitherto > > > referred as Patni Computers) and is intended for use only by the > > > recipient. If you are not the intended recipient , you are hereby > > > notified that any dissemination, distribution, copying or use of this > > > e-mail is strictly prohibited and you are requested to delete this e-mail > > > immediately and notify the originator or netad...@patni.com. Patni > > > Computers does not enter into any agreement with any party by e-mail. Any > > > views expressed by an individual do not necessarily reflect the view of > > > Patni Computers. Patni Computers is not responsible for the consequences > > > of any actions taken on the basis of information provided, through this > > > email. The contents of an attachment to this e-mail may contain software > > > viruses, which could damage your own computer system. While Patni > > > Computers has taken every reasonable precaution to minimise this risk, we > > > cannot accept liability for any damage which you sustain as a result of > > > software viruses. You should carry out your own virus checks before > > > opening an attachment. To know more about Patni Computers please visit > > > www.patni.com. > > > > > > Information contained and transmitted by this e-mail is confidential and > > > proprietary to Patni Computer Systems Ltd and its affiliates (hitherto > > > referred as Patni Computers) and is intended for use only by the > > > recipient. If you are not the intended recipient , you are hereby > > > notified that any dissemination, distribution, copying or use of this > > > e-mail is strictly prohibited and you are requested to delete this e-mail > > > immediately and notify the originator or netad...@patni.com. Patni > > > Computers does not enter into any agreement with any party by e-mail. Any > > > views expressed by an individual do not necessarily reflect the view of > > > Patni Computers. Patni Computers is not responsible for the consequences > > > of any actions taken on the basis of information provided, through this > > > email. The contents of an attachment to this e-mail may contain software > > > viruses, which could damage your own computer system. While Patni > > > Computers has taken every reasonable precaution to minimise this risk, we > > > cannot accept liability for any damage which you sustain as a result of > > > software viruses. You should carry out your own virus checks before > > > opening an attachment. To know more about Patni Computers please visit > > > www.patni.com. > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > > > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > > > Information contained and transmitted by this e-mail is confidential and > > proprietary to Patni Computer Systems Ltd and its affiliates (hitherto > > referred as Patni Computers) and is intended for use only by the recipient. > > If you are not the intended recipient , you are hereby notified that any > > dissemination, distribution, copying or use of this e-mail is strictly > > prohibited and you are requested to delete this e-mail immediately and > > notify the originator or netad...@patni.com. Patni Computers does not enter > > into any agreement with any party by e-mail. Any views expressed by an > > individual do not necessarily reflect the view of Patni Computers. Patni > > Computers is not responsible for the consequences of any actions taken on > > the basis of information provided, through this email. The contents of an > > attachment to this e-mail may contain software viruses, which could damage > > your own computer system. While Patni Computers has taken every reasonable > > precaution to minimise this risk, we cannot accept liability for any damage > > which you sustain as a result of software viruses. You should carry out > > your own virus checks before opening an attachment. To know more about > > Patni Computers please visit www.patni.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > > > > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > Information contained and transmitted by this e-mail is confidential and > proprietary to Patni Computer Systems Ltd and its affiliates (hitherto > referred as Patni Computers) and is intended for use only by the recipient. > If you are not the intended recipient , you are hereby notified that any > dissemination, distribution, copying or use of this e-mail is strictly > prohibited and you are requested to delete this e-mail immediately and notify > the originator or netad...@patni.com. Patni Computers does not enter into any > agreement with any party by e-mail. Any views expressed by an individual do > not necessarily reflect the view of Patni Computers. Patni Computers is not > responsible for the consequences of any actions taken on the basis of > information provided, through this email. The contents of an attachment to > this e-mail may contain software viruses, which could damage your own > computer system. While Patni Computers has taken every reasonable precaution > to minimise this risk, we cannot accept liability for any damage which you > sustain as a result of software viruses. You should carry out your own virus > checks before opening an attachment. To know more about Patni Computers > please visit www.patni.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org