RE: 0.95 text wrap issue

2009-09-03 Thread Griffin,Sean
Senthil,

Two things I would try:
1. Remove keep-together on the table-cell.  In this contrived example you 
wouldn't need it.  Not sure if that affects the hyphenation behavior or not.
2. Ensure you have the xml:lang attribute on the page-sequence element 
containing this block or the hyphenation either won't work or won't work 
correctly.

It's been a couple years since I actually did the upgrade to 0.95 and had to 
enable hyphenation but these are the first things I'd try.  At some point you 
still may find a situation where you have single-syllable words too wide for 
the column but hopefully those are rare and can be worked around.  You could 
also do what we do and scan for certain characters that indicate reasonable 
candidates for break conditions and put the ZWSP character before/after them.  
Characters like semicolon, colon, comma, slashes, braces, etc.

Sean

-Original Message-
From: senthilvv28 [mailto:senthilv...@yahoo.com] 
Sent: Thursday, September 03, 2009 10:05 AM
To: fop-users@xmlgraphics.apache.org
Subject: 0.95 text wrap issue


Upgrading from earlier version to .95 fop 

1. I have 
fo:block hyphenate=true
fo:table-cell keep-together.within-column=always

case 1 : 
Long text with space behaves properly
eg : Really Really Long Text With WhiteSpace 


Case 2: 
Long text with No white space like 
eg: ReallyReallyLongTextNoWhiteSpace 

then the text flows- overlaps the next column.


to fix the problem should i introduce some white space . If yes can you let
me know how do it.

Thanks,
senthil 

-- 
View this message in context: 
http://www.nabble.com/0.95-text-wrap-issue-tp25277994p25277994.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Auto Table Column Width

2009-05-27 Thread Griffin,Sean
Tobias,
We have a similar need for auto table sizing, but we also have an additional 
need for table wrapping, so we simply had to come up with an alternative 
solution.  Since the FO is generated from XSLT, we can pass the page width and 
margin values as parameters to the XSLT stylesheets that can be used to get the 
body width of the table.  Then, we have a complicated algorithm that analyzes 
the text that will go into each cell and calculates its approximate width based 
on the number of chars in the largest string in that column.  We use that value 
in combo with the body width to know how many columns will fit on the page and 
how wide each column needs to be.

At this point in time the character metrics are stored in a lookup table for a 
controlled set of fonts and font sizes.  Certain combinations of characters 
cause the metric approximation to get all haywire, though, so we're beginning 
to look at a way we can possibly use XSLT extension functions to have Java and 
its FontMetrics class better approximate the width and height of the strings.  
Overall, however, the algorithm doesn't change.

From what I've read on the mailing lists before, yes, there is a patch 
somewhere in the Bugzilla queue that attempts to offer some auto table sizing 
algorithm but that it doesn't yet work for all cases and is an *extremely 
complicated* algorithm to complete.

Sean

-Original Message-
From: Tobias Anstett [k15t.com] [mailto:tob...@k15t.com] 
Sent: Wednesday, May 27, 2009 12:40 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Auto Table Column Width

Hi,

please see my original question below. Furthermore I'd like to know if
there are already approaches or ongoing development on this issue. Do
you know how other FO processors capable of this feature have solved
the problem. Would be nice if you can provide me additional
information what happend so far or not - so maybe we can help and work
on/contribute a solution in one of the next releases.

Cheers,
Tobias

On Wed, May 20, 2009 at 9:18 PM, Tobias Anstett [k15t.com]
tob...@k15t.com wrote:
 Hi,

 I know that auto table column width is currently not supported by FOP
 0.9.5. But is there a way to get the actual width of a table in the
 document (page - some indents) and calculate the column width like the
 CSS2 algorithm does?

 Or has anybody tried to render tables with iText and replace them
 automatically in the generated FOP-PDF ?

 --
 Cheers,
 Tobias


 
 K15t Software UG (haftungsbeschränkt), http://www.k15t.com
 Rosenbergstr. 58, 70176 Stuttgart, GERMANY
 Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
 Geschäftsführer (CEO): Klaus-Dieter Krüger


--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Incorrect display of accented characters in plain font

2009-04-30 Thread Griffin,Sean
Fellow FOP users,
I am looking for some help in an issue I am investigating for one of my clients 
that actually doesn't appear to have much to do with FOP at all.  However, 
since there's a good chance that someone on this list knows more than I do 
about how fonts map to glyphs in PostScript, I figure this might be a good pool 
to ask.

The issue is that a PDF generated from FOP with accented characters stored in 
the FO documented as Windows-1252 encoding, in either Helvetica or Times fonts, 
will display just fine when viewed in a PDF viewer, and they'll print just fine 
when printed from the PDF viewer.  However, when that PDF is ran through a 
PostScript interpreter (Preview SDK from Liberty Systems), the accented 
characters are mangled.  For example, é converts to D.  What's strange is that 
this only happens if it's plain font -- not bold, italic, or bold-italic.

Now I understand that plain, bold, italic, and bold-italic are 4 different 
fonts, and I've looked through the PostScript specification to see how the 
interpreter is supposed to map the font to the glyph, but I still can't figure 
out what's going on.  And finally, when trying this same code execution here in 
house, in the US (the client is in France), I cannot reproduce the problem.

Does anyone know if PostScript interpreters look anywhere on the PC itself 
(this is Windows) to find the font glyph information, or does anyone know why 
the decoding of characters would be different for one font than the other, even 
within the same font family?

Thanks ahead of time for any clues you can offer.

Sean Griffin | MSVC Architect | Cerner Corporation | 816.201.1599 | 
sgrif...@cerner.com | www.cerner.com http://www.cerner.com/ 


--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.


RE: Incorrect display of accented characters in plain font

2009-04-30 Thread Griffin,Sean
I need to clarify something I have below.  It should be this:

 

when that PDF is ran through a PostScript interpreter (Preview SDK from Liberty 
Systems) and sent to the printer, the accented characters are mangled on the 
printed output.




 

From: Griffin,Sean [mailto:sgrif...@cerner.com] 
Sent: Thursday, April 30, 2009 9:04 AM
To: fop-users@xmlgraphics.apache.org
Subject: Incorrect display of accented characters in plain font

 

Fellow FOP users,

I am looking for some help in an issue I am investigating for one of my clients 
that actually doesn't appear to have much to do with FOP at all.  However, 
since there's a good chance that someone on this list knows more than I do 
about how fonts map to glyphs in PostScript, I figure this might be a good pool 
to ask.

