How to add watermark image in center for each page in pdf
I tried to put image as watermark in pdf. its coming in top of the page. I used the below code to get watermark in each page: fo:simple-page-master master-name=default page-height=29.7cm page-width=23cm margin-top=11mm margin-bottom=5mm margin-left=23mm margin-right=3cm fo:region-body display-align=right background-image=E:\pdfimages\my1.jpeg background-repeat=no-repeat /fo:region-body fo:region-after region-name=footer extent=0.5in/ /fo:simple-page-master the image is not coming in center of the page. how to get the image in center of the page in all the pages. -- View this message in context: http://www.nabble.com/How-to-add-watermark-image-in-center-for-each-page-in-pdf-tp19546479p19546479.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to add watermark image in center for each page in pdf
Hi, What you need is background-position-horizontal and background-position-vertical properties. There is some limitation when using repeat-*, see [1], but work fine in other cases. [1] http://xmlgraphics.apache.org/fop/compliance.html#fo-property-background-position-horizontal Pascal -Message d'origine- De : sushilmuppidi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 18 septembre 2008 08:00 À : fop-users@xmlgraphics.apache.org Objet : How to add watermark image in center for each page in pdf I tried to put image as watermark in pdf. its coming in top of the page. I used the below code to get watermark in each page: fo:simple-page-master master-name=default page-height=29.7cm page-width=23cm margin-top=11mm margin-bottom=5mm margin-left=23mm margin-right=3cm fo:region-body display-align=right background-image=E:\pdfimages\my1.jpeg background-repeat=no-repeat /fo:region-body fo:region-after region-name=footer extent=0.5in/ /fo:simple-page-master the image is not coming in center of the page. how to get the image in center of the page in all the pages. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to add watermark image in center for each page in pdf
HI Pascal I got the solution from ur suggested link, Thank u sushil Pascal Sancho wrote: Hi, What you need is background-position-horizontal and background-position-vertical properties. There is some limitation when using repeat-*, see [1], but work fine in other cases. [1] http://xmlgraphics.apache.org/fop/compliance.html#fo-property-background-position-horizontal Pascal -Message d'origine- De : sushilmuppidi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 18 septembre 2008 08:00 À : fop-users@xmlgraphics.apache.org Objet : How to add watermark image in center for each page in pdf I tried to put image as watermark in pdf. its coming in top of the page. I used the below code to get watermark in each page: fo:simple-page-master master-name=default page-height=29.7cm page-width=23cm margin-top=11mm margin-bottom=5mm margin-left=23mm margin-right=3cm fo:region-body display-align=right background-image=E:\pdfimages\my1.jpeg background-repeat=no-repeat /fo:region-body fo:region-after region-name=footer extent=0.5in/ /fo:simple-page-master the image is not coming in center of the page. how to get the image in center of the page in all the pages. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-add-watermark-image-in-center-for-each-page-in-pdf-tp19546479p19548875.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fop 0.95 beta-1 shutdowns my Weblogic server
Hi everybody: I am running fop 0.95 beta-1 (the lastest version I have found on maven repositories) in a weblogic server, and I have an unexpected problem when an error occurs whithing the fop xmlToPdf execution. In the following example, an exception had been thrown due to the fact that I had a element with no child elements defined within it. The error trace shows as: fo:42:17: Error(42/17): fo:table-body is missing child elements. Required Content Model: marker* (table-row+|table-cell+) But the real problem comes after the exception has been thrown. In this point, the server suddenly shutdowns with no apparent reason. The weblogic console shows this message: 2008-09-18 15:55:17.509::INFO: Shutdown hook executing 2008-09-18 15:55:17.525:/grec:INFO: Closing WebApplicationContext of Struts ActionServlet 'action', module '/ajax' [EMAIL PROTECTED]:55:17 INFO (AbstractApplicationContext.java:642) - Closing org.springframework.web.context.support.XmlWebA [EMAIL PROTECTED]: display name [WebApplicationContext for namespace 'action-servlet']; startup date [Thu Sep 18 15:54:09 CEST 2008]; parent: [EMAIL PROTECTED] [EMAIL PROTECTED]:55:17 INFO (DefaultSingletonBeanRegistry.java:274) - Destroying singletons in org.springframework.beans.fa [EMAIL PROTECTED]: Has anybody any idea about the reason of this behavior?? Could it be pheraphs an issue with the beta version?? Thanks in advance, Joaquín -- View this message in context: http://www.nabble.com/Fop-0.95-beta-1-shutdowns-my-Weblogic-server-tp19554692p19554692.html Sent from the FOP - Users mailing list archive at Nabble.com.
Re: Fop 0.95 beta-1 shutdowns my Weblogic server
Hi, The error indicates that your FO file has errors. fo:table-body is missing child elements. Have you checked your FO file to see if you have a table with no fo:table-row's ? HTH, Phil Erennion wrote: Hi everybody: I am running fop 0.95 beta-1 (the lastest version I have found on maven repositories) in a weblogic server, and I have an unexpected problem when an error occurs whithing the fop xmlToPdf execution. In the following example, an exception had been thrown due to the fact that I had a fo:table-body element with no child elements defined within it. The error trace shows as: fo:42:17: Error(42/17): fo:table-body is missing child elements. Required Content Model: marker* (table-row+|table-cell+) But the real problem comes after the exception has been thrown. In this point, the server suddenly shutdowns with no apparent reason. The weblogic console shows this message: 2008-09-18 15:55:17.509::INFO: Shutdown hook executing 2008-09-18 15:55:17.525:/grec:INFO: Closing WebApplicationContext of Struts ActionServlet 'action', module '/ajax' [EMAIL PROTECTED]:55:17 INFO (AbstractApplicationContext.java:642) - Closing org.springframework.web.context.support.XmlWebA [EMAIL PROTECTED]: display name [WebApplicationContext for namespace 'action-servlet']; startup date [Thu Sep 18 15:54:09 CEST 2008]; parent: [EMAIL PROTECTED] [EMAIL PROTECTED]:55:17 INFO (DefaultSingletonBeanRegistry.java:274) - Destroying singletons in org.springframework.beans.fa [EMAIL PROTECTED]: Has anybody any idea about the reason of this behavior?? Could it be pheraphs an issue with the beta version?? Thanks in advance, Joaquín -- View this message in context: http://www.nabble.com/Fop-0.95-beta-1-shutdowns-my-Weblogic-server-tp19554692p19557588.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]