Re: The apparently unsolvable issue.. Duplex Page Numbering Support
On May 29, 2008, at 06:10, Martin Edge wrote: Hi snip / Some of these letters however, may be printed in duplex mode when it hits our printer. Currently we iterate through each generated PDF file, and modify a place holder to give it the correct page numbers based on whether the letter is simplex or duplex. We also do this similar tagging in the PCL file we generate afterwards. When dealing with large volumes of letters, this process is very time intensive. It would seem much smarter to solve this at the FO level. I know XSL-FO is strictly a formatting extension, but is there _any_ way in this .FO file I could do any calculation? For instance, somewaytocalculatefo:page-number-citation ref-id=endofsection1//somewaytocalculate Where in that calculation I could simply divide the output of the page number by 2 and floor it? In FO there really is no way to insert a calculation like that, if I interpret the question correctly: You cannot calculate anything based on a generated page-number. The only way to do something like that would be to resort to the Intermediate Format, and substitute the page-numbers in the area tree before the final rendering, but this may prove to be just as time- consuming as what you have now. (see http://xmlgraphics.apache.org/ fop/0.95/intermediate.html) HTH! Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The apparently unsolvable issue.. Duplex Page Numbering Support
Thanks Andreas, Turns out by changing the PDF library used to edit the PDFs to a commercial one (PDFNet) provides greater speed .. so I may just have to deal with that until the standard evolves that little bit further ;-) Thanks for the help -Original Message- From: Andreas Delmelle [mailto:[EMAIL PROTECTED] Sent: Friday, 30 May 2008 6:46 AM To: fop-users@xmlgraphics.apache.org Subject: Re: The apparently unsolvable issue.. Duplex Page Numbering Support On May 29, 2008, at 06:10, Martin Edge wrote: Hi snip / Some of these letters however, may be printed in duplex mode when it hits our printer. Currently we iterate through each generated PDF file, and modify a place holder to give it the correct page numbers based on whether the letter is simplex or duplex. We also do this similar tagging in the PCL file we generate afterwards. When dealing with large volumes of letters, this process is very time intensive. It would seem much smarter to solve this at the FO level. I know XSL-FO is strictly a formatting extension, but is there _any_ way in this .FO file I could do any calculation? For instance, somewaytocalculatefo:page-number-citation ref-id=endofsection1//somewaytocalculate Where in that calculation I could simply divide the output of the page number by 2 and floor it? In FO there really is no way to insert a calculation like that, if I interpret the question correctly: You cannot calculate anything based on a generated page-number. The only way to do something like that would be to resort to the Intermediate Format, and substitute the page-numbers in the area tree before the final rendering, but this may prove to be just as time- consuming as what you have now. (see http://xmlgraphics.apache.org/ fop/0.95/intermediate.html) HTH! Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The apparently unsolvable issue.. Duplex Page Numbering Support
I've had to remove the FO file as I can only assume that's why I'm hitting the spam threshold.. perhaps the apache mailing lists are a little anal? -Original Message- From: Martin Edge [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2008 2:03 PM To: 'fop-users@xmlgraphics.apache.org' Subject: The apparently unsolvable issue.. Duplex Page Numbering Support Hi, I have done a reasonable amount of digging across the internet but I am unable to find any workaround possible. Hopefully the answer isn't you're just stuck. I am using XSL-FO to format physical letters. The XSLT /XSL-FO template incorporates multiple postable letters in a single XSL-FO document. I use block ids to find out my current page sequences and numbers.. such as: fo:page-number-citation ref-id=startofsection1/-fo:page-number-citation ref-id=endofsection1/ fo:page-number-citation ref-id=startofsection2/-fo:page-number-citation ref-id=endofsection2/ And so on. Some of these letters however, may be printed in duplex mode when it hits our printer. Currently we iterate through each generated PDF file, and modify a place holder to give it the correct page numbers based on whether the letter is simplex or duplex. We also do this similar tagging in the PCL file we generate afterwards. When dealing with large volumes of letters, this process is very time intensive. It would seem much smarter to solve this at the FO level. I know XSL-FO is strictly a formatting extension, but is there _any_ way in this .FO file I could do any calculation? For instance, somewaytocalculatefo:page-number-citation ref-id=endofsection1//somewaytocalculate Where in that calculation I could simply divide the output of the page number by 2 and floor it? The page number in this case is used to generate a barcode which is printed on the front of a piece of paper which is read by a paper inserter. I have attached one of my FO files for your perusal.. I also notice Antenna XSL talks about MathML.. is that the sort of thing I'm looking for? Hope there is some magic out there somewhere! Thanks Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The apparently unsolvable issue.. Duplex Page Numbering Support
FO File example is at http://123.2.69.69/temp/test2.fo Thanks again, Martin. -Original Message- From: Martin Edge [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2008 2:06 PM To: fop-users@xmlgraphics.apache.org Subject: The apparently unsolvable issue.. Duplex Page Numbering Support I've had to remove the FO file as I can only assume that's why I'm hitting the spam threshold.. perhaps the apache mailing lists are a little anal? -Original Message- From: Martin Edge [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2008 2:03 PM To: 'fop-users@xmlgraphics.apache.org' Subject: The apparently unsolvable issue.. Duplex Page Numbering Support Hi, I have done a reasonable amount of digging across the internet but I am unable to find any workaround possible. Hopefully the answer isn't you're just stuck. I am using XSL-FO to format physical letters. The XSLT /XSL-FO template incorporates multiple postable letters in a single XSL-FO document. I use block ids to find out my current page sequences and numbers.. such as: fo:page-number-citation ref-id=startofsection1/-fo:page-number-citation ref-id=endofsection1/ fo:page-number-citation ref-id=startofsection2/-fo:page-number-citation ref-id=endofsection2/ And so on. Some of these letters however, may be printed in duplex mode when it hits our printer. Currently we iterate through each generated PDF file, and modify a place holder to give it the correct page numbers based on whether the letter is simplex or duplex. We also do this similar tagging in the PCL file we generate afterwards. When dealing with large volumes of letters, this process is very time intensive. It would seem much smarter to solve this at the FO level. I know XSL-FO is strictly a formatting extension, but is there _any_ way in this .FO file I could do any calculation? For instance, somewaytocalculatefo:page-number-citation ref-id=endofsection1//somewaytocalculate Where in that calculation I could simply divide the output of the page number by 2 and floor it? The page number in this case is used to generate a barcode which is printed on the front of a piece of paper which is read by a paper inserter. I have attached one of my FO files for your perusal.. I also notice Antenna XSL talks about MathML.. is that the sort of thing I'm looking for? Hope there is some magic out there somewhere! Thanks Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]