Re: How to center horizontally 1 or 2 tables within other table?
On 21.10.2008 00:07:51 gennady wrote: Hi, Here is the snippet of the code that should print horizontally 1 or 2 business card-like tables inside each row. But they became left - justified. And I need them to be centered. I put text-align=center numerous times and it didn't help. Basically I did not right this code. My job was to add images and make them centerd. I added the images successfully, as you see, but couldn't center the tables. Imagine you have 2 business cards on 1 row: FOTO Full Name FOTO Full Name 40x40 Address40x40 Address City, ST ZipCity, ST Zip Telephone Telephone Email Email Or only 1 card: FOTO Full Name 40x40 Address City, ST Zip Telephone Email Centering one table is described at http://xmlgraphics.apache.org/fop/faq.html#fo-center-table-horizon Centering two tables next to each other (if I understand you correctly) might be done as shown in the attached FO file. Also is there a way to print out generated FOP output after processing through the scriptlets code? Depends. I don't have the full picture to answer that. Using FOP's print renderer (-print on the command-line) you can print to a local printer driver. Remote printing a PDF in the client's browser is tricky. You might want to search the mailing list archive for ideas. Questions like this have come up before. HTH Thank you, -Gennady fo:block text-align=center fo:table text-align=center table-layout=fixed hyphenate=true language=en width=100% fo:table-column column-width=2cm/ fo:table-column column-width=4cm/ fo:table-column column-width=proportional-column-width(1)/ !-- we will paint three columns if there are more than one agent -- % if (agentNumber 1) { % fo:table-column column-width=2cm/ fo:table-column column-width=4cm/ fo:table-column column-width=proportional-column-width(1)/ % } % fo:table-body fo:table-row text-align=center !-- first group of Agent -- % for (i=0; i agentNumber; i=i+3) { // for printing the Agent name for (j=i; (j agentNumber j=(i+2)); j++) { % fo:table-cell text-align=center fo:block fo:external-graphic src=%= arrAgent[j].getThumbImageUrl()% width=40px height=40px/ /fo:block /fo:table-cell fo:table-cell fo:block margin-left=0pt padding-left=5pt fo:table width=100% text-align=left fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row !-- Agent name -- fo:table-cell fo:block font-weight=bold % if (arrAgent[j].getCustomName() != null) { if (!.equalsIgnoreCase( arrAgent[j].getCustomName() )) { % ![CDATA[%= arrAgent[j].getCustomName()%]] % } else { % ![CDATA[%= arrAgent[j].getDisplayName()%]] % } % % } else { % ![CDATA[%= arrAgent[j].getDisplayName()%]] % } % /fo:block /fo:table-cell /fo:table-row fo:table-row !-- Agent office -- fo:table-cell fo:block % if (arrAgent[j].getOfficeVO().getCity() != null) { % ![CDATA[%= arrAgent[j].getOfficeVO().getCity() + Office%]] % } % /fo:block /fo:table-cell /fo:table-row fo:table-row !-- office address -- fo:table-cell fo:block % if (arrAgent[j].getOfficeVO().getAddress() != null) { % ![CDATA[%=
Re: How to center horizontally 1 or 2 tables within other table?
Hi, text-align is an inherited property, so you need it to specify only once at the root of the document. However, you have a text-align=left further down the document tree in your code below. Maybe that’s the origin of your problem. HTH, Vincent gennady wrote: Hi, Here is the snippet of the code that should print horizontally 1 or 2 business card-like tables inside each row. But they became left - justified. And I need them to be centered. I put text-align=center numerous times and it didn't help. Basically I did not right this code. My job was to add images and make them centerd. I added the images successfully, as you see, but couldn't center the tables. Imagine you have 2 business cards on 1 row: FOTO Full Name FOTO Full Name 40x40 Address40x40 Address City, ST ZipCity, ST Zip Telephone Telephone Email Email Or only 1 card: FOTO Full Name 40x40 Address City, ST Zip Telephone Email Also is there a way to print out generated FOP output after processing through the scriptlets code? Thank you, -Gennady fo:block text-align=center fo:table text-align=center table-layout=fixed hyphenate=true language=en width=100% fo:table-column column-width=2cm/ fo:table-column column-width=4cm/ fo:table-column column-width=proportional-column-width(1)/ !-- we will paint three columns if there are more than one agent -- % if (agentNumber 1) { % fo:table-column column-width=2cm/ fo:table-column column-width=4cm/ fo:table-column column-width=proportional-column-width(1)/ % } % fo:table-body fo:table-row text-align=center !-- first group of Agent -- % for (i=0; i agentNumber; i=i+3) { // for printing the Agent name for (j=i; (j agentNumber j=(i+2)); j++) { % fo:table-cell text-align=center fo:block fo:external-graphic src=%= arrAgent[j].getThumbImageUrl()% width=40px height=40px/ /fo:block /fo:table-cell fo:table-cell fo:block margin-left=0pt padding-left=5pt fo:table width=100% text-align=left fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row !-- Agent name -- fo:table-cell fo:block font-weight=bold % if (arrAgent[j].getCustomName() != null) { if (!.equalsIgnoreCase( arrAgent[j].getCustomName() )) { % ![CDATA[%= arrAgent[j].getCustomName()%]] % } else { % ![CDATA[%= arrAgent[j].getDisplayName()%]] % } % % } else { % ![CDATA[%= arrAgent[j].getDisplayName()%]] % } % /fo:block /fo:table-cell /fo:table-row fo:table-row !-- Agent office -- fo:table-cell fo:block % if (arrAgent[j].getOfficeVO().getCity() != null) { % ![CDATA[%= arrAgent[j].getOfficeVO().getCity() + Office%]] % } % /fo:block /fo:table-cell /fo:table-row fo:table-row !-- office address -- fo:table-cell fo:block % if (arrAgent[j].getOfficeVO().getAddress() != null) { % ![CDATA[%= arrAgent[j].getOfficeVO().getAddress() %]] % } % /fo:block /fo:table-cell /fo:table-row fo:table-row !-- office city, state and zip -- fo:table-cell
empty columns on multi-column-page
Hello everybody. Like many poster before me, I do have a problem with different column-counts on one page. Only slightly different from the examples I found in this mailing list. Usually, I want a 2-column-layout, but sometimes blocks span both columns. In this cases I want, contrary to all other examples I found up to now, only text in the first column. No column breaks, no centered column, only the first column filled: Page 1: aaa bbb aaa ccc aaa ccc bbb ccc bbb ddd Page 2: ddd ddd eee fff fff fff ggg Page 3: ggg iii ggg iii hhh iii hhh hhh Page 4: jjj kkk lll kkk mmm kkk mmm lll nnn The only way I found to reach my goal would be manual splitting and adding span=all and margin-right to some blocks. Which is neither nice nor foolproof. Can anybody here think of a better solution? Thanks in advance, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Table header are not displayed
Hi All, I am parsing an xml having information of CD. In xsl file in xsl-region-body referring tag cd and then I am displaying headers of pdf (title, artist.. etc). But in pdf output the headers are not displayed. I am attaching the xml and xsl files and also output pdf file. Can any body help in getting headers in pdf file? Regards, Bhaskar DISCLAIMER: This message contains privileged and confidential information and is intended only for an individual named. If you are not the intended recipient, you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version. catalog.xsl Description: catalog.xsl catalog.pdf Description: catalog.pdf ?xml version=1.0 encoding=ISO-8859-1 ? ?xml-stylesheet type=text/xsl? catalog cd titleEmpire Burlesque/title artistBob Dylan/artist countryUSA/country companyColumbia/company price10.90/price year1985/year /cd cd titleHide your heart/title artistBonnie Tyler/artist countryUK/country companyCBS Records/company price9.90/price year1988/year /cd cd titleGreatest Hits/title artistDolly Parton/artist countryUSA/country companyRCA/company price9.90/price year1982/year /cd cd titleStill got the blues/title artistGary Moore/artist countryUK/country companyVirgin records/company price10.20/price year1990/year /cd cd titleEros/title artistEros Ramazzotti/artist countryEU/country companyBMG/company price9.90/price year1997/year /cd cd titleOne night only/title artistBee Gees/artist countryUK/country companyPolydor/company price10.90/price year1998/year /cd cd titleSylvias Mother/title artistDr.Hook/artist countryUK/country companyCBS/company price8.10/price year1973/year /cd cd titleMaggie May/title artistRod Stewart/artist countryUK/country companyPickwick/company price8.50/price year1990/year /cd cd titleRomanza/title artistAndrea Bocelli/artist countryEU/country companyPolydor/company price10.80/price year1996/year /cd cd titleWhen a man loves a woman/title artistPercy Sledge/artist countryUSA/country companyAtlantic/company price8.70/price year1987/year /cd cd titleBlack angel/title artistSavage Rose/artist countryEU/country companyMega/company price10.90/price year1995/year /cd cd title1999 Grammy Nominees/title artistMany/artist countryUSA/country companyGrammy/company price10.20/price year1999/year /cd cd titleFor the good times/title artistKenny Rogers/artist countryUK/country companyMucik Master/company price8.70/price year1995/year /cd cd titleBig Willie style/title artistWill Smith/artist countryUSA/country companyColumbia/company price9.90/price year1997/year /cd cd titleTupelo Honey/title artistVan Morrison/artist countryUK/country companyPolydor/company price8.20/price year1971/year /cd cd titleSoulsville/title artistJorn Hoel/artist countryNorway/country companyWEA/company price7.90/price year1996/year /cd cd titleThe very best of/title artistCat Stevens/artist countryUK/country companyIsland/company price8.90/price year1990/year /cd cd titleStop/title artistSam Brown/artist countryUK/country companyA and M/company price8.90/price year1988/year /cd cd titleBridge of Spies/title artistT`Pau/artist countryUK/country companySiren/company price7.90/price year1987/year /cd cd titlePrivate Dancer/title artistTina Turner/artist countryUK/country companyCapitol/company price8.90/price year1983/year /cd cd titleMidt om natten/title artistKim Larsen/artist countryEU/country companyMedley/company price7.80/price year1983/year /cd cd titlePavarotti Gala Concert/title artistLuciano Pavarotti/artist countryUK/country companyDECCA/company price9.90/price year1991/year /cd cd titleThe dock of the bay/title artistOtis Redding/artist countryUSA/country companyAtlantic/company price7.90/price year1987/year /cd cd titlePicture book/title artistSimply Red/artist countryEU/country companyElektra/company price7.20/price year1985/year /cd cd titleRed/title artistThe Communards/artist
RE: Table header are not displayed
Hi, -Message d'origine- De : [EMAIL PROTECTED] Envoyé : mardi 21 octobre 2008 13:05 Hi All, I am parsing an xml having information of CD. In xsl file in xsl-region-body referring tag cd and then I am displaying headers of pdf (title, artist.. etc). But in pdf output the headers are not displayed. I am attaching the xml and xsl files and also output pdf file. Can any body help in getting headers in pdf file? Regards, Bhaskar Your XSLT file must contain a template for the root node: xsl:template match=/ xsl:apply-templates/ /xsl:template Other tip: FOP 0.20.4 is a very old version. You should upgrade it... Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to center horizontally 1 or 2 tables within other table?
That is because each row in those small inner tables (Name, Address, Email, ec.) must be left-aligned. But each of those rows containing business card tables must be centered on the page. Can you fix my code? Thank you. Vincent Hennebert-2 wrote: Hi, text-align is an inherited property, so you need it to specify only once at the root of the document. However, you have a text-align=left further down the document tree in your code below. Maybe that’s the origin of your problem. HTH, Vincent gennady wrote: Hi, Here is the snippet of the code that should print horizontally 1 or 2 business card-like tables inside each row. But they became left - justified. And I need them to be centered. I put text-align=center numerous times and it didn't help. Basically I did not right this code. My job was to add images and make them centerd. I added the images successfully, as you see, but couldn't center the tables. Imagine you have 2 business cards on 1 row: FOTO Full Name FOTO Full Name 40x40 Address40x40 Address City, ST ZipCity, ST Zip Telephone Telephone Email Email Or only 1 card: FOTO Full Name 40x40 Address City, ST Zip Telephone Email Also is there a way to print out generated FOP output after processing through the scriptlets code? Thank you, -Gennady fo:block text-align=center fo:table text-align=center table-layout=fixed hyphenate=true language=en width=100% fo:table-column column-width=2cm/ fo:table-column column-width=4cm/ fo:table-column column-width=proportional-column-width(1)/ !-- we will paint three columns if there are more than one agent -- % if (agentNumber 1) { % fo:table-column column-width=2cm/ fo:table-column column-width=4cm/ fo:table-column column-width=proportional-column-width(1)/ % } % fo:table-body fo:table-row text-align=center !-- first group of Agent -- % for (i=0; i agentNumber; i=i+3) { // for printing the Agent name for (j=i; (j agentNumber j=(i+2)); j++) { % fo:table-cell text-align=center fo:block fo:external-graphic src=%= arrAgent[j].getThumbImageUrl()% width=40px height=40px/ /fo:block /fo:table-cell fo:table-cell fo:block margin-left=0pt padding-left=5pt fo:table width=100% text-align=left fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row !-- Agent name -- fo:table-cell fo:block font-weight=bold % if (arrAgent[j].getCustomName() != null) { if (!.equalsIgnoreCase( arrAgent[j].getCustomName() )) { % ![CDATA[%= arrAgent[j].getCustomName()%]] % } else { % ![CDATA[%= arrAgent[j].getDisplayName()%]] % } % % } else { % ![CDATA[%= arrAgent[j].getDisplayName()%]] % } % /fo:block /fo:table-cell /fo:table-row fo:table-row !-- Agent office -- fo:table-cell fo:block % if (arrAgent[j].getOfficeVO().getCity() != null) { % ![CDATA[%= arrAgent[j].getOfficeVO().getCity() + Office%]] % } % /fo:block /fo:table-cell /fo:table-row fo:table-row !-- office address -- fo:table-cell fo:block % if (arrAgent[j].getOfficeVO().getAddress() != null) { % ![CDATA[%= arrAgent[j].getOfficeVO().getAddress() %]]
Page Layout - Spreads, Bleed etc.
Hi all, what is the current status of xsl-fo concerning a Spread-based Layout (like InDesign uses)? I need to change an existing layout to support blocks/graphics that bleed off the page. I know I could use a custom page size to add the extra area but the resulting PDF won't be correct in terms of Trim Box etc. What would be the best way to implement such a feature? Add another extension? Regards Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Layout - Spreads, Bleed etc.
That was discussed some time ago. You might want to read up on the status here: http://fop.markmail.org/search/?q=trimbox I've prepared FOP so TrimBox, BleedBox and MediaBox can all be set [1]. But the wiring into an extension hasn't been completed, yet. [1] http://svn.apache.org/viewvc?rev=618626view=rev I've attached a patch which comes from a working copy where I started an implementation for bleed. Not sure if it already does anything useful, but it could be a starting point. HTH On 21.10.2008 15:11:58 Maximilian Gaerber wrote: Hi all, what is the current status of xsl-fo concerning a Spread-based Layout (like InDesign uses)? I need to change an existing layout to support blocks/graphics that bleed off the page. I know I could use a custom page size to add the extra area but the resulting PDF won't be correct in terms of Trim Box etc. What would be the best way to implement such a feature? Add another extension? Regards Max Jeremias Maerki bleed-work-in-progress.patch Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Layout - Spreads, Bleed etc.
Jeremias Maerki wrote: That was discussed some time ago. You might want to read up on the status here: http://fop.markmail.org/search/?q=trimbox I've prepared FOP so TrimBox, BleedBox and MediaBox can all be set [1]. But the wiring into an extension hasn't been completed, yet. [1] http://svn.apache.org/viewvc?rev=618626view=rev I would regard support of bleed, trim and media sizes as desirable general layout features, despite the fact the present motivation is to get them set in a PDF output file. BugBear - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Layout - Spreads, Bleed etc.
Hi Jeremias, Jeremias Maerki schrieb: That was discussed some time ago. You might want to read up on the status here: http://fop.markmail.org/search/?q=trimbox Yep, that's what I found before posting my question. I've prepared FOP so TrimBox, BleedBox and MediaBox can all be set [1]. But the wiring into an extension hasn't been completed, yet. [1] http://svn.apache.org/viewvc?rev=618626view=rev Alright, so these methods can't be accessed through configuration etc. right now. I find setBleedBox(box); ///Recommended by PDF/X / very interesting, because I thought it would be quite common to have a bleed area in professional layouts. / / I've attached a patch which comes from a working copy where I started an implementation for bleed. Not sure if it already does anything useful, but it could be a starting point. HTH Thanks for the patch. So I guess I'll have to build FOP from source then ;-) FOP does not support customization (like User-Exits), does it? I am willing to test and code a little but modifying FOP core sources is out of scope of my current project. Regards, Max On 21.10.2008 15:11:58 Maximilian Gaerber wrote: Hi all, what is the current status of xsl-fo concerning a Spread-based Layout (like InDesign uses)? I need to change an existing layout to support blocks/graphics that bleed off the page. I know I could use a custom page size to add the extra area but the resulting PDF won't be correct in terms of Trim Box etc. What would be the best way to implement such a feature? Add another extension? Regards Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Layout - Spreads, Bleed etc.
On 21.10.2008 16:31:02 Maximilian Gaerber wrote: Hi Jeremias, Jeremias Maerki schrieb: That was discussed some time ago. You might want to read up on the status here: http://fop.markmail.org/search/?q=trimbox Yep, that's what I found before posting my question. I've prepared FOP so TrimBox, BleedBox and MediaBox can all be set [1]. But the wiring into an extension hasn't been completed, yet. [1] http://svn.apache.org/viewvc?rev=618626view=rev Alright, so these methods can't be accessed through configuration etc. right now. I find setBleedBox(box); ///Recommended by PDF/X / very interesting, because I thought it would be quite common to have a bleed area in professional layouts. So the lack of support didn't cause enough of an itch to anyone to implement it. I hope you're going to itch enough because I currently don't. / I've attached a patch which comes from a working copy where I started an implementation for bleed. Not sure if it already does anything useful, but it could be a starting point. HTH Thanks for the patch. So I guess I'll have to build FOP from source then ;-) FOP does not support customization (like User-Exits), does it? I am willing to test and code a little but modifying FOP core sources is out of scope of my current project. FOP provides lots of extension points. And since you have the source, in some cases you can subclass certain classes if you must. But that might not help you here. Better for the project would be to do it right and integrate the functionality into FOP. This could be a great opportunity to contribute something back to the project. That's how FOP got where it is: People scratched their itches. Of course, you can also just wait until someone thinks this is fun to implement. It's how Open Source works. Remember: You're not alone if you implement this. We're going to help you with hints and pointers as much as we can. Just keep us in the loop to avoid late surprises. Regards, Max On 21.10.2008 15:11:58 Maximilian Gaerber wrote: Hi all, what is the current status of xsl-fo concerning a Spread-based Layout (like InDesign uses)? I need to change an existing layout to support blocks/graphics that bleed off the page. I know I could use a custom page size to add the extra area but the resulting PDF won't be correct in terms of Trim Box etc. What would be the best way to implement such a feature? Add another extension? Regards Max Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Layout - Spreads, Bleed etc.
Hi, so there we go... I guess since this is only on the FO 2.0 wish list (http://www.w3.org/TR/2008/WD-xslfo20-req-20080326/#bleeds) this would be an extension for now? Would you advise to take your pdf-image extension as a starting point? Regards, Max Jeremias Maerki schrieb: On 21.10.2008 16:31:02 Maximilian Gaerber wrote: Hi Jeremias, Jeremias Maerki schrieb: That was discussed some time ago. You might want to read up on the status here: http://fop.markmail.org/search/?q=trimbox Yep, that's what I found before posting my question. I've prepared FOP so TrimBox, BleedBox and MediaBox can all be set [1]. But the wiring into an extension hasn't been completed, yet. [1] http://svn.apache.org/viewvc?rev=618626view=rev Alright, so these methods can't be accessed through configuration etc. right now. I find setBleedBox(box); ///Recommended by PDF/X / very interesting, because I thought it would be quite common to have a bleed area in professional layouts. So the lack of support didn't cause enough of an itch to anyone to implement it. I hope you're going to itch enough because I currently don't. / I've attached a patch which comes from a working copy where I started an implementation for bleed. Not sure if it already does anything useful, but it could be a starting point. HTH Thanks for the patch. So I guess I'll have to build FOP from source then ;-) FOP does not support customization (like User-Exits), does it? I am willing to test and code a little but modifying FOP core sources is out of scope of my current project. FOP provides lots of extension points. And since you have the source, in some cases you can subclass certain classes if you must. But that might not help you here. Better for the project would be to do it right and integrate the functionality into FOP. This could be a great opportunity to contribute something back to the project. That's how FOP got where it is: People scratched their itches. Of course, you can also just wait until someone thinks this is fun to implement. It's how Open Source works. Remember: You're not alone if you implement this. We're going to help you with hints and pointers as much as we can. Just keep us in the loop to avoid late surprises. Regards, Max On 21.10.2008 15:11:58 Maximilian Gaerber wrote: Hi all, what is the current status of xsl-fo concerning a Spread-based Layout (like InDesign uses)? I need to change an existing layout to support blocks/graphics that bleed off the page. I know I could use a custom page size to add the extra area but the resulting PDF won't be correct in terms of Trim Box etc. What would be the best way to implement such a feature? Add another extension? Regards Max Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3542 (20081021) __ E-Mail wurde geprüft mit ESET NOD32 Antivirus. http://www.eset.com News des Monats: www.thermopal.de - E-Business Lösung mit System für Thermopal, eine Tochter der Pfleiderer AG: Neugestaltung, wegweisende Produktsuche und moderne Nutzerführung! -- infolox GmbH Maximilian Gärber Bregenzer Straße 101 D-88131 Lindau fon +49 8382 / 275 894-70 fax +49 8382 / 275 894-9 mob +49 176 / 20 10 33 24 mail [EMAIL PROTECTED] www.infolox.de www.selektofix.de www.katalogfabrik.de www.typo3-services.com Rechtsform: Gesellschaft mit beschränkter Haftung Sitz der Gesellschaft: Lindau a. B. Registergericht: Amtsgericht Kempten Registernummer: HRB 8161 Geschäftsführer: Stefan Bauhuis, Alexander Pircher, Richard Schmid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]