Using PDFBox

2010-12-02 Thread Steffanina, Jeff

I saw some references to Apache PDFBox and took a look at it.   I
currently use FOP / XSLT, etc to generate printed documents.  

Is there some specific feature(s) of PDFBox that I should take a closer
look at???   


Jeff 



Second Page not Printing

2010-10-01 Thread Steffanina, Jeff




I have a simple page layout for an output that will never be longer than
two pages.  Page 1 prints fine.  I have a maximum of 80 comment lines.
However, when I hit the bottom of page one, the output does not advance
to the second page.  I am using a for-each to step through all of the
comment lines.


Any ideas on what I have forgotten to do?



Jeff 


Reset Page Number Causes Blank Page to Print

2010-09-14 Thread Steffanina, Jeff


I receive a single, large XML invoice file. A single file contains multiple 
invoices of varying length. When the XML contains only ONE invoice my page 
numbering works fine.  However, when I have multiple invoices in a single file, 
I need to reset the page number back to one (1) for each new invoice.  I do 
this using the following:
xsl:for-each select=statements/statement/detail
  fo:page-sequence master-reference=multiinitial-page-number=1
fo:static-content flow-name=xsl-region-before
 font-size=9pt white-space-collapse=false
 white-space-treatment=preserve

This causes the page numbering to restart at page one BUT it also causes an 
additonal page to print with a blank body.  How do I prevent the additional 
page from printing?

Jeff Steffanina
Marriott International
FOSSE Development,  Bethesda, MD
(301)380-2047
jeff.steffan...@marriott.com
Marriott Technology: Shaping and Enabling Our Business
above-property solutions § agile designs § personalized connectivity
This communication contains information from Marriott International, Inc. 
that may be confidential. Except for personal use by the intended recipient, or 
as expressly authorized by the sender, any person who receives this information 
is prohibited from disclosing, copying, distributing, and/or using it. If you 
have received this communication in error, please immediately delete it and all 
copies, and promptly notify the sender. Nothing in this communication is 
intended as an electronic signature under applicable law.




RE: Page numbers

2010-09-14 Thread Steffanina, Jeff
Georg,
A single XML file contains many invoices.  Any single invoice may contain 
multiple pages.  For EACH invoice in the file, I need to produce a page count 
in the form of:  Page x of  z for that invoice.
 
Any ideas?
 
Jeff 




From: Georg Datterl [mailto:georg.datt...@geneon.de] 
Sent: Monday, September 13, 2010 3:00 PM
To: fop-users@xmlgraphics.apache.org
Subject: AW: Page numbers



Hi Jeff,

 

your block fo:block id=last-page is inside of a for-each. So you 
probably get such a block once per invoice. You only want it on the last 
invoice.

 

Mit freundlichen Grüßen

 

Georg Datterl

 

-- Kontakt --

 

Georg Datterl

 

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

 

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert 

 

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

 

www.geneon.de

 

Weitere Mitglieder der Willmy MediaGroup:

 

IRS Integrated Realization Services GmbH:www.irs-nbg.de 
http://www.irs-nbg.de  

Willmy PrintMedia GmbH:www.willmy.de 
http://www.willmy.de 

Willmy Consult  Content GmbH: www.willmycc.de 
http://www.willmycc.de  

 

Von: Steffanina, Jeff [mailto:jeff.steffan...@marriott.com] 
Gesendet: Montag, 13. September 2010 20:48
An: fop-users@xmlgraphics.apache.org
Betreff: Page numbers

 

 

FOP 0.95  Java 5 

I receive a single, large XML invoice file.  A single file contains 
multiple invoices of varying length.  When the XML contains only ONE invoice my 
page numbering works fine. I am trying to number the pages in the form of:   
Page x  of  z

However, when I include multiple invoices within ONE  XML file, my 
last-page logic fails.  I get this error: 
  ValidationException: Property id last-page previously used; id 
values must be unique in document. 

When I remove the references to last-page, my invoices print as 
expected. 

Currently, I use the following logic: 
 fo:block-container position=absolute top=2.0in left=5.5in 
fo:block font-size=9pt text-align=left 
   Page fo:page-number/ of fo:page-number-citation 
ref-id=last-page/ 
/fo:block 
... 
... 
... 

fo:block id=last-page 
/fo:block 
/fo:flow 
  /fo:page-sequence 
/xsl:for-each 

 

Any suggestions? 

 

Jeff 



RE: Reset Page Number Causes Blank Page to Print

2010-09-14 Thread Steffanina, Jeff
 
 
This worked THANKS.
 
 

Adding force-page-count=no-force to the fo:page-sequence element
should fix the problem.

Jeff 




From: Amick, Eric [mailto:eric.am...@mail.house.gov] 
Sent: Tuesday, September 14, 2010 8:37 AM
To: 'fop-users@xmlgraphics.apache.org'
Subject: RE: Reset Page Number Causes Blank Page to Print



Adding force-page-count=no-force to the fo:page-sequence
element should fix the problem.

 

Eric Amick   Systems Engineer II

Legislative Computer Systems

 

From: Steffanina, Jeff [mailto:jeff.steffan...@marriott.com] 
Sent: Tuesday, September 14, 2010 8:18
To: fop-users@xmlgraphics.apache.org
Subject: Reset Page Number Causes Blank Page to Print

 

 

I receive a single, large XML invoice file. A single file
contains multiple invoices of varying length. When the XML contains only
ONE invoice my page numbering works fine.  However, when I have multiple
invoices in a single file, I need to reset the page number back to one
(1) for each new invoice.  I do this using the following:

xsl:for-each select=statements/statement/detail 
  fo:page-sequence master-reference=multi
initial-page-number=1 
fo:static-content flow-name=xsl-region-before 
 font-size=9pt white-space-collapse=false 
 white-space-treatment=preserve 

This causes the page numbering to restart at page one BUT it
also causes an additonal page to print with a blank body.  How do I
prevent the additional page from printing?



RE: Page numbers

2010-09-14 Thread Steffanina, Jeff
Georg,
I made the change you suggested as follows:
fo:block font-size=9pt text-align=left
   Page fo:page-number/ of fo:page-number-citation 
ref-id=last-pageinvoiceCounter/
/fo:block
...
...
...
   fo:block id=last-pageinvoiceCounter
   /fo:block

 
Here is the error:
[Fatal Error] cy.xsl:199:76: The value of attribute ref-id associated with an 
element type fo:page-number-citation must not contain the '' character.
file:///CY/JLS/./java/cy.xsl; Line #199; Column #76; 
org.xml.sax.SAXParseException: The value of attribute ref-id associated with 
an element type fo:page-number-citation must not contain the '' character.
 

Jeff Steffanina 
Marriott International 
FOSSE Development,  Bethesda, MD 
(301)380-2047 
jeff.steffan...@marriott.com 
Marriott Technology: Shaping and Enabling Our Business
above-property solutions § agile designs § personalized connectivity 
This communication contains information from Marriott International, Inc. 
that may be confidential. Except for personal use by the intended recipient, or 
as expressly authorized by the sender, any person who receives this information 
is prohibited from disclosing, copying, distributing, and/or using it. If you 
have received this communication in error, please immediately delete it and all 
copies, and promptly notify the sender. Nothing in this communication is 
intended as an electronic signature under applicable law.

 




From: Georg Datterl [mailto:georg.datt...@geneon.de] 
Sent: Tuesday, September 14, 2010 8:32 AM
To: fop-users@xmlgraphics.apache.org
Subject: AW: Page numbers



Hi Jeff,

 

Sure. Untried, but should work: last-page is just called last-page 
for convenience. Each invoice (=page-sequence) can have one last block with a 
name like last-pageinvoiceCounter and a footer of Page fo:page-number/ of 
fo:page-number-citation ref-id=last-pageinvoiceCounter/

 

Mit freundlichen Grüßen

 

Georg Datterl

 

-- Kontakt --

 

Georg Datterl

 

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

 

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert 

 

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

 

www.geneon.de http://www.geneon.de 

 

Weitere Mitglieder der Willmy MediaGroup:

 

IRS Integrated Realization Services GmbH:www.irs-nbg.de 
http://www.irs-nbg.de  

Willmy PrintMedia GmbH:www.willmy.de 
http://www.willmy.de 

Willmy Consult  Content GmbH: www.willmycc.de 
http://www.willmycc.de  

 

Von: Steffanina, Jeff [mailto:jeff.steffan...@marriott.com] 
Gesendet: Dienstag, 14. September 2010 14:27
An: fop-users@xmlgraphics.apache.org
Betreff: RE: Page numbers

 

Georg,

A single XML file contains many invoices.  Any single invoice may 
contain multiple pages.  For EACH invoice in the file, I need to produce a page 
count in the form of:  Page x of  z for that invoice.

 

Any ideas?

 

Jeff 





From: Georg Datterl [mailto:georg.datt...@geneon.de] 
Sent: Monday, September 13, 2010 3:00 PM
To: fop-users@xmlgraphics.apache.org
Subject: AW: Page numbers

Hi Jeff,

 

your block fo:block id=last-page is inside of a for-each. 
So you probably get such a block once per invoice. You only want it on the last 
invoice.

 

Mit freundlichen Grüßen

 

Georg Datterl

 

-- Kontakt --

 

Georg Datterl

 

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

 

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert 

 

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

 

www.geneon.de

 

Weitere Mitglieder der Willmy MediaGroup:

 

IRS Integrated Realization Services GmbH:www.irs-nbg.de 
http://www.irs-nbg.de  

Willmy PrintMedia GmbH:
www.willmy.de http://www.willmy.de 

Willmy Consult  Content GmbH: www.willmycc.de 
http://www.willmycc.de  

 

Von: Steffanina, Jeff [mailto:jeff.steffan...@marriott.com] 
Gesendet: Montag, 13. September 2010 20:48

RE: Page numbers

2010-09-14 Thread Steffanina, Jeff
Georg / Eric,
 
I got it to work using your notes.  Thank you very much!
 
 

Jeff Steffanina 
Marriott International 
FOSSE Development,  Bethesda, MD 
(301)380-2047 
jeff.steffan...@marriott.com 
Marriott Technology: Shaping and Enabling Our Business
above-property solutions § agile designs § personalized connectivity 
This communication contains information from Marriott International, Inc. 
that may be confidential. Except for personal use by the intended recipient, or 
as expressly authorized by the sender, any person who receives this information 
is prohibited from disclosing, copying, distributing, and/or using it. If you 
have received this communication in error, please immediately delete it and all 
copies, and promptly notify the sender. Nothing in this communication is 
intended as an electronic signature under applicable law.

 




