Re: reference-orientation in inline:container

2017-10-23 Thread Marc
Thank you very much for the answer about the cell and block-container I 
didn't think about that. I will try because I know the sizes.

Marc

Le 23/10/2017 à 19:03, Bob Stayton a écrit :
Indeed, reference-orientation is not supported yet in inline-container 
in FOP, according to the Compliance document (and the link from there):


https://xmlgraphics.apache.org/fop/compliance.html

Regarding the block-container behavior, when you do 90 degree rotation, 
you may have to adjust the size of the cell and the starting point as 
well. The table cell will probably not automatically adjust in size to 
accomodate the rotated image.  I can't recall exactly what needs to 
change, but try starting with a large cell and playing with spacing to 
reposition it.


Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 10/8/2017 11:14 PM, Marc wrote:

Hi,
I want to produce a book like a photos album, so I have to turn some 
photos and write a legend at the bootom of each photo.
I try to use the inline-container with the reference-orientation but 
it doesn't change anything and the image is always the same.


Does FOP has a limitation about it?

after that I try to use the block-container in a table, for the 180 
and 0 all is all-right but for 90 and 270 values for the 
reference-orientation, the image is out of the cell.


Does anyone have this kind of problem before me?

Thank's for answer

Marc

-
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



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



reference-orientation in inline:container

2017-10-09 Thread Marc

Hi,
I want to produce a book like a photos album, so I have to turn some 
photos and write a legend at the bootom of each photo.
I try to use the inline-container with the reference-orientation but it 
doesn't change anything and the image is always the same.


Does FOP has a limitation about it?

after that I try to use the block-container in a table, for the 180 and 
0 all is all-right but for 90 and 270 values for the 
reference-orientation, the image is out of the cell.


Does anyone have this kind of problem before me?

Thank's for answer

Marc

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



extra margins around eternal-graphic

2016-07-29 Thread Marc

Hi,
I try to have a svg graphic on all the page in a PDF. I use FOP 1.1.
I test this FO file, but I have always green left and right margins 
(background color of external-graphic) and a red on the bottom of the page.

The SVG file isn't extend until the total size of defined page.
I put the font-size=0 and line-heigth=0
I really don't have idea I try to put margin and padding to 0 but it 
doesn't change anything.

Marc

Here is my FO file :

http://www.w3.org/1999/XSL/Format;>
   
  margin-left="0" margin-right="0" margin-top="0" page-height="244cm" 
page-width="164cm">
 margin-right="0cm" margin-top="0cm"/>

  
   
   
  
 width="164cm" background-color="red" font-size="0" line-height="0" 
margin-left="0" margin-right="0">
line-height="0" margin-left="0" margin-right="0">
   content-height="244cm" content-width="164cm" font-size="0" 
line-height="0" background-color="green" padding-left="0" 
padding-right="0"/>


 
  
   


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



RE: isolated high surrogate

2016-07-14 Thread Marc Kaufman
I didn’t find the source to javax.xml.transform online, but I guess I shouldn’t 
expect that a 10 year old code base gets it right… The code I’m working on was 
written in 2006, but no one tried surrogate characters until recently.

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Thursday, July 14, 2016 2:15 PM
To: FOP Users <fop-users@xmlgraphics.apache.org>
Subject: Re: isolated high surrogate

nothing to do with being an FOP developer; keep in mind that the actual input 
to FOP is XSL-FO, and not XNL + stylesheet; this latter functionality is a 
convenience layer that IMO should never have been added to FOP, for the simple 
reason that we keep fielding problem reports related to template processing 
that are outside the scope of FOP; best to discuss template problems with XSLT 
related MLs

On Thu, Jul 14, 2016 at 3:09 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
Worthwhile for someone to do, probably. Outside of my current needs. I’m not 
interested in being a FOP developer.

From: Glenn Adams [mailto:gl...@skynav.com<mailto:gl...@skynav.com>]
Sent: Thursday, July 14, 2016 1:48 PM

To: FOP Users 
<fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>>
Subject: Re: isolated high surrogate

I'd suggest you test FOP by using an XSL-FO input file directly rather than an 
XSL template. Template processing is not part of FOP functionality in the first 
place.

On Thu, Jul 14, 2016 at 2:37 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
More specifically, if I replace “ “ with u/200B (zero width space) in the 
string that contains surrogate characters, FOP parsing fails even if I just use 
xsl:value-of. I’m not going to pursue that at this time. Maybe when FOP handles 
non-BMP characters it should be revisited.

Marc

From: Marc Kaufman [mailto:marck...@adobe.com<mailto:marck...@adobe.com>]
Sent: Thursday, July 14, 2016 12:34 PM

To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: isolated high surrogate

I’ve isolated the problem to a template definition that is trying to replace 
apace characters with non-breaking spaces. Evidently it clobbers some surrogate 
pairs. FWIW: here’s the offending line(s):

  



  


  
  

  
  
  

  

  

    
    

  
  

  

So, not an FOP problem.

Marc

From: Marc Kaufman [mailto:marck...@adobe.com]
Sent: Thursday, July 14, 2016 12:22 PM
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: isolated high surrogate

I tried that. Doesn’t work. I understand that non-BMP is not supported, and I’m 
prepared to live with two .notdef characters in the result, but I’m not sure 
why I’m getting the fatal error from the parser.

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Thursday, July 14, 2016 12:01 PM
To: FOP Users 
<fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>>
Subject: Re: isolated high surrogate

Non-BMP characters are not presently supported by FOP, see [1]. When they are 
supported, you would best encode them in a file using a single (not two) 
numeric character entities, e.g., , etc.

[1] https://issues.apache.org/jira/browse/FOP-1969

On Thu, Jul 14, 2016 at 12:51 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
I’m stumped by this error:
org.xml.sax.SAXParseException; lineNumber: 92; columnNumber: 51; 
java.lang.IllegalArgumentException: isolated high surrogate

I have text with surrogate pairs throughout the file, but this only occurs in 
this context:

  

  