The issue is that a PDF generated from FOP with accented characters stored in 
the FO documented as Windows-1252 encoding, in either Helvetica or Times fonts, 
will display just fine when viewed in a PDF viewer, and they'll print just fine 
when printed from the PDF viewer.  However, when that PDF is ran through a 
PostScript interpreter (Preview SDK from Liberty Systems), the accented 
characters are mangled.  For example, é converts to D.  What's strange is that 
this only happens if it's plain font -- not bold, italic, or bold-italic.

Now I understand that plain, bold, italic, and bold-italic are 4 different 
fonts, and I've looked through the PostScript specification to see how the 
interpreter is supposed to map the font to the glyph, but I still can't figure 
out what's going on.  And finally, when trying this same code execution here in 
house, in the US (the client is in France), I cannot reproduce the problem.

Does anyone know if PostScript interpreters look anywhere on the PC itself 
(this is Windows) to find the font glyph information, or does anyone know why 
the decoding of characters would be different for one font than the other, even 
within the same font family?

Thanks ahead of time for any clues you can offer.

Sean Griffin | MSVC Architect | Cerner Corporation | 816.201.1599 | 
sgrif...@cerner.com mailto:sgrif...@cerner.com  | www.cerner.com 
http://www.cerner.com/ 



CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.



RE: Scale fop created pages for pdf output

2009-01-13 Thread Griffin,Sean
Peter,
By scale do you mean a different page size?  As you probably know, this isn't 
exactly a difference scale (where the page size would be the same but the image 
zoom would be different).  If you want to use the same XSLT to generate similar 
XSL-FO with just different page sizes, you can easily pass the page dimensions 
in as XSLT parameters.  If you're actually generating images from the PDF and 
want the images to be scaled at different dimensions, some sort of post 
processor would be required.

Sean

-Original Message-
From: Peter Coppens [mailto:pc.subscripti...@gmail.com] 
Sent: Tuesday, January 13, 2009 3:39 PM
To: fop-users@xmlgraphics.apache.org
Subject: Scale fop created pages for pdf output


Hello,

I guess this is somewhat off topic

Assume existing code to create an XSL FO. Sometimes I need to render that
exact same content (to pdf) but with a different scale

One approach is to create a second stylesheet that refers to the originally
generated pdf but uses the scaled page size. 

Now I wonder whether I can take any shortcuts here. I have been looking into
some pdf lib's (PDFBox being one of them) but I can not immediately figure
out how I would be able to rescale the pages.

Many thanks for guidance or tips!

Peter
-- 
View this message in context: 
http://www.nabble.com/Scale-fop-created-pages-for-pdf-output-tp21445071p21445071.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: FOP XML-XSLT-FOP PDF Issues

2008-12-16 Thread Griffin,Sean
Greg,

Can you show how you are calling into FOP?  Through the command-line or 
embedded in your Java app?  FOP can take either an XSL-FO document or an 
XML/XSLT document pair that generates the XSL-FO and then turns around and 
processes that FO.  While I'm guessing a bit here, this error seems like 
something that would happen if you were using the XSL-FO input example but 
passing in an XSLT stylesheet instead of an XSL-FO doc.

 

For example, to pass XML/XSLT into FOP do something like this (taken from the 
FOP examples):

 

TransformerFactory factory = TransformerFactory.newInstance();

Transformer transformer = factory.newTransformer(new 
StreamSource(xsltfile));

Source src = new StreamSource(xmlfile);

Result res = new SAXResult(fop.getDefaultHandler());

transformer.transform(src, res);

 

But to just pass in an FO doc:

 

TransformerFactory factory = TransformerFactory.newInstance();

Transformer transformer = factory.newTransformer();

Source src = new StreamSource(fo);

Result res = new SAXResult(fop.getDefaultHandler());

transformer.transform(src, res);

 

Something else to try is to just take FOP out of the equation and do a simple 
XSLT transformation.  You would expect an XSL-FO document as the result of the 
transformation, and if that doesn't happen then that would point you to why FOP 
is choking.

 

Sean

 

From: Patterson, Gregory Michael [mailto:grpat...@indiana.edu] 
Sent: Tuesday, December 16, 2008 3:16 PM
To: fop-users@xmlgraphics.apache.org
Subject: FOP XML-XSLT-FOP PDF Issues

 

Hello,

I'm having some trouble getting the FOP to properly use an xslt stylesheet.

I am getting a ValidationException saying I need to put fo:root at the top.

My first element is an xsl element, but the first fo: element is

fo:root.  This is exactly the same format as the examples in the fop

examples packages.

 

In my case, I need to pull the appropriate xsl from a database, and 

below is what I'm getting back:

?xml version=1.0 encoding=UTF-8?xsl:stylesheet 
xmlns:fo=http://www.w3.org/1999/XSL/Format; 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform; exclude-result-prefixes=fo 
version=1.1

  xsl:output indent=yes method=xml omit-xml-declaration=no 
version=1.0/

  xsl:param name=versionParam select='1.0'/ 

  !-- = --

  !-- root element: projectteam --

  !-- = --

  xsl:template match=projectteam

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

  fo:layout-master-set

.

.

.

 

 

 

Here is the error: 

(Location of error unknown)org.apache.fop.fo.ValidationException: Error: First 
element must be the fo:root formatting object. Found (Namespace URI: , Local 
Name: stylesheet) instead. Please make sure you're producing a valid XSL-FO 
document

Finished.

 

If you'll notice, the first fo element is fo:root, but I do have other things 
(required afaik) before it.

Thanks in advance for any help.

-Greg

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.


RE: Out of Memory error

2008-12-12 Thread Griffin,Sean
Vsyamala,
I was assuming you were embedding FOP into your application and calling 
directly through Java.  Since it appears you're launching from the 
command-line, it's up to the FOP command-line program on how it streams the 
output.  Since you're specifying file names as your I/O, it stands to reason 
that you'd be reading from/writing to File I/O streams, so the use of a 
ByteArrayOutputStream in the PDFStream.add() method might be a red herring and 
perfectly normal.

If you haven't already, you'll want to read this, which may point you in a 
direction to finding the source of your problem: 
http://xmlgraphics.apache.org/fop/0.94/running.html#memory.

Sean


-Original Message-
From: vsyamala [mailto:vsyam...@gmail.com] 
Sent: Friday, December 12, 2008 8:12 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Out of Memory error


Hi Sean,

Thanks for responding. I am using FOP 0.95 version and generating .fo file
from XSL transformation using xsltproc processor:

xsltproc --nonet --novalid --output Part5.fo PDFPublish_External.xsl
PDF_Book_Part5.xml

And then using Fop 0.95 version to convert .fo file to .pdf