From: Georg Datterl [mailto:georg.datt...@geneon.de] 
Sent: Tuesday, September 14, 2010 10:53 AM
To: fop-users@xmlgraphics.apache.org
Subject: AW: Page numbers



Hi Jeff,

 

invoiceCounter should be a value which is different for each invoice. 
So for the first invoice, the block might look like 

 

Page fo:page-number/ of fo:page-number-citation 
ref-id=last-page1/ and fo:block id=last-page1



For the second invoice 

 

Page fo:page-number/ of fo:page-number-citation 
ref-id=last-page2/ and fo:block id=last-page2



And so on...

 

Mit freundlichen Grüßen

 

Georg Datterl

 

-- Kontakt --

 

Georg Datterl

 

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

 

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert 

 

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

 

www.geneon.de http://www.geneon.de 

 

Weitere Mitglieder der Willmy MediaGroup:

 

IRS Integrated Realization Services GmbH:www.irs-nbg.de 
http://www.irs-nbg.de  

Willmy PrintMedia GmbH:www.willmy.de 
http://www.willmy.de 

Willmy Consult  Content GmbH: www.willmycc.de 
http://www.willmycc.de  

 

Von: Steffanina, Jeff [mailto:jeff.steffan...@marriott.com] 
Gesendet: Dienstag, 14. September 2010 16:41
An: fop-users@xmlgraphics.apache.org
Betreff: RE: Page numbers

 

Georg,

I made the change you suggested as follows:

fo:block font-size=9pt text-align=left
   Page fo:page-number/ of fo:page-number-citation 
ref-id=last-pageinvoiceCounter/
/fo:block

...

...

...
   fo:block id=last-pageinvoiceCounter
   /fo:block

 

Here is the error:

[Fatal Error] cy.xsl:199:76: The value of attribute ref-id associated 
with an element type fo:page-number-citation must not contain the '' 
character.
file:///CY/JLS/./java/cy.xsl file:///\\CY\JLS\java\cy.xsl ; Line 
#199; Column #76; org.xml.sax.SAXParseException: The value of attribute 
ref-id associated with an element type fo:page-number-citation must not 
contain the '' character.

 

Jeff Steffanina 
Marriott International 
FOSSE Development,  Bethesda, MD 
(301)380-2047 
jeff.steffan...@marriott.com 
Marriott Technology: Shaping and Enabling Our Business
above-property solutions § agile designs § personalized connectivity 
This communication contains information from Marriott 
International, Inc. that may be confidential. Except for personal use by the 
intended recipient, or as expressly authorized by the sender, any person who 
receives this information is prohibited from disclosing, copying, distributing, 
and/or using it. If you have received this communication in error, please 
immediately delete it and all copies, and promptly notify the sender. Nothing 
in this communication is intended as an electronic signature under applicable 
law.

 

 





From: Georg Datterl [mailto:georg.datt...@geneon.de] 
Sent: Tuesday, September 14, 2010 8:32 AM
To: fop-users@xmlgraphics.apache.org
Subject: AW: Page numbers

Hi Jeff,

 

Sure. Untried, but should work: last-page is just called 
last-page for convenience. Each invoice (=page-sequence) can have one last 
block with a name like last-pageinvoiceCounter and a footer of Page 
fo:page-number/ of fo:page-number-citation 
ref-id=last-pageinvoiceCounter/

 

Mit freundlichen

Page numbers

2010-09-13 Thread Steffanina, Jeff

FOP 0.95  Java 5

I receive a single, large XML invoice file.  A single file contains
multiple invoices of varying length.  When the XML contains only ONE
invoice my page numbering works fine. I am trying to number the pages in
the form of:   Page x  of  z

However, when I include multiple invoices within ONE  XML file, my
last-page logic fails.  I get this error:
  ValidationException: Property id last-page previously used; id
values must be unique in document.

When I remove the references to last-page, my invoices print as
expected.

Currently, I use the following logic:
 fo:block-container position=absolute top=2.0in left=5.5in
fo:block font-size=9pt text-align=left
   Page fo:page-number/ of fo:page-number-citation
ref-id=last-page/
/fo:block
...
...
...

fo:block id=last-page
/fo:block
/fo:flow
  /fo:page-sequence
/xsl:for-each


Any suggestions?



Jeff 


Last-Page text Overlaps Region-Body Text

2010-09-08 Thread Steffanina, Jeff

Last week you all helped me resolve my last-page issue.  Great!   I
thought I was finished but here is a new twist.

My region-body runs to the bottom of a page (1 inch from the bottom).
The region-body only contains the detail rows of a table.  This works
perfectly.  However, on the last page, the summary block needs to print
about 4 inches (this will vary) from the bottom of the page.  Therefore,
when the region-body fills the last page with table output, the summary
block prints on top of the region-body table output.

Here is the start of my last-page code:
 fo:block id=last-page line-height=.14in
keep-together.within-page=always
linefeed-treatment=preserve white-space-collapse=false
   margin-top=.22in
   fo:block-container position=absolute top=4.2in left=.01in
 fo:block font-size=10pt
   fo:external-graphic src=url('java/images/FI_Graybar.jpg')
width=7in height=0.7in
content-width=scale-to-fit
content-height=scale-to-fit
scaling=non-uniform/
 /fo:block
   /fo:block-container

   fo:block-container position=absolute top=4.3in left=.4in
   fo:block 
  fo:block linefeed-treatment=preserve 
  keep-together.within-page=always
  background-color=transparent  
  line-height=.14in white-space-collapse=false

  font-size=9pt font-weight=bold 
  xsl:textCurrent31 - 60
61 - 90   Over 90
Total Due
 /xsl:text  

How can I prevent the last-page output from printing over the
region-body output??



Jeff




RE: Placing the minus sign(-) to the RIGHT side of the number

2010-09-02 Thread Steffanina, Jeff
Given the nature of my data, I took this approach and everything works
fine.
 
Thanks.
 

Jeff




From: Eric Douglas [mailto:edoug...@blockhouse.com] 
Sent: Wednesday, September 01, 2010 10:21 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Placing the minus sign(-) to the RIGHT side of the
number


This seems relatively simple.
I assume the problem is that your data has 233.94- and
format-number requires -223.94.
I don't know the syntax offhand but there is a method in the xsl
to check the last character of the data field.
You could just use the value of (if {last character} = -) for
an xsl:choose condition to parse the inv-amt input field, to move the
- to the front with a concat() function then pass the result into the
format-number.
 
(of course it's even easier the way I did it, where the program
generating the XML data already formats numbers into text and calculates
absolute positioning to print them)



Sent: Wednesday, September 01, 2010 10:03 AM
To: fop-users@xmlgraphics.apache.org
Subject: Placing the minus sign(-) to the RIGHT side of the
number


I am using FOP to produce an invoice in a .PDF.   Everything
works.
However, when a negative number is produced in my right
justified table column, the minus sign causes the decimal point to be
mis-aligned.
I found the format-number function and this addresses the
problem.  Now the issue is that my system generates a negative value in
the form of:
 233.94-
(the minus sign is always to the right of the value)  This
cannot be changed.   When I submit the value to format-number, it
returns a NaN error.
 
select=format-number(inv-amt,'##,###.00;#.00-')
 
In summary, I need to produce a column of numbers, right
justified, some of the values are negative with the minus sign to the
right.  At the same time, the vertical alignment of the decimal point is
required.  
 
Any ideas?
 
Thanks.
 
Jeff
 



Printing a Different LAST PAGE

2010-09-02 Thread Steffanina, Jeff
 

I have a simple invoice to print.  On the last page of the invoice, I
need to print a simple invoice summary.  I have been all over the web
trying to find the best, most simple way to address this.  I have not
been successful.

Can someone suggest the best simple solution to detecting and printing a
last-page?


Jeff 

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



Placing the minus sign(-) to the RIGHT side of the number

2010-09-01 Thread Steffanina, Jeff
I am using FOP to produce an invoice in a .PDF.   Everything works.
However, when a negative number is produced in my right justified table
column, the minus sign causes the decimal point to be mis-aligned.
I found the format-number function and this addresses the problem.
Now the issue is that my system generates a negative value in the form
of:
 233.94-
(the minus sign is always to the right of the value)  This cannot be
changed.   When I submit the value to format-number, it returns a
NaN error.
 
select=format-number(inv-amt,'##,###.00;#.00-')
 
In summary, I need to produce a column of numbers, right justified, some
of the values are negative with the minus sign to the right.  At the
same time, the vertical alignment of the decimal point is required.  
 
Any ideas?
 
Thanks.
 
Jeff
 


Print .jpg on form

2010-06-15 Thread Steffanina, Jeff

I have a form which contains several .jpg files.  They all print fine.
However, near the bottom of the form,  I need to print a light-gray bar
from left to right prior to the footer.  I tried to do it by coloring a
line with a height of one inch.  When that did not work, I added the
external-graphic.  The graphic works BUT I cannot get the image to be
the proper width and height.

Any ideas?

   fo:block-container position=absolute top=8.5in left=.5in
height=1in width=7.5in
 fo:block white-space-collapse=false
linefeed-treatment=preserve
color=#DD
 
 fo:external-graphic src=url('java/images/FI_Graybar.jpg')
content-height=.70in content-width=6in
 /fo:external-graphic

/fo:block
   /fo:block-container




Jeff 



Top Margin vs First Printable Position on a Page

2009-03-31 Thread Steffanina, Jeff
Friends,
If I use MicroSoft Word and print ABC with the top margin set to 0, I
get the ABC in the extreme upper left corner (about one-tenth of an inch
from the top) of the printed page on my printer.

I need to get an image to start at the extreme, upper left corner of the
printed page.  It seems that the best I can do with FOP, is about
one-half inch from the top of the page.  I have carefully reviewed the
graphic (.jpg) and I am confident that it is in good form.
Here are my region-before settings:

fo:region-before  extent=10.7in
  line-height=1in
 
background-image=url('java/images/RI_Thrive_nospace.jpg')
  background-position-vertical=bottom
background-repeat=no-repeat
margin-top=.1in
margin-left=.25in
absolute-position=fixed
font-size=0pt
display-align=after /


If I change the extent, it chops off the image at the top.

Any ideas

Jeff 


RESOLVED: Top Margin vs First Printable Position on a Page

2009-03-31 Thread Steffanina, Jeff

I just noticed that my  top margin for the simple-page-master was not
set correctly.  That fixed it.

Thanks.