I’ve checked the input stream, and all the surrogates are correctly paired. 
I’ve tried escaping the surrogate pairs (e.g. “
<

RE: isolated high surrogate

2016-07-14 Thread Marc Kaufman
Worthwhile for someone to do, probably. Outside of my current needs. I’m not 
interested in being a FOP developer.

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Thursday, July 14, 2016 1:48 PM
To: FOP Users <fop-users@xmlgraphics.apache.org>
Subject: Re: isolated high surrogate

I'd suggest you test FOP by using an XSL-FO input file directly rather than an 
XSL template. Template processing is not part of FOP functionality in the first 
place.

On Thu, Jul 14, 2016 at 2:37 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
More specifically, if I replace “ “ with u/200B (zero width space) in the 
string that contains surrogate characters, FOP parsing fails even if I just use 
xsl:value-of. I’m not going to pursue that at this time. Maybe when FOP handles 
non-BMP characters it should be revisited.

Marc

From: Marc Kaufman [mailto:marck...@adobe.com<mailto:marck...@adobe.com>]
Sent: Thursday, July 14, 2016 12:34 PM

To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: isolated high surrogate

I’ve isolated the problem to a template definition that is trying to replace 
apace characters with non-breaking spaces. Evidently it clobbers some surrogate 
pairs. FWIW: here’s the offending line(s):

  



  


  
  

  
  
  

  

  




  
  

  

So, not an FOP problem.

Marc

From: Marc Kaufman [mailto:marck...@adobe.com]
Sent: Thursday, July 14, 2016 12:22 PM
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: isolated high surrogate

I tried that. Doesn’t work. I understand that non-BMP is not supported, and I’m 
prepared to live with two .notdef characters in the result, but I’m not sure 
why I’m getting the fatal error from the parser.

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Thursday, July 14, 2016 12:01 PM
To: FOP Users 
<fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>>
Subject: Re: isolated high surrogate

Non-BMP characters are not presently supported by FOP, see [1]. When they are 
supported, you would best encode them in a file using a single (not two) 
numeric character entities, e.g., , etc.

[1] https://issues.apache.org/jira/browse/FOP-1969

On Thu, Jul 14, 2016 at 12:51 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
I’m stumped by this error:
org.xml.sax.SAXParseException; lineNumber: 92; columnNumber: 51; 
java.lang.IllegalArgumentException: isolated high surrogate

I have text with surrogate pairs throughout the file, but this only occurs in 
this context:

  

  


I’ve checked the input stream, and all the surrogates are correctly paired. 
I’ve tried escaping the surrogate pairs (e.g. “
<

RE: isolated high surrogate

2016-07-14 Thread Marc Kaufman
More specifically, if I replace “ “ with u/200B (zero width space) in the 
string that contains surrogate characters, FOP parsing fails even if I just use 
xsl:value-of. I’m not going to pursue that at this time. Maybe when FOP handles 
non-BMP characters it should be revisited.

Marc

From: Marc Kaufman [mailto:marck...@adobe.com]
Sent: Thursday, July 14, 2016 12:34 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: isolated high surrogate

I’ve isolated the problem to a template definition that is trying to replace 
apace characters with non-breaking spaces. Evidently it clobbers some surrogate 
pairs. FWIW: here’s the offending line(s):

  



  


  
  

  
  
  

  

  




  
  

  

So, not an FOP problem.

Marc

From: Marc Kaufman [mailto:marck...@adobe.com]
Sent: Thursday, July 14, 2016 12:22 PM
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: isolated high surrogate

I tried that. Doesn’t work. I understand that non-BMP is not supported, and I’m 
prepared to live with two .notdef characters in the result, but I’m not sure 
why I’m getting the fatal error from the parser.

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Thursday, July 14, 2016 12:01 PM
To: FOP Users 
<fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>>
Subject: Re: isolated high surrogate

Non-BMP characters are not presently supported by FOP, see [1]. When they are 
supported, you would best encode them in a file using a single (not two) 
numeric character entities, e.g., , etc.

[1] https://issues.apache.org/jira/browse/FOP-1969

On Thu, Jul 14, 2016 at 12:51 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
I’m stumped by this error:
org.xml.sax.SAXParseException; lineNumber: 92; columnNumber: 51; 
java.lang.IllegalArgumentException: isolated high surrogate

I have text with surrogate pairs throughout the file, but this only occurs in 
this context:

  

  


I’ve checked the input stream, and all the surrogates are correctly paired. 
I’ve tried escaping the surrogate pairs (e.g. “
<

RE: isolated high surrogate

2016-07-14 Thread Marc Kaufman
I’ve isolated the problem to a template definition that is trying to replace 
apace characters with non-breaking spaces. Evidently it clobbers some surrogate 
pairs. FWIW: here’s the offending line(s):

  



  


  
  

  
  
  

  

  




  
  

  

So, not an FOP problem.

Marc

From: Marc Kaufman [mailto:marck...@adobe.com]
Sent: Thursday, July 14, 2016 12:22 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: isolated high surrogate

I tried that. Doesn’t work. I understand that non-BMP is not supported, and I’m 
prepared to live with two .notdef characters in the result, but I’m not sure 
why I’m getting the fatal error from the parser.

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Thursday, July 14, 2016 12:01 PM
To: FOP Users 
<fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>>
Subject: Re: isolated high surrogate

Non-BMP characters are not presently supported by FOP, see [1]. When they are 
supported, you would best encode them in a file using a single (not two) 
numeric character entities, e.g., , etc.

[1] https://issues.apache.org/jira/browse/FOP-1969

On Thu, Jul 14, 2016 at 12:51 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
I’m stumped by this error:
org.xml.sax.SAXParseException; lineNumber: 92; columnNumber: 51; 
java.lang.IllegalArgumentException: isolated high surrogate

I have text with surrogate pairs throughout the file, but this only occurs in 
this context:

  

  


I’ve checked the input stream, and all the surrogates are correctly paired. 
I’ve tried escaping the surrogate pairs (e.g. “
<

RE: isolated high surrogate

2016-07-14 Thread Marc Kaufman
I tried that. Doesn’t work. I understand that non-BMP is not supported, and I’m 
prepared to live with two .notdef characters in the result, but I’m not sure 
why I’m getting the fatal error from the parser.

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Thursday, July 14, 2016 12:01 PM
To: FOP Users <fop-users@xmlgraphics.apache.org>
Subject: Re: isolated high surrogate

Non-BMP characters are not presently supported by FOP, see [1]. When they are 
supported, you would best encode them in a file using a single (not two) 
numeric character entities, e.g., , etc.

[1] https://issues.apache.org/jira/browse/FOP-1969

On Thu, Jul 14, 2016 at 12:51 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
I’m stumped by this error:
org.xml.sax.SAXParseException; lineNumber: 92; columnNumber: 51; 
java.lang.IllegalArgumentException: isolated high surrogate

I have text with surrogate pairs throughout the file, but this only occurs in 
this context:

  

  


I’ve checked the input stream, and all the surrogates are correctly paired. 
I’ve tried escaping the surrogate pairs (e.g. “
<

isolated high surrogate

2016-07-14 Thread Marc Kaufman
I'm stumped by this error:
org.xml.sax.SAXParseException; lineNumber: 92; columnNumber: 51; 
java.lang.IllegalArgumentException: isolated high surrogate

I have text with surrogate pairs throughout the file, but this only occurs in 
this context:

  

  


I've checked the input stream, and all the surrogates are correctly paired. 
I've tried escaping the surrogate pairs (e.g. "

RE: NoSuchMethod - CFFCIDFont.getProperty

2016-07-12 Thread Marc Kaufman
That fixed it. Thanks.

From: Simon Steiner [mailto:simonsteiner1...@gmail.com]
Sent: Tuesday, July 12, 2016 1:49 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: NoSuchMethod - CFFCIDFont.getProperty

Hi,

You should use fontbox 1.8 with fop 2.1

http://svn.apache.org/viewvc/xmlgraphics/fop/branches/fop-2_1/lib/

Thanks

From: Marc Kaufman [mailto:marck...@adobe.com]
Sent: 12 July 2016 21:26
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: NoSuchMethod - CFFCIDFont.getProperty

fop-2.1.jar, fontbox-2.0.2.jar
No other version of fontbox around (I was getting class not found until I added 
fontbox)

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Tuesday, July 12, 2016 1:18 PM
To: FOP Users 
<fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>>
Subject: Re: NoSuchMethod - CFFCIDFont.getProperty

You should check to make sure your VM is loading fontbox-2.0.0.jar from the 
fop/lib directory.

On Tue, Jul 12, 2016 at 2:04 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
I’m trying to use an Adobe CFF font (KozGoPr6N-Regular.otf). During the font 
loading I get to:
OTFFile.readName() line 34: Object familyName = 
fileFont.getProperty(“FamilyName”);
But fileFont is a org.apache.fontbox.cff.CFFCIDFont, and there is no such 
method “getProperty”.

Stack:
OTFFile.readName() line: 134
OTFFile(OpenFont).readFont(FontFileReader, String, String) line: 740
OFFontLoader.read(String) line: 109
OFFontLoader.read() line: 93
OFFontLoader(FontLoader).getFont() line: 124
FontLoader.loadFont(FontUris, String, boolean, EmbeddingMode, EncodingMode, 
boolean, boolean, InternalResourceResolver) line: 108




RE: NoSuchMethod - CFFCIDFont.getProperty

2016-07-12 Thread Marc Kaufman
fop-2.1.jar, fontbox-2.0.2.jar
No other version of fontbox around (I was getting class not found until I added 
fontbox)

From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Tuesday, July 12, 2016 1:18 PM
To: FOP Users <fop-users@xmlgraphics.apache.org>
Subject: Re: NoSuchMethod - CFFCIDFont.getProperty

You should check to make sure your VM is loading fontbox-2.0.0.jar from the 
fop/lib directory.

On Tue, Jul 12, 2016 at 2:04 PM, Marc Kaufman 
<marck...@adobe.com<mailto:marck...@adobe.com>> wrote:
I’m trying to use an Adobe CFF font (KozGoPr6N-Regular.otf). During the font 
loading I get to:
OTFFile.readName() line 34: Object familyName = 
fileFont.getProperty(“FamilyName”);
But fileFont is a org.apache.fontbox.cff.CFFCIDFont, and there is no such 
method “getProperty”.

Stack:
OTFFile.readName() line: 134
OTFFile(OpenFont).readFont(FontFileReader, String, String) line: 740
OFFontLoader.read(String) line: 109
OFFontLoader.read() line: 93
OFFontLoader(FontLoader).getFont() line: 124
FontLoader.loadFont(FontUris, String, boolean, EmbeddingMode, EncodingMode, 
boolean, boolean, InternalResourceResolver) line: 108




NoSuchMethod - CFFCIDFont.getProperty

2016-07-12 Thread Marc Kaufman
I'm trying to use an Adobe CFF font (KozGoPr6N-Regular.otf). During the font 
loading I get to:
OTFFile.readName() line 34: Object familyName = 
fileFont.getProperty("FamilyName");
But fileFont is a org.apache.fontbox.cff.CFFCIDFont, and there is no such 
method "getProperty".

Stack:
OTFFile.readName() line: 134
OTFFile(OpenFont).readFont(FontFileReader, String, String) line: 740
OFFontLoader.read(String) line: 109
OFFontLoader.read() line: 93
OFFontLoader(FontLoader).getFont() line: 124
FontLoader.loadFont(FontUris, String, boolean, EmbeddingMode, EncodingMode, 
boolean, boolean, InternalResourceResolver) line: 108



Re: Is there a way to remove "INFO org.apache.fop.apps.FOUserAgent - Rendered page XXX" logs ?

2016-04-29 Thread Marc

I don't know if FOP use Log4j?
Else you can use a pipe with a sed to filter the stderr.
Marc
Le 28/04/2016 16:02, Julien Lancelot a écrit :

Hi,

I'm using FOP 2.1, and when I generate a PDF, I can see the following
logs in my console :

15:52:59.057 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #1.
15:52:59.140 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #2.
15:52:59.155 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #3.
15:52:59.159 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #4.
15:52:59.853 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #1.
15:52:59.890 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #2.
15:52:59.900 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #3.

Is there a way to not generate this logs ?

Thanks !
--
Julien LANCELOT |SonarSource
http://sonarsource.com <http://sonarsource.com/>



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



Re: how can override the start fo:page-number in xsl:fo with my number

2015-09-08 Thread Marc

Hi,
You have an attribute start-page-number in the sequence element.
I don't know if it's ok in FOP 0.20.5
Marc
Le 07/09/2015 14:28, robyp7 . a écrit :

Hi,

i use an old fop lib version 0.20.5
I have an xsl:fo with


RE: FOP 1.1 RTF Output empty

2015-05-21 Thread Marc Wiest
 RTF support is a bit broken in 1.1, see also 
 https://issues.apache.org/jira/browse/FOP-2182
 You can workaround by not using a PageSequenceMaster, so use your simple page 
 master's name first as master-reference on the fo:page-sequence element 
 and it should process again without errors.

Many thanks Matthias, this did the trick!

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



FOP 1.1 RTF Output empty

2015-05-20 Thread Marc Wiest
I just tried to upgrade from FOP 1.0 to 1.1 and while most things work, one RTF 
document doesn't.
It worked smoothly with the 1.0 version, but now produces an empty zero-byte 
OutputStream (ByteArrayOutputStream in my case).
No errors in the log, nothing.
The upgrade notes https://xmlgraphics.apache.org/fop/1.1/upgrading.html don't 
state anything about incompatibilities with RTF.

Any idea?

Attached are the xml, xsl and the working output from FOP 1.0.
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:output indent=yes /
xsl:template match=/
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
!-- defines page layout --
fo:layout-master-set
fo:simple-page-master master-name=first page-height=29.7cm page-width=21cm margin-top=2.54cm margin-bottom=2.54cm margin-left=3.17cm margin-right=3.17cm
fo:region-body margin-top=0cm /
fo:region-before extent=0cm /
fo:region-after extent=0cm /
/fo:simple-page-master
fo:page-sequence-master master-name=psmA
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=first /
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
/fo:layout-master-set

fo:page-sequence master-reference=psmA
xsl:variable name=title select=/getabstract/header/title /

fo:flow flow-name=xsl-region-body
fo:block font-size=11pt font-family=Times, ArialUni
fo:block font-size=14pt font-family=Times, ArialUni font-weight=bold color=#FF
Book Information
/fo:block
fo:block
Title:
xsl:value-of select=/getabstract/header/title /
/fo:block
fo:block
Subtitle:
xsl:value-of select=/getabstract/header/subtitle /
/fo:block
fo:block
Author:
xsl:value-of select=/getabstract/header/authors /
/fo:block
fo:block
Copyright:
xsl:value-of select=/getabstract/header/copyright /
/fo:block
fo:block
Year:
xsl:value-of select=/getabstract/header/year /
/fo:block
fo:block
Pages:
xsl:value-of select=/getabstract/header/pages /
/fo:block
fo:block
ISBN-13:
xsl:value-of select=/getabstract/header/isbn /
/fo:block
xsl:if test=/getabstract/langRights
fo:block
xsl:value-of select=/getabstract/langRights /
/fo:block
/xsl:if
xsl:if test=/getabstract/formatsLine
fo:block
xsl:value-of select=/getabstract/formatsLine /
/fo:block
/xsl:if

fo:block#xA0;/fo:block
fo:block
Teaser:
/fo:block
fo:block
xsl:value-of select=/getabstract/editorialinfo/emailsentence /
/fo:block

fo:block#xA0;/fo:block
fo:block
Email text:
/fo:block
fo:block
xsl:value-of select=/getabstract/editorialinfo/emailsentenceweekly /
/fo:block

fo:block#xA0;/fo:block
fo:block
Key Words:
/fo:block
fo:block
xsl:value-of select=/getabstract/editorialinfo/keywords /
/fo:block
fo:block#xA0;/fo:block
/fo:block

fo:block font-size=11pt font-family=Times, ArialUni
fo:block font-size=14pt font-family=Times, ArialUni font-weight=bold color=#FF
getAbstract Ratings
/fo:block

RE: FOP hyphenate-ladder-count and pre-hyphenated text

2015-05-08 Thread Marc Wiest
 Seems like some refactoring may be in order here, to streamline and better 
 merge the two approaches.
 @Marc: Will you log a request for enhancement in JIRA for this, or shall I?

@Andreas: thank you very much for that thorough feedback and insight into how 
it all works. It's the way I suspected it to be :( I would appreciate you 
making the request, because you, for sure, can articulate the problem more 
accurately and precisely than I ever could.
Thinking this will take a while until it's actually working in a proper 
release, I'll probably have to find another solution, then - at least in the 
meantime.
But thanks for taking this serious.

I'll see if I find the time to pull the source code and see if I can fix 
problem 1. myself (being able to add hyphenation exception to the actual FOP 
hyphenation system at runtime) and send a pull request - if I manage to find a 
solution that seems to be general enough to serve other people, too.
My idea would be to
1. Create or find a public Java-method for building .hyp files from (updated) 
.xml hyphenation patterns - containing the exceptions, so this could be done 
on-the-fly. As I understand, this is now part of the build process of FOP.
2. Add a way to specify a file-system location for the hyphenation files, 
rather than using the classspath (which is hard to write to at runtime).
3. See how reloading of these resources could work.

Marc



FOP hyphenate-ladder-count and pre-hyphenated text

2015-05-06 Thread Marc Wiest
I have the requirements of
1. allow adding hyphenation exceptions at runtime (web container)
2. don't hyphenate more than two successive lines in a paragraph

For 1. the only solution I found is to use a third-party library to add the 
actual soft-hyphens in the text, instead.
This has other benefits for me, including that I can use hyphenation in other 
places than PDF generation, so I prefer this separation.
But if anyone knows a way to add exceptions for words at runtime, I would be 
highly interested how to do that.

Since I solved 1. Using a new library for adding soft-hyphens into the text, 2. 
doesn't work anymore. My XSL contains hyphenation-ladder-count=2 attributes 
on all relevant blocks, which does the trick when passing text without 
soft-hyphens and relying on FOP hyphenation entirely. But it does nothing if I 
don't use FOP to hyphenate the words. In general, hyphenation works, though, 
like the soft-hyphens in the text are taken into account. But it happens that 6 
or more successive lines are hyphenated, which is deemed bad style.

Any input would be appreciated.

Marc

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



Re: SVG image cache using a URIResolver?

2014-12-12 Thread Marc Bleron
Luis Bernardo lmpmbernardo at gmail.com writes:

 
 
 Probably the URI is validated during the XML/XSL to FO transformation, 
 and the validation requires a call -- you can check that by returning an 
 invalid response. In any case, the official input for FOP is FO and the 
 caching was implemented with that in mind.
 
 You can tweak your URIResolver to not call the DB and just return an 
 OK response the first time it is called for a particular URI.
 
 You can tweak your URI resolver

Thanks for your reply.

I'll probably move towards doing the XSLT transformation in a separate step
then. The source XML data is generated on database side so performing the
transformation to FO there is an option.

Note that I've only associated the URIResolver with the FOUserAgent and
*not* with the Transformer so I'm still wondering why the URIResolver is
invoked while doing the XSLT transformation.

Regards.



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



SVG image cache using a URIResolver?

2014-12-05 Thread Marc Bleron
Hi,

Using FOP 1.1 on Java 1.5

I have SVG images stored in a database (Oracle 11.2) which I want to include
in a PDF document.
To achieve that I've created a custom URIResolver listening to a specific
uri scheme, and used that uri as source for fo:external-graphics, e.g.

xsl:template match=Object
  fo:block
fo:external-graphic src=url('cache:/media/{@cache-id}')
content-width=scale-to-fit width=100%/
  /fo:block
/xsl:template

While transforming and rendering the output document, the URIResolver then
issues the corresponding query against the db using the cache-id value and
returns a StreamSource. That works fine.

The problem is that the URIResolver (and therefore the db) is called twice
when building the PDF document : once when transforming my input XML into FO
and another time when rendering the PDF from the FO.

My question is : is that intended behaviour? Isn't the caching mechanism
supposed to work in this situation?
Just want to be sure.

When using a FO object directly (identity transformation), the URIResolver
is called only once.

Thanks for any pointers.

Marc.



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



Re: Using Apache FOP with XML for PDF formatting, input from database.

2014-11-12 Thread Marc

Hi,
Perhaps could you have a look at the PDF Form and FPF file?
I'm not sure that FOP support the PDF Form generation at this time, I hear 
about an extension some times ago.
Marc
Le 11/11/2014 16:09, Kernel freak a écrit :

Hello friends,

I am working on a project where I have to export the data from the
database to a PDF. The requirement is that the PDF should look like a
standard template. The link for template is given below.

I was having a conversation with Bob Swanson and I came to know that I
don't need to always use XML file for creating PDF.

What I would like to do is, read the XML file for table structure, image
links, font files, etc. Then access the database for information(I
already have functions for that), and then input that data in the pdf in
appropriate sections, which has the design based on the XML file. If
anyone has done anything similar, I can really use some pointers or
basic source code or similar examples.

If I am wrong, kindly correct me.

Link for how the PDF should look :
https://dl.dropboxusercontent.com/u/1994132/Business_Model_Canvas.png


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



Re: FOnt config

2014-06-05 Thread Marc

I answer because I use an ean13 not a Code39, but 
I use the apache font converter to do metrics (with TTFReader if I 
remember me) and my conf file has in fonts the lines :
   font metrics-url=file:///E:/Travail/fonts/ean13.ttf.xml 
kerning=yes embed-url=file:///E:/fonts/ean13.ttf

 font-triplet name=ean13 style=normal weight=normal/
 font-triplet name=ean13 style=normal weight=normal/
   /font
Marc

Le mercredi 4 juin 2014 20:05:13, Donald Paul Winston a écrit :

I found a True Type barcode font that works(Archon Code 39 Barcode).
The Code39.pfa/Code30.afm needs extra configuration to get it to work.
Thanks

Donald Paul Winston




On Jun 4, 2014, at 12:17 PM, Donald Paul Winston
satchwins...@yahoo.com.INVALID
mailto:satchwins...@yahoo.com.INVALID wrote:


FOP 0.20.5

oops, I don’t know where I got this. I see FOP 1-1 has an fop.xconf
file which jives with what I see in the examples.




On Jun 4, 2014, at 12:06 PM, Amick, Eric eric.am...@mail.house.gov
mailto:eric.am...@mail.house.gov wrote:


I use auto-detect with no difficulty, and I'm sure plenty of people
use the other features as well. Which version of FOP are you using?
You should probably post the actual config file you're using.

-Original Message-
From: Donald Paul Winston [mailto:satchwins...@yahoo.com]
Sent: Wednesday, June 04, 2014 11:56
To: fop-users@xmlgraphics.apache.org
mailto:fop-users@xmlgraphics.apache.org
Subject: Re: FOnt config

This does not work.

fonts

 directoryC:\MyFonts1/directory


 directory recursive=trueC:\MyFonts2/directory


 auto-detect/
/fonts

the DTD does not support directory or auto-detect



--
View this message in context:
http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
Sent from the FOP - Users mailing list archive at Nabble.com
http://nabble.com/.

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


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
mailto:fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org
mailto: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: page overflow picture multi columns

2013-08-29 Thread Marc

I will try to do that.
I find a workaround by add a fo:block span=all/ before the block 
containing the picture

Marc

Le mercredi 28 août 2013 15:53:52, Pascal Sancho a écrit :

Hi,

That sounds like a bug.
Can you file in a new issue on Jira [1], please?
You should attach (not copy/paste) your test case as file.

[1] https://issues.apache.org/jira/browse/FOP

2013/8/28 Marc marc.li...@free.fr:

I discover a problem when the page layout is 2 columns, and an picture
(external-graphic or instream-foreign-object) is on all page (span = all).
In this case there is no test about the overflow at the end of the page, and
no break insert.

Here is an example with an instream-foreign-object, but it's the same with
an external-graphic.

Marc
-
?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
 fo:simple-page-master master-name=page margin-bottom=0
margin-left=0 margin-right=0
 margin-top=0 page-height=20cm page-width=20cm
 fo:region-body column-count=2 column-gap=0cm
margin-bottom=3cm
 margin-left=1.5cm margin-right=1.5cm
margin-top=3cm/
 fo:region-before extent=3cm region-name=entete
precedence=true/
 fo:region-after extent=3cm region-name=bas-page
precedence=true/
 /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence initial-page-number=auto-odd
line-height-shift-adjustment=disregard-shifts
 master-reference=page font-family=Helvetica
font-size=9.5pt text-align=justify
 fo:static-content flow-name=bas-page
 fo:block font-size=10pt font-style=normal
margin-left=2.5cm
 margin-right=1.5cm margin-top=0.5cm
text-align=justify
 text-align-last=justify text-indent=0
background-color=blue


fo:inlinefo:page-number//fo:inlinefo:leader/fo:inlineEssai/fo:inline/fo:block

 /fo:static-content

 fo:flow flow-name=xsl-region-body
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:blockessai/fo:block
 fo:block span=allfo:instream-foreign-object
content-height=scale-down-to-fit
 content-width=scale-down-to-fit
height=14cm
 svg
xmlns:svg=http://www.w3.org/2000/svg; xmlns=http://www.w3.org/2000/svg;
 version=1.1
width=715.20386 height=875.11243 id=svg2982
 defs id=defs3/
 g
transform=matrix(1.5709056,0,0,1.3297055,-71.034388,-53.769966)
 id=layer1
 rect
width=454.43762 height=353.74411 x=45.638321 y=40.857647

id=rect2988

style=fill:#ff;fill-opacity:1;fill-rule:nonzero;stroke:#00;stroke-width:0.84807265;stroke-opacity:1/
 rect
width=238.27271 height=322.672 x=188.11067 y=375.48044

id=rect2990

style=fill:#00ff00;fill-opacity:1;fill-rule:nonzero;stroke:#00;stroke-width:0.84807265;stroke-opacity:1
 /
 /g
 /svg
 /fo:instream-foreign-object
 /fo:block
 /fo:flow
 /fo:page-sequence
/fo:root
--

-
To unsubscribe, e-mail: fop

page overflow picture multi columns

2013-08-28 Thread Marc
I discover a problem when the page layout is 2 columns, and an picture 
(external-graphic or instream-foreign-object) is on all page (span = all).
In this case there is no test about the overflow at the end of the page, 
and no break insert.


Here is an example with an instream-foreign-object, but it's the same 
with an external-graphic.


Marc
-
?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
		fo:simple-page-master master-name=page margin-bottom=0 
margin-left=0 margin-right=0

margin-top=0 page-height=20cm page-width=20cm
fo:region-body column-count=2 column-gap=0cm 
margin-bottom=3cm
margin-left=1.5cm margin-right=1.5cm 
margin-top=3cm/
fo:region-before extent=3cm region-name=entete 
precedence=true/
fo:region-after extent=3cm region-name=bas-page 
precedence=true/
/fo:simple-page-master
/fo:layout-master-set
	fo:page-sequence initial-page-number=auto-odd 
line-height-shift-adjustment=disregard-shifts
		master-reference=page font-family=Helvetica font-size=9.5pt 
text-align=justify

fo:static-content flow-name=bas-page
fo:block font-size=10pt font-style=normal 
margin-left=2.5cm
margin-right=1.5cm margin-top=0.5cm 
text-align=justify
text-align-last=justify text-indent=0 
background-color=blue
			 
fo:inlinefo:page-number//fo:inlinefo:leader/fo:inlineEssai/fo:inline/fo:block

/fo:static-content

fo:flow flow-name=xsl-region-body
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
fo:blockessai/fo:block
			fo:block span=allfo:instream-foreign-object 
content-height=scale-down-to-fit

content-width=scale-down-to-fit 
height=14cm
	svg xmlns:svg=http://www.w3.org/2000/svg; 
xmlns=http://www.w3.org/2000/svg;

version=1.1 width=715.20386 
height=875.11243 id=svg2982
defs id=defs3/
g 
transform=matrix(1.5709056,0,0,1.3297055,-71.034388,-53.769966)
id=layer1
			rect width=454.43762 height=353.74411 x=45.638321 
y=40.857647

id=rect2988
			 
style=fill:#ff;fill-opacity:1;fill-rule:nonzero;stroke:#00;stroke-width:0.84807265;stroke-opacity:1/

rect width=238.27271 height=322.672 
x=188.11067 y=375.48044
id=rect2990
			 
style=fill:#00ff00;fill-opacity:1;fill-rule:nonzero;stroke:#00;stroke-width:0.84807265;stroke-opacity:1

/
/g
/svg
/fo:instream-foreign-object
/fo:block
/fo:flow
/fo:page-sequence
/fo:root
--

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



Re: how to merge PDFs

2013-01-28 Thread Marc

Hi,
If you cut the output into different section, each section is 
suppressed from the memory at the end.

This is not possible if you have link between the differents sections.

I do this in a project to generate very big pdf file with a small java 
machine.


Marc

Le lundi 28 janvier 2013 21:42:17, Campbell, Lance a écrit :

I looked over the PDFBox option.  Do you believe there is a way to
renumber pages in a merged PDF document?

Thanks,

Lance Campbell

Software Architect

Web Services at Public Affairs

217-333-0382

University of Illinois at Urbana-Champaign logo http://illinois.edu/

*From:*Mehdi Houshmand [mailto:med1...@gmail.com]
*Sent:* Monday, January 28, 2013 2:02 PM
*To:* fop-users@xmlgraphics.apache.org
*Subject:* Re: how to merge PDFs

Look into PDFBox, its another Apache project that can do just that.
However, you definitely shouldn't be seeing XSL-FO in the output PDF.

Can you post a bug and attach a test sample? Depending on what you're
doing, FOP should be able to handle big documents so the merging
shouldn't be necessary.

On Jan 28, 2013 5:08 PM, Campbell, Lance la...@illinois.edu
mailto:la...@illinois.edu wrote:

FOP 1.1

We have been using FOP for quite a few years now.  We are really happy
with it.  We use it to generate PDF reports.  We seem to be running
into an issue where really large reports start to display the XSL-FOP
code in the output.

Example:

d=submission-4 fo:static-content flow-name=xsl-region-after
fo:table fs week? If so,

provide details on the conference/workshop/journal, authors, paper

I was thinking that maybe I could process each page into its own PDF
and then splice the single page PDFs together into a master PDF document.

Has anyone ever done this?

This will prevent the issue from occurring.

Thanks,

Lance Campbell

Software Architect

Web Services at Public Affairs

217-333-0382



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



Re: Image URL issue rendering XML into PDF

2012-07-10 Thread Marc

I think that you forget the ' (simple quote) around your path :
xsl:value-of select='/root/param/checkbox'/
else it's an Xpath.
Marc

Le 10/07/2012 16:52, michael.jerusa...@steria.com a écrit :

Hi everyone,
I'm asking for a little help using FOP to render my XML file, which contains 
images (checked and unchecked boxes), into a PDF.
My script is done, and works perfectly when I indicate in my xml file :
checkboxhttp://10.6.66.134:7008/images/checkbox.gif/checkbox, this being an 
extern server that I cannot use in Production

But when i want to test it in local on my computer, and replace the previous 
line with
checkboxbox_check.gif/checkbox, my images being in the same folder than my 
script, and my XML and XSL files.

I got the error message :
Error in XObject : Error while loading image 
file:/home/emmji/tmp/xml/jni/box_check.gif : class 
java.lang.NullPointerException - null

I know the image is found because I tried to rename it and got this error :
[ERROR] Error while creating area : Error while recovering Image Informations 
(file:/home/emmji/tmp/xml/jni/box_check2.gif) : 
/home/emmji/tmp/xml/jni/box_check2.gif (No such file or directory)

Here is the declaration of the variable and the code where I integrate my image 
:
xsl:variable name=checkedbox
xsl:value-of select=/root/param/checkbox/
/xsl:variable

fo:block text-align=center
fo:external-graphic src=url('{$checkedbox}') width=8px height=8px 
display-align=center/
/fo:block

I think this is a matter of URL, but I don't understand why.

Thanks for your help.

Regards

PS : I also tried :
checkbox./box_check.gif/checkbox
checkbox/home/emmji/tmp/xml/jni/box_check.gif/checkbox
but I still end up with the same XObject errorCe message est à l'attention 
exclusive des destinataires désignés. Il peut contenir des informations 
confidentielles. Si vous n'êtes pas destinataire du message, merci d'en avertir 
immédiatement l'expéditeur et de détruire ce message. Le contenu de ce message 
ne pourrait engager la responsabilité de Steria que s'il a été émis par une 
personne dûment habilitée agissant dans le strict cadre de ses fonctions et à 
des fins non étrangères à ses attributions. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être engagée pour tout dommage résultant d'un virus transmis.
This message is intended exclusively for the designated addressee. It may 
contain confidential material. If you are not the correct addressee, please 
notify the sender immediately and destroy the message. The content of this 
message will engage the responsibility of Steria only if it has been sent by an 
authorized person acting in the strict scope of his functions and for purposes 
that are related to his competence. Although reasonable efforts have been made 
to keep this transmission free from viruses, the sender will not be liable for 
damages caused by a transmitted virus.
-
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: Image URL issue rendering XML into PDF

2012-07-10 Thread Marc

sorry, it's the reverse I don't see the ' in the url('{$checkbox}')
in FOP url() don't need the ', try with url({$checkedbox})

Do you have the XSL-FO generated?

Marc

Le mardi 10 juillet 2012 17:03:29, Marc a écrit :

I think that you forget the ' (simple quote) around your path :
xsl:value-of select='/root/param/checkbox'/
else it's an Xpath.
Marc

Le 10/07/2012 16:52, michael.jerusa...@steria.com a écrit :

Hi everyone,
I'm asking for a little help using FOP to render my XML file, which
contains images (checked and unchecked boxes), into a PDF.
My script is done, and works perfectly when I indicate in my xml file :
checkboxhttp://10.6.66.134:7008/images/checkbox.gif/checkbox,
this being an extern server that I cannot use in Production

But when i want to test it in local on my computer, and replace the
previous line with
checkboxbox_check.gif/checkbox, my images being in the same
folder than my script, and my XML and XSL files.

I got the error message :
Error in XObject : Error while loading image
file:/home/emmji/tmp/xml/jni/box_check.gif : class
java.lang.NullPointerException - null

I know the image is found because I tried to rename it and got this
error :
[ERROR] Error while creating area : Error while recovering Image
Informations (file:/home/emmji/tmp/xml/jni/box_check2.gif) :
/home/emmji/tmp/xml/jni/box_check2.gif (No such file or directory)

Here is the declaration of the variable and the code where I
integrate my image :
xsl:variable name=checkedbox
xsl:value-of select=/root/param/checkbox/
/xsl:variable

fo:block text-align=center
fo:external-graphic src=url('{$checkedbox}') width=8px
height=8px display-align=center/
/fo:block

I think this is a matter of URL, but I don't understand why.

Thanks for your help.

Regards

PS : I also tried :
checkbox./box_check.gif/checkbox
checkbox/home/emmji/tmp/xml/jni/box_check.gif/checkbox
but I still end up with the same XObject errorCe message est à
l'attention exclusive des destinataires désignés. Il peut contenir
des informations confidentielles. Si vous n'êtes pas destinataire du
message, merci d'en avertir immédiatement l'expéditeur et de détruire
ce message. Le contenu de ce message ne pourrait engager la
responsabilité de Steria que s'il a été émis par une personne dûment
habilitée agissant dans le strict cadre de ses fonctions et à des
fins non étrangères à ses attributions. Bien que les meilleurs
efforts soient faits pour maintenir cette transmission exempte de
tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa
responsabilité ne saurait être engagée pour tout dommage résultant
d'un virus transmis.
This message is intended exclusively for the designated addressee. It
may contain confidential material. If you are not the correct
addressee, please notify the sender immediately and destroy the
message. The content of this message will engage the responsibility
of Steria only if it has been sent by an authorized person acting in
the strict scope of his functions and for purposes that are related
to his competence. Although reasonable efforts have been made to keep
this transmission free from viruses, the sender will not be liable
for damages caused by a transmitted virus.
-
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



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



Re: SubstituteFonts true/false propertie in fop config ?

2012-06-22 Thread Marc

Youcan embedded fonts in the pdf file.
to do that you have to modify the fop configuration file and dispose of 
the metrics file for the fonts you use.

Marc

Le vendredi 22 juin 2012 14:58:43, Christian Pestel a écrit :

Hi,
We use Fop on a workstation to design and view pdf document (after Fop
transform)
After that, documents are rendered on a production server.
Sometimes, the production server don’t contain fonts necessary for
theses documents and Fop subtitute missing fonts.
Maybe SubstituteFonts true/false propertie in fop config would be
useful to failed the fo2pdf transformation instead subtitute font ?

**

Christian Pestel

christian.pes...@orange.fr mailto:cpes...@bdoc.com



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



Re: FOP 1.0 PDF print scale problem

2011-03-05 Thread Marc Kramis
Hi Andreas

Yes, the Mac OS X Preview application, and in there the print dialog.

No, changing the setting in Preview's Preferences does not help but I found a 
command-line workaround for the problem:


defaults write com.apple.Preview PVImagePrintingScaleMode 0

Regards,
Marc

- Ursprüngliche Mail -
Von: Andreas Delmelle andreas.delme...@telenet.be
An: fop-users@xmlgraphics.apache.org
Gesendet: Freitag, 4. März 2011 18:55:46
Betreff: Re: FOP 1.0 PDF print scale problem

On 03 Mar 2011, at 11:11, Marc Kramis wrote:

Hi Mark

 We recently migrated from FOP 0.95 to FOP 1.0. Everything worked fine except 
 some strange problem with the Mac OS X 10.6.6 print preview dialog. This 
 dialog now consistently wants to scale the printed PDF down to 90%.

By any chance, do you mean the print preview dialog of the Preview application?

If yes, it might be influenced by the 'Initial Document Scale' and 'Define 100% 
scale as' settings in Preview's Preferences.


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



FOP 1.0 PDF print scale problem

2011-03-03 Thread Marc Kramis
Hi All

We recently migrated from FOP 0.95 to FOP 1.0. Everything worked fine except 
some strange problem with the Mac OS X 10.6.6 print preview dialog. This dialog 
now consistently wants to scale the printed PDF down to 90%. PDFs generated 
with FOP 0.95 are not scaled, which is what I expect. Note that Acrobat Reader 
9.4.2 works fine with both FOP 0.95 and 1.0, i.e., it does not scale the 
printed PDF.

The source XML causing the problem looks the same for FOP 0.95 and FOP 1.0:

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

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

xsl:template match=/

fo:root
fo:layout-master-set
fo:simple-page-master master-name=content
page-width=8.27in page-height=11.7in
fo:region-body/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=content
fo:flow flow-name=xsl-region-body
fo:table table-layout=fixed width=100%
fo:table-column 
column-width=proportional-column-width(1)/
fo:table-body
fo:table-row
fo:table-cell display-align=center
fo:block text-align=center
xsl:textTEST/xsl:text
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:flow
/fo:page-sequence
/fo:root

/xsl:template

/xsl:stylesheet


So obviously, something changed between FOP 0.95 and 1.0 that causes the Mac OS 
X print preview dialog to scale the FOP 1.0 PDF to 90%. The page size info (in 
cm) displays a tiny difference (all with the same source XML):

FOP 0.95 PDF page size in cm: 21 x 29.71
FOP 1.0  PDF page size in cm: 21 x 29.7

Playing around with different page-width and page-height did not solve the 
problem.

Is there anything I can do to convince Mac OS X print preview dialog _not_ to 
scale the FOP 1.0 PDF?

Kind regards,
Marc

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



RE: Generate PDF/A-1b file with FOP

2007-10-22 Thread Marc Rouillard
Hello,

 

I can send you a zip file with all 14 base fonts  metrics files. I generated 
them from the basic fonts that come with OpenOffice2. They are free to use.

(Especially, there is a replacement font for ZapfDingbats).

 

Regards,

Marc

 

From: Arsène Kafando [mailto:[EMAIL PROTECTED] 
Sent: lundi 22 octobre 2007 12:41
To: fop-users@xmlgraphics.apache.org
Subject: Re: Generate PDF/A-1b file with FOP

 

Hello,

I have font-family=Arial in my fo:root element. I think that, the problem is 
the 14 base fonts. If i understand corretly, all these fonts must be declared 
in the config file (here fop.xconf) to generate PDF/A-1b file. I try to find 
all fonts but monotye sorts = ZapfDingbats is not free.

Is it this the problem?

If yes, where can i find the 14 base fonts?

Thanks.

 

Arsène.





From:  Jeremias Maerki [EMAIL PROTECTED]
To:  fop-users@xmlgraphics.apache.org
Subject:  Re: Generate PDF/A-1b file with FOP
Date:  Fri, 19 Oct 2007 22:13:24 +0200
If you have no more ATTENTION: Font 'Arial,normal,700' not found.
Substituting with 'any,normal,700'. on the log output, you probably
have some text somewhere that uses a default font. A very good idea in
conjunction with PDF/A is to put font-family=Arial on fo:root, i.e on
the root element, so there's no default font anymore, or rather, you
replace the default font like this.

Jeremias Maerki



On 19.10.2007 18:12:10 Arsène Kafando wrote:
  Thanks for your answer but i have the same error with this (
  font-baseD:/Projets/workspace/Tests/files/font-base
  ) :
  GRAVE: org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, 
all fonts, even the base 14 fonts, have to be embedded! Offending font: 
Times-Roman
  (Emplacement inconnu de 
l'erreur)org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, 
even the base 14 fonts, have to be embedded! Offending font: Times-Roman
 
  Arsène.
 
 
  
 
   From:  Jeremias Maerki [EMAIL PROTECTED]
   To:  fop-users@xmlgraphics.apache.org
   Subject:  Re: Generate PDF/A-1b file with FOP
   Date:  Fri, 19 Oct 2007 18:00:12 +0200
   You've specified ./ as the font base directory. . does not 
specify
   the directory of fop.xconf but the current directory of the 
process in
   which FOP runs. That can be something else. It's better to 
supply an
   absolute path there.
   
   HTH
   Jeremias Maerki
   
   
   
   On 19.10.2007 17:50:41 Arsène Kafando wrote:
 Hello,

 I try to generate a PDF/A-1b file. For this, i use the 
example code
 ExampleXML2PDF.java, and i obtain this code :

  /*
   * Licensed to the Apache Software Foundation (ASF) under 
one or more
   * contributor license agreements.  See the NOTICE file 
distributed with
   * this work for additional information regarding copyright 
ownership.
   * The ASF licenses this file to You under the Apache 
License, Version 2.0
   * (the License); you may not use this file except in 
compliance with
   * the License.  You may obtain a copy of the License at
   *
   *  http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in 
writing, software
   * distributed under the License is distributed on an AS 
IS BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied.
   * See the License for the specific language governing 
permissions and
   * limitations under the License.
   */

  /* $Id: ExampleXML2PDF.java 426576 2006-07-28 15:44:37Z 
jeremias $ */

  //Java
  import java.io.File;
  import java.io.OutputStream;

  //JAXP
  import javax.xml.transform.Transformer;
  import javax.xml.transform.TransformerFactory;
  import javax.xml.transform.Source;
  import javax.xml.transform.Result;
  import javax.xml.transform.stream.StreamSource;
  import javax.xml.transform.sax.SAXResult;

  //FOP
  import org.apache.fop.apps.FOUserAgent;
  import org.apache.fop.apps.Fop;
  import org.apache.fop.apps.FopFactory;
  import org.apache.fop.apps.MimeConstants;
  import org.apache.fop.fo.FOElementMapping;
  import

SVG width of rect element

2006-12-19 Thread Aeberhard Marc \(SECI\)
Hi all...

Like to generate SVG... In 0.92beta it was no problem! Now i've tested it with 
0.92 latest trunk and i receive the following error

svg graphic could not be built... the attribute width of the element rect is 
required

xsl:

xsl:if test=bgcolor
rect x=0 y=0 height=400
xsl:attribute name=width
xsl:if test=showlegend and 
not(showlegend/@chartfitpos)800/xsl:if
xsl:if test=not(showlegend) 
or showlegend/@chartfitpos600/xsl:if
/xsl:attribute
xsl:attribute 
name=strokenone/xsl:attribute
xsl:attribute name=fill
xsl:value-of select=bgcolor/
/xsl:attribute
/rect
/xsl:if


any ideas?

cheers,

marc


Copy/Paste out of PDF

2006-12-15 Thread Aeberhard Marc \(SECI\)
Hello,

If i render a PDF with TTF fonts i won't be able to copy text out of it..
Is there a way to fix this problem?
I heard that with RenderX this should work - nice, but i want to use FOP

Any ideas are welcome...

Environment:
FOP 0.92beta
Win XP

Thanks a lot,

Marc Aeberhard


RE: Copy/Paste out of PDF

2006-12-15 Thread Aeberhard Marc \(SECI\)
Thanks a lot for fast and nice answer!:)
Will test it immediatly...

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Freitag, 15. Dezember 2006 13:51
To: fop-users@xmlgraphics.apache.org
Subject: Re: Copy/Paste out of PDF


This is solved in the latest FOP Trunk from the SVN repository.

On 15.12.2006 13:27:49 Aeberhard Marc \(SECI\) wrote:
 Hello,
 
 If i render a PDF with TTF fonts i won't be able to copy text out of it..
 Is there a way to fix this problem?
 I heard that with RenderX this should work - nice, but i want to use FOP
 
 Any ideas are welcome...
 
 Environment:
 FOP 0.92beta
 Win XP
 
 Thanks a lot,
 
 Marc Aeberhard



Jeremias Maerki


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



Background Image

2006-10-04 Thread Aeberhard Marc (SECI)


like to add a background image into pdf, possible?

fop 0.20.5


thanks,
marc

Adding Font to FOP

2006-10-03 Thread Aeberhard Marc (SECI)


Hi,

I like to add another Font to FOP. It seems to be no problem with command line usage -c userconfig.xml !
But I have to do it in Driver.java (I think) so we can use it directly from our ColdFusion Webapplication.
Now, I have edited the userconfig.xml and have put the following code into driver.java:

 public Driver(InputSource source, OutputStream stream) { this();
userConfigFile = new File("file://C:\\CFusionMX7\\runtime\\jre\\lib\\build\\classes\\conf\\userconfig.xml");
try{options = new Options(userConfigFile);}catch (Exception e){/* x */}
_source = source; _stream = stream;}

I'm not a real Java Crack so please can anyone help me?

thanks,

- Marc Aeberhard