Re: Text disappearing in the PDF generated from a FO
Hi, I saw the FOP documentation and it says that the current development platform is JDK 1.3 and thats what I use with windows XP. However, the text disappears when I run the Problem.fo on my machine. The most funny thing is if I open the fo file and save it as Problem1.fo then FOP will generate a PDF without the text disappearing. So I believe this is some bug with FOP. Thanks, Abhi --- Chris Bowditch [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: Hello, I do not get any warnings such as content doesn't fit in area or similar. I have attached two FO files that I use to generate PDF. Both FO are exactly the same except for the margins on the page sequence I am using. However, one generates correct PDF while in the other one some text is lost. I have also attached the PDF generated from the FO that gives the PDF with problem. I generated the PDFs using FOP-0.20.5 Any help is appreciated.. I tried both samples you sent and all the text is present. I have attached the PDF to prove it. Perhaps this is a JVM/OS issue. I am running Windows XP with Sun JDK 1.4.1 build 2 Chris ATTACHMENT part 2 application/pdf name=problem.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Text disappearing in the PDF generated from a FO
Hello, I do not get any warnings such as content doesn't fit in area or similar. I have attached two FO files that I use to generate PDF. Both FO are exactly the same except for the margins on the page sequence I am using. However, one generates correct PDF while in the other one some text is lost. I have also attached the PDF generated from the FO that gives the PDF with problem. I generated the PDFs using FOP-0.20.5 Any help is appreciated.. Thanks, Abhi --- Chris Bowditch [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: Hello All, I am generating PDF from XML using XSLT. When I generate a PDF some portion of the XML is not being printed. Actually I see blank space in that portion of the PDF. This is happening at the end of the first page. I do not have any keep togethers so if the block doesnot fit on the first page then it should break and continue on the next page. If I reduce the margins on the page so that the whole content fits on page 1 then all the content appears properly. I generated the FO and PDF from that FO with same results. I see the text in my FO but not on the PDF. Could this be some kind of a bug? Possibly. Need to see the complete FO file to be sure. Please check that the body region is not overlapping the region-after. Also run from the command line and check to see if FOP generates any warnings, such as content doesnt fit in area or similar. Below is the FO part that has a problem fo:block start-indent=from-parent(start-indent) + 12pt color=black space-before=5pt space-before.conditionality=discard Just FYI, space-* conditionality properties are not implemented in FOP 0.20.5. space-* properties always behave as though conditionality=retain snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ ?xml version=1.0 encoding=ISO-8859-1? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:date=http://exslt.org/dates-and-times; xmlns:atitag=http://www.arbortext.com/namespace/atitag; xmlns:atixslts=http://www.arbortext.com/namespace/XslTurboStyler/3.0; xmlns:rule=http://www.bankerssystems.com/2003/rule;fo:layout-master-setfo:simple-page-master master-name=single margin-right=0.5in margin-left=0.5in margin-bottom=0.5in margin-top=0.5in page-width=8.5in page-height=11info:region-body margin-bottom=40pt/fo:region-after display-align=after extent=40pt region-name=FooterRest//fo:simple-page-masterfo:simple-page-master master-name=multi margin-right=0.5in margin-left=0.5in margin-bottom=0.5in margin-top=0.5in page-width=8.5in page-height=11info:region-body margin-bottom=40pt column-gap=9pt column-count=2/fo:region-after display-align=after extent=40pt region-name=FooterRest//fo:simple-page-masterfo:simple-page-master master-name=single-first margin-right=0.5in margin-left=0.5in margin-bottom=2.1in margin-top=3in page-width=8.5in page-height=11info:region-body margin-bottom=40pt/fo:region-after display-align=after extent=40pt region-name=FooterFirst//fo:simple-page-masterfo:simple-page-master master-name=multi-first margin-right=0.5in margin-left=0.5in margin-bottom=2.1in margin-top=3in page-width=8.5in page-height=11info:region-body margin-bottom=40pt column-gap=9pt column-count=2/fo:region-after display-align=after extent=40pt region-name=FooterFirst//fo:simple-page-masterfo:simple-page-master master-name=single-last margin-right=0.5in margin-left=0.5in margin-bottom=1in margin-top=1in page-width=8.5in page-height=11info:region-body margin-bottom=40pt/fo:region-after display-align=after extent=40pt region-name=FooterLast//fo:simple-page-masterfo:simple-page-master master-name=multi-last margin-right=0.5in margin-left=0.5in margin-bottom=1in margin-top=1in page-width=8.5in page-height=11info:region-body margin-bottom=40pt column-gap=9pt column-count=2/fo:region-after display-align=after extent=40pt region-name=FooterLast//fo:simple-page-masterfo:simple-page-master master-name=WXYZsingle margin-right=0.5in margin-left=0.5in margin-bottom=0.5in margin-top=0.5in page-width=8.5in page-height=11info:region-body margin-bottom=20pt/fo:region-after display-align=after extent=20pt region-name=WXYZFooterRest//fo:simple-page-masterfo:simple-page-master master-name=WXYZsingle-first margin-right=0.5in margin-left=0.5in margin-bottom=2.1in margin-top=3in page-width=8.5in page-height=11info:region-body margin-bottom=45pt/fo:region-after display-align=after extent=45pt region-name=WXYZFooterFirst//fo:simple-page-masterfo:simple-page-master master-name=WXYZsingle-last margin-right=0.5in margin-left=0.5in margin-bottom=1in margin-top=1in page-width=8.5in page-height=11info:region-body margin-bottom=20pt/fo:region-after display-align=after
RE: PDF Encryption not available warning
Thanks much for the help. I will try to set up the enviornment. Regards, Abhi --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Hi Abhi, I am running FOP version 0.20.5 using command line to generate PDF. When I use the -nocopy option I get a warning saying PDF encryption not available. I believe that PDF encryption is supported for version starting from 0.20.5. Please let me know if I am missing anything. You're right in saying that PDF Encryption is available starting from version 0.20.5, however, there are a few things to take into account: - if you're running on a JVM less than 1.4.X, you need the Java Cryptography Extension as a separate download -?PDF Encryption as described in Adobe's PDF Spec, requires RC4 encryption, and this is not available by default in the JCE, so you need to download a provider that offers RC4 for more info, see also: http://xml.apache.org/fop/pdfencryption.html#Environment If you need any more guidance, just give us a yell... HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Text disappearing in the PDF generated from a FO
Hello All, I am generating PDF from XML using XSLT. When I generate a PDF some portion of the XML is not being printed. Actually I see blank space in that portion of the PDF. This is happening at the end of the first page. I do not have any keep togethers so if the block doesnot fit on the first page then it should break and continue on the next page. If I reduce the margins on the page so that the whole content fits on page 1 then all the content appears properly. I generated the FO and PDF from that FO with same results. I see the text in my FO but not on the PDF. Could this be some kind of a bug? Below is the FO part that has a problem fo:block start-indent=from-parent(start-indent) + 12pt color=black space-before=5pt space-before.conditionality=discard fo:inline font-weight=bold font-style=italic font-family=Helvetica text-align=left color=black fo:inlineTITLE/fo:inline : /fo:inline fo:block start-indent=from-parent(start-indent) + 12pt color=black space-before=0pt space-before.conditionality=discard fo:block color=black space-before=5pt space-before.conditionality=discard fo:inline fo:block font-weight=bold font-family=Helvetica space-before=0pt fo:inline fo:inlineNAME/fo:inline /fo:inline /fo:block fo:block color=black space-before=2pt space-before.conditionality=discard ADDRESS LINE 1 part1 fo:inline fo:inline fo:inlinepart2/fo:inline /fo:inline /fo:inline /fo:block fo:inline color=black space-before=0pt space-before.conditionality=discard fo:block space-before=2pt fo:inline fo:inline fo:inlineAddress line 2/fo:inline /fo:inline /fo:inline /fo:block /fo:inline fo:inline color=black space-before=0pt space-before.conditionality=discard fo:inline fo:inline fo:inlinecity/fo:inline /fo:inline , /fo:inline fo:inline fo:inline fo:inlinestate/fo:inline /fo:inline /fo:inline fo:inline fo:inline fo:inlineZIP/fo:inline /fo:inline /fo:inline /fo:inline fo:block color=black space-before=2pt space-before.conditionality=discard / /fo:inline /fo:block /fo:block /fo:block /fo:block What I expect is Title NAME Address Line 1rt1 part2 Adress line 2 city, state, ZIP However, what I get is Title city, state, ZIP. The Title prints about an inch from the bottom of the first pagemargin. Then there is one inch blank space and then the footer for first page. The city state and ZIP prints on the second page. Thanks for the help. Regards, Abhi __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PDF Encryption not available warning
I am running FOP version 0.20.5 using command line to generate PDF. When I use the -nocopy option I get a warning saying PDF encryption not available. I believe that PDF encryption is supported for version starting from 0.20.5. Please let me know if I am missing anything. Thanks, Abhi __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SM Service Mark symbol in output
I would like to print a SM i.e. service mark symbol in my output PDF. Since FOP does not support suprtscript is there any other way I could do it. I am using Times and Helvetica fonts for rendering my PDF. I tried using the entity reference #8480; but it does not work. Any ideas on how to get it working? Thanks in advance for help. Abhi __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SM Service Mark symbol in output
'vertical-align' does seem to be working for PDF output... (only for PDF) So, something like: fo:inline vertical-align=superSM/fo:inline might just be enough... This works perfect for my case. Thanks much Hope this helps! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting page size
I am currently setting page-size in the XSL that is used to generate PDF from source XML. This works fine as I am able to vary the page size depending on attribute son my source XML. However, what I am wondering is that is there any way to force that a PDF with letter size PDF can be printed ONLY on a letter size paper and no other size papers when actually printing the PDF? I know this is little off track from FOP but just wondering if anyone has done this before. Thanks for your help Regards, Abhi __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fo:leader pattern=dots
Hello! I am using fo:leader with pattern=dots the fo code is like this fo:leader leader-pattern=dots rule-thickness=2pt leader-length=100% start-indent=10pt/ When I generate a PDF the rule is shown in PDF with dotted pattern. However when I print the PDF the rule is NOT AT ALL printed. This does not happen if I use leader-pattern=rule. I am using fop version 0.20.5 and I am embedding custom fonts with FOP. Any clues why this is happening? Abhi __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: leader pattern=dots
Tried with 'leader-pattern-width' but still it shows up in acrobat but will NOT PRINT when printed. seems very strange to me too. any more things come to anyones mind? When I generate a PDF the rule is shown in PDF with dotted pattern. However when I print the PDF the rule is NOT AT ALL printed. Strange... so it does show up in Acrobat, but not when you print it from there? (seems more like Acrobat-weirdness) This does not happen if I use leader-pattern=rule. snip / Any clues why this is happening? The only thing that comes to mind, is to try and use 'leader-pattern-width' for dots, instead of 'rule-thickness'... although I'm not at all sure whether this is the cause of the strange behaviour (you never know --maybe some tiny difference in PDF code when rendered?) Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error areas pending text probably lost
So there is nothing that I can really do but when the problem appears change my source fo ( or source xml in my case) Thanks for the help. Abhi --- J.Pietschmann [EMAIL PROTECTED] wrote: Andreas L. Delmelle wrote: Nested inlines... My guess is: there's the bugger! Correct. Can you try rendering again, but replacing the inner fo:inline in the above snippet with an fo:wrapper, Won't work. The problem is as follows: The line layout is called with a bunch of characters. It is scanned for possible line breaks, more or less whitespace (which is incomplete in itself). If the character sequence is exhausted before a break possibility is encountered but there's still space left in the line, the text snippet processed so far is stored in the pending area list, because it might be wrapped to the next line. Upon the next call, scanning proceeds, and if the line is full without finding a break possiblity, processing is unwound unto the block, which generates a new line. This new line grabs the pending area list from the previous line and adds it to itself, because it's word content which had been wrapped. The problem occurs if the overflowed line is at the end of the page, because the block layout code which would otherwise generate a new line returns up to the page layout loop. New block areas are created, the link to the line with the non-empty pending area list is lost, and the new line starts without the wrapped text. The error message is generated in the renderer which simply looks at the pending area list of the line, which should have been emptied. The problem occurs rarely because it only happens if a word is fragmented so that the pending area list is filled. Because some code accumulates the SAX character events, only inline FOs which mark parts of a word may cause this. The only way around the bug is to eliminate the inline FOs, or fine tune display space in order to avoid having the content in question falling at the edge of a page. A similar, but code-wise unrelated bug occurs when an inline graphic is added which is too high to fit the available space on the page: the text already in the line is lost. Fortunately, FOP can't cope with dynamic line height anyway, so people rarely do this. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error areas pending text probably lost
I am generating PDFs from a XML using FOP. I am getting an error saying [ERROR] Areas pending, text probably lost in line this applies in all the cases except when I look at the PDF and see that the word after 'when' is missing the first letter. Is there a way to fix this problem or why am I getting this error? Any help will be appreciated. Thanks, Abhi __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
Below is the FO that comes out when I run my xml and xsl through xalan. Right now I use a xml and xsl to gene rate the PDF. I can see that the first letter is there in the FO but it is lost when rendering through FOP. Also this line appears at the end of a page and the word 'Condition' appears on the next page but the letter 'C' is missing from it. Is there any thing I can do for this not to happen. I am not able to run with the -d option coz I am not sure if I can use two options at a time as I use a userconfiguration file to embeed one font and hence need to use -c option. Let me know how I can use both options and I will give it a try. Thanks, Abhi FO SNIPPET fo:block line-height=1.2em space-before=5pt color=black start-indent=from-parent(start-indent) + 12pt fo:inline font-weight=bold font-style=italic font-size=10pt font-family=Helvetica text-align=left color=blackSome Title/fo:inline fo:inline color=black space-before.conditionality=discard This applies in all the cases except when fo:inline font-family=Helvetica font-weight=bold font-variant=small-caps font-size=12ptCondition 4/fo:inline of terms and conditions is true /fo:inline /fo:block __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
version number Re: Error areas pending text probably lost
Sorry I forgot to mention that. But i am using fop-0.20.5 version __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
No I cannot. We have a strict formatting specification and so I cannoot remove the small-caps formatting style. Any other suggestions? --- Forget, Pascal [EMAIL PROTECTED] wrote: Can't you remove font-variant=small-caps from your XSL? __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
I tried replacing the inner fo:inline with fo:wrapper but the result is the same. The text is still lost. any more ideas? --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] snip / fo:inline color=black space-before.conditionality=discard This applies in all the cases except when fo:inline font-family=Helvetica font-weight=bold font-variant=small-caps font-size=12ptCondition 4/fo:inline of terms and conditions is true /fo:inline /fo:block Nested inlines... My guess is: there's the bugger! Can you try rendering again, but replacing the inner fo:inline in the above snippet with an fo:wrapper, like: fo:inline color=black ... This applies in all the cases except when fo:wrapper font-family=Helvetica ... Condition 4/fo:wrapper of terms and conditions is true/fo:inline /fo:block And let us know if that removes the error? Cheers, Andreas __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
So??? But I need to use small-caps so I cant give up on that. --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: Can't you remove font-variant=small-caps from your XSL? Silly question maybe, but what exactly would that achieve? Hmm. Could indeed be just that... AFAIK 0.20.5 uses simulated small-caps (regular caps at 80% the font-size), so probably it's got something to do with the role of this in the calculations. (The first character wouldn't be subject to the scaling, which could explain its mystical status --disappearing as it does ;) ) Cheers, Andreas __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing parameters from command line
I am using FOP and XSLT to generate PDF. I have about 10 parameters defined at the top level in the stylesheet. I am wondering how can I pass valus of these paramters to the stylesheet while executing FOP from command line. I know this is a newbee question. Thanks in advance for the help. Thanks, Abhi __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug with keep-together?
As FOP has keep-together implemented only for table rows I am formatting some content in a table. Now I have different margins for first page and rest of the pages. I have some content which has keep-together set to always and it should print on first page if it fits in its entirety or should start on second page. It does exactly that but the problem lies with the table width. I have set the table-width for this keep-together table to be 100%. I have 1in margins for all sides on first page and 0.5in margins for the rest of the pages. Now when the content is more than what can be accommodated on the remaining part of the first page, it prints to content on second page BUT it has 1.5 in margin on the right side. It is not exactly margin but the table width is calculated as 100% considering the 1in margins and so the rest of the space on the right side is left blank when this table is printed on the second page (0.5 in margin). I can say for sure that table width is calculated as per the first page because except for this table the content on second page has 0.5 in margin on all right and left sides. So is this a bug? Should I specify the table width something other than 100%? __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Addition: Bug with keep-together?
This is how I am formatting the table used to implement Keep Together fo:table width=100% space-before={$ActualSpaceBefore} table-layout=fixed fo:table-column/ fo:table-body fo:table-row keep-together=always fo:table-cell fo:block color={$FontColorBase} line-height={$LineHeightBase} xsl:apply-templates/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: White space problem and text wrapping problem
Thanks much! The wrapping problem is solved by using a non-breaking space. Which FAP should I exactly look for the first problem. COuld you send me the link pleas.e Will really appreciate. Thanks Abhi --- J.Pietschmann [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: Problem1: I am having problem with line feed/carriage return. The line feeds from the souce xml are being converted to a single white space automatically. I would like to ignore these line feeds meaning convert these line feeds to zero width space. I know that using linefeed-treatment would solve my problem. But as per the FOP compliance page linefeed-treatment is not supported. Is there any way to get around this problem. You have to convert the LW to zero width space before feeding it into FOP. If you generate the FO using XSLT, check the SR templates in the XSL FAQ. Problem 2: I would like to keep some text on the sam eline. This for example I have text string as FirstName LastName and it appears somewhere in the source. Now if both FirstName and LastName can fit in the same line I would like to print them as such but if not then I would like to print both FirstName and LastName starting on the next line. I guess wrap-option property should help me with this. But I am not able to get this to working. Am I missing something here? I don't think wrap-option would be appropriate. Anyway, this can easily be solved by using a non-breaking space instead of the normal space between the words. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: White space problem and text wrapping problem
Got it! Thanks for ur help :) --- Abhijit Junnare [EMAIL PROTECTED] wrote: Thanks much! The wrapping problem is solved by using a non-breaking space. Which FAP should I exactly look for the first problem. COuld you send me the link pleas.e Will really appreciate. Thanks Abhi __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: leader issues...
Since everyone talking about leader thought I woudl also ask something. I am wondering if the following result is achievable --SOME TEXT-- -SOME MORE TEXT SOME- -- is my leader pattern which can be a regular rule as well. Thanks, Abhi --- J.Pietschmann [EMAIL PROTECTED] wrote: Andreas L. Delmelle wrote: the FOP compliance page, ... indicates only partial support for this object. This is mostly with regards to using leader content as a pattern, which is not possible as well as various ruler types which aren't implemented either. What definitely works, are fixed-length leaders and leaders aligned according to the settings of the reference area Actually, fixed-length leaders in justified text will most likely *not* be properly aligned, because space justification is done after leader alignment (nobody complained yet...) fo:block text-align=justify text-align-last=justify fo:inlineline1/fo:inline fo:leader leader-pattern=dots leader-pattern-width=3pt leader-alignment=reference-area / /fo:block ... If you add another fo:inline to the above fo:blocks, the fo:leader will expand to fill the line and the last fo:inline will end up on a new line. This should not happen with 0.20.5. The following works for me: fo:block text-align=justify text-align-last=justify line1 fo:leader leader-pattern=dots leader-pattern-width=3pt leader-alignment=reference-area / someOtherText /fo:block Did you try it? BTW enclosing text in fo:inline is just a waste of ressources, it doesn't change much with regard how the text is handled (except exposing a bunch of nasty bugs). In particular, it wont cause different handling of the whitespace which happens to be before or after the fo:inline, unlike xsl:text. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: putting date in header or footer
Use the XSL extension fucntions. I am using something like this xmlns:date=http://exslt.org/dates-and-times; xsl:value-of select=date:date-time()/ I have this code some place in my stylesheet to convert the XML into PDF using FOP. Thanks, Abhi __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
font-variant property getting inherited ?
I am having trouble with the font variant property. Here is my sample FO fo:inline font-family=Arial font-variant=small-capssome small caps text fo:inline font-family=Arial font-variant=normalregular text/fo:inline some small caps text/fo:inline I expect the output to be SOME SMALL CAPS TEXT regular text SOME SMALL CAPS TEXT but here is what I get SOME SMALL CAPS TEXT REGULAR TEXT SOME SMALL CAPS TEXT I am using xsl and fop to render a PDF. the sample FO above i generated using xalan utility that comes with fop. Is there anything that I need to modify in my stylesheet. Depending on the attributes on the elements in XML I am setting the font-variant property in XSL and looks like XSL is working correctly as verified from the intermediate FO. Any help is appreciated. Thanks, Abhi __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: font-variant property getting inherited ?
Replying to myself. Oops it is workijng. The capital was coming from XML i mean the xml said REGULAR TEXT instead of regular text. Thanks, Abhi --- Abhijit Junnare [EMAIL PROTECTED] wrote: I am having trouble with the font variant property. Here is my sample FO fo:inline font-family=Arial font-variant=small-capssome small caps text fo:inline font-family=Arial font-variant=normalregular text/fo:inline some small caps text/fo:inline I expect the output to be SOME SMALL CAPS TEXT regular text SOME SMALL CAPS TEXT but here is what I get SOME SMALL CAPS TEXT REGULAR TEXT SOME SMALL CAPS TEXT I am using xsl and fop to render a PDF. the sample FO above i generated using xalan utility that comes with fop. Is there anything that I need to modify in my stylesheet. Depending on the attributes on the elements in XML I am setting the font-variant property in XSL and looks like XSL is working correctly as verified from the intermediate FO. Any help is appreciated. Thanks, Abhi __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Printing Current Date and Time
Dear List, I am wondering if there is any built-in function to ger the current date and time using XSL to print it in the PDF generated using FOP. I have used java script earlier while converting to HTML when displaying in a browser but not done in regards to PDF. Thanks in advance for the help. Abhi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Printing Current Date and Time
No Problem. I think I got the solution. I am using extension function. Thanks, Abhi --- Abhijit Junnare [EMAIL PROTECTED] wrote: Dear List, I am wondering if there is any built-in function to ger the current date and time using XSL to print it in the PDF generated using FOP. I have used java script earlier while converting to HTML when displaying in a browser but not done in regards to PDF. Thanks in advance for the help. Abhi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Printing Current Date and Time
Thanks:) --- Clay Leeds [EMAIL PROTECTED] wrote: Which one? What's it called? What do I have to do to use it? Can it be used from the COMMAND LINE? Careful, your answer might end up in a FAQ! ;-p Abhijit Junnare wrote: No Problem. I think I got the solution. I am using extension function. Thanks, Abhi --- Abhijit Junnare [EMAIL PROTECTED] wrote: Dear List, I am wondering if there is any built-in function to ger the current date and time using XSL to print it in the PDF generated using FOP. I have used java script earlier while converting to HTML when displaying in a browser but not done in regards to PDF. Thanks in advance for the help. Abhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Printing Current Date and Time
Oops. Sorry I misunderstood what you were saying. But I am not sure if what I have can answer your questions. I am using XSLT and XSL FO combined together to generate PDF for the XML documents. SO essentially I am using the XSL extension fucntions. I am sure that you know bunch of those kinda functions. I am using something like this xmlns:date=http://exslt.org/dates-and-times; xsl:value-of select=date:date-time()/ I have this code some place in my stylesheet to convert the XML into PDF using FOP. I hope that this is what you had asked for. Thanks, Abhi --- Clay Leeds [EMAIL PROTECTED] wrote: Abhi, I think you misunderstood my last message. You indicated that you have found an extension function which gets the current date and time for use in xsl-fo. I have some questions for you: - What is the name of the extension function? - Where can this extension function for getting the current date and time for use in XSL-FO be found? - What is the namespace/uri? - Can this extension function for getting the current date and time for use in XSL-FO be used from the command line? Thanks! Abhijit Junnare wrote: Thanks:) --- Clay Leeds [EMAIL PROTECTED] wrote: Which one? What's it called? What do I have to do to use it? Can it be used from the COMMAND LINE? Careful, your answer might end up in a FAQ! ;-p Abhijit Junnare wrote: No Problem. I think I got the solution. I am using extension function. Thanks, Abhi --- Abhijit Junnare [EMAIL PROTECTED] wrote: Dear List, I am wondering if there is any built-in function to ger the current date and time using XSL to print it in the PDF generated using FOP. I have used java script earlier while converting to HTML when displaying in a browser but not done in regards to PDF. Thanks in advance for the help. Abhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using values from a different XML as attribute values
Hi, I know this list is mainly for FOP questions. My question in mainly related to XSLT but I am posting this just in case if anyone has done what I am trying to achieve. I dont really know if what I have in mind is feasible. I have a stylesheet that is used for a number of documents. This stylesheet is used to generate PDF using FOP. Hence I am setting various attribute values such as page size, margins, font-size, font-family etc in the stylesheet. What I would like to know is that is there a way to get the values of these paramters from another XML file dynamically. I mean depending on the attribute values in the XML I want to conver to PDF I would like to get values from another XML for the above mentioned attributes. I think this is like opening a XML file through XSL and accessing the content in the XML. I would like to know if this is feasible and if anyone has tried something similar. Thanks, Abhi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using values from a different XML as attribute values
Thanks a lot for your help. Will keep your suggestion in mind. Thanks again. Abhi --- [EMAIL PROTECTED] wrote: I see that you cross-posted this to the XSL list (not considered good form), but you can find many examples of doing what you want to do on that list's archives. Search for the 'document()' function. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Sent: Wed, 8 Oct 2003 09:56:44 -0700 (PDT) To: [EMAIL PROTECTED] Subject: Using values from a different XML as attribute values Hi, I know this list is mainly for FOP questions. My question in mainly related to XSLT but I am posting this just in case if anyone has done what I am trying to achieve. I dont really know if what I have in mind is feasible. I have a stylesheet that is used for a number of documents. This stylesheet is used to generate PDF using FOP. Hence I am setting various attribute values such as page size, margins, font-size, font-family etc in the stylesheet. What I would like to know is that is there a way to get the values of these paramters from another XML file dynamically. I mean depending on the attribute values in the XML I want to conver to PDF I would like to get values from another XML for the above mentioned attributes. I think this is like opening a XML file through XSL and accessing the content in the XML. I would like to know if this is feasible and if anyone has tried something similar. Thanks, Abhi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - 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] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Got it ! RE: Indenting of list-block
I think I got it done using inheritance from the parent element and addding some value to it thus using the following on the list-item-body element start-indent=from-parent(start-indent) + 12pt Thanks, Abhi --- Chris Bowditch [EMAIL PROTECTED] wrote: From: Abhijit Junnare [EMAIL PROTECTED] OK. I changed margin-left to start-indent. Still the problem persists. The section inside the section is indented by 12pt but the list items are indented by 12pt instead of 12+12=24pt. Any clues what is happening. The compliance page shows that margin-left is only supported for pages and regions. However, it says that start-indent is fully supported. But perhaps it doesnt compound, not sure what the spec says about this. The other property to try is padding-left. Chris _ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting to uppercaseusing text-transform
Thanks for the help. could you please explain me how can i use mode or parameters as u said for converting to small caps. for example if i have an XML like this Main element 1 /elemen 1 element 1 ... element 2 A../A /element 2 /element 1 element 1 A Caps=Yes.B.C/C/BD...D/A D/ element 1 /Main So I want to translate all the content that comes under the A Caps=Yes element to uppercase meaning including its children elements B C and D Your help is really appreciated. Thanks, Abhi --- J.Pietschmann [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: I looked through the FOP documentation and it says that the text-transform property is NOT yet implemented in FOP. I am wondering if there is any chance that this will be implemented in FOP and if yes how long would it take. The spec itself recommends against using this feature. Uppercasing arbitrary Unicode letters is a quite non-trivial task. I tried writing a template to convert to capital letters but it doesnt work the way I need coz I am setting the attribute in the parent and I need its children to inherit it irrespective of the level of depth. Hence I cant pass a specific string to the conversion template. Ouch! Pass a mode or a parameter to templates applying to the child element, and do a translate(.,$lower,$upper) in th ecorrespondinggly moded template matching text(), or if the text() template senses the parameter. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting to uppercaseusing text-transform
Thanks much. I have written something similar to this and seems to be working as of now. Appreciate your help. Abhi --- J.Pietschmann [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: So I want to translate all the content that comes under the A Caps=Yes element to uppercase meaning including its children elements B C and D Using parameter: xsl:template match=[EMAIL PROTECTED]'Yes'] xsl:apply-templates xsl:with-param name=Caps select=Yes/ /xsl:apply-templates /xsl:template xsl:template match=B|C|D xsl:param name=Caps/ xsl:apply-templates xsl:with-param name=Caps select=$Caps/ /xsl:apply-templates /xsl:template xsl:template match=text() xsl:param name=Caps/ xsl:choose xsl:when test=$Caps='Yes' xsl:value-of select=translate(.,$lower,$upper)/ /xsl:when xsl:otherwise xsl:value-of select=./ /xsl:otherwise /xsl:choose /xsl:template Beware: untested. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Indenting of list-block
hello, I am using list-block. The structure of my XML is something like this SectionTitle SectionTitle List ListItem/ListItem ListItem/ListItem ListItem/ListItem ListItem List ListItem/ListItem ListItem/ListItem /List /ListItem ListItem/ListItem ListItem/ListItem /List /Section Section I have set margin-left=12pt for section inside a section. And the start-indent for list-item-block to be 12points. Since the list-block is a child element of the fo:block elemet used for section inside a section I expect the list to be indented 12pt relative to the block for section thus total indenting should be 24pt. But it doesn't seem to be working that way. I am wondering if the list-block element is any different from regular fo:block elements. I use Epic with the same stylesheet and it formats it with correct indenting (24pt) so wondering if FOP treats this somewhat different or I am getting something wrong. Thanking you in anticipation. Regards, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Indenting of list-block
OK. I changed margin-left to start-indent. Still the problem persists. The section inside the section is indented by 12pt but the list items are indented by 12pt instead of 12+12=24pt. Any clues what is happening. Thanks, Abhi --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] hello, I am using list-block. snip/ I have set margin-left=12pt for section inside a snip/ Abhi, Sorry. 'margin-left' only implemented WRT pages regions... Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Converting to uppercaseusing text-transform
Hi, I am using the text-transform property to convert some content to uppercase if an attribute has a specif value. I tried using font-variant=small-caps but it doesnt give me the desired results. I looked through the FOP documentation and it says that the text-transform property is NOT yet implemented in FOP. I am wondering if there is any chance that this will be implemented in FOP and if yes how long would it take. I tried writing a template to convert to capital letters but it doesnt work the way I need coz I am setting the attribute in the parent and I need its children to inherit it irrespective of the level of depth. Hence I cant pass a specific string to the conversion template. If anyone has suggestion then will really appreciate them. Thanks, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting to uppercaseusing text-transform
Below is the output I get on the screen. As you can see it says not yet implemented. I believe I am using the latest version. Do let me know if I am doing something wrong. Thanks, Abhi C:\Abhi\fop-0.20.5fop -c lib\conf\userconfig.xml -xml xml\CancellationNotice.xm l -xsl xml\ExpereStandard_New.xsl -pdf xml\CancellationNotice1.pdf [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [ERROR] property - text-transform is not implemented yet. [ERROR] property - text-transform is not implemented yet. [ERROR] property - text-transform is not implemented yet. [ERROR] property - text-transform is not implemented yet. [ERROR] property - text-transform is not implemented yet. [INFO] [1] [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on ta ble. [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on ta ble. [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] area contents overflows area in line [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] [2] [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] area contents overflows area in line [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] [3] [WARNING] table-layout=auto is not supported, using fixed! [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on ta ble. [INFO] Parsing of document complete, stopping renderer --- Clay Leeds [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: Hi, I am using the text-transform property to convert some content to uppercase if an attribute has a specif value. I tried using font-variant=small-caps but it doesnt give me the desired results. I looked through the FOP documentation and it says that the text-transform property is NOT yet implemented in FOP. I am wondering if there is any chance that this will be implemented in FOP and if yes how long would it take. According to the FOP Compliance page (watch wrap): http://xml.apache.org/fop/compliance.html#fo-property-text-transform There is basic support for text-transform, but extended support is not available. I clicked on the ยง7.16.6 link: http://www.w3.org/TR/xsl/slice7.html#text-transform and according to that page, the proper usage would be: text-transform=uppercase Are you saying this doesn't work? If you are trying to do it based on an attributes value, you could try: xsl:choose !-- ATTRIBUTE EXISTS -- xsl:when test=XPATH/TO/@[.='Y'] xsl:attribute name=text-transformuppercase/xsl:attribute /xsl:when !-- ATTRIBUTE DOES NOT EXIST -- xsl:otherwise xsl:attribute name=text-transformnone/xsl:attribute /xsl:otherwise /xsl:choose I tried writing a template to convert to capital letters but it doesnt work the way I need coz I am setting the attribute in the parent and I need its children to inherit it irrespective of the level of depth. Hence I cant pass a specific string to the conversion template. For the children, you might need them wrapped with text-transform=inherit (...although I would think it would automatically inherit...) If anyone has suggestion then will really appreciate them. Thanks, Abhi HTH! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PDF file size increased from 10K to 80K with non-embedded fonts.
Hello all, Since the memory topic is hot on the list so thought of asking about this. I am integrating fonts not supporteed directly with FOP using the configuration file. I DONT have any images in my PDF and the PDF is only single page. Earlier when I was not using any userconfig file and was using just regular fonts that come with FOP the size of the PDF was around 10K but not the size is about 80K. I dont know if I am doing anything wrong. But I dont get any error messages or warnings when I run FOP. So does FOP produce larger file if I use fonts that dont come with FOP such as Arial and Times New Roman etc? This is not a big issue but just trying to find the base of the problem. If anyone has some suggestions then they are welcome. Thanks, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF file size increased from 10K to 80K with non-embedded fonts.
Thanks. I guess simple referecing the fonts in PDF would work for me. :) --- Chris Bowditch [EMAIL PROTECTED] wrote: From: Abhijit Junnare [EMAIL PROTECTED] snip/ But I dont get any error messages or warnings when I run FOP. So does FOP produce larger file if I use fonts that dont come with FOP such as Arial and Times New Roman etc? When you use Fonts that are not part of the standard 14 then there are two options: 1) make sure all the end-users that will receive the PDFs generated by FOP have the extra fonts installed along with their acrobat reader, and then simply reference the font in the PDF. 2) embed the font definition in the PDF, so that users dont need the FOP installed to view it with acrobat reader. This will increase the size of the PDF. The option FOP uses is controlled by the user config file. To just reference the Font instead of embedding it in the PDF, set embed-file= in your user-config.xml file. snip/ Chris _ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating multiple tables using a single XSL stylesheet?
What two different tables do you want? You said something about both categories. Do you mena to say that you want two tables exactly similar to each other? Didnt quite understand the problem. Thanks, abhi --- Kevin K. [EMAIL PROTECTED] wrote: Hello, My knowledge is limited about XML technologies. I am trying creating PDF files from Value Objects(VO). I am following the following way: 1. VO - XML 2. Create XSL Stylesheet then 3. Use FOP with XML and XSL Stylesheet files to create PDF file. I am having problem with creating XSL Stylesheet. I am trying to create it manually. How can I create XSL Stylesheet? Is there any good tutorial about it? Now, I want to output two tables. Both categories are found within the same XML source but need to be placed in separate tables. Here is my xsl Stylesheet code: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.1 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; exclude-result-prefixes=fo xsl:output method=xml version=1.0 omit-xml-declaration=no indent=yes/ xsl:template match=projectteam fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simpleA4 page-height=29.7cm page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm margin-right=2cm fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:block font-size=16pt font-weight=bold space-after=5mmProject: xsl:value-of select=projectname/ /fo:block fo:block font-size=10pt fo:table fo:table-column column-width=proportional-column-width(3)/ fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width=proportional-column-width(3) / fo:table-header fo:table-row fo:table-cell border=solid black 1px padding=1em border-collapse=collapse fo:block text-align=justify font-weight=boldColumn 1/fo:block /fo:table-cell fo:table-cell border=solid black 1px padding=1em border-collapse=collapse fo:block text-align=justify font-weight=boldColumn 2/fo:block /fo:table-cell fo:table-cell border=solid black 1px padding=1em border-collapse=collapse fo:block text-align=justify font-weight=boldColumn 3/fo:block /fo:table-cell /fo:table-row /fo:table-header fo:table-body xsl:apply-templates/ /fo:table-body /fo:table /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=member fo:table-row fo:table-cell border=solid black 1px padding=1em border-collapse=collapse fo:block xsl:value-of select=name/ /fo:block /fo:table-cell fo:table-cell border=solid black 1px padding=1em border-collapse=collapse fo:block xsl:value-of select=function/ /fo:block /fo:table-cell fo:table-cell border=solid black 1px padding=1em border-collapse=collapse fo:block xsl:value-of select=email/ /fo:block /fo:table-cell /fo:table-row /xsl:template /xsl:stylesheet Thanks in advance... Kevin - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating multiple tables using a single XSL stylesheet?
I dont think I am following you and may be other arent too. Sorry about that but just doesnt enter my head :) --- Kevin K. [EMAIL PROTECTED] wrote: How about this time :-) == = = = = = = == = = = = = = = = = = = = = = = = == == = = = = == = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = == Kevin K. [EMAIL PROTECTED] wrote: Opps I mean the following tables: Thanks, Kevin === = == = == = == = == = = = = = = == = == = == = == = == = == = == = == = == = == = == = == === === = = = = === = = === = = = == = = = == = = === = = = == = = = == = = === = = = == = = = == = = === = = = == = = = == === Abhijit Junnare [EMAIL PROTECTED] wrote: What two different tables do you want? You said something about both categories. Do you mena to say that you want two tables exactly similar to each other? Didnt quite understand the problem. Thanks, abhi --- Kevin K. wrote: Hello, My knowledge is limited about XML technologies. I am trying creating PDF files from Value Objects(VO). I am following the following way: 1. VO - XML 2. Create XSL Stylesheet then 3. Use FOP with XML and XSL Stylesheet files to create PDF file. I am having problem with creating XSL Stylesheet. I am trying to create it manually. How can I create XSL Stylesheet? Is there any good tutorial about it? Now, I want to output two tables. Both categories are found within the same XML source but need to be placed in separate tables. Here is my xsl Stylesheet code: xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; exclude-result-prefixes=fo omit-xml-declaration=no indent=yes/ xmlns:fo=http://www.w3.org/1999/XSL/Format; master-name=simpleA4 page-height=29.7cm page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm margin-right=2cm font-weight=bold space-after=5mmProject: column-width=proportional-column-width(3)/ column-width=proportional-column
Error with Block-container
Hi, I am having problem with fo:block-container. When I run FOP I am getting an error [ERROR] java.lang.ClassCastException: org.apache.fop.layout.BlockArea Did anyone come accross something like this? Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error with Block-container
Got it thanks. Abhi --- Chris Bowditch [EMAIL PROTECTED] wrote: From: Abhijit Junnare [EMAIL PROTECTED] Hi, I am having problem with fo:block-container. When I run FOP I am getting an error [ERROR] java.lang.ClassCastException: org.apache.fop.layout.BlockArea Did anyone come accross something like this? Abhi FOP has only limited support for fo:block-container. It cannot be placed as a child of a fo:block, and should be a direct descedent of fo:flow. This is becoming a VFAQ Chris _ Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with FOP about IPD on table
When I run FOP i get the following error. [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on table. I know thats its the problem with specifying IPD for the table in the stylesheet. But I dont really understand what I am missing and where should I specify Inline-progression-dimension I mean on what object? Thanks, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java script with xsl in FOP ?
Is it possible to use javascript inside the XSL that will be used with FOP. I need to do some calculations and so I need this. Is there any other way to do some basic math or some string manipulation? I know the string functions in xsl but I am afraid they wont solve my problem. Any help if appreciated. Thanks, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java script with xsl in FOP ?
I wont be using browser at all. Thats why I am wondering if it would work? Abhi --- Savino, Matt C [EMAIL PROTECTED] wrote: As long as the calculations get done somewhere, either by the XLST processor or the browser, the end result should be the same correct? (Unless some other XSLT process is dependent on the outcome of these calcs.) -Original Message- From: Victor Mote [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 10:11 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? Abhijit Junnare wrote: Is it possible to use javascript inside the XSL that will be used with FOP. I need to do some calculations and so I need this. Is there any other way to do some basic math or some string manipulation? I know the string functions in xsl but I am afraid they wont solve my problem. Any help if appreciated. (This is really an XSLT question.) I haven't ever done it with javascript, but I understand that it can be done. See the bottom of: http://groups.yahoo.com/group/XSL-FO/message/3857 where a method for using java in XSLT (to get today's date) is demonstrated. Note also that this must be dependent on your XSLT engine, so check its docs or mailing lists for more specific information. Victor Mote - 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] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java script with xsl in FOP ?
YES. The output will be pdf. So I dont want to proceed if I know that it wont work in the future. So I am asking everyone so that I can think what I should be doing. Abhi --- Savino, Matt C [EMAIL PROTECTED] wrote: Duh, I forgot this was the FOP board. Is this output going to PDF? I think PDF can also do some form of JavaScript processing but I've never tried. -Original Message- From: Savino, Matt C Sent: Friday, September 12, 2003 10:16 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? As long as the calculations get done somewhere, either by the XLST processor or the browser, the end result should be the same correct? (Unless some other XSLT process is dependent on the outcome of these calcs.) -Original Message- From: Victor Mote [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 10:11 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? Abhijit Junnare wrote: Is it possible to use javascript inside the XSL that will be used with FOP. I need to do some calculations and so I need this. Is there any other way to do some basic math or some string manipulation? I know the string functions in xsl but I am afraid they wont solve my problem. Any help if appreciated. (This is really an XSLT question.) I haven't ever done it with javascript, but I understand that it can be done. See the bottom of: http://groups.yahoo.com/group/XSL-FO/message/3857 where a method for using java in XSLT (to get today's date) is demonstrated. Note also that this must be dependent on your XSLT engine, so check its docs or mailing lists for more specific information. Victor Mote - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java script with xsl in FOP ?
[EMAIL PROTECTED] wrote: Can you paste the entire JavaScript functionality you are trying to emulate with XSLT, or is it too much? X-PATH is tricky, but you can do a lot with it. Here is some functionality that I would like to emulate in XSLT. I have some xml element called Name. I want to check the length of the Name element. If the string length for this is for example 10. I want to write it in a fixed width for example 20. So since I want the field to be fixed I want to add 10 fill charaters. The number of fill characters I want to add will vary as per the string length. Also the alignment can be different. If the alignment is center then I want to add fill characters before(here 5) and after (here 5) the actual Name. If alignment is left then I want to add fill characters (here 10)after the name and similarly for right aligned I want to add before the Name. Do you think something like this is feasible using XSL for variable lengths of the strings that come from xml? Your help is really appreciated. Thanks, Abhi --- Savino, Matt C [EMAIL PROTECTED] wrote: Can you paste the entire JavaScript functionality you are trying to emulate with XSLT, or is it too much? X-PATH is tricky, but you can do a lot with it. -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 10:25 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? YES. The output will be pdf. So I dont want to proceed if I know that it wont work in the future. So I am asking everyone so that I can think what I should be doing. Abhi --- Savino, Matt C [EMAIL PROTECTED] wrote: Duh, I forgot this was the FOP board. Is this output going to PDF? I think PDF can also do some form of JavaScript processing but I've never tried. -Original Message- From: Savino, Matt C Sent: Friday, September 12, 2003 10:16 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? As long as the calculations get done somewhere, either by the XLST processor or the browser, the end result should be the same correct? (Unless some other XSLT process is dependent on the outcome of these calcs.) -Original Message- From: Victor Mote [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 10:11 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? Abhijit Junnare wrote: Is it possible to use javascript inside the XSL that will be used with FOP. I need to do some calculations and so I need this. Is there any other way to do some basic math or some string manipulation? I know the string functions in xsl but I am afraid they wont solve my problem. Any help if appreciated. (This is really an XSLT question.) I haven't ever done it with javascript, but I understand that it can be done. See the bottom of: http://groups.yahoo.com/group/XSL-FO/message/3857 where a method for using java in XSLT (to get today's date) is demonstrated. Note also that this must be dependent on your XSLT engine, so check its docs or mailing lists for more specific information. Victor Mote - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - 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] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java script with xsl in FOP ?
Nope. I didnt write the code yet. I thought it would be better to know if it is worth trying before going long down the road. Sorry about that. If you still want the code I write it and send. Thanks Abhi --- Savino, Matt C [EMAIL PROTECTED] wrote: You don't have the actual JavaScript do you? I find code usually works better than prose. -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 10:33 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? [EMAIL PROTECTED] wrote: Can you paste the entire JavaScript functionality you are trying to emulate with XSLT, or is it too much? X-PATH is tricky, but you can do a lot with it. Here is some functionality that I would like to emulate in XSLT. I have some xml element called Name. I want to check the length of the Name element. If the string length for this is for example 10. I want to write it in a fixed width for example 20. So since I want the field to be fixed I want to add 10 fill charaters. The number of fill characters I want to add will vary as per the string length. Also the alignment can be different. If the alignment is center then I want to add fill characters before(here 5) and after (here 5) the actual Name. If alignment is left then I want to add fill characters (here 10)after the name and similarly for right aligned I want to add before the Name. Do you think something like this is feasible using XSL for variable lengths of the strings that come from xml? Your help is really appreciated. Thanks, Abhi --- Savino, Matt C [EMAIL PROTECTED] wrote: Can you paste the entire JavaScript functionality you are trying to emulate with XSLT, or is it too much? X-PATH is tricky, but you can do a lot with it. -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 10:25 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? YES. The output will be pdf. So I dont want to proceed if I know that it wont work in the future. So I am asking everyone so that I can think what I should be doing. Abhi --- Savino, Matt C [EMAIL PROTECTED] wrote: Duh, I forgot this was the FOP board. Is this output going to PDF? I think PDF can also do some form of JavaScript processing but I've never tried. -Original Message- From: Savino, Matt C Sent: Friday, September 12, 2003 10:16 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? As long as the calculations get done somewhere, either by the XLST processor or the browser, the end result should be the same correct? (Unless some other XSLT process is dependent on the outcome of these calcs.) -Original Message- From: Victor Mote [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 10:11 AM To: [EMAIL PROTECTED] Subject: RE: Java script with xsl in FOP ? Abhijit Junnare wrote: Is it possible to use javascript inside the XSL that will be used with FOP. I need to do some calculations and so I need this. Is there any other way to do some basic math or some string manipulation? I know the string functions in xsl but I am afraid they wont solve my problem. Any help if appreciated. (This is really an XSLT question.) I haven't ever done it with javascript, but I understand that it can be done. See the bottom of: http://groups.yahoo.com/group/XSL-FO/message/3857 where a method for using java in XSLT (to get today's date) is demonstrated. Note also that this must be dependent on your XSLT engine, so check its docs or mailing lists for more specific information. Victor Mote - 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] === message truncated === __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: Java script with xsl in FOP ?
Dear Clay, Thanks for your help. The XSLT references you gave are really nice and I am sure that I can make things work now. Really appreciate your help. Regrds, Abhi --- Clay Leeds [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: Dear Clay, Thanks much. May be you could help me since you have done some calculations. Let me know if you think its feasible or not. I have some xml element called Name. I want to check the length of the Name element. If the string length for this is for example 10. I want to write it in a fixed width for example 20. So since I want the field to be fixed I want to add 10 fill charaters. The number of fill characters I want to add will vary as per the string length. Also the alignment can be different. If the alignment is center then I want to add fill characters before(here 5) and after (here 5) the actual Name. If alignment is left then I want to add fill characters (here 10)after the name and similarly for right aligned I want to add before the Name. Do you think something like this is feasible using XSL for variable lengths of the strings that come from xml? Your help is really appreciated. Thanks, Abhi Please forgive that I'm responding to the list, but I want to ensure this discussion is public in the event others may find this thread useful. This is the link to the searchable (and excellent) xsl-list archive: http://www.biglist.com/lists/xsl-list/archives/ This thread on the xsl-list has some good info: http://www.biglist.com/lists/xsl-list/archives/200011/msg00817.html In addition, this DocBook library may have some useful templates: http://docbook.sourceforge.net/release/xsl/current/doc/lib/lib.html HTH! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unusual results with span=all
I have a stylesheet that selects a single-column or two-column format depending on the attribute of the document element. This works well. BUT even for two-column format there is some content in the XML that I want to span two columns. My problem is that it just wont do it. For example for one particular document It selects two columns format : CORRECT It will span ti both columns the content that comes in the body tag of the XML: CORRECT For element DocTitle it formats using single column even if I specify span=all: WRONG This is unusal. Did anyone have problems using span=all with FOP. May be someone can help. Thanks Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unusual results with span=all
Thanks Andreas. YES that was the problem. Now I have the attribute defined for the block that is DIRECT DESCEDENT of the fo:flow element and it works perfect. Thanks for your help Abhi --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] This is unusal. Did anyone have problems using span=all with FOP. May be someone can help. Abhi, I read in the fo-spec that the span attribute is only supposed to have effect on direct descendants of an fo:flow... My guess would be that the blocks of content which you want to span multiple-columns are not...? Hope it helps, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unusual results with span=all
Thanks. I was not using it for Direct descedent as Andreas pointed out. Regards, Abhi --- J.Pietschmann [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: BUT even for two-column format there is some content in the XML that I want to span two columns. My problem is that it just wont do it. ... For element DocTitle it formats using single column even if I specify span=all: WRONG This is unusal. Did anyone have problems using span=all with FOP. The implementation certainly isn't bullet-proof. However, if you stated the FOP version you use and provided a short, self contained *FO* document demonstrating the problem, it would be easier to help you. Run the XSLT standalone and check the intermediate FO file. It may be the the span=all didn't make it into the block, contrary to your expectations. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font Serif and Sans-Serif question
Yes. I need to use generic names coz thats what the specification given to me demands for and its not upto me to make changes to the specification. So I need to find a way out of that. Thanks, Abhi --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Sent: dinsdag 9 september 2003 22:39 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Font Serif and Sans-Serif question I have embedded custom fonts with FOp using the configuration file. Thanks Andreas for your help. But my problem here is how does FOP interpret serif and sans-serif. I want it to interpret serif as Times New Roman and Sans-serid as Arial. Do you really need generic font-family names? CSS2 spec advises explicitly to use these as little as possible, as a last resort... Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Times New Roman and Arial fonts with FOP
I am using Times New Roman and Arial fonts on my stylesheet. I dont think FOP has these fonts embedded in it. So I need to integrate it as per the instrcutions that come with FOP. I have already integrated some other fonts but I am having problem with these two. I get errors such as [ERROR] unknown font TimesNewRoman,italic,normal so defaulted fon [ERROR] unknown font Arial,italic,bold so defaulted font to any How should I go about using these fonts with FOP. Thanks, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using Times New Roman and Arial fonts with FOP
I already had created the xml files for all the 8 combinations of Times NEw Roman and Arial i.e ( base 2 + bold/italic/bold-italic 2 ) Now it displays Times New Roman, normal properly but still gives erros for Times New Roman, Italic, normal and Arial,italic,bold The problem was in the userconfig.xml file I had something like this font metrics-file=timesbi.xml kerning=yes embed-file=C:\WINDOWS\Fonts\timesbi.ttf font-triplet name=Times New Roman style=normal weight=normal/ /font For Times Bold, Italic but later I figured out I need the following font metrics-file=timesbi.xml kerning=yes embed-file=C:\WINDOWS\Fonts\timesbi.ttf font-triplet name=Times New Roman style=bold weight=italic/ /font *** SEE THE DIFFERENCES IN ABOVE TWO. style=normal and style=italic So the problem is solved. Thanks for your help Andreas. Regards, Abhi --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] [ERROR] unknown font TimesNewRoman,italic,normal so defaulted fon [ERROR] unknown font Arial,italic,bold so defaulted font to any Abhi, I guess you have only embedded ( performed the necessary steps for ) the normal Times New Roman and Arial fonts, but you probably want to embed the bold, italic bold-italic as well. They should have a different .ttf-file in your Windows (?) directory, same as the other only with a 'b' or 'i' appended... I think if you perform all the steps for all eight ( base 2 + bold/italic/bold-italic 2 ) of them, you will succeed. Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Producing an area in absolute position with text flowing around it
Thanks. Atleast now I know that its not feasible. So I will think of other formatting alternatives now. Abhi --- J.Pietschmann [EMAIL PROTECTED] wrote: Abhijit Junnare wrote: I want to draw a box that contains text. I would like to place this box in any absolute position in a page and then I would like the rest of the content on this page to the sides of this block. For eg. If I have a page that iss 12 cms in height and 10 cms wide. I draw the box is 4 cm x 4 cm and i place it exactly in the center of the page then I will be having about 4 cms of continous text flowing above the box, then some text flowing to the right and left of the box for next 4 cms and again about 4 cms of continous text flowing after the box. So is there any solution for this? No, not in the general case. The XSLFO spec doesn't provide for this. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Font Serif and Sans-Serif question
I am using font-family=serif and font-family=sans-serif in my stylesheet. I am not sure how FOP interprets these fonts. I am also using Epic for testing purpose and it interprets the fonts correctly (What I want )as Times New Roman for Serif Arial for sans-serif But with FOP it takes as Times Roman for Serif Helvetica-BoldOblique for sans-serif. I guess Times New Roman is different than Times Roman and ofcourse Arial is not the same as Helvetica-BoldOblique . Is there a way I can set something in FOP so that it will give me the results I want. Thanks, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font Serif and Sans-Serif question
I have embedded custom fonts with FOp using the configuration file. Thanks Andreas for your help. But my problem here is how does FOP interpret serif and sans-serif. I want it to interpret serif as Times New Roman and Sans-serid as Arial. Any help is appreciated. Thanks, Abhi --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: From: Abhijit Junnare [mailto:[EMAIL PROTECTED] I am using font-family=serif and font-family=sans-serif in my stylesheet. I am not sure how FOP interprets these fonts. I am also using Epic for testing purpose and it interprets the fonts correctly (What I want )as Times New Roman for Serif Arial for sans-serif Is there a way I can set something in FOP so that it will give me the results I want. You might wanna check http://xml.apache.org/fop/fonts.html. As for the name-mapping, I can't immediately help you here. Greetz, Andreas Delmelle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hello
Hello, I am testing to see if I can receive messages on this list. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Score-spaces and stylesheet generated using Epic's Turbo Styler
Hi, I have a few XML document. I have used EPIC Editor for XML to create a stylesheet for these documents using Epic's Turbo Styler. Now when I try to use this XSL file along with XML document to generate PDF using FOP it gives me an error. It says score-spaces not yet supported I guess that FOP does not support some constructs used by EPIC. Is there anything I can do to configure FOP so that it will recognize this or it will ignore such attribute when it appears in the stylesheet. But score-spaces attribute is a part of XSL recommendation on the W3 site. I am wondering if anyone came across such problem and has solution to fix it. If anyone using EPIC can help me so that the Turbo Styler generates the stylesheet using only basic XSL constructs. Thanks, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]