Jeff 

 __ 
 From: Steffanina, Jeff  
 Sent: Tuesday, March 31, 2009 7:01 AM
 To:   'fop-users@xmlgraphics.apache.org'
 Subject:  Top Margin vs First Printable Position on a Page
 
 Friends,
 If I use MicroSoft Word and print ABC with the top margin set to 0,
 I get the ABC in the extreme upper left corner (about one-tenth of an
 inch from the top) of the printed page on my printer.
 
 I need to get an image to start at the extreme, upper left corner of
 the printed page.  It seems that the best I can do with FOP, is about
 one-half inch from the top of the page.  I have carefully reviewed the
 graphic (.jpg) and I am confident that it is in good form.
 Here are my region-before settings:
 
 fo:region-before  extent=10.7in
   line-height=1in
  
 background-image=url('java/images/RI_Thrive_nospace.jpg')
   background-position-vertical=bottom
 background-repeat=no-repeat
 margin-top=.1in
 margin-left=.25in
 absolute-position=fixed
 font-size=0pt
 display-align=after /
 
 
 If I change the extent, it chops off the image at the top.
 
 Any ideas
 
 Jeff 


Process to Convert a PDF to PCL

2009-03-05 Thread Steffanina, Jeff
I used fop-0.95 to create a perfect .PDF.  No problem.  However, we have
one group that insists that we continue to send the file to them in PCL
format.  I see a lot of tools that I can purchase that will convert a
PDF to a PCL.  If I modify my Java program, I know I can create the PCL
but this is not acceptable.

Does anyone know of a way to convert a finished .pdf to .pcl???



Jeff 


RE: Suppress the Form-Feed at the end of a page-sequence

2009-02-06 Thread Steffanina, Jeff
Unfortunately, the single page-sequence is so large that I run out of
memory.
 


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
jeff.steffan...@marriott.com

This communication contains information from Marriott International,
Inc. that may be confidential. Except for personal use by the intended
recipient, or as expressly authorized by the sender, any person who
receives this information is prohibited from disclosing, copying,
distributing, and/or using it. If you have received this communication
in error, please immediately delete it and all copies, and promptly
notify the sender. Nothing in this communication is intended as an
electronic signature under applicable law.


-Original Message-
From: Christopher R. Maden [mailto:cr...@maden.org] 
Sent: Tuesday, February 03, 2009 4:03 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Suppress the Form-Feed at the end of a page-sequence

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steffanina, Jeff wrote:
 To clarify:  Current Process
 When you come to the end of a page-sequence, FOP automatically
executes
 a form feed and continues at the top of the NEXT page.
 
 Desired Process:
 When you get to the end of a page-sequence, do NOT advance to the top
of
 the next page.  Instead, continue printing exactly where you left off
on
 the same page.

As well ask a dog to meow... this is pretty much what page-sequences do,
what they're for.  It sounds like your document needs to be one long(?)
page-sequence.

~Chris
- --
Chris Maden, text nerd  URL: http://crism.maden.org/ 
All I ask of living is to have no chains on me,
 And all I ask of dying is to go naturally. - Laura Nyro
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmIsNkACgkQGfhmdwB3wxlKKACg3eM7XQH1kQgZIGlkbMl40aGe
RywAn0YbuJmd6PQt+spB890bBGZYaWoE
=1lEB
-END PGP SIGNATURE-

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


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



RE: Suppress the Form-Feed at the end of a page-sequence

2009-02-06 Thread Steffanina, Jeff

 What output format are talking about? Plain Text?
I am creating a .pdf.  The large page-sequence is basically a 5,000 row
table.


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
jeff.steffan...@marriott.com

This communication contains information from Marriott International,
Inc. that may be confidential. Except for personal use by the intended
recipient, or as expressly authorized by the sender, any person who
receives this information is prohibited from disclosing, copying,
distributing, and/or using it. If you have received this communication
in error, please immediately delete it and all copies, and promptly
notify the sender. Nothing in this communication is intended as an
electronic signature under applicable law.


-Original Message-
From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] 
Sent: Tuesday, February 03, 2009 11:56 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Suppress the Form-Feed at the end of a page-sequence

What output format are talking about? Plain Text?

On 03.02.2009 17:23:43 Steffanina, Jeff wrote:
 
 To clarify:  Current Process
 When you come to the end of a page-sequence, FOP automatically
executes
 a form feed and continues at the top of the NEXT page.
 
 
 Desired Process:
 When you get to the end of a page-sequence, do NOT advance to the top
of
 the next page.  Instead, continue printing exactly where you left off
on
 the same page.
 
  
 
 
 Jeff 
 
 -Original Message-
 From: Andreas Delmelle [mailto:andreas.delme...@telenet.be] 
 Sent: Monday, February 02, 2009 12:10 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Suppress the Form-Feed at the end of a page-sequence
 
 On 02 Feb 2009, at 15:01, Steffanina, Jeff wrote:
 
 Hi Jeff
 
 
  Fop-0.95
  Java1.5
  Linux
 
  Is there anything I can code that will prevent the natural form  
  feed at the end of a page-sequence?
 
 Do you mean you get a blank page at the end of the page-sequence? If  
 so, check the force-page-count property on the page-sequence.
 If this is not the issue, then I'm not sure what you mean...
 
 
 Regards
 
 Andreas



Jeremias Maerki


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


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



RE: Suppress the Form-Feed at the end of a page-sequence

2009-02-03 Thread Steffanina, Jeff

To clarify:  Current Process
When you come to the end of a page-sequence, FOP automatically executes
a form feed and continues at the top of the NEXT page.


Desired Process:
When you get to the end of a page-sequence, do NOT advance to the top of
the next page.  Instead, continue printing exactly where you left off on
the same page.

 


Jeff 

-Original Message-
From: Andreas Delmelle [mailto:andreas.delme...@telenet.be] 
Sent: Monday, February 02, 2009 12:10 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Suppress the Form-Feed at the end of a page-sequence

On 02 Feb 2009, at 15:01, Steffanina, Jeff wrote:

Hi Jeff


 Fop-0.95
 Java1.5
 Linux

 Is there anything I can code that will prevent the natural form  
 feed at the end of a page-sequence?

Do you mean you get a blank page at the end of the page-sequence? If  
so, check the force-page-count property on the page-sequence.
If this is not the issue, then I'm not sure what you mean...


Regards

Andreas

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


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



Suppress the Form-Feed at the end of a page-sequence

2009-02-02 Thread Steffanina, Jeff

Fop-0.95
Java1.5
Linux

Is there anything I can code that will prevent the natural form feed
at the end of a page-sequence?



Jeff 


RE: Out of Memory Error from Java

2009-01-26 Thread Steffanina, Jeff
David,
Thanks for the additional input.   As your excellent article implies,
the solution is not as easy to implement as the concept implies.   

Specifically, my region-body is primarily a single, four-column, table
that is eventually followed by some summary text.  When the table
contains more than 4,500 lines I get the out-of-memory error.
Currently, the entire invoice is one page-sequence.  Your approach
appears to solve that problem and will keep the paging in tact.  My
problem is finding a way to create multiple page-seq inside a single
table without ruining the spacing.

I am working on that now.

Thanks..Any additional thoughts/examples would be greatly
appreciated.
Here is my code.

LINE 64 =   fo:page-sequence master-reference=multi
...
...
...
...
LINE 335 = 
 fo:table table-layout=fixed line-height=.10in
white-space-collapse=false width=100%
border-collapse=collapse
fox:orphan-content-limit=1in
fo:table-column column-width=.02in/
fo:table-column column-width=1.35in/
fo:table-column column-width=2.9in/
fo:table-column column-width=.69in/
fo:table-column column-width=.80in/

fo:table-body
  xsl:attribute
name=white-space-collapsefalse/xsl:attribute
  xsl:apply-templates select=./detail-line/
  xsl:apply-templates select=./total-line/
/fo:table-body

 /fo:table


.
.


LINE 479 = /fo:page-sequence

Jeff 


-Original Message-
From: DavidJKelly [mailto:dke...@scriptorium.com] 
Sent: Friday, January 23, 2009 8:24 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Out of Memory Error from Java


At the risk of providing a redundant answer, I would also like to point
out a
paper I wrote on a specific method for creating multiple page sequences
in
the DITA Open Toolkit.  It provides code examples and explanations for
some
of the gotchas in using multiple page sequences.  There may be
information
in this approach that you or others in this community would find
helpful.

http://www.scriptorium.com/whitepapers/xslfo/index.html

Regards,
David Kelly



Steffanina, Jeff wrote:
 
 
 I read the article that you referenced below.   It suggests using
 multiple page sequences.  Currently, I have only one.
 
 I will make that change and test it.
 
 THANKS for the info!
 
 
 
 Jeff 
 
 
 
 
 
 -Original Message-
 From: Chris Bowditch [mailto:bowditch_ch...@hotmail.com] 
 Sent: Thursday, January 22, 2009 4:11 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Out of Memory Error from Java
 
 Steffanina, Jeff wrote:
 
 I have:
 FOP 0.95
 Linux
 Java 1.5
 My Java starts with memory set as:  -Xmx192m
 
 I can print an unlimited number of individual invoices in a single
 Java 
 process (i.e. the user chooses the option to print).  For example,
 print 
 2,000 invoices where each  invoice contains 100 lines of details.  
 Therefore, print a total of 200,000 lines of detail.
 
 However, I receive an Out of Memory error from Java when I attempt
 to 
 print a single invoice  that contains more than 4,500 lines of
detail.
 
 Have you read:
 http://xmlgraphics.apache.org/fop/0.94/running.html#memory
 
 Specifically the part about breaking up the FO into multiple page
 sequences.
 
 
 Other than continuing to increase the amount of memory at startup, is

 there something I can do to prevent the error when printing a single,

 large invoice? 
 
 Regards,
 
 Chris
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

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


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


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



RE: Out of Memory Error from Java

2009-01-22 Thread Steffanina, Jeff

I read the article that you referenced below.   It suggests using
multiple page sequences.  Currently, I have only one.

I will make that change and test it.

THANKS for the info!



Jeff 





-Original Message-
From: Chris Bowditch [mailto:bowditch_ch...@hotmail.com] 
Sent: Thursday, January 22, 2009 4:11 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Out of Memory Error from Java

Steffanina, Jeff wrote:

 I have:
 FOP 0.95
 Linux
 Java 1.5
 My Java starts with memory set as:  -Xmx192m
 
 I can print an unlimited number of individual invoices in a single
Java 
 process (i.e. the user chooses the option to print).  For example,
print 
 2,000 invoices where each  invoice contains 100 lines of details.  
 Therefore, print a total of 200,000 lines of detail.
 
 However, I receive an Out of Memory error from Java when I attempt