call Fop -q -r -c fop.xconf Part5.fo PDF_Part5.pdf

I am not sure whether I am using memory stream or file stream. How do I
check that? How should I use the FileInputStream method or write to a file
instead of disk?

Thanks,
Vsyamala

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Out of Memory error

2008-12-11 Thread Griffin,Sean
Vsyamala,
There are a variety of factors that could contribute to your OOM error, 
including, most significantly, the size of your page sequences within you FO, 
the types of images that you're embedding, the version of FOP that you're 
using, and whether you're writing to the PDF in memory or into a file.  300 
images @ 48KB each doesn't sound extreme, but a 45MB FO file is pretty big.  
It's too hard to say whether a 45MB FO file with 300 images at 48KB each should 
be able to run in 2GB memory...there's just too many variables that aren't 
mentioned.  So I would recommend a divide-and-conquer approach.  Remove the 
image references from the FO and try again.  Still run out of memory or come 
close to it?  If so, it must not be the images.  Different versions of FOP 
handle images in different ways.  For example, in v0.20.5 (maybe 0.95 as well), 
JPG images were directly embedded into the PDF whereas PNG images were 
transcoded into bitmaps and compressed into the PDF.  As a consequence, JPG 
images used a lot less processor power but created, generally, larger PDFs.

I just noticed from your stack trace that it appears you're writing to a 
ByteArrayOutputStream.  That could be a big problem right there.  You're 
wanting to store the entire 12+MB PDF in memory in addition to the memory 
needed for FOP to function?  A much better option would be to write that file 
to disk.  Likewise, are you feeding the FO into FOP from a memory stream, a 
file stream, or as the result of an XML/XSLT transformation?  Of all options, 
if you're rendering files this big, you should use the FileInputStream method.

Sean

-Original Message-
From: vsyamala [mailto:vsyam...@gmail.com] 
Sent: Thursday, December 11, 2008 1:10 PM
To: fop-users@xmlgraphics.apache.org
Subject: Out of Memory error


Hi,

I am trying to generate PDF from 45MB .fo file, fop produces a pdf of about
12MB and it fails with out of memory errors. XMx and XMs options are set
for 2048MB(that's max I could go on the machine). And this .fo file is
referring to about 300 images of appx 48KB each. FOP should be able to
generate PDF. I am not sure if images are causing this issue. Does anyone
know if images are the issue? Here is the error:

Exception in thread main java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at java.io.OutputStream.write(Unknown Source)
at org.apache.fop.pdf.PDFStream.add(PDFStream.java:60)
at
org.apache.fop.render.pdf.PDFRenderer.concatenateTransformationMatrix
(PDFRenderer.java:839)
at
org.apache.fop.render.AbstractPathOrientedRenderer.renderReferenceAre
a(AbstractPathOrientedRenderer.java:539)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.j
ava:560)
at
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:13
29)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.
java:526)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.j
ava:573)
at
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:13
29)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.
java:526)

Thanks,
Vsyamala

 
-- 
View this message in context: 
http://www.nabble.com/Out-of-Memory-error-tp20962360p20962360.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: 0.95 Acrobat Performance Problems

2008-12-01 Thread Griffin,Sean
I would look for differences in the source PDFs between the two versions.  Even 
opening a PDF in a text editor will possibly show enough differences to explain 
the problem.  FOP 0.95 creates PDF v1.4 files.  I don't remember what FOP 
0.20.5 created.  Maybe there's a difference in how the contents of the PDF are 
compressed/uncompressed that influences the ability to concatenate.  There are 
filters that FOP applies to certain items in the PDF, like the FLATE filter on 
images, so maybe those are affecting the behavior.  Are files of similar 
content and page count approximately the same size between a source that works 
and a source that does not?  If you have to, you could write a program to use 
iText to do the PDF concatenation instead of Acrobat just to see if the problem 
is reproducible from other software.

