RE: problem with layout
Hi Robert, Thanks for your help. I can see your solution but my point is, the solution you provided is strictly content specific. And my primary requirement is, the content can be changed with respect to different xml and the content can be of any length. Until the float functionality is there in FOP,your solution is the only one I can use. But unfortunately it will not fulfill my requirement,so I have to come up with another layout. Regards, Suman Ray -Robert Meyer-5 [via Apache FOP] wrote: - To: suman ray suman.r...@tcs.com From: Robert Meyer-5 [via Apache FOP] ml-node+s1065347n39985...@n5.nabble.com Date: 02/06/2014 10:10PM Subject: RE: problem with layout Hi, Floats are not currently supported by FOP: http://xmlgraphics.apache.org/fop/compliance.html http://www.w3.org/TR/xsl/#d0e14346 If you're not using XSLT and rather creating an actual FO document, what you could do is use an absolute positioned block-container to reproduce the effect. You would need to know how much text to put in it and follow it up with a block with some follow-on text. I created the attached PDF using that method, but as a warning it's very finicky and you'd need to add a margin to the top of the following block to ensure the correct line spacing. Unless someone has a better suggestion it's about the best that can be done until the feature is implemented unfortunately. Regards, Robert Meyer Date: Thu, 6 Feb 2014 07:48:03 -0800 From: [hidden email] To: [hidden email] Subject: problem with layout I want to insert two content like the attached picture. But I can not do that using apache fop. Please help me with this problem. http://apache-fop.1065347.n5.nabble.com/file/n39983/problem.jpg -- View this message in context: http://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] output.pdf (9K) Download Attachment If you reply to this email, your message will be added to the discussion below: http://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983p39985.html To unsubscribe from problem with layout, click here. NAML =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- View this message in context: http://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983p39988.html Sent from the FOP - Users mailing list archive at Nabble.com.
Re: Set metadata to hint the PDF viewer not to scale the content when printing
Hi, AFAICK, there is no such feature in FOP. Currently, you can post-process your PDF with iText for that (see [1]) Also, you can open a Jira ticket to suggest this feature as Enhancement. [1] http://api.itextpdf.com/itext/com/itextpdf/text/pdf/interfaces/PdfViewerPreferences.html#addViewerPreference%28com.itextpdf.text.pdf.PdfName,%20com.itextpdf.text.pdf.PdfObject%29 2014-02-06 14:09 GMT+01:00 Peter Hopfgartner peter.hopfgart...@r3-gis.com: Hi all I would like to print some technical drawings, where an accurate control of the printing scale matters. As it seems, most PDF viewers rescale the content, in order to respect the printer margins, usually by some percent. AS stated in http://stackoverflow.com/questions/4725711/set-pdf-to-print-with-no-scaling, the metadata of the document can be set, in order to hint the viewer not to scale the image. Can this be controlled from FOP? -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: performance of PNG output vs PDF
Frank B wrote: I'm working on an application that creates labels. For PNG at 300 dpi, cpu usage is 2x higher than PDF output. The application can expect high volumes so performance is important. Is the relatively poor performance of image output normal? Is there a setting that can improve the png renderer performance? One would always expect rendering to have a higher CPU usage than outputting a vector format. Otherwise, one would have to assume a zero CPU load when running ghostscript! BugBear - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: problem with layout
Hi, There is a quite old FOP branch that aims to implement fo:float (see [1]) IIRC, it was based on FOP-1196 patch (see [2]). This issue is still open, but there is no plan to merge it to trunk. [1] https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats [2] https://issues.apache.org/jira/browse/FOP-1196 2014-02-07 9:05 GMT+01:00 suman ray suman.r...@tcs.com: Hi Robert, Thanks for your help. I can see your solution but my point is, the solution you provided is strictly content specific. And my primary requirement is, the content can be changed with respect to different xml and the content can be of any length. Until the float functionality is there in FOP,your solution is the only one I can use. But unfortunately it will not fulfill my requirement,so I have to come up with another layout. Regards, Suman Ray -Robert Meyer-5 [via Apache FOP] wrote: - To: suman ray [hidden email]http://user/SendEmail.jtp?type=nodenode=39988i=0 From: Robert Meyer-5 [via Apache FOP] [hidden email]http://user/SendEmail.jtp?type=nodenode=39988i=1 Date: 02/06/2014 10:10PM Subject: RE: problem with layout Hi, Floats are not currently supported by FOP: http://xmlgraphics.apache.org/fop/compliance.html http://www.w3.org/TR/xsl/#d0e14346 If you're not using XSLT and rather creating an actual FO document, what you could do is use an absolute positioned block-container to reproduce the effect. You would need to know how much text to put in it and follow it up with a block with some follow-on text. I created the attached PDF using that method, but as a warning it's very finicky and you'd need to add a margin to the top of the following block to ensure the correct line spacing. Unless someone has a better suggestion it's about the best that can be done until the feature is implemented unfortunately. Regards, Robert Meyer Date: Thu, 6 Feb 2014 07:48:03 -0800 From: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=0 To: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=1 Subject: problem with layout I want to insert two content like the attached picture. But I can not do that using apache fop. Please help me with this problem. http://apache-fop.1065347.n5.nabble.com/file/n39983/problem.jpg -- View this message in context: http://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=2 For additional commands, e-mail: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=3 - To unsubscribe, e-mail: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=4 For additional commands, e-mail: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=5 *output.pdf* (9K) Download Attachmenthttp://apache-fop.1065347.n5.nabble.com/attachment/39985/0/output.pdf -- If you reply to this email, your message will be added to the discussion below: http://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983p39985.html To unsubscribe from problem with layout, click here. NAMLhttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- View this message in context: RE: problem with layouthttp://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983p39988.html Sent from the FOP - Users mailing list archivehttp://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.htmlat Nabble.com. -- pascal
Re: Set metadata to hint the PDF viewer not to scale the content when printing
Hi Pascal, thank you for your accurate reply. I've created https://issues.apache.org/jira/browse/FOP-2338. Regards, Peter Hopfgartner R3 GIS http://www.r3-gis.com Am 07.02.2014 um 09:34 schrieb Pascal Sancho: Hi, AFAICK, there is no such feature in FOP. Currently, you can post-process your PDF with iText for that (see [1]) Also, you can open a Jira ticket to suggest this feature as Enhancement. [1] http://api.itextpdf.com/itext/com/itextpdf/text/pdf/interfaces/PdfViewerPreferences.html#addViewerPreference%28com.itextpdf.text.pdf.PdfName,%20com.itextpdf.text.pdf.PdfObject%29 2014-02-06 14:09 GMT+01:00 Peter Hopfgartner peter.hopfgart...@r3-gis.com: Hi all I would like to print some technical drawings, where an accurate control of the printing scale matters. As it seems, most PDF viewers rescale the content, in order to respect the printer margins, usually by some percent. AS stated in http://stackoverflow.com/questions/4725711/set-pdf-to-print-with-no-scaling, the metadata of the document can be set, in order to hint the viewer not to scale the image. Can this be controlled from FOP? -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Multiples Pages
Hi, I want to generate a PDF file with many pages but all the pages with the same XSLT template and every page with differents data from XML files. Do you know any idea How can I do this? Thanks -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Multiples-Pages-tp40001.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Multiples Pages
Rather a XSLT question than FO - but check if the XSLT document() function does the job for you. http://www.w3schools.com/XSL/func_document.asp Best, Frank On 07 Feb 2014, at 19:42, edi4988 edi4...@gmail.com wrote: Hi, I want to generate a PDF file with many pages but all the pages with the same XSLT template and every page with differents data from XML files. Do you know any idea How can I do this? Thanks -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Multiples-Pages-tp40001.html Sent from the FOP - Users mailing list archive at Nabble.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
fo:table-row bleeds into footer
Hi, I am using FOP 1.1. I have the following page layout. Basically the last page's footer (either odd or even) will have a big footer. The issue I am having is if I have a table, the rows bleed into the last-page-even footer (xsl-region-after-last) when it should break to 3rd page. My xsl-region-after-last is large (3.75in). Any ideas on how I can resolve this? fo:layout-master-set fo:page-sequence-master master-name=invoice fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=odd master-reference=last-page-odd blank-or-not-blank=not-blank page-position=last/ fo:conditional-page-master-reference odd-or-even=even master-reference=last-page-even blank-or-not-blank=not-blank page-position=last/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank page-position=any/ fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank page-position=any/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=page-even page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after extent=1.5in/ /fo:simple-page-master fo:simple-page-master master-name=page-odd page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after extent=1.5in/ /fo:simple-page-master fo:simple-page-master master-name=last-page-odd page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after-last-odd extent=3.75in/ /fo:simple-page-master fo:simple-page-master master-name=last-page-even page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after-last-even extent=3.75in/ /fo:simple-page-master /fo:layout-master-set -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: fo:table-row bleeds into footer
If you can trap the actual fo you will likely see an errant combination for static regions. I'm betting some page doesn't match body and footer size. On 02/07/2014 02:22 PM, Bonekrusher wrote: Hi, I am using FOP 1.1. I have the following page layout. Basically the last page's footer (either odd or even) will have a big footer. The issue I am having is if I have a table, the rows bleed into the last-page-even footer (xsl-region-after-last) when it should break to 3rd page. My xsl-region-after-last is large (3.75in). Any ideas on how I can resolve this? fo:layout-master-set fo:page-sequence-master master-name=invoice fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=odd master-reference=last-page-odd blank-or-not-blank=not-blank page-position=last/ fo:conditional-page-master-reference odd-or-even=even master-reference=last-page-even blank-or-not-blank=not-blank page-position=last/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank page-position=any/ fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank page-position=any/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=page-even page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after extent=1.5in/ /fo:simple-page-master fo:simple-page-master master-name=page-odd page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after extent=1.5in/ /fo:simple-page-master fo:simple-page-master master-name=last-page-odd page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after-last-odd extent=3.75in/ /fo:simple-page-master fo:simple-page-master master-name=last-page-even page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after-last-even extent=3.75in/ /fo:simple-page-master /fo:layout-master-set -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Multiples Pages
You can either use a count of pages via XSLT/FOP or encode the page number as a value in the XML. I have done either way in the past. This article may help: http://comments.gmane.org/gmane.text.xml.fop.user/13460 -Original Message- From: edi4988 [mailto:edi4...@gmail.com] Sent: 07 February 2014 18:43 To: fop-users@xmlgraphics.apache.org Subject: Multiples Pages Hi, I want to generate a PDF file with many pages but all the pages with the same XSLT template and every page with differents data from XML files. Do you know any idea How can I do this? Thanks -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Multiples-Pages-tp40001.html Sent from the FOP - Users mailing list archive at Nabble.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