to 
 print a single invoice  that contains more than 4,500 lines of detail.

Have you read:
http://xmlgraphics.apache.org/fop/0.94/running.html#memory

Specifically the part about breaking up the FO into multiple page
sequences.

 
 Other than continuing to increase the amount of memory at startup, is 
 there something I can do to prevent the error when printing a single, 
 large invoice? 

Regards,

Chris



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


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



Out of Memory Error from Java

2009-01-21 Thread Steffanina, Jeff
I have:
FOP 0.95
Linux
Java 1.5
My Java starts with memory set as:  -Xmx192m

I can print an unlimited number of individual invoices in a single Java
process (i.e. the user chooses the option to print).  For example, print
2,000 invoices where each  invoice contains 100 lines of details.
Therefore, print a total of 200,000 lines of detail.

However, I receive an Out of Memory error from Java when I attempt to
print a single invoice  that contains more than 4,500 lines of detail.

Other than continuing to increase the amount of memory at startup, is
there something I can do to prevent the error when printing a single,
large invoice?  


Jeff 


Create a .PCL file instead of a .PDF

2008-12-08 Thread Steffanina, Jeff

FOP-0.95
RedHat Linux
Java 1.5
Creating the PDF file is not a problem.  The output is perfect.  

Printing What:   a short doc that includes one logo file (.gif)  and one
watermark  (.jpg).

The user has a requirement that the SAME data must also produce a .PCL
file.

My Java program (from the Apache web site) has been changed as follows:
Fop fop = fopFactory.newFop(MimeConstants.MIME_PCL, foUserAgent, out);


My   fop.xconf has been changed as follows:
renderer mime=application/vnd.hp-PCL
renderingquality/rendering
text-renderingbitmap/text-rendering
/renderer

The PCL file is produced with two problems:
1. It chooses Legal Size paper by default
2. The Logo (a .gif) shows up as a solid black rectangle
3. The watermark (a .jpg)  does not print 

Any ideas/suggestions???

Thanks.


Jeff 



Background Image Covers both Region-before and Region-body

2008-11-13 Thread Steffanina, Jeff

Fop-0.95
The current version of the output works perfectly.  It consists simply
of two parts:
1.  a region-before that contains a logo and header text
2.  a region-body which contains the detail lines.

New change:  the user wants a background image to cover BOTH the
region-before and the region-body (the entire page) without making any
other changes.  

How would I define this?

Any hint is greatly appreciated.


Jeff 


Printer Error When Sending a PDF created from FOP

2008-11-05 Thread Steffanina, Jeff
Linux
Printer:  IBM Infoprint 1532   FOP:0-95

We are getting this error on some of the printers in the field.  The
following error literarily prints on the page instead of it printing my
PDF:

PDF Error 8  Postscript Invalid Font

I have investigated this in great detail but I cannot find any reason
for this issue.  I do have the same model printer that work perfectly at
various locations.


Has anyone seen this issue before?   I would appreciate any assistance.

Thanks.


Jeff 


Issues related to Images printing too dark

2008-11-04 Thread Steffanina, Jeff

Last week there was some discussion of the issue that the images (.jpg,
.gif, .png) were printing darker when they were processed through FOP.

I deleted the messages and now I need to review them.  

How do I go about reviewing the ENTIRE old message library???



Jeff 



PDF sent from Linux has poor resolution

2008-10-30 Thread Steffanina, Jeff
RedHat Linux
Java 1.4 / 1.5
FOP 0.95

The Linux spooler (using CUPS) sends the PDF file to the printer.  The
gray scale section of the printed page is fuzzy, grainny and
unacceptable.  However, if I print the same PDF to the same printer via
Windows, the printed document is perfect.

Can anyone suggest a way to generate the perfect printed document from
Linux?   Am I missing an option? 



Jeff 


RE: Using CHOOSE to control image in region-body

2008-10-13 Thread Steffanina, Jeff

Andreas
I greatly appreciate the suggestion!  I will make the change!
 


Jeff 

-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 13, 2008 3:40 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Using CHOOSE to control image in region-body

On Oct 8, 2008, at 13:38, Steffanina, Jeff wrote:

Hi,