-Original Message-
From: egibler [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 01, 2008 1:40 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: 0.95  Acrobat Performance Problems


Thanks for the response.

My problem is absolutely in Acrobat, specifically in how Acrobat deals with
the PDFs generated using FOP 0.95 (I'm pretty sure).  I'm hoping there might
be some setting, or known issue, in dealing with the two products in the
fashion I'm doing it.

I combine somewhere between 20,000 and 30,000 PDF pages daily, and have done
so for about three years.  The process is quick and reliable.

Last week, one of our clients migrated from FOP .2 to FOP .95, and abolutely
every subsequent file sent by them has brought me to my knees.  The
remaining 90% of my work (coming from other clients and using other PDF
generation tools) is flowing great, and I can rerun old FOP .2 files which
also still work great.

To me, the smoking gun is the upgrade, but I could be pursuaded otherwise. 
It wouldn't be my first incorrect assumption.  I'm hoping to find the cause,
or at least some sort of work around, or I'm afraid I'm going to have to
turn away this client's business.

Does that make sense?  I readily acknowledge my lack of experience with the
FOP toolset.  Any light shed on the issue would be most helpful.



Thanks,
ed



paul womack wrote:
 
 egibler wrote:
 Hi,
 
 I receive lots and lots of small (1-3 page) PDFs each day, combine them
 using Acrobat Professional, and print and mail them for clients.  One
 client
 recently upgraded from FOP .2x to FOP 0.95, and the combining of his
 files
 has become nearly impossible.  It'll put the first 10 pages together
 fairly
 quickly, but gets incrementally slower with subsequent additions until
 the
 process grinds to a halt before page 150 or so.  He tends to send me
 batches
 of between 1500 and 3500 pages, so I'm well shy of what I need to
 accomplish.  The process worked great with the earlier version, and works
 fine with my other clients' PDFs that are created with various other
 tools.
 
 These files are invoices.  Batches of which regularly represent several
 millions of dollars, so they really have to be right, timely, and without
 duplicates or omissions.
 
 I'm not at all familiar with FOP - please forgive my ignorance.  I hadn't
 heard of it until the problem occurred and I started doing a bit of
 research.  From what I've read, there seems to be a fair amount of
 discussion related to memory issues and large PDFs.  I'm wondering if
 anyone
 else has a situation similar to mine, and / or might be able to suggest
 what
 I might be able to do to get my production back on track.
 
 
 I'm a little confused. While FOP does indeed have some known
 performance issues with multi page documents,
 isn't the performance issue YOU'RE talking about
 inside Acrobat?
 
BugBear
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/0.95---Acrobat-Performance-Problems-tp20774481p20777151.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.


RE: Use only a limited number of items in an xsl:for-each

2008-08-18 Thread Griffin,Sean
Brian,

select=intellispec/aliases/alias is different than 
select=//*[local-name()='intellispec/aliases/alias'], if not functionally, at 
least in the area of performance.  Just try 
select=intellispec/aliases/alias[position() lt; 3] and see if that works any 
better.

BTW, this has nothing to do with FOP and is completely up to the XSLT processor 
you're using.

-Sean

-Original Message-
From: Brian Trezise [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2008 3:41 PM
To: fop-users@xmlgraphics.apache.org
Subject: Use only a limited number of items in an xsl:for-each

I'm using the following to select a subset of items from my xml document to be 
rendered to the pdf; however when I run fop on the xslt/xml, nothing is 
rendered at all:

xsl:for-each
select=//*[local-name()='intellispec/aliases/alias'][position() lt; 3]
xsl:value-of select=./
/xsl:for-each

From what I can tell this is valid xslt code, is there another way I need to 
write this to be compatible with FOP 0.95?  Or does FOP not support this 
functionality and I need to limit the number of aliases elsewhere in my 
software?

sample xml code:

intellispec
aliases
aliasC0805C101J8GAC7800/alias
aliasIPUHPIOUSOPIHJPOIA/alias
aliasASIJPCNEPOIWJPOIYO/alias
/aliases
/intellispec

I've attached a sample pdf that is generated by my xslt; up top where it says 
aka two of the three aliases should follow on the same line.  If I just do 
select=intellispec/aliases/alias in the above for-each all three aliases 
print out as expected.


Thanks,
___
Brian Trezise
Staff Software Engineer
IntelliData, Inc
22288 E Princeton Dr
aurora, colorado 80018
T: 720.524.4864
[EMAIL PROTECTED]

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Repeating table/group headers on subsequent pages

2008-08-12 Thread Griffin,Sean
Paige,

I have to do the very same thing in my solution.  Just use nested tables where 
each nested table gets its table-header.  So it would be something like 
(obviously pseudo):

 

table

  table-headerEducation/table-header

  table-body

table

   table-headerOrganization | Project | Status/table-header

   table-body

ORG1 | PRJ1 | STAT1

   /table-body

/table
  /table-body

/table

 

-Sean

 

From: Paige Balter [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2008 6:12 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Repeating table/group headers on subsequent pages

 

Thanks for your reply, Andreas.

Sorry if my question was unclear, it is so hard to explain everything in an 
email.  I have many more rows than just 5, I was keeping the number brief for 
example purposes.  

By creating a table header, I can get

--
 
| Organization | Project | Status | Primary Sector | Amount | Funding Type | 
--
 

to show up on the top of the next page, but the crucial part is the group 
header, that part that is bold below:


Inventor Support 
--
 
| Organization | Project | Status | Primary Sector | Amount | Funding Type | 
--
 


The report may have as many as 100 rows with 10 or so groups in it, and I was 
hoping that any time a group got split across pages, that the group header 
could appear at the top of the next page along with the table header.

Please let me know if this still doesn't make sense.  Again, thank you so much 
for your help.

~Paige 

 

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

RE: Repeating table/group headers on subsequent pages

2008-08-12 Thread Griffin,Sean
After reading this over again I'm not sure you need to do the nested tables 
after all.  It looks like you want to print a new set of column headers at the 
same point in time as when you want a new group header, and if that's the case 
you can just create 2 rows inside one table-header.  So I interpret your 
algorithm needs to be explained like so:

 

1.   For each set of ROW elements inside a unique grouping of child 
Focus element values, create a table for that group where the Focus element 
value and the column headers for each child element under ROW whose name is not 
equal to Focus are placed into a table-header.

2.   Within the group created in step 1, create table-rows for each ROW

 

Using XSLT 2.0 you can do something like this to accomplish said algorithm:

 

for-each-group select=//ROW group-by=Focus

table

table-header

table-rowtable-cellblockvalue-of 
select=Focus//block/table-cell/table-row

table-row

for-each select=*[local-name() != 'Focus']

// Create cells for column headers

/for-each

/table-row

/table-header

table-body

for-each select=current-group()

table-row

// Create cells for columns

/table-row

/for-each

/table-body

/table

/for-each-group

 

If you're using XSLT 1.0 you can still accomplish the same thing but it's more 
difficult.  Google for XSLT Muenchian to find examples.

 

From: Paige Balter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 1:12 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Repeating table/group headers on subsequent pages

 

That is an intriguing idea, Sean, and just might work, thank you!

Do you build your tables with For-each statements (e.g.  xsl:for-each 
select=.//ROW)?  And how do you get the outer table's header to change with 
each new grouping?

Thanks, again!

~Paige

 

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

RE: Possible to avoid page breaks between table rows with keep-together?

2008-08-11 Thread Griffin,Sean
Alexander,

It's hard to tell, but I'm assuming that the row that contains the text There 
should not be a page break now is supposed to stay on the same page as the 
rows containing the texts With this line and And this line?  If so, you 
could accomplish this a couple of different ways.  You could either use 
keep-with-next.within-page=always or (keep-with-previous) on the rows that 
you want to keep together, or you could wrap all related rows inside a nested 
table with keep-together.within-page=always on that table.

 

Realize that you're currently specifying keep-together.within-page on the 
individual rows, and as you can see, those rows are keeping together and not 
allowing a page break in the middle.  If you want a series of rows to 
keep-together than you have to wrap those rows inside a parent block where 
keep-together is specified on that block.  Or...use keep-with-next/previous.

 

The approach that works the best will likely be determined by the algorithm you 
use to create this FO.

 

Sean

 

From: Marx, Alexander [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2008 4:50 AM
To: fop-users@xmlgraphics.apache.org
Subject: Possible to avoid page breaks between table rows with keep-together?

 

Hello FOP-Users,

 

I need some help with using keep-together correctly. I am using the latest 0.95 
release.

 

I have attached a sample purchase order document which has a number of order 
lines with different kinds of additional information. The requirement is: One 
order line should be kept together on one page including all additional 
information.  If the order line does not fit on the same page it is supposed to 
trigger a page break.

 

I have tried to set keep-together accordingly but if you look at the output of 
the sample xml you'll find that there still is a page break within the same 
order line


Can you point me in the right direction how it is possible to  achieve the 
intended behaviour?

 

Regards,

Alexander

 

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

RE: Help with layout and design

2008-07-31 Thread Griffin,Sean
I don't think your problem will be XSLT and certainly not XSL-FO but how you 
tell the difference between one column and the next and which data element 
you're actually dealing with.

 

Just pseudo-code, outside of any particular language, what would the algorithm 
be for determining that.  How you turn that algorithm into code in XSLT could 
be trivial, if it's even safely possible.

 

From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2008 11:15 AM
To: fop-users@xmlgraphics.apache.org
Subject: Help with layout and design

 

Hi

I have an XML file where the data is as below

data

line1My Name1 of 1/line1

line2My Address  01/12/2008/line2

!--more lines of data here --

/data

I need to have boxes on PDF file like below, where i will hard code Name, page 

___

Name: My Name Page: 1of 1

Address: My Address  Date: 01/12/2008

___

Is it possible to do some thing like this using XSLT and XSL-Fo

Any suggestions

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

RE: How to use glyphs from the Symbol font ?

2008-07-29 Thread Griffin,Sean
I think there's an issue in how FOP translates the fonts in the Symbol 
font-family...or at least an inconsistency with other user agents I tried, in 
particular Internet Explorer and FireFox.  I tried to dig into the 
CodePointMapping class and the magic it's doing on more than one occasion but 
couldn't quite follow it.

The Base14 fonts shouldn't be needed in the FOP configuration, at least not for 
PDF output (which is all I have experience with).  However, the Symbol font 
doesn't map to the correct code points.  In fact it doesn't really map at 
all.  For example, the 'q' character (0x71) should map to the 'θ' character 
(0x03B8) when Symbol is the font-family, but, if I remember correctly, it 
simply prints as '#' because 0x71 isn't in the glyph set for the Symbol font.

I haven't logged a bug against FOP yet because I haven't had the chance to look 
into exactly what's going on.  But I am pretty certain it's working in a 
questionable manner.  If I wrote the FO itself with the font-family of Symbol 
and the 'q' character Internet Explorer and FireFox will show that character as 
'θ'.  If I run the same FO through FOP and view the PDF it creates I see '#'.

I own an RTF2FO and RTF2HTML conversion SDK.  For the HTML output I just go 
from RTF2FO and then from FO2HTML.  Unfortunately because of this issue I have 
to manually map the Symbol characters if the final output is FO but not if the 
final output is HTML so that they can display correctly in both use cases.

-Original Message-
From: Jean-François El Fouly [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2008 9:54 AM
To: fop-users@xmlgraphics.apache.org
Subject: How to use glyphs from the Symbol font ?

We generate FOP documents from a *nix workhorse, a rather plain (bare) 
server that has very minimal graphics  font equipment.
The current setup works well for current fonts (say, Verdana) and 
custom-made technical fonts.
Now, I would like to use some glyphs from the Symbol font but this 
raises a few interesting questions which I was not able to answer so far:

- it is not quite clear from the documentation whether Base14 fonts need 
to be declared in fop.xconf
[unless I did not look at the right place and missed a point, which is 
obviously quite possible]
- the server certainly has no Symbol font of its own, I can provide a 
TTF but ttfreader will refuse to generate an XML descriptor (Unicode 
cmap table not present / Unsupported format - aborting.).
- do I need to use the ASCII or Unicode codes for the glyphs; is 'alpha' 
simply a lowercase a or #xF061; ?

I thought this would be a simple item in my todo list but it proves to 
be more difficult than I expected at first sight :-(

Any help appreciated !

Jean-Francois



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.


RE: list-item - Keep together

2008-07-03 Thread Griffin,Sean
Which version of FOP are you using?  First of all, if you want to keep within a 
page you should say keep-together.within-page instead of just keep-together.  
Second, you should need keep-together only on the list-item and not also on the 
list-item-block.  And finally, this doesn't appear to work in FOP 0.20.5.  But 
I did try 0.94 and 0.95beta, and those both work just fine.

-Original Message-
From: bonekrusher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 03, 2008 1:58 PM
To: fop-users@xmlgraphics.apache.org
Subject: fo:list-item - Keep together


Hi,

How do I keep a list-item's contents from splitting on a page break? I've
tried using keep-together=always, but it still splits the contents.

xsl:template match=NOTE
fo:list-block provisional-distance-between-starts=7mm
provisional-label-separation=5mm start-indent=2mm
space-before.optimum=4pt space-after.optimum=4pt
xsl:for-each select=PARA
fo:list-item keep-together=always
fo:list-item-label 
end-indent=label-end()
fo:blockNOTE:/fo:block
/fo:list-item-label
fo:list-item-body start-indent=15mm 
keep-together=always
fo:block
xsl:apply-templates 
select=./
/fo:block
/fo:list-item-body
/fo:list-item
/xsl:for-each
/fo:list-block
/xsl:template
-- 
View this message in context: 
http://www.nabble.com/fo%3Alist-item---Keep-together-tp18266211p18266211.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Inline blocks in fop 0.94 (not block with inlines)

2008-07-02 Thread Griffin,Sean
I'm not exactly sure I follow the question, but I think (hope) I understand it 
well enough to answer.  The example you gave seems a bit off, though, as I 
don't see how the word Test3 would ever break in the middle.  The only break 
opportunity in the Test3 Test3 inline would be at the space between the first 
Test3 and second Test3.  If you truly don't want spaces within inlines to 
be treated as break opportunities, it seems a possible solution would be to 
replace all space characters (#x20;) with non-breaking space characters 
(#xA0;).

Also...

block
inlineTest1/inline
inlineTest2/inline
/block

Will not create Test1 Test2 but Test1Test2, so if you do want a break 
opportunity between those inlines, you'll need to insert them manually.

-Original Message-
From: gtsopour [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2008 5:15 AM
To: fop-users@xmlgraphics.apache.org
Subject: Inline blocks in fop 0.94 (not block with inlines)


fo:block
fo:inlineText1/fo:inline
fo:inlineText2/fo:inline
/fo:block
I have a block and i put in it some inlines, as shown in the example. I want
the inlines untouched-solid in a single line if they fit and if they don't
feet , then change line main whole(do not get cut at the end of current line
and continue at the next line). I How to keep the last inline in a single
line, in case that it is too large too fit;
Example

(inlines seprated by coma(,))
NOT

 |||Test1 Test1, Test2 Test2, Test3 Te
 |||st3

BUT

 |||Test1 Test1, Test2 Test2,
 |||Test3 Test3

Thanks in advance!!!
-- 
View this message in context: 
http://www.nabble.com/Inline-blocks-in-fop-0.94-%28not-block-with-inlines%29-tp18234290p18234290.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Inline blocks in fop 0.94 (not block with inlines)

2008-07-02 Thread Griffin,Sean
I haven't tried this, but I still think using non-breaking spaces is the way to 
go.  So if you did this:

blockinlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;1/inline 
inline Today#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;2/inline inline 
Today#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;3/inline/block

And Today is a beautiful day 1 Today is a beautiful day 2 fit on the line but 
Today is a beautiful day 3 did not, then you'd get:

Today is a beautiful day 1 Today is a beautiful day 2
Today is a beautiful day 3

My method of inserting space characters between the inlines probably won't work 
exactly as I have it, and you'll have to translate/replace the space characters 
from your input into non-breaking-space characters, but it seems like it could 
work...

-Original Message-
From: George Tsopouridis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2008 8:28 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Inline blocks in fop 0.94 (not block with inlines)


Thanks Griffin,Sean for your answer but i think that my problem is more
complicated
 I'll give you a better example

I have this text* in an inline.  ---  *Today is a beautiful day #
ok;;

SO,

blockinlineToday is a beautiful day 1/inlineinlineToday is a
beautiful day 2/inlineinlineToday is a beautiful day 3 /inlineblock.
 Line width is an unknown parameter and i want text Today is a beautiful
day # always together in the same line...
If my line has space only for 
Today is a beautiful day 1, Today is a beautiful day 2, Today is a
beautiful
day 3 

I don't want this but this

Today is a beautiful day 1, Today is a beautiful day 2, 
Today is a beautiful day 3 

Do you understand me ;;; thanks a lot...



Griffin,Sean wrote:
 
 I'm not exactly sure I follow the question, but I think (hope) I
 understand it well enough to answer.  The example you gave seems a bit
 off, though, as I don't see how the word Test3 would ever break in the
 middle.  The only break opportunity in the Test3 Test3 inline would be
 at the space between the first Test3 and second Test3.  If you truly
 don't want spaces within inlines to be treated as break opportunities, it
 seems a possible solution would be to replace all space characters
 (#x20;) with non-breaking space characters (#xA0;).
 
 Also...
 
 block
 inlineTest1/inline
 inlineTest2/inline
 /block
 
 Will not create Test1 Test2 but Test1Test2, so if you do want a break
 opportunity between those inlines, you'll need to insert them manually.
 
 -Original Message-
 From: gtsopour [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 02, 2008 5:15 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Inline blocks in fop 0.94 (not block with inlines)
 
 
 fo:block
 fo:inlineText1/fo:inline
 fo:inlineText2/fo:inline
 /fo:block
 I have a block and i put in it some inlines, as shown in the example. I
 want
 the inlines untouched-solid in a single line if they fit and if they don't
 feet , then change line main whole(do not get cut at the end of current
 line
 and continue at the next line). I How to keep the last inline in a single
 line, in case that it is too large too fit;
 Example
 
 (inlines seprated by coma(,))
 NOT
 
  |||Test1 Test1, Test2 Test2, Test3 Te
  |||st3
 
 BUT
 
  |||Test1 Test1, Test2 Test2,
  |||Test3 Test3
 
 Thanks in advance!!!
 -- 
 View this message in context:
 http://www.nabble.com/Inline-blocks-in-fop-0.94-%28not-block-with-inlines%29-tp18234290p18234290.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 --
 CONFIDENTIALITY NOTICE This message and any included attachments are from
 Cerner Corporation and are intended only for the addressee. The
 information contained in this message is confidential and may constitute
 inside or non-public information under international, federal, or state
 securities laws. Unauthorized forwarding, printing, copying, distribution,
 or use of such information is strictly prohibited and may be unlawful. If
 you are not the addressee, please promptly delete this message and notify
 the sender of the delivery error by e-mail or you may call Cerner's
 corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fo%3Ablock-with-inlines--%28in-fop-0.94%29-tp18234290p18237454.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e

RE: Inline blocks in fop 0.94 (not block with inlines)

2008-07-02 Thread Griffin,Sean
fo:block
  fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;1/fo:inline
  fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;2/fo:inline
  fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;3/fo:inline
  fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;4/fo:inline
  fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;5/fo:inline
  fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;6/fo:inline
/fo:block

-Original Message-
From: George Tsopouridis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2008 10:34 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Inline blocks in fop 0.94 (not block with inlines)


Griffin,Sean THANK YOU VERY

maybe it'so simple, but i cannot understand you. can you send me mini
fo:example... I need it...
thanks

Griffin,Sean wrote:
 
 It's not the spaces *between* inlines where you want the non-breaking
 spaces, it's the spaces *within* the inline.  What you want to say is that
 this inline is an entire string of non-breaking characters, and since
 hyphentation is not set on the parent block, it shouldn't be hyphenating
 those strings either.  Given this setup, FOP will only find break
 opportunities between the inlines, which is exactly what you want.
 
 -Original Message-
 From: George Tsopouridis [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 02, 2008 9:26 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Inline blocks in fop 0.94 (not block with inlines)
 
 
 Thanks again
 
 where is my wrong in this case 
 
 fo:block
 fo:inlineToday is a beuatiful day1/fo:inline
 fo:character character= /
 fo:inlineToday is a beuatiful day1/fo:inline
 fo:character character= /
 fo:inlineToday is a beuatiful day1/fo:inline
 fo:character character= /
 /fo:block
 
 because i am using xslt, between inlines i put this character
 fo:character
 character=#xA0;/ where is my false;
 
 
 Griffin,Sean wrote:
 
 I haven't tried this, but I still think using non-breaking spaces is the
 way to go.  So if you did this:
 
 blockinlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;1/inline
 inline Today#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;2/inline
 inline
 Today#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;3/inline/block
 
 And Today is a beautiful day 1 Today is a beautiful day 2 fit on the
 line but Today is a beautiful day 3 did not, then you'd get:
 
 Today is a beautiful day 1 Today is a beautiful day 2
 Today is a beautiful day 3
 
 My method of inserting space characters between the inlines probably
 won't
 work exactly as I have it, and you'll have to translate/replace the space
 characters from your input into non-breaking-space characters, but it
 seems like it could work...
 
 -Original Message-
 From: George Tsopouridis [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 02, 2008 8:28 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Inline blocks in fop 0.94 (not block with inlines)
 
 
 Thanks Griffin,Sean for your answer but i think that my problem is more
 complicated
  I'll give you a better example
 
 I have this text* in an inline.  ---  *Today is a beautiful day #
 ok;;
 
 SO,
 
 blockinlineToday is a beautiful day 1/inlineinlineToday is a
 beautiful day 2/inlineinlineToday is a beautiful day 3
 /inlineblock.
  Line width is an unknown parameter and i want text Today is a beautiful
 day # always together in the same line...
 If my line has space only for 
 Today is a beautiful day 1, Today is a beautiful day 2, Today is a
 beautiful
 day 3 
 
 I don't want this but this
 
 Today is a beautiful day 1, Today is a beautiful day 2, 
 Today is a beautiful day 3 
 
 Do you understand me ;;; thanks a lot...
 
 
 
 Griffin,Sean wrote:
 
 I'm not exactly sure I follow the question, but I think (hope) I
 understand it well enough to answer.  The example you gave seems a bit
 off, though, as I don't see how the word Test3 would ever break in the
 middle.  The only break opportunity in the Test3 Test3 inline would be
 at the space between the first Test3 and second Test3.  If you truly
 don't want spaces within inlines to be treated as break opportunities,
 it
 seems a possible solution would be to replace all space characters
 (#x20;) with non-breaking space characters (#xA0;).
 
 Also...
 
 block
 inlineTest1/inline
 inlineTest2/inline
 /block
 
 Will not create Test1 Test2 but Test1Test2, so if you do want a
 break
 opportunity between those inlines, you'll need to insert them manually.
 
 -Original Message-
 From: gtsopour [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 02, 2008 5:15 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Inline blocks in fop 0.94 (not block with inlines)
 
 
 fo:block
 fo:inlineText1/fo:inline
 fo:inlineText2/fo:inline
 /fo:block
 I have a block and i put in it some inlines, as shown in the example. I
 want
 the inlines untouched-solid in a single line if they fit and if they
 don't
 feet , then change line main whole(do not get cut

RE: Inline blocks in fop 0.94 (not block with inlines)

2008-07-02 Thread Griffin,Sean
I'm afraid I don't know either.  I've tried the below example in FOP 0.20.5, 
0.94, and 0.95beta, and all 3 seem to work just fine.
 
-Original Message-
From: George Tsopouridis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2008 11:05 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Inline blocks in fop 0.94 (not block with inlines)


no result nothing---thanks..i cannot understand where is my problem;;

Griffin,Sean wrote:
 
 fo:block
  
 fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;1/fo:inline
  
 fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;2/fo:inline
  
 fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;3/fo:inline
  
 fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;4/fo:inline
  
 fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;5/fo:inline
  
 fo:inlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;6/fo:inline
 /fo:block
 
 -Original Message-
 From: George Tsopouridis [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 02, 2008 10:34 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Inline blocks in fop 0.94 (not block with inlines)
 
 
 Griffin,Sean THANK YOU VERY
 
 maybe it'so simple, but i cannot understand you. can you send me mini
 fo:example... I need it...
 thanks
 
 Griffin,Sean wrote:
 
 It's not the spaces *between* inlines where you want the non-breaking
 spaces, it's the spaces *within* the inline.  What you want to say is
 that
 this inline is an entire string of non-breaking characters, and since
 hyphentation is not set on the parent block, it shouldn't be
 hyphenating
 those strings either.  Given this setup, FOP will only find break
 opportunities between the inlines, which is exactly what you want.
 
 -Original Message-
 From: George Tsopouridis [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 02, 2008 9:26 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Inline blocks in fop 0.94 (not block with inlines)
 
 
 Thanks again
 
 where is my wrong in this case 
 
 fo:block
 fo:inlineToday is a beuatiful day1/fo:inline
 fo:character character= /
 fo:inlineToday is a beuatiful day1/fo:inline
 fo:character character= /
 fo:inlineToday is a beuatiful day1/fo:inline
 fo:character character= /
 /fo:block
 
 because i am using xslt, between inlines i put this character
 fo:character
 character=#xA0;/ where is my false;
 
 
 Griffin,Sean wrote:
 
 I haven't tried this, but I still think using non-breaking spaces is the
 way to go.  So if you did this:
 
 blockinlineToday#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;1/inline
 inline Today#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;2/inline
 inline
 Today#xA0;is#xA0;a#xA0;beautiful#xA0;day#xA0;3/inline/block
 
 And Today is a beautiful day 1 Today is a beautiful day 2 fit on the
 line but Today is a beautiful day 3 did not, then you'd get:
 
 Today is a beautiful day 1 Today is a beautiful day 2
 Today is a beautiful day 3
 
 My method of inserting space characters between the inlines probably
 won't
 work exactly as I have it, and you'll have to translate/replace the
 space
 characters from your input into non-breaking-space characters, but it
 seems like it could work...
 
 -Original Message-
 From: George Tsopouridis [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 02, 2008 8:28 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Inline blocks in fop 0.94 (not block with inlines)
 
 
 Thanks Griffin,Sean for your answer but i think that my problem is more
 complicated
  I'll give you a better example
 
 I have this text* in an inline.  ---  *Today is a beautiful day #
 ok;;
 
 SO,
 
 blockinlineToday is a beautiful day 1/inlineinlineToday is a
 beautiful day 2/inlineinlineToday is a beautiful day 3
 /inlineblock.
  Line width is an unknown parameter and i want text Today is a
 beautiful
 day # always together in the same line...
 If my line has space only for 
 Today is a beautiful day 1, Today is a beautiful day 2, Today is a
 beautiful
 day 3 
 
 I don't want this but this
 
 Today is a beautiful day 1, Today is a beautiful day 2, 
 Today is a beautiful day 3 
 
 Do you understand me ;;; thanks a lot...
 
 
 
 Griffin,Sean wrote:
 
 I'm not exactly sure I follow the question, but I think (hope) I
 understand it well enough to answer.  The example you gave seems a bit
 off, though, as I don't see how the word Test3 would ever break in
 the
 middle.  The only break opportunity in the Test3 Test3 inline would
 be
 at the space between the first Test3 and second Test3.  If you
 truly
 don't want spaces within inlines to be treated as break opportunities,
 it
 seems a possible solution would be to replace all space characters
 (#x20;) with non-breaking space characters (#xA0;).
 
 Also...
 
 block
 inlineTest1/inline
 inlineTest2/inline
 /block
 
 Will not create Test1 Test2 but Test1Test2, so if you do want a
 break
 opportunity between those inlines, you'll need to insert them manually

RE: Inline blocks in fop 0.94 (not block with inlines)

2008-07-02 Thread Griffin,Sean
For some reason I had the mistaken impression that keep-together only applied 
to blocks and not inlines.  Guess I'm wrong!  And yes, that would certainly be 
an easier way to make it work.

-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2008 11:12 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Inline blocks in fop 0.94 (not block with inlines)

On Jul 2, 2008, at 12:15, gtsopour wrote:


 fo:block
 fo:inlineText1/fo:inline
 fo:inlineText2/fo:inline
 /fo:block
 I have a block and i put in it some inlines, as shown in the  
 example. I want
 the inlines untouched-solid in a single line if they fit and if  
 they don't
 feet , then change line main whole(do not get cut at the end of  
 current line
 and continue at the next line). I How to keep the last inline in a  
 single
 line, in case that it is too large too fit;

Not sure if this was already working in 0.94, but in 0.95 I know you  
can do:

fo:block
   fo:inline keep-together.within-line=alwaysText1/fo:inline
   fo:inline keep-together.within-line=alwaysText2/fo:inline
/fo:block

A break between the two inlines is always possible, but the inlines  
themselves will not be broken.


HTH!

Cheers

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can i put two block in a single line?

2008-06-30 Thread Griffin,Sean
I don't think blocks inside an inline is going to get you the desired 
effect.  I think what you're looking for is an inline-container, and 
unfortunately it appears that FOP does not support inline-containers.  I think 
using a table is your only option here, which, because of lack of auto table 
layout, may not work for you either.

-Original Message-
From: Michael Halpin [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 30, 2008 9:24 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Can i put two block in a single line?

You can probably use fo:inline to format block B within block A or you
can place them in separate cells within a table.

Thanks,
Michael

In the event that I am arrested for being a domestic enemy of the
state, you should know that it is not true, and I will be back in the
office just as soon as they reinstate Habeas Corpus.

-Original Message-
From: lujie [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 30, 2008 9:20 AM
To: fop-users@xmlgraphics.apache.org
Subject: Can i put two block in a single line?


Hi,
   I have two blocks, block A and block B. I want to put A and B in
paralell mode,just like:

 block A .  block B

   block A has a different height with block B.
   
   Can fop do with this?

   Thx

  
-- 
View this message in context:
http://www.nabble.com/Can-i-put-two-block-in-a-single-line--tp18196765p1
8196765.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: keep-together=always problem...

2008-06-13 Thread Griffin,Sean
I assume you're wanting keep-together within the page.  See 
https://issues.apache.org/bugzilla/show_bug.cgi?id=45189.  Use 
keep-together.within-page=always.

-Original Message-
From: Jiri Tyr [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 9:42 AM
To: fop-users@xmlgraphics.apache.org
Subject: keep-together=always problem...

Hello,

I have got a problem with keep-together=always applied on fo:block. In FOP 
0.94 is everything OK, in FOP 0.95beta and FOP SVN it is broken. 
Please see the attached example and try to create a PDF from it with different 
versions of FOP with and without keep-together=always.

Regards,
Jiri

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: fop-trunk nonbreaking spaces

2008-06-13 Thread Griffin,Sean
Is nbsp; even a valid entity for FO?  Try #x00A0; instead.  Unless nbsp; is 
defined to match the character \u00A0...

I tried a test locally using #x00A0; and it worked just fine.

Although I would question your use of non-breaking spaces in the first place.  
Might you really want white-space-collapse=false and 
white-space-treatment=preserve on your surrounding block?

-Original Message-
From: _zachary_ [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 11:35 AM
To: fop-users@xmlgraphics.apache.org
Subject: fop-trunk nonbreaking spaces


Hey Guys,

Before I talk about my new issue, I wanted to thank you all so much for your
help, it has saved my life :D.

Alright, so, I'm having an issue with non-breaking spaces i one of my lines. 
If I put three nbsp; at the beginning of a line, followed by some text, and
then an fo:inline with italic, the words overlap where the inline fo object
is.

e.g.


nbsp;nbsp;nbsp;Hello this is my test of boots fo:inline
font-style=italicitalic floating/fo:inline testing.  

Now then, when you actually create a pdf out of this example you will notice
that italic floating overlaps boots.  Why would this happen and is there
anything I can do to fix this, other than removing the nbsp;'s?  Thank you
all sooo much.

zach 
-- 
View this message in context: 
http://www.nabble.com/fop-trunk-nonbreaking-spaces-tp17827477p17827477.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: fop-trunk nonbreaking spaces

2008-06-13 Thread Griffin,Sean
Excert from FO document:

fo:flow 
flow-name=xsl-region-bodyfo:blockTest/fo:blockfo:block#x00A0;#x00A0;#x00A0;Hello
 this is my test of boots fo:inline font-style=italicitalic 
floating/fo:inline testing./fo:block/fo:flow

This was against FOP 0.95beta.

-Original Message-
From: _zachary_ [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 12:00 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: fop-trunk nonbreaking spaces


Hey Sean,

I was wondering if I could see the test that you used.  I tried the #x00A0
character and the white-space attributes you suggested and none seemed to
make a difference.  I am posting a screenshot of what its doing.

thank you again

zach

http://www.nabble.com/file/p17827953/Picture%2B1.png 



Griffin,Sean wrote:
 
 Is nbsp; even a valid entity for FO?  Try #x00A0; instead.  Unless
 nbsp; is defined to match the character \u00A0...
 
 I tried a test locally using #x00A0; and it worked just fine.
 
 Although I would question your use of non-breaking spaces in the first
 place.  Might you really want white-space-collapse=false and
 white-space-treatment=preserve on your surrounding block?
 
 -Original Message-
 From: _zachary_ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 13, 2008 11:35 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: fop-trunk nonbreaking spaces
 
 
 Hey Guys,
 
 Before I talk about my new issue, I wanted to thank you all so much for
 your
 help, it has saved my life :D.
 
 Alright, so, I'm having an issue with non-breaking spaces i one of my
 lines. 
 If I put three nbsp; at the beginning of a line, followed by some text,
 and
 then an fo:inline with italic, the words overlap where the inline fo
 object
 is.
 
 e.g.
 
 
 nbsp;nbsp;nbsp;Hello this is my test of boots fo:inline
 font-style=italicitalic floating/fo:inline testing.  
 
 Now then, when you actually create a pdf out of this example you will
 notice
 that italic floating overlaps boots.  Why would this happen and is there
 anything I can do to fix this, other than removing the nbsp;'s?  Thank
 you
 all sooo much.
 
 zach 
 -- 
 View this message in context:
 http://www.nabble.com/fop-trunk-nonbreaking-spaces-tp17827477p17827477.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 --
 CONFIDENTIALITY NOTICE This message and any included attachments are from
 Cerner Corporation and are intended only for the addressee. The
 information contained in this message is confidential and may constitute
 inside or non-public information under international, federal, or state
 securities laws. Unauthorized forwarding, printing, copying, distribution,
 or use of such information is strictly prohibited and may be unlawful. If
 you are not the addressee, please promptly delete this message and notify
 the sender of the delivery error by e-mail or you may call Cerner's
 corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fop-trunk-nonbreaking-spaces-tp17827477p17827953.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]