FWIW, a small performance hint:

 My Friends,
 Thank you for the many suggestions!  I have tried them all and my  
 issue, as suggested by Jean-Francois appears to be related to the  
 fact that my xml tag send-fax is not a direct child of the node I  
 am processing.  Instead, it a remote descendant.  Therefore, I  
 used the following code:

 xsl:when test=count(//send-fax = 0

Seems better to use:

xsl:when test=not(//send-fax)

Why?
The node-set is implicitly converted to a boolean, which the  
processor (if intelligent enough) can evaluate as true as soon as  
the first such node is encountered. The expression count(//send- 
fax), OTOH, is more likely to trigger a complete tree-traversal  
starting at the context node. IIC, using a boolean would only mean a  
complete traversal iff the node-set is also empty (= false)


Cheers

Andreas

-
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]



RE: Using CHOOSE to control image in region-body

2008-10-08 Thread Steffanina, Jeff

My Friends,
Thank you for the many suggestions!  I have tried them all and my issue, as 
suggested by Jean-Francois appears to be related to the fact that my xml tag 
send-fax is not a direct child of the node I am processing.  Instead, it a 
remote descendant.  Therefore, I used the following code:

xsl:when test=count(//send-fax = 0

I will have to review some docs to clearly understand the remote descendant 
issue.  It points out that I should have done a better job in my original 
template design.

Thanks for all the input!
 


Jeff 

-Original Message-
From: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2008 3:20 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Using CHOOSE to control image in region-body

Hi,

If you read  send-faxY/send-fax, it is possible that there are some extra 
invisible charaters.
If you want, you can investigate with string-length() and if 1, try to 
determine (then discard) unexpected characters.

However, I can imagine 2 simple solutions that should help:
First solution should be to use normalize-space() function, like this:
xsl:when test=normalize-space(send-fax)='Y'...

Another solution consists in using contains() function:
xsl:when test=contains(send-fax,'Y')...

Just for curiosity, what XSLT engine do you use?

HTH,
Pascal

 -Message d'origine-
 De : Jay Bryant [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 7 octobre 2008 23:58
 
 Hi, Jeff,
 
 I whipped up a small test to show how to solve your problem. 
 Here's the 
 contents of the (very simple) input XML file:
 
 test
   send-faxY/send-fax
 /test
 
 Here's the (also very simple XSL file):
 
 ?xml version=1.0 encoding=UTF-8 standalone=yes?
 xsl:stylesheet version=2.0 
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xsl:template match=test
 xsl:choose
   xsl:when test=send-fax = 'Y'
 xsl:messageFound it/xsl:message
   /xsl:when
   xsl:otherwise
 xsl:messageNo joy/xsl:message
   /xsl:otherwise
 /xsl:choose
   /xsl:template
 /xsl:stylesheet
 
 When I run that XML file against that XSL file, I get found 
 it on my 
 command line.
 I bet you can extrapolate from there how to get the XSL-FO 
 content you want. 
 If not, let me know and I'll try to help further.
 HTH
 
 Jay Bryant
 
 - Original Message - 
 From: Steffanina, Jeff [EMAIL PROTECTED]
 To: fop-users@xmlgraphics.apache.org
 
 FOP 0.95 / Redhat Linux / Java 1.5
 When the tag send-fax does not exist print the lilly, when 
 send-fax=Y,
 print the pebble.  I always get the Lilly.  Can you determine why?
 
 xsl:choose
   xsl:when test=./send-fax='Y'
!--   region-before means region before the body(top 1/3 of
 folio   --
fo:region-before extent=3.0in
 background-repeat=no-repeat
 margin-top=.5in
 background-image=url('java/images/Pebble.jpg')
 background-position-vertical=bottom
 display-align=after /
   /xsl:when
   xsl:otherwise
   fo:region-before extent=3.0in
 background-repeat=no-repeat
 margin-top=.5in
 background-image=url('java/images/Lilly.jpg')
 background-position-vertical=bottom
 display-align=after /
   /xsl:otherwise
 /xsl:choose
 
 Jeff


-
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]



Using CHOOSE to control image in region-body

2008-10-07 Thread Steffanina, Jeff

FOP 0.95 / Redhat Linux / Java 1.5

When the tag send-fax does not exist print the lilly, when send-fax=Y,
print the pebble.  I always get the Lilly.  Can you determine why?

xsl:choose
  xsl:when test=./send-fax='Y'
   !--   region-before means region before the body(top 1/3 of
folio   --
   fo:region-before extent=3.0in
background-repeat=no-repeat
margin-top=.5in
background-image=url('java/images/Pebble.jpg')
background-position-vertical=bottom
display-align=after /
  /xsl:when
  xsl:otherwise
  fo:region-before extent=3.0in
background-repeat=no-repeat
margin-top=.5in
background-image=url('java/images/Lilly.jpg')
background-position-vertical=bottom
display-align=after /
  /xsl:otherwise
/xsl:choose



Jeff 



RE: Using CHOOSE to control image in region-body

2008-10-07 Thread Steffanina, Jeff
Eric,
I made the suggested change and checked the case.   No difference in the
output.
 
Any other thoughts?

Jeff 




From: Amick, Eric [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 07, 2008 3:11 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Using CHOOSE to control image in region-body


I can think of two possibilities off the top of my head: The
value is a lowercase Y, or there is whitespace present. Try
normalize-space(send-fax)='Y' instead.
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 



From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 7, 2008 14:54
To: fop-users@xmlgraphics.apache.org
Subject: Using CHOOSE to control image in region-body




FOP 0.95 / Redhat Linux / Java 1.5 

When the tag send-fax does not exist print the lilly, when
send-fax=Y, print the pebble.  I always get the Lilly.  Can you
determine why?

xsl:choose 
  xsl:when test=./send-fax='Y' 
   !--   region-before means region before the body(top 1/3
of folio   -- 
   fo:region-before extent=3.0in 
background-repeat=no-repeat 
margin-top=.5in 

background-image=url('java/images/Pebble.jpg') 
background-position-vertical=bottom 
display-align=after / 
  /xsl:when 
  xsl:otherwise 
  fo:region-before extent=3.0in 
background-repeat=no-repeat 
margin-top=.5in 

background-image=url('java/images/Lilly.jpg') 
background-position-vertical=bottom 
display-align=after / 
  /xsl:otherwise 
/xsl:choose 



Jeff 



RE: Using CHOOSE to control image in region-body

2008-10-07 Thread Steffanina, Jeff
 
Located in the XML file:
 
send-faxY/send-fax
 
 
 

Jeff 


From: Pete Allison [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 07, 2008 3:56 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Using CHOOSE to control image in region-body



What is the context for ./send-fax ?
 
 



From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 07, 2008 2:38 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Using CHOOSE to control image in region-body


Eric,
I made the suggested change and checked the case.   No
difference in the output.
 
Any other thoughts?

Jeff 




From: Amick, Eric [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 07, 2008 3:11 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Using CHOOSE to control image in
region-body


I can think of two possibilities off the top of my head:
The value is a lowercase Y, or there is whitespace present. Try
normalize-space(send-fax)='Y' instead.
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 



From: Steffanina, Jeff
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 7, 2008 14:54
To: fop-users@xmlgraphics.apache.org
Subject: Using CHOOSE to control image in region-body




FOP 0.95 / Redhat Linux / Java 1.5 

When the tag send-fax does not exist print the lilly,
when send-fax=Y, print the pebble.  I always get the Lilly.  Can you
determine why?

xsl:choose 
  xsl:when test=./send-fax='Y' 
   !--   region-before means region before the
body(top 1/3 of folio   -- 
   fo:region-before extent=3.0in 
background-repeat=no-repeat 
margin-top=.5in 

background-image=url('java/images/Pebble.jpg') 

background-position-vertical=bottom 
display-align=after / 
  /xsl:when 
  xsl:otherwise 
  fo:region-before extent=3.0in 
background-repeat=no-repeat 
margin-top=.5in 

background-image=url('java/images/Lilly.jpg') 

background-position-vertical=bottom 
display-align=after / 
  /xsl:otherwise 
/xsl:choose 



Jeff 



Trying to enlarge a background image

2008-10-03 Thread Steffanina, Jeff
FOP-0.95
Redhat Linux

I have a background image in the region-body.  It looks great and
prints perfectly.

However, I just noticed that I want the background image to occupy more
space in the region-body (just make it bigger).
I do not see where I am able to specify the size of the image.  Do I
have to manipulate the .png/.jpg  outside of FOP  or can I set the
height/width inside FOP and then it will automatically resize the image?



Jeff 



RE: Trying to add a footer

2008-10-02 Thread Steffanina, Jeff
Lou,
That did the trick.  THANK YOU for your help.
 

Jeff 




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 02, 2008 12:03 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Trying to add a footer



Did you forget to define your footer attribute set?  If you
don't need it, remove that from the block and you should be OK: 

A very simple example: 

fo:static-content flow-name=region-after-first 
xsl:call-template name=poFooter/ 
/fo:static-content 


xsl:template name=poFooter 
fo:block space-before=1mm font-size=7pt
text-align=end 
Page fo:page-number/ of
fo:page-number-citation ref-id=lastpage/ 
/fo:block 
xsl:call-template name = copyright/ 
/xsl:template 

OK? 

-Lou 




Validate the integrity of the PDF

2008-09-23 Thread Steffanina, Jeff

FOP-0.95
Redhat Linux
All output looks great.

Situation:
IF the XML file contains a bug, a PDF is still created.  Therefore, I
end up with a badly formed PDF on the disk.  I then pass this bad file
to the spooler and the PDF file hangs the spooler.   Due to the multiple
levels of system calls I am making in the application, I am unable to
trap the error (in this case, an fop ValidationException error).

Question:
When woking in the Korn shell, is there a simple way to test/determine
that the PDF file generated is properly formed and functional?



Thanks.


Jeff 


RE: Table Column Overlap

2008-09-17 Thread Steffanina, Jeff
Eric,
The use of span solved my problem.  
 
Thanks for the hint.
 

Jeff 


From: Amick, Eric [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2008 4:10 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Table Column Overlap



In other words, if Column A has no data, you want Column
B's data to *span* the first two columns. Is that enough of a hint?
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 



From: Steffanina, Jeff
[mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2008 15:49
To: fop-users@xmlgraphics.apache.org
Subject: Table Column Overlap



My Friends, 
I have a table with 4 columns, A B C D 

Everything prints without an issue with the exception of
the following situation: 

Column A is the date 
Column B is right justified (a description) 
Column C  is an amount (right justified) 
Column D is an amount (right justified) 
In some cases, column B is too big to fit in the column
and it is wrapping.  When this occurs, Column A will always be blank and
I want column B to overflow into Column A and maintain the integrity of
remaining right justified in column B without wrapping.

Any ideas or hints on techniques to try? 


Jeff 



RE: Error when using XSL with French Characters

2008-09-03 Thread Steffanina, Jeff
Manuel,
 
We create the XML using a version of BASIC.  To create this particular
character, we send  CHR(130) to the XML.  When I open the XML in vi, I
see the proper FRENCH symbol.
 
 

Jeff 




From: Manuel Mall [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 02, 2008 10:51 PM
To: 'fop-users@xmlgraphics.apache.org'
Subject: RE: Error when using XSL with French Characters



I am suspicious that although you declare the XML file as being
in UTF-8 it actually isn't. How do you produce the XML file? 

 

Manuel

 





From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 3 September 2008 10:23 AM
To: fop-users@xmlgraphics.apache.org
Subject: Error when using XSL with French Characters

 

 

My Friends, 
Fop-0.95   My style sheet has been working perfectly.  However,
the user submitted some text in French.  In the text was a letter e
with an accent above it.

That character caused the following error: 
Invalid byte 1 of 1-byte UTF-8 sequence. 

My .xml looks fine.   The  e with the accent above it is
perfect. 
First line in my XML: 
?xml version=1.0 encoding=UTF-8? 

Here is the first line of my XSL: 
?xml version=1.0 encoding=UTF-8? 

I am confused over why the UTF-8 for the XML understands the
character but the UTF-8 in the XSL does not? 

I found an article that suggests that the problem would be
solved with: 
?xml version=1.0 encoding=8859-1? 

Would this be a viable/recommended solution?   Do you have a
better idea? 

 



RE: Error when using XSL with French Characters

2008-09-03 Thread Steffanina, Jeff
Jean-Francois,

fop-0.95
I am running Redhat Linux 2.4.21-47.0.1. 

The letter I am referring to is:  é è
I assume I am having problems with any French character that includes a glyph.

What are you using for  ?xml version=1.0 encoding=?

I appreciate any suggestions.  I have not had to deal with international 
characters sets before.

Thanks.

Jeff 

-Original Message-
From: Jean-François El Fouly [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 03, 2008 8:58 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error when using XSL with French Characters

There are four kinds of accent current in French (é è ê ë) so you should 
be more precise.
None of them can possibly correspond to CHR(130) neither in UTF-8 nor in 
ISO-8859-1
On what kind of system/platform/OS are you working ?
Mentioning vi makes me guess it should be some kind of Unix but at the 
same time the encoding used makes this improbable...
I guess more information is needed here.

Steffanina, Jeff a écrit :
 Manuel,
  
 We create the XML using a version of BASIC.  To create this particular 
 character, we send  CHR(130) to the XML.  When I open the XML in vi, 
 I see the proper FRENCH symbol.
  
  

 */Jeff /*

 
 *From:* Manuel Mall [mailto:[EMAIL PROTECTED]
 *Sent:* Tuesday, September 02, 2008 10:51 PM
 *To:* 'fop-users@xmlgraphics.apache.org'
 *Subject:* RE: Error when using XSL with French Characters

 I am suspicious that although you declare the XML file as being in
 UTF-8 it actually isn't. How do you produce the XML file?

  

 Manuel

  

 

 *From:* Steffanina, Jeff [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, 3 September 2008 10:23 AM
 *To:* fop-users@xmlgraphics.apache.org
 *Subject:* Error when using XSL with French Characters

  

  

 My Friends,
 Fop-0.95   My style sheet has been working perfectly.  However,
 the user submitted some text in French.  In the text was a letter
 e with an accent above it.

 That character caused the following error:
 Invalid byte 1 of 1-byte UTF-8 sequence.

 My .xml looks fine.   The  e with the accent above it is perfect.
 First line in my XML:
 ?xml version=1.0 encoding=UTF-8?

 Here is the first line of my XSL:
 ?xml version=1.0 encoding=UTF-8?

 I am confused over why the UTF-8 for the XML understands the
 character but the UTF-8 in the XSL does not?

 I found an article that suggests that the problem would be solved
 with:
 ?xml version=1.0 encoding=8859-1?

 Would this be a viable/recommended solution?   Do you have a
 better idea?

  



-
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]



RE: Error when using XSL with French Characters

2008-09-03 Thread Steffanina, Jeff

Jean-Francois,
On my Linux box I have this entry in:  /etc/sysconfig/i18n

LANG=en_US.iso885915 



Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
[EMAIL PROTECTED]

This communication contains information from Marriott International, Inc. 
that may be confidential. Except for personal use by the intended recipient, or 
as expressly authorized by the sender, any person who receives this information 
is prohibited from disclosing, copying, distributing, and/or using it. If you 
have received this communication in error, please immediately delete it and all 
copies, and promptly notify the sender. Nothing in this communication is 
intended as an electronic signature under applicable law.


-Original Message-
From: Jean-François El Fouly [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 03, 2008 8:58 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error when using XSL with French Characters

There are four kinds of accent current in French (é è ê ë) so you should 
be more precise.
None of them can possibly correspond to CHR(130) neither in UTF-8 nor in 
ISO-8859-1
On what kind of system/platform/OS are you working ?
Mentioning vi makes me guess it should be some kind of Unix but at the 
same time the encoding used makes this improbable...
I guess more information is needed here.

Steffanina, Jeff a écrit :
 Manuel,
  
 We create the XML using a version of BASIC.  To create this particular 
 character, we send  CHR(130) to the XML.  When I open the XML in vi, 
 I see the proper FRENCH symbol.
  
  

 */Jeff /*

 
 *From:* Manuel Mall [mailto:[EMAIL PROTECTED]
 *Sent:* Tuesday, September 02, 2008 10:51 PM
 *To:* 'fop-users@xmlgraphics.apache.org'
 *Subject:* RE: Error when using XSL with French Characters

 I am suspicious that although you declare the XML file as being in
 UTF-8 it actually isn't. How do you produce the XML file?

  

 Manuel

  

 

 *From:* Steffanina, Jeff [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, 3 September 2008 10:23 AM
 *To:* fop-users@xmlgraphics.apache.org
 *Subject:* Error when using XSL with French Characters

  

  

 My Friends,
 Fop-0.95   My style sheet has been working perfectly.  However,
 the user submitted some text in French.  In the text was a letter
 e with an accent above it.

 That character caused the following error:
 Invalid byte 1 of 1-byte UTF-8 sequence.

 My .xml looks fine.   The  e with the accent above it is perfect.
 First line in my XML:
 ?xml version=1.0 encoding=UTF-8?

 Here is the first line of my XSL:
 ?xml version=1.0 encoding=UTF-8?

 I am confused over why the UTF-8 for the XML understands the
 character but the UTF-8 in the XSL does not?

 I found an article that suggests that the problem would be solved
 with:
 ?xml version=1.0 encoding=8859-1?

 Would this be a viable/recommended solution?   Do you have a
 better idea?

  



-
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]



RE: Error when using XSL with French Characters

2008-09-03 Thread Steffanina, Jeff

There is always one MORE option to consider!!

What would you suggest as the best way to handle this? 


Jeff

-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 03, 2008 12:32 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error when using XSL with French Characters

On Sep 3, 2008, at 15:05, Steffanina, Jeff wrote:

Hi Jeff

 fop-0.95
 I am running Redhat Linux 2.4.21-47.0.1.

 The letter I am referring to is:  é è
 I assume I am having problems with any French character that  
 includes a glyph.

 What are you using for  ?xml version=1.0 encoding=?

 I appreciate any suggestions.  I have not had to deal with  
 international characters sets before.

If all else fails, remember that XML *always* allows Numeric  
Character References, like #x0A; or #10; for a linefeed (values are  
always UTF-8 codepoints).

In UTF-8, the respective character codes are:

#xE8; - è
#xE9; - é

If you output those sequences in the BASIC module, then it should  
work, regardless of which encoding is specified in the XML header.

HTH!

Cheers

Andreas


-
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]



Error when using XSL with French Characters

2008-09-02 Thread Steffanina, Jeff

My Friends,
Fop-0.95   My style sheet has been working perfectly.  However, the user 
submitted some text in French.  In the text was a letter e with an accent 
above it.

That character caused the following error:
Invalid byte 1 of 1-byte UTF-8 sequence.

My .xml looks fine.   The  e with the accent above it is perfect.
First line in my XML:
?xml version=1.0 encoding=UTF-8?

Here is the first line of my XSL:
?xml version=1.0 encoding=UTF-8?

I am confused over why the UTF-8 for the XML understands the character but the 
UTF-8 in the XSL does not?

I found an article that suggests that the problem would be solved with: 
?xml version=1.0 encoding=8859-1?

Would this be a viable/recommended solution?   Do you have a better idea?


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
[EMAIL PROTECTED]

This communication contains information from Marriott International, Inc. 
that may be confidential. Except for personal use by the intended recipient, or 
as expressly authorized by the sender, any person who receives this information 
is prohibited from disclosing, copying, distributing, and/or using it. If you 
have received this communication in error, please immediately delete it and all 
copies, and promptly notify the sender. Nothing in this communication is 
intended as an electronic signature under applicable law.




RE: 0.95 - Printing a string and aligning the decimal points

2008-08-26 Thread Steffanina, Jeff
 
David,
Your solution worked PERFECTLY!   
 
Thank you very much
 

Jeff 




From: David Gerdt [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2008 3:22 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: 0.95 - Printing a string and aligning the decimal
points


Yes, definitely. I assumed because you hadn't done this already
that the XML data was out of your hands. But yes, if you can make the
XML a little more granular like you demonstrate then you don't need an
extra template at all. Just put a fo:leader/ between the label and the
amount, and set the block's text-align-last to justify. So...
 
fo:block white-space-collapse=false
linefeed-treatment=preserve text-align-last=justify  
 xsl:text#x0A;/xsl:text 
 xsl:value-of select=euro-tax-msg5/ 
 fo:leader/
 xsl:value-of select=euro-tax-msg5-amt/ 
 xsl:text#x0A;/xsl:text 
 xsl:value-of select=euro-tax-msg6/ 
 fo:leader/
 xsl:value-of select=euro-tax-msg6-amt/ 
 xsl:text#x0A;/xsl:text 
/fo:block
 

 Steffanina, Jeff [EMAIL PROTECTED] 8/25/2008
3:00 PM 

David,
I can't make that guarantee of the space you mentioned.  Can I
make it more simple if I split the string into Description and Amount as
follows (again, my goal is to align the descriptions and the decimal
points):

euro-tax-msg5Quebec Native Seal Tax/euro-tax-msg5

euro-tax-msg5-amt15.42/euro-tax-msg5-amt 


euro-tax-msg6BIG UPPER CASE TAX INO/euro-tax-msg6

euro-tax-msg6-amt439.59/euro-tax-msg6-amt 

-- 
Jeff 




From: David Gerdt [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2008 2:23 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: 0.95 - Printing a string and aligning the
decimal points


Assuming you can guarantee that there will always be at
least two spaces between the text and the digits, could you do something
like the following?
 
fo:block white-space-collapse=false
linefeed-treatment=preserve text-align-last=justify  
 xsl:text#x0A;/xsl:text 
 xsl:call-template name=split
  xsl:with-param name=string
select=euro-tax-msg5 /
 /xsl:call-template
 xsl:text#x0A;/xsl:text 
 xsl:call-template name=split
  xsl:with-param name=string
select=euro-tax-msg6 /
 /xsl:call-template
 xsl:text#x0A;/xsl:text 
/fo:block
 
 
xsl:template name=split
 xsl:param name=string /
 xsl:variable name=first
select=substring-before($string,'  ') /
 xsl:variable name=rest
select=substring-after($string,'  ') /
 xsl:value-of select=$first
/fo:leader/xsl:value-of select=$rest /
/xsl:template
 


 Steffanina, Jeff [EMAIL PROTECTED]
8/25/2008 1:07 PM 


Friends, 


Existing Code in my XML file (the decimal points are
aligned when using Courier font): 

euro-tax-msg5Quebec Native Seal Tax
15.42/euro-tax-msg5 
euro-tax-msg6BIG UPPER CASE TAX INO
439.59/euro-tax-msg6 

-- 
My XSL that prints (using Arial font): 

fo:block white-space-collapse=false
linefeed-treatment=preserve text-align=start  
 xsl:text#x0A;/xsl:text 
xsl:value-of select=./euro-tax-msg5/

   xsl:text#x0A;/xsl:text 
xsl:value-of select=./euro-tax-msg6/

xsl:text#x0A;/xsl:text 
/fo:block 
- 
My Result: 
Thelkj lk laksjf lkasjd flkajs flkj15.42 
Wakadf wlkej salksdjf  349.54 


Without creating a table, is there a way to get the text
to align left and the digits to align right? 

I thank you for any suggestions. 


Jeff 



RE: Cause a Table Cell to Overflow to an Adjacent Cell

2008-08-26 Thread Steffanina, Jeff
Eric,
Your solution below was exactly right!!!
 
Thank you very much for the assistance.
 
 

Jeff 




From: Amick, Eric [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2008 11:11 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Cause a Table Cell to Overflow to an Adjacent Cell


That sounds like a job for number-columns-spanned. Something
roughly like this for column 3 should do it:
xsl:choose
xsl:when test=column-4-value=''
fo:table-cell number-columns-spanned=2
fo:blockwhatever stuff you need/fo:block
/fo:table-cell
/xsl:when
xsl:otherwise
fo:table-cell
fo:blockcolumn 3/fo:block
/fo:table-cell
fo:table-cell
fo:blockxsl:value-of select=column-4-value//fo:block
/fo:table-cell
/xsl:otherwise
/xsl:choose
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 



From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2008 11:00
To: fop-users@xmlgraphics.apache.org
Subject: Cause a Table Cell to Overflow to an Adjacent Cell



Friends, 

fop  0.95 
Every feature works in my table which consists of 4 columns. 

In some cases (10% of the time), when column 4 is blank, I need
to force the content of column 3 to continue into column 4 on the same
line.  At the present time, when this happens, the content of column 3
is displayed and it just wraps on to the next line of column 3.

Any ideas? 



Jeff 



RE: Issue with LineFeed #x0A

2008-08-26 Thread Steffanina, Jeff
Eric,
The table was looking great until yesterday when the user made the
request:  If the vouc-type='TH' then insert a linefeed BEFORE the table
row that includes the 'TH'  is printed.
 
I am trying to change as little logic as possible.  Your diagram of the
output is exactly right.  In my sample of the code, I do not get the
linefeed in ANY situation.
 
 

Jeff 




From: Amick, Eric [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 8:32 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Issue with LineFeed #x0A


I'm not sure I understand how exactly you want this to appear.
Are you looking for something like this?
 
DC   column 2
TH
column 2
TRcolumn 2
 
If so, I think it would make more sense to put a linefeed before
the data in every cell of the row but the first.
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 



From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 8:06
To: fop-users@xmlgraphics.apache.org
Subject: Issue with LineFeed #x0A



Friends, 
Issue: When the first column in the table row contains 'TH', I
want to do a LINE FEED   before  the remainder of the table row is
printed.  The other components in the choose are working perfectly.
In general, I am having problems forcing a line feed at various point in
my style sheet.  I would appreciate any hints.

xsl:choose 
xsl:when test=./vouc-type='TR' or ./vouc-type='DR' or
./vouc-type='CC' 
  xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute 
fo:block font-style=italic  line-height=.14in  
xsl:text /xsl:textxsl:value-of
select=vouc-charge-date/ 
  /fo:block 
/xsl:when 

xsl:when test=./vouc-type='TH' 
xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute 
  fo:block  
xsl:text#x0A;/xsl:text 
  /fo:block 
/xsl:when 

xsl:otherwise 
xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute 
xsl:value-of select=vouc-charge-date/ 
/xsl:otherwise 
/xsl:choose 
/fo:block 






Jeff 



Print Italics over an Image

2008-08-26 Thread Steffanina, Jeff
Friends,
FOP-0.95
I have a background image  - no problem
I print text over the image   -no problem

I print some text in italics over the image  -PROBLEM - the image
behind the italics does not come through.  Therefore, the space around
each italic character is
all white.

How can I resolve this?

HERE IS MY CODE:

xsl:when test=./vouc-type='TR' or ./vouc-type='DR' or
./vouc-type='CC'
  xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute
fo:block font-style=italic  start-indent=.2in
line-height=.14in 
xsl:value-of select=vouc-charge-date/
  /fo:block
/xsl:when





Jeff 


RE: Print Italics over an Image

2008-08-26 Thread Steffanina, Jeff
 
 
Eric,
PERFECT again! 
Thank you very much!
 
 

Jeff 




From: Amick, Eric [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 1:00 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Print Italics over an Image


What happens if you explicitly specify
background-color=transparent on the block with italics?
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 



From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 12:44
To: fop-users@xmlgraphics.apache.org
Subject: Print Italics over an Image



Friends, 
FOP-0.95 
I have a background image  - no problem 
I print text over the image   -no problem 

I print some text in italics over the image  -PROBLEM - the
image behind the italics does not come through.  Therefore, the space
around

each italic
character is all white. 

How can I resolve this? 

HERE IS MY CODE: 

xsl:when test=./vouc-type='TR' or ./vouc-type='DR' or
./vouc-type='CC' 
  xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute 
fo:block font-style=italic  start-indent=.2in
line-height=.14in  
xsl:value-of select=vouc-charge-date/ 
  /fo:block 
/xsl:when 





Jeff 



RE: Issue with LineFeed #x0A

2008-08-26 Thread Steffanina, Jeff
Eric / Andreas,
 
I may have confused the issue.  If I take your sample output from
earlier...   I need the blank line ABOVE the TH.  The TH is a header
line that must be preceded by a blank row when it is found in column1 of
the table.
 
DC   column 2
TH
column 2
TRcolumn 2
 
See my  choose logic below.
 

Jeff 




From: Amick, Eric [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 8:32 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Issue with LineFeed #x0A


I'm not sure I understand how exactly you want this to appear.
Are you looking for something like this?
 
DC   column 2
TH
column 2
TRcolumn 2
 
If so, I think it would make more sense to put a linefeed before
the data in every cell of the row but the first.
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 



From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 8:06
To: fop-users@xmlgraphics.apache.org
Subject: Issue with LineFeed #x0A



Friends, 
Issue: When the first column in the table row contains 'TH', I
want to do a LINE FEED   before  the remainder of the table row is
printed.  The other components in the choose are working perfectly.
In general, I am having problems forcing a line feed at various point in
my style sheet.  I would appreciate any hints.

xsl:choose 
xsl:when test=./vouc-type='TR' or ./vouc-type='DR' or
./vouc-type='CC' 
  xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute 
fo:block font-style=italic  line-height=.14in  
xsl:text /xsl:textxsl:value-of
select=vouc-charge-date/ 
  /fo:block 
/xsl:when 

xsl:when test=./vouc-type='TH' 
xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute 
  fo:block  
xsl:text#x0A;/xsl:text 
  /fo:block 
/xsl:when 

xsl:otherwise 
xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute 
xsl:value-of select=vouc-charge-date/ 
/xsl:otherwise 
/xsl:choose 
/fo:block 






Jeff 



RE: Issue with LineFeed #x0A

2008-08-26 Thread Steffanina, Jeff
Andreas,
I made the change.  However, I get the blank rows AFTER the 'TH' line.
I need the blank rows BEFORE the 'TH' line.

xsl:choose
xsl:when test=./vouc-type='TR' or ./vouc-type='DR' or
./vouc-type='CC'
  xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute
fo:block font-style=italic  line-height=.14in 
xsl:text /xsl:textxsl:value-of
select=vouc-charge-date/
  /fo:block
/xsl:when
xsl:when test=./vouc-type='TH'
xsl:attribute name=linefeed-treatmentpreserve/xsl:attribute
xsl:text#x0A;#x0A;/xsl:text
/xsl:when
xsl:otherwise
xsl:attribute
name=white-space-treatmentpreserve/xsl:attribute
xsl:value-of select=vouc-charge-date/
/xsl:otherwise
/xsl:choose


Jeff 


-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 3:37 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Issue with LineFeed #x0A

On Aug 26, 2008, at 21:18, Steffanina, Jeff wrote:

Hi Jeff

(see below)

 I may have confused the issue.  If I take your sample output from  
 earlier...   I need the blank line ABOVE the TH.  The TH is a  
 header line that must be preceded by a blank row when it is found  
 in column1 of the table.

 DC   column 2
 TH
 column 2
 TRcolumn 2

 See my  choose logic below.
 snip /


 xsl:choose
 xsl:when test=./vouc-type='TR' or ./vouc-type='DR' or ./vouc- 
 type='CC'
   xsl:attribute name=white-space-treatmentpreserve/ 
 xsl:attribute

 fo:block font-style=italic  line-height=.14in 

 xsl:text /xsl:textxsl:value-of select=vouc-charge- 
 date/
   /fo:block
 /xsl:when

 xsl:when test=./vouc-type='TH'
 xsl:attribute name=white-space-treatmentpreserve/ 
 xsl:attribute

add:

xsl:attribute name=linefeed-treatmentpreserve/xsl:attribute

white-space-treatment only influences spaces, tabs and /treated/  
linefeeds. Since the default/initial value for linefeed-treatment is  
treat-as-space, you need to explicitly override that.

HTH!

Andreas

-
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]



RE: Issue with LineFeed #x0A

2008-08-26 Thread Steffanina, Jeff
Eric / Andreas,
I have resolved my spacing issue as you suggested!!  

Thank you very much for the assistance.

 


Jeff 

-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 3:37 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Issue with LineFeed #x0A

On Aug 26, 2008, at 21:18, Steffanina, Jeff wrote:

Hi Jeff

(see below)

 I may have confused the issue.  If I take your sample output from  
 earlier...   I need the blank line ABOVE the TH.  The TH is a  
 header line that must be preceded by a blank row when it is found  
 in column1 of the table.

 DC   column 2
 TH
 column 2
 TRcolumn 2

 See my  choose logic below.
 snip /


 xsl:choose
 xsl:when test=./vouc-type='TR' or ./vouc-type='DR' or ./vouc- 
 type='CC'
   xsl:attribute name=white-space-treatmentpreserve/ 
 xsl:attribute

 fo:block font-style=italic  line-height=.14in 

 xsl:text /xsl:textxsl:value-of select=vouc-charge- 
 date/
   /fo:block
 /xsl:when

 xsl:when test=./vouc-type='TH'
 xsl:attribute name=white-space-treatmentpreserve/ 
 xsl:attribute

add:

xsl:attribute name=linefeed-treatmentpreserve/xsl:attribute

white-space-treatment only influences spaces, tabs and /treated/  
linefeeds. Since the default/initial value for linefeed-treatment is  
treat-as-space, you need to explicitly override that.

HTH!

Andreas

-
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]



0.95 - Printing a string and aligning the decimal points

2008-08-25 Thread Steffanina, Jeff
Friends,


Existing Code in my XML file (the decimal points are aligned when using
Courier font):

euro-tax-msg5Quebec Native Seal Tax
15.42/euro-tax-msg5
euro-tax-msg6BIG UPPER CASE TAX INO
439.59/euro-tax-msg6

--
My XSL that prints (using Arial font):

fo:block white-space-collapse=false linefeed-treatment=preserve
text-align=start 
 xsl:text#x0A;/xsl:text
xsl:value-of select=./euro-tax-msg5/
   xsl:text#x0A;/xsl:text
xsl:value-of select=./euro-tax-msg6/
xsl:text#x0A;/xsl:text
/fo:block
-
My Result:
Thelkj lk laksjf lkasjd flkajs flkj15.42
Wakadf wlkej salksdjf  349.54


Without creating a table, is there a way to get the text to align left
and the digits to align right?

I thank you for any suggestions.


Jeff 


RE: 0.95 - Printing a string and aligning the decimal points

2008-08-25 Thread Steffanina, Jeff
David,
I can't make that guarantee of the space you mentioned.  Can I make it
more simple if I split the string into Description and Amount as follows
(again, my goal is to align the descriptions and the decimal points):

euro-tax-msg5Quebec Native Seal Tax/euro-tax-msg5

euro-tax-msg5-amt15.42/euro-tax-msg5-amt 


euro-tax-msg6BIG UPPER CASE TAX INO/euro-tax-msg6

euro-tax-msg6-amt439.59/euro-tax-msg6-amt 

-- 
Jeff 




From: David Gerdt [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2008 2:23 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: 0.95 - Printing a string and aligning the decimal
points


Assuming you can guarantee that there will always be at least
two spaces between the text and the digits, could you do something like
the following?
 
fo:block white-space-collapse=false
linefeed-treatment=preserve text-align-last=justify  
 xsl:text#x0A;/xsl:text 
 xsl:call-template name=split
  xsl:with-param name=string select=euro-tax-msg5
/
 /xsl:call-template
 xsl:text#x0A;/xsl:text 
 xsl:call-template name=split
  xsl:with-param name=string select=euro-tax-msg6
/
 /xsl:call-template
 xsl:text#x0A;/xsl:text 
/fo:block
 
 
xsl:template name=split
 xsl:param name=string /
 xsl:variable name=first
select=substring-before($string,'  ') /
 xsl:variable name=rest select=substring-after($string,'
') /
 xsl:value-of select=$first /fo:leader/xsl:value-of
select=$rest /
/xsl:template
 


 Steffanina, Jeff [EMAIL PROTECTED] 8/25/2008
1:07 PM 


Friends, 


Existing Code in my XML file (the decimal points are aligned
when using Courier font): 

euro-tax-msg5Quebec Native Seal Tax
15.42/euro-tax-msg5 
euro-tax-msg6BIG UPPER CASE TAX INO
439.59/euro-tax-msg6 

-- 
My XSL that prints (using Arial font): 

fo:block white-space-collapse=false
linefeed-treatment=preserve text-align=start  
 xsl:text#x0A;/xsl:text 
xsl:value-of select=./euro-tax-msg5/ 
   xsl:text#x0A;/xsl:text 
xsl:value-of select=./euro-tax-msg6/ 
xsl:text#x0A;/xsl:text 
/fo:block 
- 
My Result: 
Thelkj lk laksjf lkasjd flkajs flkj15.42 
Wakadf wlkej salksdjf  349.54 


Without creating a table, is there a way to get the text to
align left and the digits to align right? 

I thank you for any suggestions. 


Jeff 



Fop-0.95 Fill Patterns

2008-08-18 Thread Steffanina, Jeff

Can you use a fill pattern in this version of fop?

If yes, what command?


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
[EMAIL PROTECTED]

This communication contains information from Marriott International, Inc. 
that may be confidential. Except for personal use by the intended recipient, or 
as expressly authorized by the sender, any person who receives this information 
is prohibited from disclosing, copying, distributing, and/or using it. If you 
have received this communication in error, please immediately delete it and all 
copies, and promptly notify the sender. Nothing in this communication is 
intended as an electronic signature under applicable law.




RE: Just trying to print two values on the same line not in a table

2008-08-16 Thread Steffanina, Jeff

You are exactly correct!  

Thank you very much! 


Jeff

-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 16, 2008 2:59 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Just trying to print two values on the same line not in a
table

On Aug 16, 2008, at 05:19, Steffanina, Jeff wrote:

Hi

 I am trying to print the value of mrw-message-prefix  followed by   
 mrw-message on the same line.  This line of text is not in a  
 table.  I was sure inline was the way to go.  BUT, my code prints  
 on two lines.  Any suggestions?


  fo:block
   line-height=.11in white-space-collapse=false
   linefeed-treatment=preserve font-size=9pt  
 font-weight=bold
 fo:inline
  xsl:value-of select=./mrw-message-prefix/
  xsl:attribute name=text-alignjustify/xsl:attribute
 xsl:value-of select=./mrw-message/
 /fo:inline

 /fo:block


This code will, cause the warning message you mentioned in an earlier  
thread: Cannot add attribute text-align after ...
You will want to put that xsl:attribute before the first xsl:value-of.

Note also that setting linefeed-treatment to preserve on the block  
will retain any linefeed that results from the transform.
If your input would contain:

mrw-message-prefixprefix
/mrw-message-prefix

Then the linefeed following the word prefix will effectively lead to  
a new line in the output.

Either:
a) remove linefeed-treatment (= default treat-as-space),
b) make sure the input does not contain any linefeeds
c) use xsl:value-of select=normalize-space(./mrw-message-prefix) to  
strip leading/trailing white-space from the source node


HTH!

Cheers

Andreas

-
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]



Issue after install of 0.95

2008-08-15 Thread Steffanina, Jeff
After I installed the fop-0.95 the following Info and Warnings began
to appear.   Any ideas on what I would have to do to correct it?



Error #1:   Aug 15, 2008 2:28:01 PM
org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 11in

Error #2:   Aug 15, 2008 2:28:01 PM
org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 8.26in

For errors 1 and 2, here is my setup:
 fo:simple-page-master master-name=multi
page-height=11in
page-width=8.26in margin-top=.5in
margin-bottom=1in
margin-left=.5in margin-right=.5in



Error #3:
file:///CY/JLS/Java1.4/fop-0.95/./xml/xslt/foliomulti.xsl; Line #11;
Column #63; Cannot add attribute text-align after 
child nodes or before an element is produced.  Attribute
will be ignored.

For error #3, the line it is referring to is pointing to my fox
extension.  Here it is:
 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
   xmlns:fox=http://xmlgraphics.apache.org/fop/extensions;




Jeff 



Just trying to print two values on the same line not in a table

2008-08-15 Thread Steffanina, Jeff

Friends, 
I am trying to print the value of mrw-message-prefix  followed by
mrw-message on the same line.  This line of text is not in a table.  I
was sure inline was the way to go.  BUT, my code prints on two lines.
Any suggestions?


 fo:block
  line-height=.11in white-space-collapse=false
  linefeed-treatment=preserve font-size=9pt
font-weight=bold
fo:inline
 xsl:value-of select=./mrw-message-prefix/
 xsl:attribute name=text-alignjustify/xsl:attribute 
xsl:value-of select=./mrw-message/
/fo:inline

/fo:block



Jeff 


Cause a Table Cell to Overflow to an Adjacent Cell

2008-08-14 Thread Steffanina, Jeff
Friends, 

fop  0.95
Every feature works in my table which consists of 4 columns.

In some cases (10% of the time), when column 4 is blank, I need to force
the content of column 3 to continue into column 4 on the same line.  At
the present time, when this happens, the content of column 3 is
displayed and it just wraps on to the next line of column 3.

Any ideas?



Jeff 


RE: Fop-0.95 - Table questions

2008-08-09 Thread Steffanina, Jeff
Andreas,
I see your point.  That is exactly what I needed to know.
 
Thanks
 



From: Andreas Delmelle [mailto:[EMAIL PROTECTED]
Sent: Sat 8/9/2008 9:06 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Fop-0.95 - Table questions



On Aug 8, 2008, at 21:57, Steffanina, Jeff wrote:

Hi

Sorry, just noticed there was a second question that didn't get 
answered yet...

 TABLE ISSUE II
 Of the 8 columns in my table, I only need to print 5 of them.  The 
 other 3 cols are used to evaluate the record and evaluate data 
 using test.  My problem is that It seems that once the table is 
 defined and values selected, you have no choice but to print the 
 value.

 How can I keep populated objects in a table from printing?

You're giving us very little to go with here, but it seems to me like 
this needs to be caught in the XSLT stage. Instead of blindly 
generating cells/columns for all eight 'columns' in the input, you 
need to exclude those, and make sure they are skipped (so the FO only 
gets to contain five columns, not eight).
As soon as a fo:table-cell is generated with some content, no 
mechanism in XSL-FO exists to magically ignore those during 
formatting. It's not like you can do any 'evaluation' in the strict 
sense during formatting anyway, so I'm assuming what you describe 
above as 'evaluate the record and evaluate data' takes place in some 
xsl:template. Just avoid generating fo:table-cells for the 
corresponding elements, and you should be fine.

HTH!

Cheers

Andreas

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


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

Fop-0.95 - Table questions

2008-08-08 Thread Steffanina, Jeff

I have a table that is 8 cols by many rows.

TABLE ISSUE  I
The column ItemDesc is left aligned.  BUT on occasion, the ItemDesc
begins with 4 leading spaces.  In my output .PDF, the leading spaces are
always removed.

How can I force the leading spaces in the ItemDesc to be included in the
output?  Here is what I currently have for the field:
fo:table-cell
  fo:block
xsl:attribute name=white-space-collapsefalse/xsl:attribute
xsl:value-of select=itemdesc/
  /fo:block
/fo:table-cell

TABLE ISSUE II
Of the 8 columns in my table, I only need to print 5 of them.  The other
3 cols are used to evaluate the record and evaluate data using test.
My problem is that It seems that once the table is defined and values
selected, you have no choice but to print the value.

How can I keep populated objects in a table from printing?

Thanks for your assistance.

Jeff 


RE: Fop-0.95 - Table questions

2008-08-08 Thread Steffanina, Jeff

   
WHEN I CHANGED IT TO PRESERVE AS BELOW:
fo:table-cell
  fo:block
xsl:attribute
name=white-space-collapsepreserve/xsl:attribute
xsl:value-of select=item/
  /fo:block
/fo:table-cell


I GOT THE FOLLOWING ERROR:
SEVERE: Ignoring property: white-space-collapse=preserve (No
conversion defined preserve; property:'white-space-collapse')
Aug 8, 2008 4:45:39 PM org.apache.fop.fo.PropertyList
convertAttributeToProperty 


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
[EMAIL PROTECTED]

This communication contains information from Marriott International,
Inc. that may be confidential. Except for personal use by the intended
recipient, or as expressly authorized by the sender, any person who
receives this information is prohibited from disclosing, copying,
distributing, and/or using it. If you have received this communication
in error, please immediately delete it and all copies, and promptly
notify the sender. Nothing in this communication is intended as an
electronic signature under applicable law.


-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2008 4:39 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Fop-0.95 - Table questions

On Aug 8, 2008, at 21:57, Steffanina, Jeff wrote:

Hi
 TABLE ISSUE  I
 The column ItemDesc is left aligned.  BUT on occasion, the  
 ItemDesc begins with 4 leading spaces.  In my output .PDF, the  
 leading spaces are always removed.

 How can I force the leading spaces in the ItemDesc to be included  
 in the output?  Here is what I currently have for the field:

 fo:table-cell
   fo:block
 xsl:attribute name=white-space-collapsefalse/ 
 xsl:attribute


Try adding:
   xsl:attribute name=white-space-treatmentpreserve/xsl:attribute

This will effectively preserve any white-space, including spaces  
surrounding line-breaks.


HTH!

Andreas

-
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]



RE: Fop-0.95 - Table questions

2008-08-08 Thread Steffanina, Jeff


I resolved it... You have to use:

name=white-space-treatmentpreserve 


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
[EMAIL PROTECTED]

This communication contains information from Marriott International,
Inc. that may be confidential. Except for personal use by the intended
recipient, or as expressly authorized by the sender, any person who
receives this information is prohibited from disclosing, copying,
distributing, and/or using it. If you have received this communication
in error, please immediately delete it and all copies, and promptly
notify the sender. Nothing in this communication is intended as an
electronic signature under applicable law.


-Original Message-
From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2008 4:49 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Fop-0.95 - Table questions


   
WHEN I CHANGED IT TO PRESERVE AS BELOW:
fo:table-cell
  fo:block
xsl:attribute
name=white-space-collapsepreserve/xsl:attribute
xsl:value-of select=item/
  /fo:block
/fo:table-cell


I GOT THE FOLLOWING ERROR:
SEVERE: Ignoring property: white-space-collapse=preserve (No
conversion defined preserve; property:'white-space-collapse')
Aug 8, 2008 4:45:39 PM org.apache.fop.fo.PropertyList
convertAttributeToProperty 


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
[EMAIL PROTECTED]

This communication contains information from Marriott International,
Inc. that may be confidential. Except for personal use by the intended
recipient, or as expressly authorized by the sender, any person who
receives this information is prohibited from disclosing, copying,
distributing, and/or using it. If you have received this communication
in error, please immediately delete it and all copies, and promptly
notify the sender. Nothing in this communication is intended as an
electronic signature under applicable law.


-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2008 4:39 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Fop-0.95 - Table questions

On Aug 8, 2008, at 21:57, Steffanina, Jeff wrote:

Hi
 TABLE ISSUE  I
 The column ItemDesc is left aligned.  BUT on occasion, the  
 ItemDesc begins with 4 leading spaces.  In my output .PDF, the  
 leading spaces are always removed.

 How can I force the leading spaces in the ItemDesc to be included  
 in the output?  Here is what I currently have for the field:

 fo:table-cell
   fo:block
 xsl:attribute name=white-space-collapsefalse/ 
 xsl:attribute


Try adding:
   xsl:attribute name=white-space-treatmentpreserve/xsl:attribute

This will effectively preserve any white-space, including spaces  
surrounding line-breaks.


HTH!

Andreas

-
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]



Using TTFReader to Create Font Metrics

2008-08-06 Thread Steffanina, Jeff

I installed fop-0.94 binaries and the
org.apache.fop.fonts.apps.TTFReader  binary is apparently not included.

I installed the fop-0.94 SOURCE and I now have the entire set of source
file including:  TTFReader.java.

How do I go about compiling the source library so that I can create the
font metrics file (.xml)?  I plan to use the command as specified in the
docs:

java -cp
build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commo
ns-io.jar
org.apache.fop.fonts.apps.TTFReader  myfont.ttf
newfont.xml


Thanks.

Jeff