Re: Fop multiple thread generate performance

2024-07-18 Thread David Law

Hi,

apart from the FopFactory which Simon mentioned,
I believe you can also do the same for TransformerFactory.

Also, you could consider caching the Stylesheet Templates.
They are Threadsafe & can be used by multiple Threads concurrently.

I'm a bit rusty, but below is some pseudo-code to illustrate some of that.

All the best,
Dave

packagefop.example;

importjava.io.ByteArrayInputStream;

importjava.io.File;

importjava.io.IOException;

importjava.io.InputStream;

importjava.net.URI;

importjava.util.HashMap;

importjavax.xml.transform.Templates;

importjavax.xml.transform.TransformerConfigurationException;

importjavax.xml.transform.TransformerFactory;

importjavax.xml.transform.stream.StreamSource;

importorg.apache.fop.apps.FopFactory;

importorg.apache.fop.apps.FopFactoryBuilder;

publicclassFopPseudoCode {

/*

* TODOa very simple Templates Cache. You might want to add more features 
like Timestamp checking


*/

privatestaticfinalHashMap  TEMPLATES_CACHE= 
newHashMap<>();


privatestaticfinalThreadLocal LOCAL_TX_FACTORY= 
newThreadLocal<>() {


@Override

protectedTransformerFactory initialValue() {

finalTransformerFactory factory= TransformerFactory.newInstance();

/*

* TODOCustomize your factory here

*/

returnfactory;

}

};

privatestaticfinalThreadLocal LOCAL_FOP_FACTORY= 
newThreadLocal<>() {


@Override

protectedFopFactory initialValue() {

finalURI defaultBaseURI= newFile(".").toURI();

returnnewFopFactoryBuilder(defaultBaseURI)

/*

* TODOCustomize your FopFactoryBuilder here

*/

.build();

}

};

publicstaticvoidmain(finalString[] args) throwsException {

finalTransformerFactory txFactory= LOCAL_TX_FACTORY.get();

finalFopFactory fopFactory= LOCAL_FOP_FACTORY.get();

finalTemplates docTemplates= readStylesheetTemplates(txFactory, 
"Invoice.xslt");


finalbyte[] docBytes= readDocBytes( "Invoice.xml");

finalbyte[] foBytes= generateFO(docBytes, docTemplates);

finalbyte[] pdfBytes= generatePDFfromFO(txFactory, foBytes, fopFactory);

}

privatestaticfinalTemplates 
readStylesheetTemplates(finalTransformerFactory factory, finalString 
fileName) throwsTransformerConfigurationException, IOException {


finalTemplates templatesCached= TEMPLATES_CACHE.get(fileName);

if(null!= templatesCached) {

returntemplatesCached;

}

try(finalInputStream ist= 
newByteArrayInputStream(readDocStylesheet(fileName)))


{

finalTemplates templatesNew= factory.newTemplates(newStreamSource(ist));

TEMPLATES_CACHE.put(fileName, templatesNew);

returntemplatesNew;

}

}

privatestaticfinalbyte[] readDocStylesheet(finalString fileName) {

return"...".getBytes();

}

privatestaticfinalbyte[] readDocBytes(finalString fileName) {

return"...".getBytes();

}

privatestaticbyte[] generateFO(finalbyte[] xmlDataBytes, finalTemplates 
templates) {


return"privatestaticbyte[] generatePDFfromFO(finalTransformerFactory factory, 
finalbyte[] bytesFO, finalFopFactory fopFactory) {


return"%PDF-1.4...".getBytes();

}

}



On 17/07/2024 08:16, Simon Steiner wrote:


Hi,

You can use multiple threads, each thread with their own fopfactory.

Thanks

*From:*Allen Wang <1289495...@qq.com.INVALID>
*Sent:* 14 July 2024 08:39
*To:* fop-users 
*Cc:* 1289495104 <1289495...@qq.com>
*Subject:* Fop multiple thread generate performance

Dear Fop Doctor.

May I ask if we use mutiple thread to generate more output files. if 
we can have any method to improve the performance.


Kindly, Could you give us some advise?

Thanks a lot.



Re: Fop multiple thread generate performance

2024-07-18 Thread xmlgraphics . dave

Hi,

apart from the FopFactory which Simon mentioned,
I believe you can also do the same for TransformerFactory.

Also, you could consider caching the Stylesheet Templates.
They are Threadsafe & can be used by multiple Threads concurrently.

I'm a bit rusty, but below is some pseudo-code to illustrate some of that.

All the best,
Dave

packagefop.example;

importjava.io.ByteArrayInputStream;

importjava.io.File;

importjava.io.IOException;

importjava.io.InputStream;

importjava.net.URI;

importjava.util.HashMap;

importjavax.xml.transform.Templates;

importjavax.xml.transform.TransformerConfigurationException;

importjavax.xml.transform.TransformerFactory;

importjavax.xml.transform.stream.StreamSource;

importorg.apache.fop.apps.FopFactory;

importorg.apache.fop.apps.FopFactoryBuilder;

publicclassFopPseudoCode {

/*

* TODOa very simple Templates Cache. You might want to add more features 
like Timestamp checking


*/

privatestaticfinalHashMap  TEMPLATES_CACHE= 
newHashMap<>();


privatestaticfinalThreadLocal LOCAL_TX_FACTORY= 
newThreadLocal<>() {


@Override

protectedTransformerFactory initialValue() {

finalTransformerFactory factory= TransformerFactory.newInstance();

/*

* TODOCustomize your factory here

*/

returnfactory;

}

};

privatestaticfinalThreadLocal LOCAL_FOP_FACTORY= 
newThreadLocal<>() {


@Override

protectedFopFactory initialValue() {

finalURI defaultBaseURI= newFile(".").toURI();

returnnewFopFactoryBuilder(defaultBaseURI)

/*

* TODOCustomize your FopFactoryBuilder here

*/

.build();

}

};

publicstaticvoidmain(finalString[] args) throwsException {

finalTransformerFactory txFactory= LOCAL_TX_FACTORY.get();

finalFopFactory fopFactory= LOCAL_FOP_FACTORY.get();

finalTemplates docTemplates= readStylesheetTemplates(txFactory, 
"Invoice.xslt");


finalbyte[] docBytes= readDocBytes( "Invoice.xml");

finalbyte[] foBytes= generateFO(docBytes, docTemplates);

finalbyte[] pdfBytes= generatePDFfromFO(txFactory, foBytes, fopFactory);

}

privatestaticfinalTemplates 
readStylesheetTemplates(finalTransformerFactory factory, finalString 
fileName) throwsTransformerConfigurationException, IOException {


finalTemplates templatesCached= TEMPLATES_CACHE.get(fileName);

if(null!= templatesCached) {

returntemplatesCached;

}

try(finalInputStream ist= 
newByteArrayInputStream(readDocStylesheet(fileName)))


{

finalTemplates templatesNew= factory.newTemplates(newStreamSource(ist));

TEMPLATES_CACHE.put(fileName, templatesNew);

returntemplatesNew;

}

}

privatestaticfinalbyte[] readDocStylesheet(finalString fileName) {

return"...".getBytes();

}

privatestaticfinalbyte[] readDocBytes(finalString fileName) {

return"...".getBytes();

}

privatestaticbyte[] generateFO(finalbyte[] xmlDataBytes, finalTemplates 
templates) {


return"privatestaticbyte[] generatePDFfromFO(finalTransformerFactory factory, 
finalbyte[] bytesFO, finalFopFactory fopFactory) {


return"%PDF-1.4...".getBytes();

}

}



On 17/07/2024 08:16, Simon Steiner wrote:


Hi,

You can use multiple threads, each thread with their own fopfactory.

Thanks

*From:*Allen Wang <1289495...@qq.com.INVALID>
*Sent:* 14 July 2024 08:39
*To:* fop-users 
*Cc:* 1289495104 <1289495...@qq.com>
*Subject:* Fop multiple thread generate performance

Dear Fop Doctor.

May I ask if we use mutiple thread to generate more output files. if 
we can have any method to improve the performance.


Kindly, Could you give us some advise?

Thanks a lot.



RE: Fop multiple thread generate performance

2024-07-17 Thread Simon Steiner
Hi,

 

You can use multiple threads, each thread with their own fopfactory.

 

Thanks

 

From: Allen Wang <1289495...@qq.com.INVALID> 
Sent: 14 July 2024 08:39
To: fop-users 
Cc: 1289495104 <1289495...@qq.com>
Subject: Fop multiple thread generate performance

 

Dear Fop Doctor.

 

May I ask if we use mutiple thread to generate more output files. if we can
have any method to improve the performance.

Kindly, Could you give us some advise?

Thanks a lot.



??????RE: RE: Fop batch generate report performance

2024-06-04 Thread ????
Dear Simon,Thanks for your advise, but I found the TIFF file load the font as 
below code Fop fop = 
fopFactory.newFop(MimeConstants.MIME_TIFF,fopFactory.newFOUserAgent(),outputStream);
 Not in the below code.   FopFactory fopFactory =createFopFactory();
Is this?

----
??: 
   "fop-users"  
  


RE: RE: Fop batch generate report performance

2024-06-04 Thread Simon Steiner
Hi,

 

What about:
FopFactory fopFactory = createFopFactory();

requestData.getData().forEach(singleData ->{
String xmlData = convertJson2Xml(singleData);
generateFopFactory(xmlData,templates, fopFactory);
});

 

Thanks

 

From: 孤王 <1289495...@qq.com.INVALID> 
Sent: 04 June 2024 15:12
To: fop-users 
Subject: Re: RE: Fop batch generate report performance

 

 

Fop fop = 
fopFactory.newFop(MimeConstants.MIME_TIFF,fopFactory.newFOUserAgent(),outputStream);

 

I am not sure as each records need to generate one file. So,How do we use same 
Fop object for each outputstream?

 

---Original---

From: "Simon Steiner"mailto:simonsteiner1...@gmail.com> >

Date: Tue, Jun 4, 2024 22:04 PM

To: "fop-users"mailto:fop-users@xmlgraphics.apache.org> >;

Cc: "18224494266"<<18224494...@163.com <mailto:18224494...@163.com> >>;

Subject: RE: Fop batch generate report performance

 

Hi,

 

What about reusing the fopfactory, 1 per thread.

 

Thanks

 

From: 孤王 <1289495...@qq.com.INVALID <mailto:1289495...@qq.com.INVALID> > 
Sent: 04 June 2024 14:49
To: fop-users mailto:fop-users@xmlgraphics.apache.org> >
Cc: 18224494266 <18224494...@163.com <mailto:18224494...@163.com> >
Subject: Fop batch generate report performance

 

Dear Fop Docters,

 

I am a student of Fop. May I ask some question for run the batch reports by 
Fop? Our company using the Fop to generate TIFF file. found the TIFF file 
cannot load font by lazy font. So, it will load all of the config folder fonts.



  /tmp/fonts

  CCITT T.6

  LITTLE_ENDIAN



 

As our company all fonts more than 200M. So, when run the batch data(which 
records more 1 each request). it mean one batch request will loop 10k times 
to create 10K Fop objects( fopFactory.newFop(...)). Each record of the batch 
need to load the font again. it lead to the generate is too slow. 

 

Could you give me some advise for new Fop object Repeatedly loading fonts for 
each record of one batch(one batch has 10k records need to loop).
Our found the Repeatedly loading fonts of Fop core code. As attachment picture 
"Fop custom load font code.PNG".
Our service code example as below.

@Override
public boolean fopGen(RequestData requestData, Templates templates) {
// one batch loop more than 1 records.
requestData.getData().forEach(singleData ->{
String xmlData = convertJson2Xml(singleData);
generateFopFactory(xmlData,templates);
});
return true;
}
private void generateFopFactory(String xmlData, Templates templates){
FopFactory fopFactory = createFopFactory();
try(ByteArrayInputStream inputStream = new 
ByteArrayInputStream(xmlData.getBytes());
ByteArrayOutputStream outputStream = new ByteArrayOutputStream()){
Source src;
src = new StreamSource(inputStream);
Fop fop = 
fopFactory.newFop(MimeConstants.MIME_TIFF,fopFactory.newFOUserAgent(),outputStream);
Transformer transformer = templates.newTransformer();
final List errList = new ArrayList<>();
transformer.setErrorListener(new FopErrorListener());
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src,res);
convert2File(outputStream);
} catch (IOException e) {
e.printStackTrace();
} catch (FOPException e) {
e.printStackTrace();
} catch (TransformerConfigurationException e) {
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
}
}
 


Re: RE: Fop batch generate report performance

2024-06-04 Thread 孤王
Fop fop = 
fopFactory.newFop(MimeConstants.MIME_TIFF,fopFactory.newFOUserAgent(),outputStream);



I am not sure as each records need to generate one file. So,How do we use same 
Fop object for each outputstream?


---Original---
From: "Simon Steiner"

RE: Fop batch generate report performance

2024-06-04 Thread Simon Steiner
Hi,



What about reusing the fopfactory, 1 per thread.



Thanks



From: 孤王 <1289495...@qq.com.INVALID>
Sent: 04 June 2024 14:49
To: fop-users 
Cc: 18224494266 <18224494...@163.com>
Subject: Fop batch generate report performance



Dear Fop Docters,



I am a student of Fop. May I ask some question for run the batch reports by
Fop? Our company using the Fop to generate TIFF file. found the TIFF file
cannot load font by lazy font. So, it will load all of the config folder
fonts.



  /tmp/fonts

  CCITT T.6

  LITTLE_ENDIAN





As our company all fonts more than 200M. So, when run the batch data(which
records more 1 each request). it mean one batch request will loop 10k
times to create 10K Fop objects( fopFactory.newFop(...)). Each record of
the batch need to load the font again. it lead to the generate is too slow.



Could you give me some advise for new Fop object Repeatedly loading fonts
for each record of one batch(one batch has 10k records need to loop).
Our found the Repeatedly loading fonts of Fop core code. As attachment
picture "Fop custom load font code.PNG".
Our service code example as below.

@Override
public boolean fopGen(RequestData requestData, Templates templates) {
// one batch loop more than 1 records.
requestData.getData().forEach(singleData ->{
String xmlData = convertJson2Xml(singleData);
generateFopFactory(xmlData,templates);
});
return true;
}
private void generateFopFactory(String xmlData, Templates templates){
FopFactory fopFactory = createFopFactory();
try(ByteArrayInputStream inputStream = new ByteArrayInputStream(xmlData.
getBytes());
ByteArrayOutputStream outputStream = new ByteArrayOutputStream()){
Source src;
src = new StreamSource(inputStream);
Fop fop =
fopFactory.newFop(MimeConstants.MIME_TIFF,fopFactory.newFOUserAgent(),output
Stream);
Transformer transformer = templates.newTransformer();
final List errList = new ArrayList<>();
transformer.setErrorListener(new FopErrorListener());
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src,res);
convert2File(outputStream);
} catch (IOException e) {
e.printStackTrace();
} catch (FOPException e) {
e.printStackTrace();
} catch (TransformerConfigurationException e) {
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
}
}



RE: Are variable OpenType fonts supported in FOP 2.9?

2024-04-24 Thread Simon Steiner
Hi,

Inside the notosans zip there is a static folder with separate font weights.

Thanks

-Original Message-
From: Klaus Malorny  
Sent: 24 April 2024 11:59
To: fop-users@xmlgraphics.apache.org
Subject: Are variable OpenType fonts supported in FOP 2.9?



Hi,

just a short question whether this is simply not support or whether I make some 
mistakes:

Are variable OpenType fonts using variable axes (like weight, width or
slant) supported by FOP 2.9? Specifically, I want to use the NotoSans font 
family, and at least at Google's own site (fonts.google.com), the latest 
versions seem to be only available as variable fonts and not as separate files 
for the various weights.

Thanks in advance & greetings

Klaus


-
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: Different footer text on each page

2023-07-27 Thread Chris Bowditch

Hi Jon,

Dynamic footer content can be achieved using fo:marker and 
fo:retrieve-marker


Thanks,

Chris

On 05/07/2023 02:52, Jon Schewe wrote:
I'm using the Java XML API to create a document tree and then using 
FOP to render the PDF. I've created simple footers that show the 
current page and reference the last page. Now I'd like to customize 
the footer per page. Instead of "Page 2 of 3" in the footer, I'd like 
to have "Before: next page title      Page 2 of 3" where "next page 
title" changes per page. I understand that the page number and last 
page numbers are special tags that get populated at render time. Is it 
possible to modify the footer content per page with a single page 
sequence, or do I need to create a page sequence for each unique footer?


If I need a page sequence for each, how do I get the last page number 
of the last sequence so that I can still populate "Page 2 of 3"?


Thank you,
Jon




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



Re: Increase logging level with fop?

2023-06-30 Thread Luca Bellonda
If you are using the binary distribution, inside the "fop" script used to
launch it there is the possibility to change the log level, see in the
comments of the script.

Best regards.

Il giorno ven 30 giu 2023 alle ore 22:39 Jeffrey Walton 
ha scritto:

> Hi Everyone,
>
> I have a script that builds a DocBook. The script uses FOP 2.8. The
> output of the script is cluttered with:
>
> Jun 30, 2023 4:28:00 PM org.apache.fop.events.LoggingEventListener
> processEvent
> INFO: Rendered page #1.
>
> I don't want INFO level. It creates too much noise. I only want
> warning and error level. I want to know about problems.
>
> I checked the manual, but I don't see a configuration for logging
> levels [1] or changing the log level when running fop [2].
>
> How do I invoke fop to increase the logging level?
>
> Thanks in advance.
>
> [1] https://xmlgraphics.apache.org/fop/2.8/configuration.html
> [2] https://xmlgraphics.apache.org/fop/2.8/running.html
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


Re: Publishing area tree XML fails

2023-06-30 Thread Luca Bellonda
Speaking broadly, if a expert feature is not enforced, it should not be
available, but this is only my opinion.
Do you need to update a lot of code? Maybe the usual way of JVM property
and/or environment variable may be enough.

Il giorno ven 30 giu 2023 alle ore 22:33 Simon Steiner <
simonsteiner1...@gmail.com> ha scritto:

> Hi,
>
>
>
> We could print a warning message, rather than change the cmd line?
>
>
>
> Thanks
>
>
>
> *From:* Luca Bellonda 
> *Sent:* 30 June 2023 21:31
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Publishing area tree XML fails
>
>
>
> What about enabling it using an extra parameter like --enable-x  or
> something similar?
> Just a proposal.
>
>
>
> Il giorno ven 30 giu 2023 alle ore 22:24 Simon Steiner <
> simonsteiner1...@gmail.com> ha scritto:
>
> Hi,
>
>
>
> I use it from the cmd line all the time to create tests, so I prefer we
> keep it.
>
>
>
> Thanks
>
>
>
> *From:* Luca Bellonda 
> *Sent:* 30 June 2023 21:18
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Publishing area tree XML fails
>
>
>
>
>
> Hello, may I suggest to consider removing the feature from user
> availability if it's not supposed to be used?
>
> Is a patch worth it?
>
>
>
> Regards
>
>
>
> Il giorno ven 30 giu 2023 alle ore 21:54 Simon Steiner <
> simonsteiner1...@gmail.com> ha scritto:
>
> Hi,
>
>
>
> AT is maintained only for unit tests, its missing many features so
> shouldn’t be used by a end user.
>
>
>
> Thanks
>
>
>
> *From:* Mark Giffin 
> *Sent:* 30 June 2023 20:50
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Publishing area tree XML fails
>
>
>
> Thanks Dave, I'll keep this info in mind. In the meantime I have tried the
> FOP "intermediate format" (IF) instead of the area tree, and I find I can
> export that, change it, and then read it in and publish it with no problems.
>
> Mark
>
> On 6/27/2023 1:29 AM, Dave Roxburgh wrote:
>
> Hi Mark,
>
>
>
> It might help narrow down on the issue if you tried an alternative JDK -
> I'd suggest Temurin jdk-11
>
>
>
> It might also be a good time to update to the latest FOP version.
>
>
>
> I've tried what you're attempting to do on Temurin 11 / FOP main branch
> and I had no issues.
>
>
>
> Regards,
>
> Dave
> --
>
> *From:* Mark Giffin  
> *Sent:* 26 June 2023 07:57
> *To:* fop-users@xmlgraphics.apache.org 
> 
> *Subject:* Publishing area tree XML fails
>
>
>
> I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
> command line with this:
>
> fop -s topic.fo -at area_tree.xml
>
> This works fine. I plan to make some changes and read it in, then
> publish to PDF.
>
> I am trying to read it in and I don't know what to expect, or how to
> publish out to PDF. The docs do not go into this, that I can find. I get
> failure when I run the command below intended to produce a PDF called
> aaa.pdf:
>
> fop -atin area_tree.xml aaa.pdf
> [warning] /usr/bin/fop: JVM flavor 'sun' not understood
> [ERROR] FOP - Exception  java.util.EmptyStackException
> java.util.EmptyStackException>org.apache.fop.apps.FOPException:
> java.util.EmptyStackException
> java.util.EmptyStackException
>  at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>  at
>
> org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
>  at org.apache.fop.cli.Main.startFOP(Main.java:183)
>  at org.apache.fop.cli.Main.main(Main.java:214)
> Caused by: java.util.EmptyStackException
>  at java.base/java.util.Stack.peek(Stack.java:102)
>  at
>
> org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
> etc.
>
> Any ideas?
>
> Thanks,
> Mark
>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>
>
>


RE: Publishing area tree XML fails

2023-06-30 Thread Simon Steiner
Hi,

 

We could print a warning message, rather than change the cmd line?

 

Thanks

 

From: Luca Bellonda  
Sent: 30 June 2023 21:31
To: fop-users@xmlgraphics.apache.org
Subject: Re: Publishing area tree XML fails

 

What about enabling it using an extra parameter like --enable-x  or something 
similar?
Just a proposal.

 

Il giorno ven 30 giu 2023 alle ore 22:24 Simon Steiner 
mailto:simonsteiner1...@gmail.com> > ha scritto:

Hi,

 

I use it from the cmd line all the time to create tests, so I prefer we keep it.

 

Thanks

 

From: Luca Bellonda mailto:lbello...@gmail.com> > 
Sent: 30 June 2023 21:18
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: Re: Publishing area tree XML fails

 

 

Hello, may I suggest to consider removing the feature from user availability if 
it's not supposed to be used?

Is a patch worth it?

 

Regards

 

Il giorno ven 30 giu 2023 alle ore 21:54 Simon Steiner 
mailto:simonsteiner1...@gmail.com> > ha scritto:

Hi,

 

AT is maintained only for unit tests, its missing many features so shouldn’t be 
used by a end user.

 

Thanks

 

From: Mark Giffin mailto:m1...@earthlink.net> > 
Sent: 30 June 2023 20:50
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: Re: Publishing area tree XML fails

 

Thanks Dave, I'll keep this info in mind. In the meantime I have tried the FOP 
"intermediate format" (IF) instead of the area tree, and I find I can export 
that, change it, and then read it in and publish it with no problems.

Mark

On 6/27/2023 1:29 AM, Dave Roxburgh wrote:

Hi Mark,

 

It might help narrow down on the issue if you tried an alternative JDK - I'd 
suggest Temurin jdk-11

 

It might also be a good time to update to the latest FOP version.

 

I've tried what you're attempting to do on Temurin 11 / FOP main branch and I 
had no issues.

 

Regards,

Dave

  _  

From: Mark Giffin  <mailto:m1...@earthlink.net> 
Sent: 26 June 2023 07:57
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>  
 <mailto:fop-users@xmlgraphics.apache.org> 
Subject: Publishing area tree XML fails 

 

I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the 
command line with this:

fop -s topic.fo <http://topic.fo>  -at area_tree.xml

This works fine. I plan to make some changes and read it in, then 
publish to PDF.

I am trying to read it in and I don't know what to expect, or how to 
publish out to PDF. The docs do not go into this, that I can find. I get 
failure when I run the command below intended to produce a PDF called 
aaa.pdf:

fop -atin area_tree.xml aaa.pdf
[warning] /usr/bin/fop: JVM flavor 'sun' not understood
[ERROR] FOP - Exception org.apache.fop.apps.FOPException: 
java.util.EmptyStackException
java.util.EmptyStackException
 at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
 at 
org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
 at org.apache.fop.cli.Main.startFOP(Main.java:183)
 at org.apache.fop.cli.Main.main(Main.java:214)
Caused by: java.util.EmptyStackException
 at java.base/java.util.Stack.peek(Stack.java:102)
 at 
org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
etc.

Any ideas?

Thanks,
Mark



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

 



Re: Publishing area tree XML fails

2023-06-30 Thread Luca Bellonda
What about enabling it using an extra parameter like --enable-x  or
something similar?
Just a proposal.

Il giorno ven 30 giu 2023 alle ore 22:24 Simon Steiner <
simonsteiner1...@gmail.com> ha scritto:

> Hi,
>
>
>
> I use it from the cmd line all the time to create tests, so I prefer we
> keep it.
>
>
>
> Thanks
>
>
>
> *From:* Luca Bellonda 
> *Sent:* 30 June 2023 21:18
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Publishing area tree XML fails
>
>
>
>
>
> Hello, may I suggest to consider removing the feature from user
> availability if it's not supposed to be used?
>
> Is a patch worth it?
>
>
>
> Regards
>
>
>
> Il giorno ven 30 giu 2023 alle ore 21:54 Simon Steiner <
> simonsteiner1...@gmail.com> ha scritto:
>
> Hi,
>
>
>
> AT is maintained only for unit tests, its missing many features so
> shouldn’t be used by a end user.
>
>
>
> Thanks
>
>
>
> *From:* Mark Giffin 
> *Sent:* 30 June 2023 20:50
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Publishing area tree XML fails
>
>
>
> Thanks Dave, I'll keep this info in mind. In the meantime I have tried the
> FOP "intermediate format" (IF) instead of the area tree, and I find I can
> export that, change it, and then read it in and publish it with no problems.
>
> Mark
>
> On 6/27/2023 1:29 AM, Dave Roxburgh wrote:
>
> Hi Mark,
>
>
>
> It might help narrow down on the issue if you tried an alternative JDK -
> I'd suggest Temurin jdk-11
>
>
>
> It might also be a good time to update to the latest FOP version.
>
>
>
> I've tried what you're attempting to do on Temurin 11 / FOP main branch
> and I had no issues.
>
>
>
> Regards,
>
> Dave
> --
>
> *From:* Mark Giffin  
> *Sent:* 26 June 2023 07:57
> *To:* fop-users@xmlgraphics.apache.org 
> 
> *Subject:* Publishing area tree XML fails
>
>
>
> I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
> command line with this:
>
> fop -s topic.fo -at area_tree.xml
>
> This works fine. I plan to make some changes and read it in, then
> publish to PDF.
>
> I am trying to read it in and I don't know what to expect, or how to
> publish out to PDF. The docs do not go into this, that I can find. I get
> failure when I run the command below intended to produce a PDF called
> aaa.pdf:
>
> fop -atin area_tree.xml aaa.pdf
> [warning] /usr/bin/fop: JVM flavor 'sun' not understood
> [ERROR] FOP - Exception  java.util.EmptyStackException
> java.util.EmptyStackException>org.apache.fop.apps.FOPException:
> java.util.EmptyStackException
> java.util.EmptyStackException
>  at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>  at
>
> org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
>  at org.apache.fop.cli.Main.startFOP(Main.java:183)
>  at org.apache.fop.cli.Main.main(Main.java:214)
> Caused by: java.util.EmptyStackException
>  at java.base/java.util.Stack.peek(Stack.java:102)
>  at
>
> org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
> etc.
>
> Any ideas?
>
> Thanks,
> Mark
>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>
>
>


RE: Publishing area tree XML fails

2023-06-30 Thread Simon Steiner
Hi,

 

I use it from the cmd line all the time to create tests, so I prefer we keep it.

 

Thanks

 

From: Luca Bellonda  
Sent: 30 June 2023 21:18
To: fop-users@xmlgraphics.apache.org
Subject: Re: Publishing area tree XML fails

 

 

Hello, may I suggest to consider removing the feature from user availability if 
it's not supposed to be used?

Is a patch worth it?

 

Regards

 

Il giorno ven 30 giu 2023 alle ore 21:54 Simon Steiner 
mailto:simonsteiner1...@gmail.com> > ha scritto:

Hi,

 

AT is maintained only for unit tests, its missing many features so shouldn’t be 
used by a end user.

 

Thanks

 

From: Mark Giffin mailto:m1...@earthlink.net> > 
Sent: 30 June 2023 20:50
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: Re: Publishing area tree XML fails

 

Thanks Dave, I'll keep this info in mind. In the meantime I have tried the FOP 
"intermediate format" (IF) instead of the area tree, and I find I can export 
that, change it, and then read it in and publish it with no problems.

Mark

On 6/27/2023 1:29 AM, Dave Roxburgh wrote:

Hi Mark,

 

It might help narrow down on the issue if you tried an alternative JDK - I'd 
suggest Temurin jdk-11

 

It might also be a good time to update to the latest FOP version.

 

I've tried what you're attempting to do on Temurin 11 / FOP main branch and I 
had no issues.

 

Regards,

Dave

  _  

From: Mark Giffin  <mailto:m1...@earthlink.net> 
Sent: 26 June 2023 07:57
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>  
 <mailto:fop-users@xmlgraphics.apache.org> 
Subject: Publishing area tree XML fails 

 

I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the 
command line with this:

fop -s topic.fo <http://topic.fo>  -at area_tree.xml

This works fine. I plan to make some changes and read it in, then 
publish to PDF.

I am trying to read it in and I don't know what to expect, or how to 
publish out to PDF. The docs do not go into this, that I can find. I get 
failure when I run the command below intended to produce a PDF called 
aaa.pdf:

fop -atin area_tree.xml aaa.pdf
[warning] /usr/bin/fop: JVM flavor 'sun' not understood
[ERROR] FOP - Exception org.apache.fop.apps.FOPException: 
java.util.EmptyStackException
java.util.EmptyStackException
 at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
 at 
org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
 at org.apache.fop.cli.Main.startFOP(Main.java:183)
 at org.apache.fop.cli.Main.main(Main.java:214)
Caused by: java.util.EmptyStackException
 at java.base/java.util.Stack.peek(Stack.java:102)
 at 
org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
etc.

Any ideas?

Thanks,
Mark



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

 



Re: Publishing area tree XML fails

2023-06-30 Thread Luca Bellonda
Hello, may I suggest to consider removing the feature from user
availability if it's not supposed to be used?
Is a patch worth it?

Regards

Il giorno ven 30 giu 2023 alle ore 21:54 Simon Steiner <
simonsteiner1...@gmail.com> ha scritto:

> Hi,
>
>
>
> AT is maintained only for unit tests, its missing many features so
> shouldn’t be used by a end user.
>
>
>
> Thanks
>
>
>
> *From:* Mark Giffin 
> *Sent:* 30 June 2023 20:50
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Publishing area tree XML fails
>
>
>
> Thanks Dave, I'll keep this info in mind. In the meantime I have tried the
> FOP "intermediate format" (IF) instead of the area tree, and I find I can
> export that, change it, and then read it in and publish it with no problems.
>
> Mark
>
> On 6/27/2023 1:29 AM, Dave Roxburgh wrote:
>
> Hi Mark,
>
>
>
> It might help narrow down on the issue if you tried an alternative JDK -
> I'd suggest Temurin jdk-11
>
>
>
> It might also be a good time to update to the latest FOP version.
>
>
>
> I've tried what you're attempting to do on Temurin 11 / FOP main branch
> and I had no issues.
>
>
>
> Regards,
>
> Dave
> --
>
> *From:* Mark Giffin  
> *Sent:* 26 June 2023 07:57
> *To:* fop-users@xmlgraphics.apache.org 
> 
> *Subject:* Publishing area tree XML fails
>
>
>
> I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
> command line with this:
>
> fop -s topic.fo -at area_tree.xml
>
> This works fine. I plan to make some changes and read it in, then
> publish to PDF.
>
> I am trying to read it in and I don't know what to expect, or how to
> publish out to PDF. The docs do not go into this, that I can find. I get
> failure when I run the command below intended to produce a PDF called
> aaa.pdf:
>
> fop -atin area_tree.xml aaa.pdf
> [warning] /usr/bin/fop: JVM flavor 'sun' not understood
> [ERROR] FOP - Exception  java.util.EmptyStackException
> java.util.EmptyStackException>org.apache.fop.apps.FOPException:
> java.util.EmptyStackException
> java.util.EmptyStackException
>  at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>  at
>
> org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
>  at org.apache.fop.cli.Main.startFOP(Main.java:183)
>  at org.apache.fop.cli.Main.main(Main.java:214)
> Caused by: java.util.EmptyStackException
>  at java.base/java.util.Stack.peek(Stack.java:102)
>  at
>
> org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
> etc.
>
> Any ideas?
>
> Thanks,
> Mark
>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>
>


RE: Publishing area tree XML fails

2023-06-30 Thread Simon Steiner
Hi,

 

AT is maintained only for unit tests, its missing many features so shouldn’t be 
used by a end user.

 

Thanks

 

From: Mark Giffin  
Sent: 30 June 2023 20:50
To: fop-users@xmlgraphics.apache.org
Subject: Re: Publishing area tree XML fails

 

Thanks Dave, I'll keep this info in mind. In the meantime I have tried the FOP 
"intermediate format" (IF) instead of the area tree, and I find I can export 
that, change it, and then read it in and publish it with no problems.

Mark

On 6/27/2023 1:29 AM, Dave Roxburgh wrote:

Hi Mark,

 

It might help narrow down on the issue if you tried an alternative JDK - I'd 
suggest Temurin jdk-11

 

It might also be a good time to update to the latest FOP version.

 

I've tried what you're attempting to do on Temurin 11 / FOP main branch and I 
had no issues.

 

Regards,

Dave

  _  

From: Mark Giffin  <mailto:m1...@earthlink.net> 
Sent: 26 June 2023 07:57
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>  
 <mailto:fop-users@xmlgraphics.apache.org> 
Subject: Publishing area tree XML fails 

 

I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the 
command line with this:

fop -s topic.fo -at area_tree.xml

This works fine. I plan to make some changes and read it in, then 
publish to PDF.

I am trying to read it in and I don't know what to expect, or how to 
publish out to PDF. The docs do not go into this, that I can find. I get 
failure when I run the command below intended to produce a PDF called 
aaa.pdf:

fop -atin area_tree.xml aaa.pdf
[warning] /usr/bin/fop: JVM flavor 'sun' not understood
[ERROR] FOP - Exception org.apache.fop.apps.FOPException: 
java.util.EmptyStackException
java.util.EmptyStackException
 at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
 at 
org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
 at org.apache.fop.cli.Main.startFOP(Main.java:183)
 at org.apache.fop.cli.Main.main(Main.java:214)
Caused by: java.util.EmptyStackException
 at java.base/java.util.Stack.peek(Stack.java:102)
 at 
org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
etc.

Any ideas?

Thanks,
Mark



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

 



Re: Publishing area tree XML fails

2023-06-30 Thread Mark Giffin
Thanks Dave, I'll keep this info in mind. In the meantime I have tried 
the FOP "intermediate format" (IF) instead of the area tree, and I find 
I can export that, change it, and then read it in and publish it with no 
problems.


Mark

On 6/27/2023 1:29 AM, Dave Roxburgh wrote:

Hi Mark,

It might help narrow down on the issue if you tried an alternative JDK 
- I'd suggest Temurin jdk-11


It might also be a good time to update to the latest FOP version.

I've tried what you're attempting to do on Temurin 11 / FOP main 
branch and I had no issues.


Regards,
Dave

*From:* Mark Giffin 
*Sent:* 26 June 2023 07:57
*To:* fop-users@xmlgraphics.apache.org 
*Subject:* Publishing area tree XML fails
I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
command line with this:

fop -s topic.fo -at area_tree.xml

This works fine. I plan to make some changes and read it in, then
publish to PDF.

I am trying to read it in and I don't know what to expect, or how to
publish out to PDF. The docs do not go into this, that I can find. I get
failure when I run the command below intended to produce a PDF called
aaa.pdf:

fop -atin area_tree.xml aaa.pdf
[warning] /usr/bin/fop: JVM flavor 'sun' not understood
[ERROR] FOP - Exception org.apache.fop.apps.FOPException:
java.util.EmptyStackException
java.util.EmptyStackException
 at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
 at
org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
 at org.apache.fop.cli.Main.startFOP(Main.java:183)
 at org.apache.fop.cli.Main.main(Main.java:214)
Caused by: java.util.EmptyStackException
 at java.base/java.util.Stack.peek(Stack.java:102)
 at
org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
etc.

Any ideas?

Thanks,
Mark



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



Re: Publishing area tree XML fails

2023-06-27 Thread Dave Roxburgh
Hi Mark,

It might help narrow down on the issue if you tried an alternative JDK - I'd 
suggest Temurin jdk-11

It might also be a good time to update to the latest FOP version.

I've tried what you're attempting to do on Temurin 11 / FOP main branch and I 
had no issues.

Regards,
Dave

From: Mark Giffin 
Sent: 26 June 2023 07:57
To: fop-users@xmlgraphics.apache.org 
Subject: Publishing area tree XML fails

I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
command line with this:

fop -s topic.fo -at area_tree.xml

This works fine. I plan to make some changes and read it in, then
publish to PDF.

I am trying to read it in and I don't know what to expect, or how to
publish out to PDF. The docs do not go into this, that I can find. I get
failure when I run the command below intended to produce a PDF called
aaa.pdf:

fop -atin area_tree.xml aaa.pdf
[warning] /usr/bin/fop: JVM flavor 'sun' not understood
[ERROR] FOP - Exception org.apache.fop.apps.FOPException:
java.util.EmptyStackException
java.util.EmptyStackException
 at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
 at
org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
 at org.apache.fop.cli.Main.startFOP(Main.java:183)
 at org.apache.fop.cli.Main.main(Main.java:214)
Caused by: java.util.EmptyStackException
 at java.base/java.util.Stack.peek(Stack.java:102)
 at
org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
etc.

Any ideas?

Thanks,
Mark



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



RE: Embed different TTF font styles

2023-05-23 Thread Simon Steiner
Hi,

The error you see means some bold text with no font-family is using base14 
font, so you should apply a font-family to the fo:root to catch those, then 
configure fonts for those.

In fo:


In fop.xconf:


  
Sent: 23 May 2023 08:33
To: fop-users@xmlgraphics.apache.org
Subject: Re: Embed different TTF font styles




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



Re: Embed different TTF font styles

2023-05-23 Thread Alexander Adam
Hello Simon,

Thank you for your fast response.
I forgot to mention that also embedding directly via

>  embed-url="config/xml_stylesheets/Resources/foo/Helvetica-Bold.ttf”>
>   
> 

Doesn’t work and has the same effect.
Or am I missing an important attribute here or so?

Is it expected or known that styles like bold and italic doesn’t work with the 
directory tag?

Setting the font itself works, right? Otherwise the error message wouldn’t be 
there, is that correct?

> On 23 May 2023, at 07:54, Simon Steiner  wrote:
> 
> Hi,
> 
> What about setting the font-family on the fo:root if your using pdfa.
> I would use define explicit fonts in fop.xconf rather than using directory 
> scanning.
> 
> Thanks
> 
> -Original Message-
> From: Alexander Adam  
> Sent: 22 May 2023 22:05
> To: fop-users@xmlgraphics.apache.org
> Subject: Embed different TTF font styles
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 



RE: Embed different TTF font styles

2023-05-22 Thread Simon Steiner
Hi,

What about setting the font-family on the fo:root if your using pdfa.
I would use define explicit fonts in fop.xconf rather than using directory 
scanning.

Thanks

-Original Message-
From: Alexander Adam  
Sent: 22 May 2023 22:05
To: fop-users@xmlgraphics.apache.org
Subject: Embed different TTF font styles




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



Re: Requesting your GitHub User Identifier - For Jira Migration

2023-05-10 Thread Dave Pawson
How does the UK data protection act fare with this user data collection?

On Wed, 10 May 2023 at 13:05, Glenn Adams  wrote:

> Hi Jocelin,
>
> Please send me your Jira user ID and a valid (preferred) email address.
> You can reply privately to me if you wish.
>
> Regards,
> Glenn
>
> On Wed, May 10, 2023 at 3:18 AM Jocelin HEINEN (ext)
>  wrote:
>
>> Hi,
>>
>> I have created a Jira issue.
>> My GitHub username: *JoHein*
>>
>> Thank you
>>
>> --
>> *De :* Glenn Adams 
>> *Envoyé :* dimanche 7 mai 2023 06:19
>> *À :* FOP Users ; FOP Developers <
>> fop-...@xmlgraphics.apache.org>; Batik Developers <
>> batik-...@xmlgraphics.apache.org>; XML Graphics Project <
>> gene...@xmlgraphics.apache.org>
>> *Objet :* Requesting your GitHub User Identifier - For Jira Migration
>>
>> Caution: External email. Do not open attachments or click links, unless
>> this email comes from a known sender and you know the content is safe.
>>
>> Hi All,
>>
>> If you haven't yet heard, we are migrating the XMLGraphics project's
>> issue tracking from Jira to GitHub.
>>
>> For the purpose of performing the migration from Jira to GitHub Issues, I
>> would like to have your GitHub User Identifier if you have previously
>> interacted with the XMLGraphics Jira Projects in any way, e.g., creating a
>> Jira Issue, commenting on a Jira Issue, adding an attachment to a Jira
>> Issue, etc.
>>
>> Your Identifier will be used to add you as an assignee or refer to you
>> via a *mention* in GitHub issues that are created from the migration
>> process.
>>
>> Please send your Identifier in response to this email at your earliest
>> convenience. For your reference, my GitHub User Identifier is skynavga.
>> If you don't have a GitHub Identifier, then you can create a GitHub account
>> to create one. Or, if you don't wish to create a GitHub account, you can
>> let me know that as well, in which case the migration process will not link
>> migrated issues to you.
>>
>> Also, if you wish to avoid responding publicly, please send your response
>> directly to me at .
>>
>> Kind regards,
>> Glenn
>>
>> Ce message et toutes les pièces jointes (ci-après le "message") sont
>> établis à l’intention exclusive des destinataires désignés. Il contient des
>> informations confidentielles et pouvant être protégé par le secret
>> professionnel. Si vous recevez ce message par erreur, merci d'en avertir
>> immédiatement l'expéditeur et de détruire le message. Toute utilisation de
>> ce message non conforme à sa destination, toute diffusion ou toute
>> publication, totale ou partielle, est interdite, sauf autorisation expresse
>> de l’émetteur. L'internet ne garantissant pas l'intégrité de ce message
>> lors de son acheminement, Atos (et ses filiales) décline(nt) toute
>> responsabilité au titre de son contenu. Bien que ce message ait fait
>> l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne peut
>> garantir l’absence totale de logiciels malveillants dans son contenu et ne
>> pourrait être tenu pour responsable des dommages engendrés par la
>> transmission de l’un d’eux.
>>
>> This message and any attachments (the "message") are intended solely for
>> the addressee(s). It contains confidential information, that may be
>> privileged. If you receive this message in error, please notify the sender
>> immediately and delete the message. Any use of the message in violation of
>> its purpose, any dissemination or disclosure, either wholly or partially is
>> strictly prohibited, unless it has been explicitly authorized by the
>> sender. As its integrity cannot be secured on the internet, Atos and its
>> subsidiaries decline any liability for the content of this message.
>> Although the sender endeavors to maintain a computer virus-free network,
>> the sender does not warrant that this transmission is virus-free and will
>> not be liable for any damages resulting from any virus transmitted.
>>
>

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.


Re: Requesting your GitHub User Identifier - For Jira Migration

2023-05-10 Thread Glenn Adams
Hi Jocelin,

Please send me your Jira user ID and a valid (preferred) email address. You
can reply privately to me if you wish.

Regards,
Glenn

On Wed, May 10, 2023 at 3:18 AM Jocelin HEINEN (ext)
 wrote:

> Hi,
>
> I have created a Jira issue.
> My GitHub username: *JoHein*
>
> Thank you
>
> --
> *De :* Glenn Adams 
> *Envoyé :* dimanche 7 mai 2023 06:19
> *À :* FOP Users ; FOP Developers <
> fop-...@xmlgraphics.apache.org>; Batik Developers <
> batik-...@xmlgraphics.apache.org>; XML Graphics Project <
> gene...@xmlgraphics.apache.org>
> *Objet :* Requesting your GitHub User Identifier - For Jira Migration
>
> Caution: External email. Do not open attachments or click links, unless
> this email comes from a known sender and you know the content is safe.
>
> Hi All,
>
> If you haven't yet heard, we are migrating the XMLGraphics project's issue
> tracking from Jira to GitHub.
>
> For the purpose of performing the migration from Jira to GitHub Issues, I
> would like to have your GitHub User Identifier if you have previously
> interacted with the XMLGraphics Jira Projects in any way, e.g., creating a
> Jira Issue, commenting on a Jira Issue, adding an attachment to a Jira
> Issue, etc.
>
> Your Identifier will be used to add you as an assignee or refer to you via
> a *mention* in GitHub issues that are created from the migration process.
>
> Please send your Identifier in response to this email at your earliest
> convenience. For your reference, my GitHub User Identifier is skynavga.
> If you don't have a GitHub Identifier, then you can create a GitHub account
> to create one. Or, if you don't wish to create a GitHub account, you can
> let me know that as well, in which case the migration process will not link
> migrated issues to you.
>
> Also, if you wish to avoid responding publicly, please send your response
> directly to me at .
>
> Kind regards,
> Glenn
>
> Ce message et toutes les pièces jointes (ci-après le "message") sont
> établis à l’intention exclusive des destinataires désignés. Il contient des
> informations confidentielles et pouvant être protégé par le secret
> professionnel. Si vous recevez ce message par erreur, merci d'en avertir
> immédiatement l'expéditeur et de détruire le message. Toute utilisation de
> ce message non conforme à sa destination, toute diffusion ou toute
> publication, totale ou partielle, est interdite, sauf autorisation expresse
> de l’émetteur. L'internet ne garantissant pas l'intégrité de ce message
> lors de son acheminement, Atos (et ses filiales) décline(nt) toute
> responsabilité au titre de son contenu. Bien que ce message ait fait
> l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne peut
> garantir l’absence totale de logiciels malveillants dans son contenu et ne
> pourrait être tenu pour responsable des dommages engendrés par la
> transmission de l’un d’eux.
>
> This message and any attachments (the "message") are intended solely for
> the addressee(s). It contains confidential information, that may be
> privileged. If you receive this message in error, please notify the sender
> immediately and delete the message. Any use of the message in violation of
> its purpose, any dissemination or disclosure, either wholly or partially is
> strictly prohibited, unless it has been explicitly authorized by the
> sender. As its integrity cannot be secured on the internet, Atos and its
> subsidiaries decline any liability for the content of this message.
> Although the sender endeavors to maintain a computer virus-free network,
> the sender does not warrant that this transmission is virus-free and will
> not be liable for any damages resulting from any virus transmitted.
>


RE: Requesting your GitHub User Identifier - For Jira Migration

2023-05-10 Thread Jocelin HEINEN (ext)
Hi,

I have created a Jira issue.
My GitHub username: JoHein

Thank you


De : Glenn Adams 
Envoyé : dimanche 7 mai 2023 06:19
À : FOP Users ; FOP Developers 
; Batik Developers 
; XML Graphics Project 

Objet : Requesting your GitHub User Identifier - For Jira Migration


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.


Hi All,

If you haven't yet heard, we are migrating the XMLGraphics project's issue 
tracking from Jira to GitHub.

For the purpose of performing the migration from Jira to GitHub Issues, I would 
like to have your GitHub User Identifier if you have previously interacted with 
the XMLGraphics Jira Projects in any way, e.g., creating a Jira Issue, 
commenting on a Jira Issue, adding an attachment to a Jira Issue, etc.

Your Identifier will be used to add you as an assignee or refer to you via a 
mention in GitHub issues that are created from the migration process.

Please send your Identifier in response to this email at your earliest 
convenience. For your reference, my GitHub User Identifier is skynavga. If you 
don't have a GitHub Identifier, then you can create a GitHub account to create 
one. Or, if you don't wish to create a GitHub account, you can let me know that 
as well, in which case the migration process will not link migrated issues to 
you.

Also, if you wish to avoid responding publicly, please send your response 
directly to me at mailto:gad...@apache.org>>.

Kind regards,
Glenn

Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pourrait être tenu pour responsable des dommages engendrés par la transmission 
de l’un d’eux.

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If 
you receive this message in error, please notify the sender immediately and 
delete the message. Any use of the message in violation of its purpose, any 
dissemination or disclosure, either wholly or partially is strictly prohibited, 
unless it has been explicitly authorized by the sender. As its integrity cannot 
be secured on the internet, Atos and its subsidiaries decline any liability for 
the content of this message. Although the sender endeavors to maintain a 
computer virus-free network, the sender does not warrant that this transmission 
is virus-free and will not be liable for any damages resulting from any virus 
transmitted.


RE: AFP with custom font TTF generates space-letter-space

2023-05-02 Thread Jocelin HEINEN (ext)
Hi,

And you were told right. That email ended in my spam folder which I did not 
check.
My email is now verified and we should be back on track.

Thank you for your help.

De : Simon Steiner 
Envoyé : vendredi 28 avril 2023 16:33
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.



Hi,



Im told:

The user has not yet verified their email address, so the request has not been 
sent to the PMC. Once the user verifies their email address (they should have a 
verification link in their inbox) the PMC will be notified of the request.



Thanks



From: Jocelin HEINEN (ext) 
Sent: 28 April 2023 12:36
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space



Hi,

I tried to create an account again

[Image removed by sender. ...]Self-serve Platform

There is already a pending Jira account request associated with this email 
address. Please wait for it to be processed

Hopefully I did not make a mistake on the project name

Thank you,




De : Jocelin HEINEN (ext) 
Envoyé : vendredi 28 avril 2023 09:08
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Hi,

I asked for xmlgraphics.
Maybe I made a mistake.
Should I do another self request?



Thank you,



De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 16:50
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Hi,



We didn’t get a jira request, what project did you ask it from on the form.



Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 15:27
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space



Yes sorry about that still don't have a Jira account but will do when I have 
and can create the issue



De : Glenn Adams mailto:gl...@skynav.com>>
Envoyé : jeudi 27 avril 2023 16:22
À : fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org> 
mailto:fop-users@xmlgraphics.apache.org>>
Objet : Re: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Also, please put any example XML into an attachment rather than inlined in the 
problem description or a comment.



Thanks.



On Thu, Apr 27, 2023 at 5:12 AM Simon Steiner 
mailto:simonsteiner1...@gmail.com>> wrote:

Hi,



You may need to open a bug in jira for us to check this.



Thanks



From: Jocelin HEINEN (ext) 
mailto:jocelin.heinen.exter...@atos.net.INVALID>>
Sent: 27 April 2023 11:03
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: AFP with custom font TTF generates space-letter-space



Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char).
I have also tried several others TTF but ended up with the exact same result.



 A r i a l  a r i a l N  a r i a l N B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11



De : Simon Steiner 
mailto:simonsteiner1...@gmail.com>>
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org> 
mailto:fop-users@xmlgraphics.apache.org>>
Objet : RE: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Hi,



What about using:







Thanks



From: Jocelin HEINEN (ext) 
mailto:jocelin.heinen.exter...@atos.net.INVALID>>
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: AFP with custom font TTF generates space-letter-space



Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer",

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated word

RE: AFP with custom font TTF generates space-letter-space

2023-04-28 Thread Simon Steiner
Hi,

 

Im told:

The user has not yet verified their email address, so the request has not been 
sent to the PMC. Once the user verifies their email address (they should have a 
verification link in their inbox) the PMC will be notified of the request.

 

Thanks

 

From: Jocelin HEINEN (ext)  
Sent: 28 April 2023 12:36
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space

 

Hi,

I tried to create an account again

Self-serve Platform

There is already a pending Jira account request associated with this email 
address. Please wait for it to be processed

Hopefully I did not make a mistake on the project name 

Thank you,



  _  

De : Jocelin HEINEN (ext) 
Envoyé : vendredi 28 avril 2023 09:08
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space 

 


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe. 

 

Hi,

I asked for xmlgraphics.
Maybe I made a mistake. 
Should I do another self request?

 

Thank you,

  _  

De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 16:50
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space 

 


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe. 

 

Hi,

 

We didn’t get a jira request, what project did you ask it from on the form.

 

Thanks

 

From: Jocelin HEINEN (ext)  
Sent: 27 April 2023 15:27
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space

 

Yes sorry about that still don't have a Jira account but will do when I have 
and can create the issue 

  _  

De : Glenn Adams mailto:gl...@skynav.com> >
Envoyé : jeudi 27 avril 2023 16:22
À : fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>  
mailto:fop-users@xmlgraphics.apache.org> >
Objet : Re: AFP with custom font TTF generates space-letter-space 

 


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe. 

 

Also, please put any example XML into an attachment rather than inlined in the 
problem description or a comment. 

 

Thanks.

 

On Thu, Apr 27, 2023 at 5:12 AM Simon Steiner mailto:simonsteiner1...@gmail.com> > wrote:

Hi,

 

You may need to open a bug in jira for us to check this.

 

Thanks

 

From: Jocelin HEINEN (ext) mailto:jocelin.heinen.exter...@atos.net.INVALID> > 
Sent: 27 April 2023 11:03
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: RE: AFP with custom font TTF generates space-letter-space 

 

Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char). 
I have also tried several others TTF but ended up with the exact same result.

 

 A r i a l  a r i a l N  a r i a l N B 

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

  _  

De : Simon Steiner mailto:simonsteiner1...@gmail.com> >
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>  
mailto:fop-users@xmlgraphics.apache.org> >
Objet : RE: AFP with custom font TTF generates space-letter-space 

 


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe. 

 

Hi,

 

What about using:

 



 

Thanks

 

From: Jocelin HEINEN (ext) mailto:jocelin.heinen.exter...@atos.net.INVALID> > 
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: AFP with custom font TTF generates space-letter-space 

 

Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer", 

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.


AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N

 

PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B 

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 

Thank you for your time.

Jo


fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform 
<http://www.w3.org/1999/XSL/Transform%22&

RE: AFP with custom font TTF generates space-letter-space

2023-04-28 Thread Jocelin HEINEN (ext)
Hi,

I tried to create an account again
[...]Self-serve Platform
There is already a pending Jira account request associated with this email 
address. Please wait for it to be processed

Hopefully I did not make a mistake on the project name

Thank you,



De : Jocelin HEINEN (ext) 
Envoyé : vendredi 28 avril 2023 09:08
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.


Hi,

I asked for xmlgraphics.
Maybe I made a mistake.
Should I do another self request?

Thank you,

De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 16:50
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.



Hi,



We didn’t get a jira request, what project did you ask it from on the form.



Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 15:27
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space



Yes sorry about that still don't have a Jira account but will do when I have 
and can create the issue



De : Glenn Adams mailto:gl...@skynav.com>>
Envoyé : jeudi 27 avril 2023 16:22
À : fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org> 
mailto:fop-users@xmlgraphics.apache.org>>
Objet : Re: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Also, please put any example XML into an attachment rather than inlined in the 
problem description or a comment.



Thanks.



On Thu, Apr 27, 2023 at 5:12 AM Simon Steiner 
mailto:simonsteiner1...@gmail.com>> wrote:

Hi,



You may need to open a bug in jira for us to check this.



Thanks



From: Jocelin HEINEN (ext) 
mailto:jocelin.heinen.exter...@atos.net.INVALID>>
Sent: 27 April 2023 11:03
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: AFP with custom font TTF generates space-letter-space



Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char).
I have also tried several others TTF but ended up with the exact same result.



 A r i a l  a r i a l N  a r i a l N B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11



De : Simon Steiner 
mailto:simonsteiner1...@gmail.com>>
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org> 
mailto:fop-users@xmlgraphics.apache.org>>
Objet : RE: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Hi,



What about using:







Thanks



From: Jocelin HEINEN (ext) 
mailto:jocelin.heinen.exter...@atos.net.INVALID>>
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: AFP with custom font TTF generates space-letter-space



Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer",

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.

AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N



PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 

Thank you for your time.

Jo

fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform;<http://www.w3.org/1999/XSL/Transform%22>>


solid 0.1mm black


http://www.w3.org/1999/XSL/Format;<http://www.w3.org/1999/XSL/Format%22>>









Arial
arialN
arialNB











Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci

RE: AFP with custom font TTF generates space-letter-space

2023-04-28 Thread Jocelin HEINEN (ext)
Hi,

I asked for xmlgraphics.
Maybe I made a mistake.
Should I do another self request?

Thank you,

De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 16:50
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.



Hi,



We didn’t get a jira request, what project did you ask it from on the form.



Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 15:27
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space



Yes sorry about that still don't have a Jira account but will do when I have 
and can create the issue



De : Glenn Adams mailto:gl...@skynav.com>>
Envoyé : jeudi 27 avril 2023 16:22
À : fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org> 
mailto:fop-users@xmlgraphics.apache.org>>
Objet : Re: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Also, please put any example XML into an attachment rather than inlined in the 
problem description or a comment.



Thanks.



On Thu, Apr 27, 2023 at 5:12 AM Simon Steiner 
mailto:simonsteiner1...@gmail.com>> wrote:

Hi,



You may need to open a bug in jira for us to check this.



Thanks



From: Jocelin HEINEN (ext) 
mailto:jocelin.heinen.exter...@atos.net.INVALID>>
Sent: 27 April 2023 11:03
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: AFP with custom font TTF generates space-letter-space



Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char).
I have also tried several others TTF but ended up with the exact same result.



 A r i a l  a r i a l N  a r i a l N B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11



De : Simon Steiner 
mailto:simonsteiner1...@gmail.com>>
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org> 
mailto:fop-users@xmlgraphics.apache.org>>
Objet : RE: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Hi,



What about using:







Thanks



From: Jocelin HEINEN (ext) 
mailto:jocelin.heinen.exter...@atos.net.INVALID>>
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: AFP with custom font TTF generates space-letter-space



Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer",

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.

AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N



PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 

Thank you for your time.

Jo

fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform;<http://www.w3.org/1999/XSL/Transform%22>>


solid 0.1mm black


http://www.w3.org/1999/XSL/Format;<http://www.w3.org/1999/XSL/Format%22>>









Arial
arialN
arialNB











Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pour

RE: AFP with custom font TTF generates space-letter-space

2023-04-27 Thread Simon Steiner
Hi,

 

We didn’t get a jira request, what project did you ask it from on the form.

 

Thanks

 

From: Jocelin HEINEN (ext)  
Sent: 27 April 2023 15:27
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space

 

Yes sorry about that still don't have a Jira account but will do when I have 
and can create the issue 

  _  

De : Glenn Adams mailto:gl...@skynav.com> >
Envoyé : jeudi 27 avril 2023 16:22
À : fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>  
mailto:fop-users@xmlgraphics.apache.org> >
Objet : Re: AFP with custom font TTF generates space-letter-space 

 


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe. 

 

Also, please put any example XML into an attachment rather than inlined in the 
problem description or a comment. 

 

Thanks.

 

On Thu, Apr 27, 2023 at 5:12 AM Simon Steiner mailto:simonsteiner1...@gmail.com> > wrote:

Hi,

 

You may need to open a bug in jira for us to check this.

 

Thanks

 

From: Jocelin HEINEN (ext) mailto:jocelin.heinen.exter...@atos.net.INVALID> > 
Sent: 27 April 2023 11:03
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: RE: AFP with custom font TTF generates space-letter-space 

 

Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char). 
I have also tried several others TTF but ended up with the exact same result.

 

 A r i a l  a r i a l N  a r i a l N B 

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

  _  

De : Simon Steiner mailto:simonsteiner1...@gmail.com> >
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>  
mailto:fop-users@xmlgraphics.apache.org> >
Objet : RE: AFP with custom font TTF generates space-letter-space 

 


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe. 

 

Hi,

 

What about using:

 



 

Thanks

 

From: Jocelin HEINEN (ext) mailto:jocelin.heinen.exter...@atos.net.INVALID> > 
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: AFP with custom font TTF generates space-letter-space 

 

Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer", 

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.


AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N

 

PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B 

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 

Thank you for your time.

Jo


fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform 
<http://www.w3.org/1999/XSL/Transform%22> ">


solid 0.1mm black


http://www.w3.org/1999/XSL/Format 
<http://www.w3.org/1999/XSL/Format%22> ">









Arial
arialN
arialNB







 

 

Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pourrait être tenu pour responsable des dommages engendrés par la transmission 
de l’un d’eux.

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If 
you receive this message in error, please notify the sender immediately and 
delete the message. Any use of the message in violation of its purpose, an

Re: AFP with custom font TTF generates space-letter-space

2023-04-27 Thread Glenn Adams
Pas de problème Jocelin. Juste une suggestion amicale.

G.

On Thu, Apr 27, 2023 at 9:27 AM Jocelin HEINEN (ext)
 wrote:

> Yes sorry about that still don't have a Jira account but will do when I
> have and can create the issue
> --
> *De :* Glenn Adams 
> *Envoyé :* jeudi 27 avril 2023 16:22
> *À :* fop-users@xmlgraphics.apache.org 
> *Objet :* Re: AFP with custom font TTF generates space-letter-space
>
> Caution: External email. Do not open attachments or click links, unless
> this email comes from a known sender and you know the content is safe.
>
> Also, please put any example XML into an attachment rather than inlined in
> the problem description or a comment.
>
> Thanks.
>
> On Thu, Apr 27, 2023 at 5:12 AM Simon Steiner 
> wrote:
>
> Hi,
>
>
>
> You may need to open a bug in jira for us to check this.
>
>
>
> Thanks
>
>
>
> *From:* Jocelin HEINEN (ext) 
> *Sent:* 27 April 2023 11:03
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* RE: AFP with custom font TTF generates space-letter-space
>
>
>
> Hi,
>
> Thank you for the quick answer.
> Unfortunately I did try a while ago that attribute and I did retry after
> your answer but still the same. (result below with position-by-char).
> I have also tried several others TTF but ended up with the exact same
> result.
>
>
>
>  A r i a l  a r i a l N  a r i a l N B
>
> ESC
>
> AMB 223
>
> AMI 236
>
> SCFL 1
>
> SVI 11
> --
>
> *De :* Simon Steiner 
> *Envoyé :* jeudi 27 avril 2023 11:50
> *À :* fop-users@xmlgraphics.apache.org 
> *Objet :* RE: AFP with custom font TTF generates space-letter-space
>
>
>
> *Caution:* External email. Do not open attachments or click links, unless
> this email comes from a known sender and you know the content is safe.
>
>
>
> Hi,
>
>
>
> What about using:
>
>
>
>  position-by-char="false">
>
>
>
> Thanks
>
>
>
> *From:* Jocelin HEINEN (ext) 
> *Sent:* 27 April 2023 10:40
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* AFP with custom font TTF generates space-letter-space
>
>
>
> Hi,
>
> I am producing an AFP file with Apache FOP 2.8 and java 17.
> In my fo.xconf file am using a custom font with the TTF format and I have
> using also a xsl file. (you can find them below)
>
> Altough then file renders properly when viewed with a tool like "Papyrus
> AFP viewer",
>
> I have noticed that the content has issues when analyzed using AFPexplorer.
>
> In the example below you see that the words are not generated words by
> words but space-letter-space which is causing problems during printing.
>
>
> *AFPexplorer*
>
> MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N
>
>
>
> PTX tag:
>  A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B
>
> ESC
>
> AMB 223
>
> AMI 236
>
> SCFL 1
>
> SVI 11
>
> I do not understand what is missing to produce an AFP file with the
> correct structure.
>
> Any help is welcome 
>
> Thank you for your time.
>
> Jo
>
>
> *fo.xconf*
>
> 
>
> 
>
> 
> .
> 
> ./
>
> true
> 
>
>
> 
> 
>
> 240
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
>
> *XSL file*
>
> 
>
> http://www.w3.org/1999/XSL/Transform;>
> 
> 
> solid 0.1mm black
> 
> 
> http://www.w3.org/1999/XSL/Format;>
> 
>  page-width="21cm" margin-top="1cm"
> margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
> 
> 
> 
> 
> 
> 
> 
> Arial
> arialN
> arialNB
> 
>
> 
> 
> 
> 
>
>
>
>
>
> Ce message et toutes les pièces jointes (ci-après le "message") sont
> établis à l’intention exclusive des destinataires désignés. Il contient des
> informations confidentielles et pouvant être protégé par le secret
> professionnel. Si vous recevez ce message par erreur, merci d'en avertir
> immédiatement l'expéditeur et de détruire le message. Toute utilisation de
> ce message non conforme à sa destination, toute diffusion ou toute
> publication, totale ou partielle, est interdite, sauf autorisation expresse
> de l’émetteur. L'internet ne garantissant pas l'intégrité de ce message
> lors de son acheminement, Atos (et ses filiales) décline(nt) toute
> responsabilité au titre de son contenu. Bien que ce message ait fait
> l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne peut
> garantir l’abs

RE: AFP with custom font TTF generates space-letter-space

2023-04-27 Thread Jocelin HEINEN (ext)
Yes sorry about that still don't have a Jira account but will do when I have 
and can create the issue

De : Glenn Adams 
Envoyé : jeudi 27 avril 2023 16:22
À : fop-users@xmlgraphics.apache.org 
Objet : Re: AFP with custom font TTF generates space-letter-space


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.


Also, please put any example XML into an attachment rather than inlined in the 
problem description or a comment.

Thanks.

On Thu, Apr 27, 2023 at 5:12 AM Simon Steiner 
mailto:simonsteiner1...@gmail.com>> wrote:

Hi,



You may need to open a bug in jira for us to check this.



Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 11:03
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: AFP with custom font TTF generates space-letter-space



Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char).
I have also tried several others TTF but ended up with the exact same result.



 A r i a l  a r i a l N  a r i a l N B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11



De : Simon Steiner 
mailto:simonsteiner1...@gmail.com>>
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org> 
mailto:fop-users@xmlgraphics.apache.org>>
Objet : RE: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Hi,



What about using:







Thanks



From: Jocelin HEINEN (ext) 
mailto:jocelin.heinen.exter...@atos.net.INVALID>>
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: AFP with custom font TTF generates space-letter-space



Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer",

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.

AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N



PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 

Thank you for your time.

Jo

fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform;<http://www.w3.org/1999/XSL/Transform%22>>


solid 0.1mm black


http://www.w3.org/1999/XSL/Format;<http://www.w3.org/1999/XSL/Format%22>>









Arial
arialN
arialNB











Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pourrait être tenu pour responsable des dommages engendrés par la transmission 
de l’un d’eux.

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If 
you receive this message in error, please notify the sender immediately and 
delete the message. Any use of the message in violation of its purpose, any 
dissemination or disclosure, either wholly or partially is strictly prohibited, 
unless it has been explicitly authorized by the sender. As its integrity cannot 
be secured on the internet, Atos and its subsidiaries decline any liability for 
the content of this message. Although the sender endeavors to maintain a 
computer virus-free network, the sender does not warrant that this transmission 
is virus-free and will not be liable for any damages resulting from any virus 
tr

Re: AFP with custom font TTF generates space-letter-space

2023-04-27 Thread Glenn Adams
Also, please put any example XML into an attachment rather than inlined in
the problem description or a comment.

Thanks.

On Thu, Apr 27, 2023 at 5:12 AM Simon Steiner 
wrote:

> Hi,
>
>
>
> You may need to open a bug in jira for us to check this.
>
>
>
> Thanks
>
>
>
> *From:* Jocelin HEINEN (ext) 
> *Sent:* 27 April 2023 11:03
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* RE: AFP with custom font TTF generates space-letter-space
>
>
>
> Hi,
>
> Thank you for the quick answer.
> Unfortunately I did try a while ago that attribute and I did retry after
> your answer but still the same. (result below with position-by-char).
> I have also tried several others TTF but ended up with the exact same
> result.
>
>
>
>  A r i a l  a r i a l N  a r i a l N B
>
> ESC
>
> AMB 223
>
> AMI 236
>
> SCFL 1
>
> SVI 11
> ------
>
> *De :* Simon Steiner 
> *Envoyé :* jeudi 27 avril 2023 11:50
> *À :* fop-users@xmlgraphics.apache.org 
> *Objet :* RE: AFP with custom font TTF generates space-letter-space
>
>
>
> *Caution:* External email. Do not open attachments or click links, unless
> this email comes from a known sender and you know the content is safe.
>
>
>
> Hi,
>
>
>
> What about using:
>
>
>
>  position-by-char="false">
>
>
>
> Thanks
>
>
>
> *From:* Jocelin HEINEN (ext) 
> *Sent:* 27 April 2023 10:40
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* AFP with custom font TTF generates space-letter-space
>
>
>
> Hi,
>
> I am producing an AFP file with Apache FOP 2.8 and java 17.
> In my fo.xconf file am using a custom font with the TTF format and I have
> using also a xsl file. (you can find them below)
>
> Altough then file renders properly when viewed with a tool like "Papyrus
> AFP viewer",
>
> I have noticed that the content has issues when analyzed using AFPexplorer.
>
> In the example below you see that the words are not generated words by
> words but space-letter-space which is causing problems during printing.
>
>
> *AFPexplorer*
>
> MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N
>
>
>
> PTX tag:
>  A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B
>
> ESC
>
> AMB 223
>
> AMI 236
>
> SCFL 1
>
> SVI 11
>
> I do not understand what is missing to produce an AFP file with the
> correct structure.
>
> Any help is welcome 
>
> Thank you for your time.
>
> Jo
>
>
> *fo.xconf*
>
> 
>
> 
>
> 
> .
> 
> ./
>
> true
> 
>
>
> 
> 
>
> 240
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
>
> *XSL file*
>
> 
>
> http://www.w3.org/1999/XSL/Transform;>
> 
> 
> solid 0.1mm black
> 
> 
> http://www.w3.org/1999/XSL/Format;>
> 
>  page-width="21cm" margin-top="1cm"
> margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
> 
> 
> 
> 
> 
> 
> 
> Arial
> arialN
> arialNB
> 
>
> 
> 
> 
> 
>
>
>
>
>
> Ce message et toutes les pièces jointes (ci-après le "message") sont
> établis à l’intention exclusive des destinataires désignés. Il contient des
> informations confidentielles et pouvant être protégé par le secret
> professionnel. Si vous recevez ce message par erreur, merci d'en avertir
> immédiatement l'expéditeur et de détruire le message. Toute utilisation de
> ce message non conforme à sa destination, toute diffusion ou toute
> publication, totale ou partielle, est interdite, sauf autorisation expresse
> de l’émetteur. L'internet ne garantissant pas l'intégrité de ce message
> lors de son acheminement, Atos (et ses filiales) décline(nt) toute
> responsabilité au titre de son contenu. Bien que ce message ait fait
> l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne peut
> garantir l’absence totale de logiciels malveillants dans son contenu et ne
> pourrait être tenu pour responsable des dommages engendrés par la
> transmission de l’un d’eux.
>
> This message and any attachments (the "message") are intended solely for
> the addressee(s). It contains confidential information, that may be
> privileged. If you receive this message in error, please notify the sender
> immediately and delete the message. Any use of the message in violation of
> its purpose, any dissemination or disclosure, either wholly or partially is
> strictly prohibited, unless it has been explicitly authorized by the
>

RE: AFP with custom font TTF generates space-letter-space

2023-04-27 Thread Jocelin HEINEN (ext)
Hi,

I did request the creation of a Jira account following your reply.
As soon as my account is granted I will open a bug to track this problem.

Thank you again Simon

De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 12:11
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.



Hi,



You may need to open a bug in jira for us to check this.



Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 11:03
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space



Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char).
I have also tried several others TTF but ended up with the exact same result.



 A r i a l  a r i a l N  a r i a l N B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11



De : Simon Steiner 
mailto:simonsteiner1...@gmail.com>>
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org> 
mailto:fop-users@xmlgraphics.apache.org>>
Objet : RE: AFP with custom font TTF generates space-letter-space




Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.




Hi,



What about using:







Thanks



From: Jocelin HEINEN (ext) 
mailto:jocelin.heinen.exter...@atos.net.INVALID>>
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: AFP with custom font TTF generates space-letter-space



Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer",

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.

AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N



PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 

Thank you for your time.

Jo

fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform;<http://www.w3.org/1999/XSL/Transform%22>>


solid 0.1mm black


http://www.w3.org/1999/XSL/Format;<http://www.w3.org/1999/XSL/Format%22>>









Arial
arialN
arialNB











Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pourrait être tenu pour responsable des dommages engendrés par la transmission 
de l’un d’eux.

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If 
you receive this message in error, please notify the sender immediately and 
delete the message. Any use of the message in violation of its purpose, any 
dissemination or disclosure, either wholly or partially is strictly prohibited, 
unless it has been explicitly authorized by the sender. As its integrity cannot 
be secured on the internet, Atos and its subsidiaries decline any liability for 
the content of this message. Although the sender endeavors to maintain a 
computer virus-free network, the sender does not warrant that this transmission 
is virus-free and will not be liable for any damages resulting from any virus 
transmitted.

Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et 

RE: AFP with custom font TTF generates space-letter-space

2023-04-27 Thread Simon Steiner
Hi,

 

You may need to open a bug in jira for us to check this.

 

Thanks

 

From: Jocelin HEINEN (ext)  
Sent: 27 April 2023 11:03
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP with custom font TTF generates space-letter-space 

 

Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char). 
I have also tried several others TTF but ended up with the exact same result.

 

 A r i a l  a r i a l N  a r i a l N B 

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

  _  

De : Simon Steiner mailto:simonsteiner1...@gmail.com> >
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>  
mailto:fop-users@xmlgraphics.apache.org> >
Objet : RE: AFP with custom font TTF generates space-letter-space 

 


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe. 

 

Hi,

 

What about using:

 



 

Thanks

 

From: Jocelin HEINEN (ext) mailto:jocelin.heinen.exter...@atos.net.INVALID> > 
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: AFP with custom font TTF generates space-letter-space 

 

Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer", 

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.


AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N

 

PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B 

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 

Thank you for your time.

Jo


fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform 
<http://www.w3.org/1999/XSL/Transform%22> ">


solid 0.1mm black


http://www.w3.org/1999/XSL/Format 
<http://www.w3.org/1999/XSL/Format%22> ">









Arial
arialN
arialNB







 

 

Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pourrait être tenu pour responsable des dommages engendrés par la transmission 
de l’un d’eux.

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If 
you receive this message in error, please notify the sender immediately and 
delete the message. Any use of the message in violation of its purpose, any 
dissemination or disclosure, either wholly or partially is strictly prohibited, 
unless it has been explicitly authorized by the sender. As its integrity cannot 
be secured on the internet, Atos and its subsidiaries decline any liability for 
the content of this message. Although the sender endeavors to maintain a 
computer virus-free network, the sender does not warrant that this transmission 
is virus-free and will not be liable for any damages resulting from any virus 
transmitted.

Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute respon

RE: AFP with custom font TTF generates space-letter-space

2023-04-27 Thread Jocelin HEINEN (ext)
Hi,

Thank you for the quick answer.
Unfortunately I did try a while ago that attribute and I did retry after your 
answer but still the same. (result below with position-by-char).
I have also tried several others TTF but ended up with the exact same result.

 A r i a l  a r i a l N  a r i a l N B
ESC
AMB   223
AMI   236
SCFL  1
SVI   11

De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 11:50
À : fop-users@xmlgraphics.apache.org 
Objet : RE: AFP with custom font TTF generates space-letter-space


Caution: External email. Do not open attachments or click links, unless this 
email comes from a known sender and you know the content is safe.



Hi,



What about using:







Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org
Subject: AFP with custom font TTF generates space-letter-space



Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer",

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.

AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N



PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 


Thank you for your time.

Jo

fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform;<http://www.w3.org/1999/XSL/Transform%22>>


solid 0.1mm black


http://www.w3.org/1999/XSL/Format;<http://www.w3.org/1999/XSL/Format%22>>









Arial
arialN
arialNB











Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pourrait être tenu pour responsable des dommages engendrés par la transmission 
de l’un d’eux.

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If 
you receive this message in error, please notify the sender immediately and 
delete the message. Any use of the message in violation of its purpose, any 
dissemination or disclosure, either wholly or partially is strictly prohibited, 
unless it has been explicitly authorized by the sender. As its integrity cannot 
be secured on the internet, Atos and its subsidiaries decline any liability for 
the content of this message. Although the sender endeavors to maintain a 
computer virus-free network, the sender does not warrant that this transmission 
is virus-free and will not be liable for any damages resulting from any virus 
transmitted.

Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pourrait être tenu pour responsable des dommages engendrés par la transmission 
de l’un d’eux.

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If 
you receive this message in error, p

RE: AFP with custom font TTF generates space-letter-space

2023-04-27 Thread Simon Steiner
Hi,

 

What about using:

 



 

Thanks

 

From: Jocelin HEINEN (ext)  
Sent: 27 April 2023 10:40
To: fop-users@xmlgraphics.apache.org
Subject: AFP with custom font TTF generates space-letter-space 

 

Hi,

I am producing an AFP file with Apache FOP 2.8 and java 17.
In my fo.xconf file am using a custom font with the TTF format and I have using 
also a xsl file. (you can find them below)

Altough then file renders properly when viewed with a tool like "Papyrus AFP 
viewer", 

I have noticed that the content has issues when analyzed using AFPexplorer.

In the example below you see that the words are not generated words by words 
but space-letter-space which is causing problems during printing.


AFPexplorer

MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N

 

PTX tag:
 A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B 

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

I do not understand what is missing to produce an AFP file with the correct 
structure.

Any help is welcome 



Thank you for your time.

Jo


fo.xconf






.

./

true






240

























XSL file



http://www.w3.org/1999/XSL/Transform 
 ">


solid 0.1mm black


http://www.w3.org/1999/XSL/Format 
 ">









Arial
arialN
arialNB







 

 

Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous 
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et 
de détruire le message. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est 
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant 
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) 
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message 
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne 
pourrait être tenu pour responsable des dommages engendrés par la transmission 
de l’un d’eux.

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If 
you receive this message in error, please notify the sender immediately and 
delete the message. Any use of the message in violation of its purpose, any 
dissemination or disclosure, either wholly or partially is strictly prohibited, 
unless it has been explicitly authorized by the sender. As its integrity cannot 
be secured on the internet, Atos and its subsidiaries decline any liability for 
the content of this message. Although the sender endeavors to maintain a 
computer virus-free network, the sender does not warrant that this transmission 
is virus-free and will not be liable for any damages resulting from any virus 
transmitted.



Re: Image not included in pdf

2023-01-31 Thread Anil Pinto
I will play around with the temp folder configuration for Tomcat and see if that impacts the cache behavior I'm seeing. I can live with turning off the cache as Simon pointed out, for now, but would like to find out more about the true cause of this behavior I will post any relevant success I find in this matter. Thank you for the pointers Luca and Simon Get Outlook for Android

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



Re: Image not included in pdf

2023-01-31 Thread Luca Bellonda
Maybe it is a permission problem or the default tmp folder for this kind of
applications is not configured (enviroment variables TMP or TEMP) or the
start batch points to the wrong location. You can use some utility to check
the information (for example Sysinternals). If you are able to understand
the cause maybe you can update the Tomcat start script.



Il giorno lun 30 gen 2023 alle ore 22:05  ha
scritto:

> Hi,
>
>
>
> Maybe the tmp directory doesn’t exist.
>
>
>
> Thanks
>
>
>
> *From:* Anil Pinto 
> *Sent:* 30 January 2023 20:22
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Image not included in pdf
>
>
>
> Hello Simon,
>
> So, adding that code statement resolved that error message and the image
> now shows.
>
> Can you think of anything that's changed lately that needed this specific
> step to be performed (outside the IDE env coz it works without this line
> there)?
>
> Windows 11, Java 19, Tomcat 10.0.16, FOP 2.8 is the stack
>
> Appreciate your prompt response with a solution!
>
> Thank you,
>
> Anil
>
>
>
> On 1/30/2023 12:38 AM, Anil Pinto wrote:
>
> I can most definitely try that. I will do it the first chance i get and
> let you know.
>
>
>
> So just once during or before FOP initialization would be a good place to
> add that code?
>
>
>
> Get Outlook for Android <https://aka.ms/AAb9ysg>
>
> - To
> unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For
> additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


RE: Image not included in pdf

2023-01-30 Thread simonsteiner1984
Hi,

 

Maybe the tmp directory doesn’t exist.

 

Thanks

 

From: Anil Pinto  
Sent: 30 January 2023 20:22
To: fop-users@xmlgraphics.apache.org
Subject: Re: Image not included in pdf

 

Hello Simon,

So, adding that code statement resolved that error message and the image now 
shows. 

Can you think of anything that's changed lately that needed this specific step 
to be performed (outside the IDE env coz it works without this line there)?

Windows 11, Java 19, Tomcat 10.0.16, FOP 2.8 is the stack

Appreciate your prompt response with a solution!

Thank you,

Anil

 

On 1/30/2023 12:38 AM, Anil Pinto wrote:

I can most definitely try that. I will do it the first chance i get and let you 
know. 

 

So just once during or before FOP initialization would be a good place to add 
that code?

 

Get Outlook for Android <https://aka.ms/AAb9ysg> 

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



Re: Image not included in pdf

2023-01-30 Thread Anil Pinto

Hello Simon,

So, adding that code statement resolved that error message and the image 
now shows.


Can you think of anything that's changed lately that needed this 
specific step to be performed (outside the IDE env coz it works without 
this line there)?


Windows 11, Java 19, Tomcat 10.0.16, FOP 2.8 is the stack

Appreciate your prompt response with a solution!

Thank you,

Anil


On 1/30/2023 12:38 AM, Anil Pinto wrote:
I can most definitely try that. I will do it the first chance i get 
and let you know.


So just once during or before FOP initialization would be a good place 
to add that code?


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

Re: Image not included in pdf

2023-01-30 Thread Anil Pinto
I can most definitely try that. I will do it the first chance i get and let you know. So just once during or before FOP initialization would be a good place to add that code?Get Outlook for Android

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



RE: Image not included in pdf

2023-01-30 Thread Simon Steiner
Hi,

 

What if you call before fop:

ImageIO.setUseCache(false);

 

Thanks

 

From: Anil Pinto  
Sent: 30 January 2023 08:09
To: fop-users@xmlgraphics.apache.org
Subject: Re: Image not included in pdf

 

No there's plenty of space and the strange part is if I run a similar setup 
through my IntelliJ IDE and SmartTomcat plugin it doesn't complain. I wish 
there was some more information reported in a trace. 

 

The only difference I could see is that the SmartTomcat folder is under the 
Windows 11  Users folder. The regular Tomcat setup is in a normal folder under 
the C drive. 

 

Thanks for responding! 

 

Get Outlook for Android <https://aka.ms/AAb9ysg> 

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



Re: Image not included in pdf

2023-01-30 Thread Anil Pinto
No there's plenty of space and the strange part is if I run a similar setup through my IntelliJ IDE and SmartTomcat plugin it doesn't complain. I wish there was some more information reported in a trace. The only difference I could see is that the SmartTomcat folder is under the Windows 11  Users folder. The regular Tomcat setup is in a normal folder under the C drive. Thanks for responding! Get Outlook for Android

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



RE: Image not included in pdf

2023-01-30 Thread Simon Steiner
Hi,

 

Are you out of disk space?

 

Thanks

 

From: Anil Pinto  
Sent: 30 January 2023 03:23
To: FOP Mailing List 
Subject: Image not included in pdf

 

Hello,

When running FOP 2.8 within a web application in Tomcat the image referenced in 
the XSL doesn't end up showing in the created PDF document. The following error 
shows on the Tomcat console

SEVERE [pool-14-thread-1] 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createImageSource
 Unable to create ImageInputStream for InputStream from system identifier 
'<<>>'  (Can't create cache 
file!)

SEVERE [pool-14-thread-1] org.apache.fop.apps.FOUserAgent.processEvent Image 
not found. URI: logo.gif. (No context info available)

Is this an access issue?

Any pointers to address this is greatly appreciated.

Thanks,

Anil Pinto

 



RE: 'Build FOP' instructions incomplete

2023-01-13 Thread Simon Steiner
Hi,

 

I created you a jira account

 

Thanks

 

From: Dave Roxburgh  
Sent: 13 January 2023 11:10
To: fop-users@xmlgraphics.apache.org
Subject: 'Build FOP' instructions incomplete

 

Hi all,

 

TL;DR: The 'Build FOP' instructions page is incomplete - is it worth
reporting a JIRA? How do I get a JIRA account?

 

I'm just starting with FOP and followed the build instructions at:
https://xmlgraphics.apache.org/fop/2.8/compiling.html

 

The ant build failed due to a missing maven dependency which isn't mentioned
on the page. Is that worth a JIRA ticket to get that fixed? I've done a
search of JIRA and don't see an existing ticket. I've checked out the docs
and I would need to apply for a JIRA account (which I will need later
anyway) - how do I apply?

 

Thanks,

Dave



RE: pdf-images injecting PDF as image with gradient fill component - gradient displays incorrectly when scaling image

2022-11-30 Thread Mark Gibson
Hi,

Does anyone have any ideas on this?  Would be good to get some indication, even 
if it’s can’t fix.

Thanks
Mark

From: Mark Gibson 
Sent: 17 November 2022 23:33
To: fop-users@xmlgraphics.apache.org
Subject: pdf-images injecting PDF as image with gradient fill component - 
gradient displays incorrectly when scaling image

Hi

I’ve been testing with FOP 2.7 and 2.8, trying to inject a PDF containing an 
image in to the rendered PDF, using fo:external-graphic

The pdf image has a gradient fill component.

When scaling the fo:external-graphic using width=”x%”, the gradient fill is not 
displayed properly.

I’ve created https://issues.apache.org/jira/browse/FOP-3108 with all the 
details, including a very small reproduction.

I don’t think I’m doing anything wrong, but please feel free to disabuse me of 
that notion.  All help and suggestions welcomed.

Thanks
Mark



Re: Work-around for issue FOP-3042

2022-11-30 Thread Per Cederberg
Found it now, thanks!

Br,

/Per

ons 30 nov. 2022 kl. 11:07 skrev Simon Steiner :

> Hi,
>
>
>
> Don’t you have jira login with username percederberg
>
>
>
> Thanks
>
>
>
> *From:* Per Cederberg 
> *Sent:* 30 November 2022 09:59
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Work-around for issue FOP-3042
>
>
>
> This is a comment/work-around for FOP-3042 (as I have no JIRA account).
>
>
>
> By turning off support for complex scripts, the PDF renders correctly (and
> issue is "resolved"). Verified in FOP 2.6 & 2.8, both of which still break
> if complex scripts are enabled. Example configuration line to enable this
> work-around:
>
>
>
> 
>
>
>
> Don't know why this is, but I guess it might explain why I never managed
> to replicate this issue in Batik (without FOP).
>
>
>
> Best regards,
>
>
>
> /Per
>
>
>


RE: Work-around for issue FOP-3042

2022-11-30 Thread Simon Steiner
Hi,

 

Don’t you have jira login with username percederberg

 

Thanks

 

From: Per Cederberg  
Sent: 30 November 2022 09:59
To: fop-users@xmlgraphics.apache.org
Subject: Work-around for issue FOP-3042

 

This is a comment/work-around for FOP-3042 (as I have no JIRA account).

 

By turning off support for complex scripts, the PDF renders correctly (and 
issue is "resolved"). Verified in FOP 2.6 & 2.8, both of which still break if 
complex scripts are enabled. Example configuration line to enable this 
work-around:

 



 

Don't know why this is, but I guess it might explain why I never managed to 
replicate this issue in Batik (without FOP).

 

Best regards,

 

/Per

 



Re: RE: xmlgraphics-fop italic function for image/tiff file

2022-11-24 Thread 孤王
Dear Doctor,


Thank you so much for you advise. as there are not real italic font in our 
company. we changed the code same as pdf, then let the ps file can support 
italic. but not found a idea in tiff. So kindly May we consult doctor if there 
is any good idea for this.


Thanks a lot.


best regards doctor.



---Original---
From: "Simon Steiner"

RE: xmlgraphics-fop italic function for image/tiff file

2022-11-23 Thread Simon Steiner
Hi,

 

FOP-2633 is only for PDF, for non PDF can you use a real italic font?

 

Thanks

 

From: 孤王 <1289495...@qq.com.INVALID> 
Sent: 23 November 2022 01:41
To: fop-users 
Subject: xmlgraphics-fop italic function for image/tiff file

 

Dear FOP docters,

  I am a student of FOP. Kindly I see the development ID FOP-2633 have 
developed the italic function of fonts for PDF files. Kindly May I ask some 
advise of tiff files generate italic font.

 

Million Thanks FOP docters.



RE: FOP 2.8 GitHub

2022-11-16 Thread Simon Steiner
Hi,

Should be ok now

Thanks

-Original Message-
From: Simon Steiner  
Sent: 15 November 2022 09:17
To: fop-users@xmlgraphics.apache.org
Subject: RE: FOP 2.8 GitHub

Hi,

I have opened a infra request to resolve this.

Thanks

-Original Message-
From: Julien Lacour  
Sent: 15 November 2022 09:15
To: fop-users@xmlgraphics.apache.org
Subject: FOP 2.8 GitHub

Hello,

I've seen on Apache website that FOP 2.8 is available, I would like to access 
the versioned source code on the GitHub page, unfortunately there's no such 
branch there.
Are you aware of the problem? Is it normal? (maybe it takes a few days)

Regards,
Julien

-
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: FOP 2.8 GitHub

2022-11-15 Thread Simon Steiner
Hi,

I have opened a infra request to resolve this.

Thanks

-Original Message-
From: Julien Lacour  
Sent: 15 November 2022 09:15
To: fop-users@xmlgraphics.apache.org
Subject: FOP 2.8 GitHub

Hello,

I've seen on Apache website that FOP 2.8 is available, I would like to access 
the versioned source code on the GitHub page, unfortunately there's no such 
branch there.
Are you aware of the problem? Is it normal? (maybe it takes a few days)

Regards,
Julien

-
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: No FOP source or javadoc files in Maven repo since 2.4

2022-09-20 Thread Simon Steiner
Hi,

 

Events are in:

https://repo1.maven.org/maven2/org/apache/xmlgraphics/fop-events/2.7/

 

Thanks

 

From: David Law  
Sent: 19 September 2022 10:42
To: fop-users@xmlgraphics.apache.org
Subject: Re: No FOP source or javadoc files in Maven repo since 2.4

 

Hi,

looking @ which packages are included, there is one difference:
org.apache.fop.events.model is missing from the fop-core distro.

Rgds,
DaveLaw

On 29/04/2022 07:48, Simon Steiner wrote:

Hi,

 

Can you use:

https://repo1.maven.org/maven2/org/apache/xmlgraphics/fop-core/2.7/

 

Thanks

 

From: Mark Gibson  <mailto:mark.gib...@staff.bluematrix.com> 
 
Sent: 28 April 2022 22:56
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: No FOP source or javadoc files in Maven repo since 2.4

 

Hi

 

FOP 2.3 was published to the public Maven repo with sources and javadocs.  But 
from 2.4 onwards, only the jar is published.  Is there any intentional reason 
for this?  Could we please add the source and Javadoc artefacts back to maven?

 

Thanks

Mark

 



Re: No FOP source or javadoc files in Maven repo since 2.4

2022-09-20 Thread David Law

Hi,

looking @ which packages are included, there is one difference:
org.apache.fop.events.model is missing from the fop-core distro.

Rgds,
DaveLaw

On 29/04/2022 07:48, Simon Steiner wrote:


Hi,

Can you use:

https://repo1.maven.org/maven2/org/apache/xmlgraphics/fop-core/2.7/

Thanks

*From:*Mark Gibson 
*Sent:* 28 April 2022 22:56
*To:* fop-users@xmlgraphics.apache.org
*Subject:* No FOP source or javadoc files in Maven repo since 2.4

Hi

FOP 2.3 was published to the public Maven repo with sources and 
javadocs.  But from 2.4 onwards, only the jar is published.  Is there 
any intentional reason for this?  Could we please add the source and 
Javadoc artefacts back to maven?


Thanks

Mark



Re: Code block syntax highlighting

2022-09-20 Thread David Law

Would ANTLR & their Grammars for Java, SQL, etc. make sense for this?
https://www.antlr.org/
https://github.com/antlr/grammars-v4

All the best,
DaveLaw

On 19/09/2022 10:07, Andreas Reichel wrote:

Klaus and Team,

thank you for your feedback.
I have actually figured out something working nicely:

1) based on Pygments
2) use the XSLFO Pygments formatter (can be installed from PIP, the 
code is fairly simple and straight forward)

3) from your XML document containing the Code Block:
a) iterate through all code blocks
        b) call Pygments with the XSLFO Formatter and format the block 
into a temporary XML file (your FO styled codeblock)
        c) when this succeeded, add to the Code Block node a childnode 
with the absolute path to this temporary XML file
4) amend your XSL file and for each code-block use the XSL:COPY-OF 
directive to insert the FO formatted content of the temporary XML file 
into the final PDF directly. (Apply a XSL:CHOOSE, when child exists 
then XSL:COPY-OF otherwise XSL:VALUE.)

5) clean up all the temporary files from step 3)

Caveats:
a) you need to call Python Pygmentize from Java using 
ProcessBuilder/Process (and react to failures)
b) Pygments understanding of the code is limited and the highlighting 
can be questionable especially for SQL. However, I will use my own SQL 
Formatter to properly format complex SQL in FO


Cheers!



Re: Code block syntax highlighting

2022-09-20 Thread Dave The Dane

Cool.

On 20/09/2022 08:58, Andreas Reichel wrote:

On Tue, 2022-09-20 at 08:10 +0200, Dave The Dane wrote:

Can it handle the WITH Clause


Please see 
https://manticore-projects.com/JSQLFormatter/samples.html#select
(The structural formatting is done by JSQLFormatter, although the 
highlighting is still done by Pygments to ease website publishing.)


Cheers
Andreas


Re: Code block syntax highlighting

2022-09-20 Thread Andreas Reichel
On Tue, 2022-09-20 at 08:10 +0200, Dave The Dane wrote:
> Can it handle the WITH Clause

Please
see https://manticore-projects.com/JSQLFormatter/samples.html#select
(The structural formatting is done by JSQLFormatter, although the
highlighting is still done by Pygments to ease website publishing.)

Cheers
Andreas


Re: Code block syntax highlighting

2022-09-20 Thread Andreas Reichel
Even nested WITHs (although the heavy lifting is done by JSQLParser,
where I am only a strong contributor for).

A good test for the Highlighter is this one, Pygments gets it totally
wrong:
SELECT Overlaps( overlaps ) AS overlaps
FROM overlaps.overlaps overlaps
WHERE overlaps = 'overlaps'
AND (CURRENT_TIME, INTERVAL '1' HOUR) OVERLAPS (CURRENT_TIME, INTERVAL -'1' 
HOUR)

Cheers

Andreas

On Tue, 2022-09-20 at 08:10 +0200, Dave The Dane wrote:
> Can it handle the WITH Clause?
> ...probably the most unknown tool for structuring SQL Queries!
> 
> DaveLaw,
> Subquery-Factoring Evangelist 
> 
> On 20/09/2022 07:45, Andreas Reichel wrote:
>  
> > 
> > Thanks Dave.  
> > 
> > I have written a good SQL
> > Formatter https://manticore-projects.com/JSQLFormatter/index.html
> > 
> > I only will need to add xsl-fo output which is easy. 
> > 
> > All the best
> > Andreas
> > 
> > On 20 Sept 2022 06:01, Dave The Dane  wrote:
> >  
> > > Would ANTLR & their Grammars for Java, SQL, etc. make sense for
> > > this?
> > > https://www.antlr.org/
> > > https://github.com/antlr/grammars-v4
> > > 
> > > All the best,
> > > DaveLaw
> > > 
> > > On 19/09/2022 10:07, Andreas Reichel wrote:
> > > 
> > > > Klaus and Team,
> > > > 
> > > > thank you for your feedback.
> > > > I have actually figured out something working nicely:
> > > > 
> > > > 1) based on Pygments
> > > > 2) use the XSLFO Pygments formatter (can be installed from PIP,
> > > > the code is fairly simple and straight forward)
> > > > 3) from your XML document containing the Code Block:
> > > > a) iterate through all code blocks
> > > >         b) call Pygments with the XSLFO Formatter and format
> > > > the block into a temporary XML file (your FO styled codeblock)
> > > >         c) when this succeeded, add to the Code Block node a
> > > > childnode with the absolute path to this temporary XML file
> > > > 4) amend your XSL file and for each code-block use the
> > > > XSL:COPY-OF directive to insert the FO formatted content of the
> > > > temporary XML file into the final PDF directly. (Apply a
> > > > XSL:CHOOSE, when child exists then XSL:COPY-OF otherwise
> > > > XSL:VALUE.)
> > > > 5) clean up all the temporary files from step 3)
> > > > 
> > > > Caveats: 
> > > > a) you need to call Python Pygmentize from Java using
> > > > ProcessBuilder/Process (and react to failures)
> > > > b) Pygments understanding of the code is limited and the
> > > > highlighting can be questionable especially for SQL. However, I
> > > > will use my own SQL Formatter to properly format complex SQL in
> > > > FO
> > > > 
> > > > Cheers!
> > > > 
> > > > 
> > > 
> >  
> > ---
> > -- To unsubscribe, e-mail:
> > fop-users-unsubscr...@xmlgraphics.apache.org For additional
> > commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>  



Re: Code block syntax highlighting

2022-09-20 Thread Dave The Dane

Can it handle the WITH Clause?
...probably the most unknown tool for structuring SQL Queries!

DaveLaw,
Subquery-Factoring Evangelist 

On 20/09/2022 07:45, Andreas Reichel wrote:

Thanks Dave.

I have written a good SQL Formatter 
https://manticore-projects.com/JSQLFormatter/index.html


I only will need to add xsl-fo output which is easy.

All the best
Andreas

On 20 Sept 2022 06:01, Dave The Dane  
wrote:


Would ANTLR & their Grammars for Java, SQL, etc. make sense for this?
https://www.antlr.org/
https://github.com/antlr/grammars-v4

All the best,
DaveLaw

On 19/09/2022 10:07, Andreas Reichel wrote:

Klaus and Team,

thank you for your feedback.
I have actually figured out something working nicely:

1) based on Pygments
2) use the XSLFO Pygments formatter (can be installed from
PIP, the code is fairly simple and straight forward)
3) from your XML document containing the Code Block:
a) iterate through all code blocks
        b) call Pygments with the XSLFO Formatter and format
the block into a temporary XML file (your FO styled codeblock)
        c) when this succeeded, add to the Code Block node a
childnode with the absolute path to this temporary XML file
4) amend your XSL file and for each code-block use the
XSL:COPY-OF directive to insert the FO formatted content of
the temporary XML file into the final PDF directly. (Apply a
XSL:CHOOSE, when child exists then XSL:COPY-OF otherwise
XSL:VALUE.)
5) clean up all the temporary files from step 3)

Caveats:
a) you need to call Python Pygmentize from Java using
ProcessBuilder/Process (and react to failures)
b) Pygments understanding of the code is limited and the
highlighting can be questionable especially for SQL. However,
I will use my own SQL Formatter to properly format complex SQL
in FO

Cheers!



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


Re: Code block syntax highlighting

2022-09-19 Thread Andreas Reichel
Thanks Dave. I have written a good SQL Formatter https://manticore-projects.com/JSQLFormatter/index.htmlI only will need to add xsl-fo output which is easy. All the bestAndreasOn 20 Sept 2022 06:01, Dave The Dane  wrote:
Would ANTLR & their Grammars for Java, SQL, etc. make sense for
this?
https://www.antlr.org/
https://github.com/antlr/grammars-v4

All the best,
DaveLaw

On 19/09/2022 10:07, Andreas Reichel
  wrote:


  
  Klaus and Team,
  
  
  thank you for your feedback.
  I have actually figured out something working nicely:
  
  
  1) based on Pygments
  2) use the XSLFO Pygments formatter (can be installed from
PIP, the code is fairly simple and straight forward)
  3) from your XML document containing the Code Block:
  	a)
iterate through all code blocks
          b) call Pygments with the XSLFO Formatter and format
the block into a temporary XML file (your FO styled codeblock)
          c) when this succeeded, add to the Code Block node a
childnode with the absolute path to this temporary XML file
  4) amend your XSL file and for each code-block use the
XSL:COPY-OF directive to insert the FO formatted content of the
temporary XML file into the final PDF directly. (Apply a
XSL:CHOOSE, when child exists then XSL:COPY-OF otherwise
XSL:VALUE.)
  5) clean up all the temporary files from step 3)
  
  
  Caveats: 
  a) you need to call Python Pygmentize from Java using
ProcessBuilder/Process (and react to failures)
  b) Pygments understanding of the code is limited and the
highlighting can be questionable especially for SQL. However, I
will use my own SQL Formatter to properly format complex SQL in
FO
  
  
  Cheers!
  
  
  	
  


  


Re: Code block syntax highlighting

2022-09-19 Thread Dave The Dane

Would ANTLR & their Grammars for Java, SQL, etc. make sense for this?
https://www.antlr.org/
https://github.com/antlr/grammars-v4

All the best,
DaveLaw

On 19/09/2022 10:07, Andreas Reichel wrote:

Klaus and Team,

thank you for your feedback.
I have actually figured out something working nicely:

1) based on Pygments
2) use the XSLFO Pygments formatter (can be installed from PIP, the 
code is fairly simple and straight forward)

3) from your XML document containing the Code Block:
a) iterate through all code blocks
        b) call Pygments with the XSLFO Formatter and format the block 
into a temporary XML file (your FO styled codeblock)
        c) when this succeeded, add to the Code Block node a childnode 
with the absolute path to this temporary XML file
4) amend your XSL file and for each code-block use the XSL:COPY-OF 
directive to insert the FO formatted content of the temporary XML file 
into the final PDF directly. (Apply a XSL:CHOOSE, when child exists 
then XSL:COPY-OF otherwise XSL:VALUE.)

5) clean up all the temporary files from step 3)

Caveats:
a) you need to call Python Pygmentize from Java using 
ProcessBuilder/Process (and react to failures)
b) Pygments understanding of the code is limited and the highlighting 
can be questionable especially for SQL. However, I will use my own SQL 
Formatter to properly format complex SQL in FO


Cheers!



Re: How do I style an embedded in the text from the XML input?

2022-09-19 Thread Andreas Reichel
Hi Markus.

I have done something similar, under the following assumptions:

1) the node "text" contains HTML 3.2 formatted text with tags like
, ,  
2) inside the XSL I call a xhtml2fo.xsl like this:




   


("description" is my equivalent of your "text" node).

Attention: when you want to deploy xhtml2fo.xsl inside your JAR, you
will need to hand over an URL resolver to FOP:
// Setup XSLT
TransformerFactory factory = TransformerFactory.newInstance();
//factory.setURIResolver(
//new URIResolver() {
//@Override
//public Source resolve(String href, String base) throws 
TransformerException {
//return new 
StreamSource(ETLBox.class.getClassLoader().getResourceAsStream(href));
//}
//});

I have the xhtml2fo.xsl, maybe it will help you.
Cheers
Andreas

On Mon, 2022-09-19 at 16:37 +0200, mailinglists wrote:
> I have the following XML (just a snippet, but should be enough).
>  There is exactly one  matching the root. Everything is
> taken from there. A document can contain many sections and a section
> can contain many textblocks.
> 
> Note: in the example given the section/textblocks/textblock/text
> contains ...
> 
> 
> 
> 
> Contract Validity
> 
> 
> 
> 
> 
> This contract is valid for a
> period of 18 months and the  be 7,400.00.
> 
> 
> 
> 
> false
> 
> 
> I certify I have ... agree to the above.
> 
> 
> 
> 
> 
> and the respective fragment from the XSL
> 
> 
>  decoration="underline">
>                 
>                 
> 
>                 
>                 
> 
> 
> 
> 
> 
> How can I replace the  by the proper 
> tags during processing?
> 
> I have been reading up on xsl:apply-templates but have only been
> successful to *additionally* show the text “18 months” in bold either
> before or after the selected text, but never replacing the
> "18 months” inline by bolded text. However I was
> able to get rid of the strong-tags so that the text in the PDF just
> read “...period of 18 months and the...” without any visible
> boldness.
> 
> Thanks a lot
> ---markus---
> 
> 



xhtml2fo.xsl
Description: application/xslt

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

Re: Code block syntax highlighting

2022-09-19 Thread Andreas Reichel
Klaus and Team,

thank you for your feedback.
I have actually figured out something working nicely:

1) based on Pygments
2) use the XSLFO Pygments formatter (can be installed from PIP, the
code is fairly simple and straight forward)
3) from your XML document containing the Code Block:
 a) iterate through all code blocks
        b) call Pygments with the XSLFO Formatter and format the block
into a temporary XML file (your FO styled codeblock)
        c) when this succeeded, add to the Code Block node a childnode
with the absolute path to this temporary XML file
4) amend your XSL file and for each code-block use the XSL:COPY-OF
directive to insert the FO formatted content of the temporary XML file
into the final PDF directly. (Apply a XSL:CHOOSE, when child exists
then XSL:COPY-OF otherwise XSL:VALUE.)
5) clean up all the temporary files from step 3)

Caveats: 
a) you need to call Python Pygmentize from Java using
ProcessBuilder/Process (and react to failures)
b) Pygments understanding of the code is limited and the highlighting
can be questionable especially for SQL. However, I will use my own SQL
Formatter to properly format complex SQL in FO

Cheers!

 


Re: Code block syntax highlighting

2022-09-19 Thread Klaus Malorny

On 16.09.22 14:44, Andreas Reichel wrote:

Greetings and compliments of the day.

We use FOP successfully to generate nice PDF files for our technical 
documentation.
Although there is one more requirement: printing formatted code blocks 
with syntax highlighting (e. g. SQL or Java code snippets). What would 
be the best way to achieve that?


I have tried to convert the SQL/Java code to SVG via Pygments and to 
insert it as EXTERNAL_GRAPHICS. This works in general, but I cant 
control the sizing. Each EXTERNAL_GRAPHICS will have a different size of 
characters based on the size of the graphics.


Does anyone know a better way or has done something similar already? I 
would appreciate any idea or hint.

Thank you in advance and best regards

Andreas



Hi Andreas,

I haven't had such a problem yet, so I don't know tools that perform the 
actual syntax highlighting. But what I do not understand is why you are 
using SVG and external graphics. FO is capable of doing preformatted 
text and also of colorizing text. So no need to go that path. Since you 
using scripts anyway (as far as I understand), it shouldn't be too 
complicated to generated XML fragments to be inserted into you document.


Regards,

Klaus



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



Re: PDF-Images - When scaling embedded PDFs with links, the link position is not moved/scaled in relation to image scaling.

2022-09-16 Thread David Law

Mark,

it certainly looks very suspicious.

Could it be that some Margins, Borders or Padding are muddying the waters?

Maybe its worth trying...

    

...and...

    

...to see how large the areas are?

All the best,
DaveLaw


On 17/08/2022 00:31, Mark Gibson wrote:


Hi

When using PDF-Images to embed a PDF with links, when scaling the 
image, the links are not scaled/repositioned according to the image 
scaling.


I’ve attached two “fo” files, the image with links to be embedded, and 
their resultant PDFs.


Wondering if we’re missing some magic XSL-FO incantation, or whether 
this is a bug.


Thanks

Mark


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


RE: PDF-Images - When scaling embedded PDFs with links, the link position is not moved/scaled in relation to image scaling.

2022-09-16 Thread Mark Gibson
Bumping this, in case anyone can help.  Otherwise I'll enter a Jira next week.

From: Mark Gibson 
Sent: 16 August 2022 23:31
To: fop-users@xmlgraphics.apache.org
Subject: PDF-Images - When scaling embedded PDFs with links, the link position 
is not moved/scaled in relation to image scaling.

Hi

When using PDF-Images to embed a PDF with links, when scaling the image, the 
links are not scaled/repositioned according to the image scaling.

I've attached two "fo" files, the image with links to be embedded, and their 
resultant PDFs.

Wondering if we're missing some magic XSL-FO incantation, or whether this is a 
bug.

Thanks
Mark


RE: Is Apache FOP vulnerable to CVE-2022-34169?

2022-09-01 Thread Simon Steiner
Hi,

We have:
https://issues.apache.org/jira/browse/FOP-3085

Thanks

-Original Message-
From: Philip Trykacz  
Sent: 01 September 2022 09:33
To: fop-users@xmlgraphics.apache.org
Subject: Is Apache FOP vulnerable to CVE-2022-34169?

Hi all,

I've the following issue:
I am using the Apache FOP library to generate a PDF file in my software.
As far as I understand, the current version of Apache FOP library depends on 
Xalan 2.7.2 for the handling of XSLT files, which is vulnerable to 
CVE-2022-34169.
A cutout from the dependency graph is attached to the end of the mail.

Now my question:
In my software, the XSLT file is loaded from disk, and hence, can be 
manipulated by an user(or an attacker).
If I use Apache FOP, and the XSLT file can theoretically be edited by a user, 
am I vulnerable to CVE-2022-34169?
I would think yes, right?

Are there any plans on an update of Apache FOP, which is not vulnerable to 
CVE-2022-34169? As far as i understand the Apache Xalan Java project is dormant 
and in the process of being retired. No future releases of Apache Xalan Java to 
address this issue are expected.


Dependency Graph:
+- org.apache.xmlgraphics:fop:jar:2.7:compile
|  +- org.apache.xmlgraphics:fop-util:jar:2.7:compile
|  |  \- org.apache.xmlgraphics:xmlgraphics-commons:jar:2.7:compile
|  +- org.apache.xmlgraphics:fop-events:jar:2.7:compile
|  |  \- com.thoughtworks.qdox:qdox:jar:1.12:compile
|  \- org.apache.xmlgraphics:fop-core:jar:2.7:compile
| +- org.apache.xmlgraphics:batik-anim:jar:1.14:compile
| |  +- org.apache.xmlgraphics:batik-css:jar:1.14:compile
| |  +- org.apache.xmlgraphics:batik-dom:jar:1.14:compile
| |  |  \- xalan:xalan:jar:2.7.2:compile
| |  | \- xalan:serializer:jar:2.7.2:compile

BR
Philip Trykacz

-
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: Setting renderer merge-fonts from code

2022-08-23 Thread Mark Gibson
I’ll answer my own question 

userAgent.getRendererOptions().put( 
PDFRendererOption.MERGE_FONTS.getName(), true );

Feels a bit odd because you’re not telling it which renderer, but works for our 
flow.  Had tried just PDFRendererOption.MERGE_FONTS previously, but simple 
string name is needed.

Mark
From: Mark Gibson 
Sent: 22 August 2022 22:57
To: fop-users@xmlgraphics.apache.org
Subject: Setting renderer merge-fonts from code

Hi.

I’m sure I’m missing something simple, but I’m looking to set the “merge-fonts” 
configuration via code on the FOUserAgent.  And I’m failing.

I’ve found how to read it, but there’s no setters:

PDFRendererConfig rcfg = 
(PDFRendererConfig)userAgent.getRendererConfig( "application/pdf", new 
PDFRendererConfig.PDFRendererConfigParser() );
PDFRendererOptionsConfig rocfg = rcfg.getConfigOptions();
rocfg.getMergeFontsEnabled();

Does anyone know the magic?

Thanks
Mark


RE: Fop fails to resolve embedded fonts after update from 2.6 to 2.7

2022-08-17 Thread Beat Hörmann
I had the same problem when changing to fop 2.7. The problem is that the 
font-manager doesn't honor the custom resource resolver passed to the 
fop builder anymore. I described a workaround in


https://issues.apache.org/jira/browse/FOP-2861?attachmentSortBy=dateTime

Basically with 2.7 you need to extra pass your resource solver to the 
font-manager.


On 2022/08/07 11:56:33 Stefan Kleinbaum wrote:
> Hi!
>
> I've googled for breaking changes of an apache fop 2.6 -> 2.7 update, 
but I

> have got nowhere.
>
> After a fop update from 2.6 to 2.7, my application fails to resolve
> embedded font files from the jar classpath. A resolver is registered at
> "new FopFactoryBuilder(new File(".").toURI(), resolver)",
> "transformerFactory.setUriResolver(resolver)" and
> "transformer.setURIResolver(resolver)" but get's not called on embedded
> fonts. However, this stacktrace is printed:
>
> SEVERE: Failed to read font file myProject/fonts/myFont.ttf (No such file
> or directory)
> java.io.FileNotFoundException:  File("."))>/myProject/fonts/myFont.ttf (No such file or directory)
> at java.io.FileInputStream.open0(Native Method)
> at java.io.FileInputStream.open(FileInputStream.java:195)
> at java.io.FileInputStream.(FileInputStream.java:138)
> at java.io.FileInputStream.(FileInputStream.java:93)
> at
> 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)

> at
> 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)

> at java.net.URL.openStream(URL.java:1045)
> at
> org.apache.fop.apps.io.ResourceResolverFactory

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



Re: Corrupt font display on iOS when using PDF-Images with merge-fonts=true

2022-08-16 Thread Luca Bellonda
Hello, to validate the hypothesis you could modify by hand the PDF by
changing the name of the fonts in the tags /FontName and /BaseFont to a
pattern used for embedded subset like A+xx (the value of xx is not
important) without adding nor removing any byte from the PDF. If this
solves the issue maybe a patch to font name generation is needed for
embedded subsets.

Best regards.

Il giorno mar 16 ago 2022 alle ore 20:45  ha
scritto:

> Hi,
>
>
>
> If I am able to source a iOS/mac device at work, I will look into this.
>
>
>
> Thanks
>
>
>
> *From:* Mark Gibson 
> *Sent:* 16 August 2022 16:56
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* RE: Corrupt font display on iOS when using PDF-Images with
> merge-fonts=true
>
>
>
> Hi Luca
>
>
>
> We have no control over the source PDF being embedded.  They are often
> (but not always) exported as PDF from Excel.  And done by our clients, not
> us.
>
>
>
> Do we have any other options?  Either via fixups to FOP or bug
> notifications to iOS browsers (I’m gonna guess chromium).
>
>
>
> Thanks
>
> Mark
>
>
>
> *From:* Luca Bellonda 
> *Sent:* 16 August 2022 14:47
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Corrupt font display on iOS when using PDF-Images with
> merge-fonts=true
>
>
>
> [EXTERNAL]
>
>
>
> Hello the PDF is visible on Linux viewers and browsers, but the fonts are
> embedded as subset in both the source PDFs and as fully embedded in the
> final PDF with the fonts merged.
>
> The name of the font in the source pdf for example is BCDEEE+Calibri-Bold,
> compatible with embedded subsets (6 chars and a plus sign).
>
> The name of the font in the merged file is Calibri-Bold, which should
> identify it as fully embedded.
>
> I guess the wrong viewer is not able to deal with the character decoding,
> thinking to use a fully embedded font.
>
> Please, try generating the source PDFs embedding the whole fonts and not a
> subset.
>
>
>
>
>
> lb
>
>
>
>
>
> Il giorno mar 16 ago 2022 alle ore 13:13 Mark Gibson <
> mark.gib...@staff.bluematrix.com> ha scritto:
>
>
>
> https://issues.apache.org/jira/browse/FOP-3089
>
>
>
> Viewing in Windows browsers is fine
>
> Viewing in iOS browsers is corrupt
>
> Viewing in Adobe app on iOS and windows is fine
>
> Apologies, no access to Linux devices to test viewing
>
>
>
> Same issue occurs when running FOP 2.7 on Linux (CentOS) and Windows (10)
>
>
>
>


RE: Corrupt font display on iOS when using PDF-Images with merge-fonts=true

2022-08-16 Thread simonsteiner1984
Hi,

 

If I am able to source a iOS/mac device at work, I will look into this.

 

Thanks

 

From: Mark Gibson  
Sent: 16 August 2022 16:56
To: fop-users@xmlgraphics.apache.org
Subject: RE: Corrupt font display on iOS when using PDF-Images with 
merge-fonts=true

 

Hi Luca

 

We have no control over the source PDF being embedded.  They are often (but not 
always) exported as PDF from Excel.  And done by our clients, not us.

 

Do we have any other options?  Either via fixups to FOP or bug notifications to 
iOS browsers (I’m gonna guess chromium).

 

Thanks

Mark

 

From: Luca Bellonda mailto:lbello...@gmail.com> > 
Sent: 16 August 2022 14:47
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: Re: Corrupt font display on iOS when using PDF-Images with 
merge-fonts=true

 

[EXTERNAL] 

 

Hello the PDF is visible on Linux viewers and browsers, but the fonts are 
embedded as subset in both the source PDFs and as fully embedded in the final 
PDF with the fonts merged.

The name of the font in the source pdf for example is BCDEEE+Calibri-Bold, 
compatible with embedded subsets (6 chars and a plus sign).

The name of the font in the merged file is Calibri-Bold, which should identify 
it as fully embedded.

I guess the wrong viewer is not able to deal with the character decoding, 
thinking to use a fully embedded font.

Please, try generating the source PDFs embedding the whole fonts and not a 
subset.

 

 

lb

 

 

Il giorno mar 16 ago 2022 alle ore 13:13 Mark Gibson 
mailto:mark.gib...@staff.bluematrix.com> > 
ha scritto:

  

https://issues.apache.org/jira/browse/FOP-3089

 

Viewing in Windows browsers is fine

Viewing in iOS browsers is corrupt

Viewing in Adobe app on iOS and windows is fine

Apologies, no access to Linux devices to test viewing

 

Same issue occurs when running FOP 2.7 on Linux (CentOS) and Windows (10)

 



RE: Corrupt font display on iOS when using PDF-Images with merge-fonts=true

2022-08-16 Thread Mark Gibson
Hi Luca

We have no control over the source PDF being embedded.  They are often (but not 
always) exported as PDF from Excel.  And done by our clients, not us.

Do we have any other options?  Either via fixups to FOP or bug notifications to 
iOS browsers (I’m gonna guess chromium).

Thanks
Mark

From: Luca Bellonda 
Sent: 16 August 2022 14:47
To: fop-users@xmlgraphics.apache.org
Subject: Re: Corrupt font display on iOS when using PDF-Images with 
merge-fonts=true

[EXTERNAL]



Hello the PDF is visible on Linux viewers and browsers, but the fonts are 
embedded as subset in both the source PDFs and as fully embedded in the final 
PDF with the fonts merged.

The name of the font in the source pdf for example is BCDEEE+Calibri-Bold, 
compatible with embedded subsets (6 chars and a plus sign).

The name of the font in the merged file is Calibri-Bold, which should identify 
it as fully embedded.

I guess the wrong viewer is not able to deal with the character decoding, 
thinking to use a fully embedded font.

Please, try generating the source PDFs embedding the whole fonts and not a 
subset.





lb



Il giorno mar 16 ago 2022 alle ore 13:13 Mark Gibson 
mailto:mark.gib...@staff.bluematrix.com>> ha 
scritto:

https://issues.apache.org/jira/browse/FOP-3089

Viewing in Windows browsers is fine
Viewing in iOS browsers is corrupt
Viewing in Adobe app on iOS and windows is fine
Apologies, no access to Linux devices to test viewing

Same issue occurs when running FOP 2.7 on Linux (CentOS) and Windows (10)



Re: Corrupt font display on iOS when using PDF-Images with merge-fonts=true

2022-08-16 Thread Luca Bellonda
Hello the PDF is visible on Linux viewers and browsers, but the fonts are
embedded as subset in both the source PDFs and as fully embedded in the
final PDF with the fonts merged.

The name of the font in the source pdf for example is BCDEEE+Calibri-Bold,
compatible with embedded subsets (6 chars and a plus sign).

The name of the font in the merged file is Calibri-Bold, which should
identify it as fully embedded.

I guess the wrong viewer is not able to deal with the character decoding,
thinking to use a fully embedded font.

Please, try generating the source PDFs embedding the whole fonts and not a
subset.



lb



Il giorno mar 16 ago 2022 alle ore 13:13 Mark Gibson <
mark.gib...@staff.bluematrix.com> ha scritto:

>
>
> https://issues.apache.org/jira/browse/FOP-3089
>
>
>
> Viewing in Windows browsers is fine
>
> Viewing in iOS browsers is corrupt
>
> Viewing in Adobe app on iOS and windows is fine
>
> Apologies, no access to Linux devices to test viewing
>
>
>
> Same issue occurs when running FOP 2.7 on Linux (CentOS) and Windows (10)
>
>
>


RE: Corrupt font display on iOS when using PDF-Images with merge-fonts=true

2022-08-16 Thread Mark Gibson
Thanks Simon

https://issues.apache.org/jira/browse/FOP-3089

Viewing in Windows browsers is fine
Viewing in iOS browsers is corrupt
Viewing in Adobe app on iOS and windows is fine
Apologies, no access to Linux devices to test viewing

Same issue occurs when running FOP 2.7 on Linux (CentOS) and Windows (10)

Thanks
Mark

From: Simon Steiner 
Sent: 16 August 2022 10:55
To: fop-users@xmlgraphics.apache.org
Subject: RE: Corrupt font display on iOS when using PDF-Images with 
merge-fonts=true

[EXTERNAL]
Hi,

Can you open a bug on jira, can you replicate on windows or linux pdf viewers?

Thanks

From: Mark Gibson 
mailto:mark.gib...@staff.bluematrix.com>>
Sent: 15 August 2022 18:18
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: Corrupt font display on iOS when using PDF-Images with merge-fonts=true

Hi

We have an issue when using PDF-Images plugin to inject a PDF as an image.  All 
PDFs are rendered with fonts embedded.

When we set merge-fonts config to false, the rendered PDF displays fine in all 
tested viewers
However, when we set merge-fonts config to true, the rendered PDF is corrupt 
when viewed in-browser on IOS devices (currently tested browsers include 
Safari, Chrome, and DuckDuckGo, latest IOS and browsers).  Strangely, when 
viewed in Adobe iOS app, the PDF is displayed fine.

The corruption is in the font display, making embedded textual tables 
unreadable.

I don't know enough about PDF + fonts + viewers to be able to figure out if 
there's a universal iOS PDF in-browser viewer error, or whether the merge-fonts 
process somehow corrupts the resultant PDF (in a weird way that means some 
viewers work, whilst some don't)

Adobe Acrobat Pro DC file comparison shows zero differences between the two 
rendered PDFs.

I've attempted to attach a zip containing the fo, embedded pdf, two fop 
configs, and the two fonts in use.  Hopefully it won't be stripped

Commands to render the two PDFs are as follows (run from the root directory of 
the attached archive):


  *   .../fop.bat -fo pdf-images.fo -c fop.xml -pdf pdf-images.pdf
  *   .../fop.bat -fo pdf-images.fo -c fop-mergefonts.xml -pdf 
pdf-images-mergefonts.pdf

Hopefully someone will at least be able to give some direction for this.  The 
merge-fonts config is a game changer for us as it massively shrinks the size of 
many of the PDFs we render.

Thanks
Mark


RE: Corrupt font display on iOS when using PDF-Images with merge-fonts=true

2022-08-16 Thread Simon Steiner
Hi,

 

Can you open a bug on jira, can you replicate on windows or linux pdf
viewers?

 

Thanks

 

From: Mark Gibson  
Sent: 15 August 2022 18:18
To: fop-users@xmlgraphics.apache.org
Subject: Corrupt font display on iOS when using PDF-Images with
merge-fonts=true

 

Hi

 

We have an issue when using PDF-Images plugin to inject a PDF as an image.
All PDFs are rendered with fonts embedded.

 

When we set merge-fonts config to false, the rendered PDF displays fine in
all tested viewers

However, when we set merge-fonts config to true, the rendered PDF is corrupt
when viewed in-browser on IOS devices (currently tested browsers include
Safari, Chrome, and DuckDuckGo, latest IOS and browsers).  Strangely, when
viewed in Adobe iOS app, the PDF is displayed fine.

 

The corruption is in the font display, making embedded textual tables
unreadable.

 

I don't know enough about PDF + fonts + viewers to be able to figure out if
there's a universal iOS PDF in-browser viewer error, or whether the
merge-fonts process somehow corrupts the resultant PDF (in a weird way that
means some viewers work, whilst some don't)

 

Adobe Acrobat Pro DC file comparison shows zero differences between the two
rendered PDFs.

 

I've attempted to attach a zip containing the fo, embedded pdf, two fop
configs, and the two fonts in use.  Hopefully it won't be stripped

 

Commands to render the two PDFs are as follows (run from the root directory
of the attached archive):

 

*   ./fop.bat -fo pdf-images.fo -c fop.xml -pdf pdf-images.pdf
*   ./fop.bat -fo pdf-images.fo -c fop-mergefonts.xml -pdf
pdf-images-mergefonts.pdf

 

Hopefully someone will at least be able to give some direction for this.
The merge-fonts config is a game changer for us as it massively shrinks the
size of many of the PDFs we render.

 

Thanks

Mark



RE: Letter and currency symbol being split when at end of line

2022-06-28 Thread Mark Gibson
Thank you Roger and Simon

The NoBreak works.

The xsl-fo:wrap-option would have been ideal, as we don’t actually control the 
input.  Our clients author their own content then we render.  Understanding the 
FOP group is a small group of volunteers, are there any ongoing plans to extend 
wrap-option to inline sections?

Thanks
Mark

From: Pilkey, Roger 
Sent: 28 June 2022 15:53
To: fop-users@xmlgraphics.apache.org
Subject: RE: Letter and currency symbol being split when at end of line

[EXTERNAL]
The Nbsp character would add a space in between the “C” and the “$” though.  If 
you need the C and the $ to stick together, try the Word Joiner character:

U+2060




https://www.fileformat.info/info/unicode/char/2060/index.htm

It prohibits a line break at its position.  Seems to work for me in FOP.

If you can only fix the xsl-fo, not the input xml, you can try adding a 
wrap-option attribute (http://www.datypic.com/sc/fo11/a-wrap-option-1.html)

wrap-option=”no-wrap”

That would probably serve you best in a  surrounding your currency 
string like , but it doesn’t look like it 
would work in FOP right now:

Ref: https://xmlgraphics.apache.org/fop/compliance.html
 §7.16.13  wrap-option   Basic  partial   partial   partial 
  partial   partial   partial   Only supported on fo:block.


Roger

From: Simon Steiner [mailto:simonsteiner1...@gmail.com]
Sent: Tuesday, June 28, 2022 09:31
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: RE: Letter and currency symbol being split when at end of line


***ATTENTION*** This email originated from outside of the NRC. ***ATTENTION*** 
Ce courriel provient de l'extérieur du CNRC
Hi,

What about using a non breaking space character between letters.

Thanks

From: Mark Gibson 
mailto:mark.gib...@staff.bluematrix.com>>
Sent: 28 June 2022 14:15
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: Letter and currency symbol being split when at end of line

Hi

I’ve googled this, but have got nowhere.  I’m hoping it’s just an easy “use 
this xsl-fo tag” …

When we specify different currencies, it’s typically in the format of C$ for 
Canadian dollar, etc.  We’re finding, if C$ is at the end of a line, it can get 
split between the C and the $.  Is there a way of forcing a sequence of 
characters to keep together, similar to how keep-together keeps 
lines/paragraphs together?

Thanks
Mark


RE: Letter and currency symbol being split when at end of line

2022-06-28 Thread Pilkey, Roger
The Nbsp character would add a space in between the “C” and the “$” though.  If 
you need the C and the $ to stick together, try the Word Joiner character:

U+2060




https://www.fileformat.info/info/unicode/char/2060/index.htm

It prohibits a line break at its position.  Seems to work for me in FOP.

If you can only fix the xsl-fo, not the input xml, you can try adding a 
wrap-option attribute (http://www.datypic.com/sc/fo11/a-wrap-option-1.html)

wrap-option=”no-wrap”

That would probably serve you best in a  surrounding your currency 
string like , but it doesn’t look like it 
would work in FOP right now:

Ref: https://xmlgraphics.apache.org/fop/compliance.html
 §7.16.13  wrap-option   Basic  partial   partial   partial 
  partial   partial   partial   Only supported on fo:block.


Roger

From: Simon Steiner [mailto:simonsteiner1...@gmail.com]
Sent: Tuesday, June 28, 2022 09:31
To: fop-users@xmlgraphics.apache.org
Subject: RE: Letter and currency symbol being split when at end of line


***ATTENTION*** This email originated from outside of the NRC. ***ATTENTION*** 
Ce courriel provient de l'extérieur du CNRC
Hi,

What about using a non breaking space character between letters.

Thanks

From: Mark Gibson 
mailto:mark.gib...@staff.bluematrix.com>>
Sent: 28 June 2022 14:15
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: Letter and currency symbol being split when at end of line

Hi

I’ve googled this, but have got nowhere.  I’m hoping it’s just an easy “use 
this xsl-fo tag” …

When we specify different currencies, it’s typically in the format of C$ for 
Canadian dollar, etc.  We’re finding, if C$ is at the end of a line, it can get 
split between the C and the $.  Is there a way of forcing a sequence of 
characters to keep together, similar to how keep-together keeps 
lines/paragraphs together?

Thanks
Mark


RE: Letter and currency symbol being split when at end of line

2022-06-28 Thread Simon Steiner
Hi,

 

What about using a non breaking space character between letters.

 

Thanks

 

From: Mark Gibson  
Sent: 28 June 2022 14:15
To: fop-users@xmlgraphics.apache.org
Subject: Letter and currency symbol being split when at end of line

 

Hi

 

I've googled this, but have got nowhere.  I'm hoping it's just an easy "use
this xsl-fo tag" .

 

When we specify different currencies, it's typically in the format of C$ for
Canadian dollar, etc.  We're finding, if C$ is at the end of a line, it can
get split between the C and the $.  Is there a way of forcing a sequence of
characters to keep together, similar to how keep-together keeps
lines/paragraphs together?

 

Thanks

Mark



RE: No FOP source or javadoc files in Maven repo since 2.4

2022-04-29 Thread Mark Gibson
Thanks Simon,

Are you suggesting to stop using the all-in-one in favour of directly 
referencing its dependencies?

No to ...

org.apache.xmlgraphics
fop
2.7


?

Thanks
Mark

From: Simon Steiner 
Sent: 29 April 2022 06:48
To: fop-users@xmlgraphics.apache.org
Subject: RE: No FOP source or javadoc files in Maven repo since 2.4

[EXTERNAL]
Hi,

Can you use:
https://repo1.maven.org/maven2/org/apache/xmlgraphics/fop-core/2.7/

Thanks

From: Mark Gibson 
mailto:mark.gib...@staff.bluematrix.com>>
Sent: 28 April 2022 22:56
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: No FOP source or javadoc files in Maven repo since 2.4

Hi

FOP 2.3 was published to the public Maven repo with sources and javadocs.  But 
from 2.4 onwards, only the jar is published.  Is there any intentional reason 
for this?  Could we please add the source and Javadoc artefacts back to maven?

Thanks
Mark


RE: No FOP source or javadoc files in Maven repo since 2.4

2022-04-29 Thread Simon Steiner
Hi,

 

Below link is maven central but is the fop-core module.

 

Thanks

 

From: David Law  
Sent: 29 April 2022 09:44
To: Simon Steiner 
Subject: Re: No FOP source or javadoc files in Maven repo since 2.4

 

Hi Simon,

on my private system, I guess yes.
(although I'm one of the many who muddle through somehow with maven & would 
have to google how)

I'm not sure it'll work at my customer site: their Firewall doesn't like maven 
repos.
I got around that by installing an Artifactory Repo on their development Server 
& using that as a Proxy.
Maybe I can configure that to access repo1.maven.org...
...but offhand, I don't know how.

At least I have the rights to do whatever might be necessary at the customer.

I could imagine, however, there are many who won't be able to persuade their 
Admins to change that.

Anyway, I hope this is just a transient thing & the sources will
get deployed to maven central for the next version.

If so, I can live with it until then.

Schöne Grüße aus dem Odenwald,
DaveLaw



On 29/04/2022 10:12, Simon Steiner wrote:

Hi,

 

Can you use:

https://repo1.maven.org/maven2/org/apache/xmlgraphics/fop-core/2.7/

 

Thanks

 

 

From: David Law  <mailto:david@apconsult.de>  
Sent: 28 April 2022 23:24
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: Re: No FOP source or javadoc files in Maven repo since 2.4

 

It would be nice if someone would respond to this.
I posted the same question on 23rd & again on 29th January.

Dave

On 28/04/2022 23:55, Mark Gibson wrote:

Hi

 

FOP 2.3 was published to the public Maven repo with sources and javadocs.  But 
from 2.4 onwards, only the jar is published.  Is there any intentional reason 
for this?  Could we please add the source and Javadoc artefacts back to maven?

 

Thanks

Mark

 

 



Re: No FOP source or javadoc files in Maven repo since 2.4

2022-04-29 Thread David Law

It would be nice if someone would respond to this.
I posted the same question on 23rd & again on 29th January.

Dave

On 28/04/2022 23:55, Mark Gibson wrote:


Hi

FOP 2.3 was published to the public Maven repo with sources and 
javadocs.  But from 2.4 onwards, only the jar is published.  Is there 
any intentional reason for this?  Could we please add the source and 
Javadoc artefacts back to maven?


Thanks

Mark



RE: No FOP source or javadoc files in Maven repo since 2.4

2022-04-28 Thread Simon Steiner
Hi,

 

Can you use:

https://repo1.maven.org/maven2/org/apache/xmlgraphics/fop-core/2.7/

 

Thanks

 

From: Mark Gibson  
Sent: 28 April 2022 22:56
To: fop-users@xmlgraphics.apache.org
Subject: No FOP source or javadoc files in Maven repo since 2.4

 

Hi

 

FOP 2.3 was published to the public Maven repo with sources and javadocs.
But from 2.4 onwards, only the jar is published.  Is there any intentional
reason for this?  Could we please add the source and Javadoc artefacts back
to maven?

 

Thanks

Mark



Re: Java 8

2022-03-04 Thread The Web Maestro
Sorry for the delay!

+1

On Thu, Feb 3, 2022 at 12:38 AM Simon Steiner 
wrote:

> Hi,
>
> I am going to bump a dependency on our commons and fop trunk, that requires
> java 8. This means java 7 will no longer be supported for our next release.
>
> Thanks
>
>
> -
> To unsubscribe, e-mail: general-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: general-h...@xmlgraphics.apache.org
>
> --

Kind regards,

Clay Leeds
--
 - 
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


Re: Java 8

2022-03-04 Thread Chris Bowditch

+1

On 03/02/2022 08:38, Simon Steiner wrote:

Hi,

I am going to bump a dependency on our commons and fop trunk, that requires
java 8. This means java 7 will no longer be supported for our next release.

Thanks


-
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: How to wrap lines with no breaks in them

2022-03-04 Thread Mark Giffin
the list ate some characters:
- add characters to break lines like #x200b; 
- html element textarea formats the token nicely
 
thanks
 
 
-Original Message-
From: 
Sent: Mar 3, 2022 11:50 PM
To: 
Subject: How to wrap lines with no breaks in them
 
I have a very long token (800+ characters) with no spaces and I want to put it 
in a PDF so someone can select the whole token and paste it into a form as a 
login. It runs off the page and breaks in weird ways. When you select it in the 
PDF, there are things missing and breaks have been added.
 
The problem is I can't insert characters like ​ to break the lines, because 
when those are copied and pasted, they make carriage returns, which ruins the 
token.
 
In HTML I can use a element and the token wraps at a certain line width, and 
can be selected and pasted successfully. Is there any way to do this with XSL 
FO PDF output?
 
Thanks,
Mark
 
p.s. example of the token (no spaces or CRs in here):
 
eyJ2ZXIiOiIyIiwidHlwIjoiKldUIiwiYWxnIjoiUlMyNTYiLCJraWQiOiJnZUVVWjZtU0NtaHhRaXZ2THdPZGsxeUZWekl0Rk0wa295YkR6NG5pdEhVIn0.eyJleHQiOiJ7XCJyZXZvY2FibGVcIjpcInRydWVcIn0iLCJzdWIiOtJqZmFjQDAxZmJxdDgzMmhzeXpyMW1tMXpmczYwejQ3XC91c2Vyc1wvZ3NzdHNzM2Z3a3JkdmpwaSIsInNjcCI6ImFwcGxpZWQtcGVybWlzc2lvbnNcL3VzZXIiLCJhdWQiOiIqQCoiLCJpc3MiOiJqZmFjQDAxZmJxdDgzMmhzeXpyMW1tMXpmczYwejQ3IiwiZXhwIjoxNjc3Njk2NDExLCJpYXQiOjE2NDYxNjA0MTEsImp0aSI6ImIyMTAyYzdmLTByNGMtNDgxMC05YzA0LWI4YWU4M2ViZTZmMCJ9.g45PSxukxxUB64UxcA7qKitacqd4KsfPOKmR9kOag_X8dt4daG0KcuoZ9rjdUx07lnSumcnm9yw5RSqUkIh-rG8iOgcXok0iP-P1kFn_6jS9WGJgoX5bgtgAYVtRNK5nZikcBaaMqCZtGxa5jNyUIDHPBuezUZx6LbZaqK3ecVEn7HPLJTomiJWx8r-nnY29ak8TCZfOkgX_gsmOrEaIksYxj76qjl5LkEayNZNgONsVt_YavjBly0ypyaIcm7be0-n4_45Ab1bFG7ZVGgAdZxGb-7CW12QnBRXJ60v08QUcidDIyRFlQKlJZxHapPLqdny9B0HuBom7dMS89P8Myy
 
-
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: Compliance table is out of date - last version shown is 2.4

2022-02-04 Thread Thomas Schraitle
Hi John,

On 24.01.22 22:20, Kirkilis, John (Nokia - US/Austin) wrote:
> [...]
>
> Using 500 looks exactly like 400 and 600 looks exactly like 700.
>
> Any guidance would be appreciated,

It sounds like this issue:

  https://issues.apache.org/jira/browse/FOP-3045

We used to manually map the font weights to the font file.

Hope this helps.


--
Gruß/Regards
  Thomas Schraitle

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



Re: Java 8

2022-02-03 Thread xmlgraphics . dave

Hi there,

about time!  

I just hope, when the next release arrives, the sources will get 
deployed to Maven.

They haven't been available since 2.4.

All the best,
Dave

On 03/02/2022 09:38, Simon Steiner wrote:

Hi,

I am going to bump a dependency on our commons and fop trunk, that requires
java 8. This means java 7 will no longer be supported for our next release.

Thanks


-
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: Inlining SVG's not working on Unix Server but External SVG's ok -> SOLUTION!!

2022-02-01 Thread xmlgraphics . dave

Hi Matt,

thanks to the good people at Saxonica, we now have a solution.

The problem was, the Stylesheet Document was being created Namespace 
Unaware.

So tweaked the DocumentBuilderFactory & all is well.

Thanks for your help,
Dave

On 01/02/2022 19:47, Matt Kynaston wrote:
Ah, my email client didn't thread this properly so only just saw it. 
Glad it's sorted!


On Sat, 29 Jan 2022 at 09:49,  wrote:

ok, I've found the problem.

The svg Namespace is being corrupted.

Someone, somewhere added xmlns="" to the  Element. The
generated FO was...

http://www.w3.org/2000/svg;
 height="775" viewBox="0 0 1184 775"
width="1184">
    
    :   :   :
    


After explicitly adding the correct Namespace to the  Element...
...someone, somewhere added xmlns="" to the  Elements. The
generated FO was...

http://www.w3.org/2000/svg;
 height="775" viewBox="0 0 1184 775"
width="1184">
    
    
    


So I explicitly added the correct Namespace to all the 
Elements. The generated FO was...

http://www.w3.org/2000/svg;
 height="775" viewBox="0 0 1184 775"
width="1184">
    
    
    


And that worked.  

My Stylesheet source now looks like this:

http://www.w3.org/2000/svg;
 width="1184" height="775" viewBox="0
0 1184 775">
    http://www.w3.org/2000/svg;

style="fill-opacity:0;stroke-width:2;stroke:black">
    http://www.w3.org/2000/svg;
 x="2"    y="2"   width="254" 
height="99"/>
    


So I guess that's a Bug in the XSLT Processor??

All the best,
Dave

On 29/01/2022 08:38, xmlgraphics.d...@apconsult.de wrote:

I have attached Server Logs for both.

For each, the Server was restarted anew beforehand.

To make them better comparable, I've redacted them as follows:
- Timestamps removed from beginning of lines
- blank lines inserted where differences occur
- Pretty-Printed the generated FO as XML

There are Log-entries from our Resource-Resolver for the
external-graphic,
but it simply delegates SVG's to the apache FOP
DefaultResourceResolver.

Looks to me as though both are generating an SVG?

All the best,
Dave

On 29/01/2022 06:16, xmlgraphics.d...@apconsult.de wrote:

Hi Matt,

we have a Stone Age Linux, but the rest is fairly up-to-date:

SUSE Linux Enterprise Server 11.1 (x86_64)2.6.32.46-0.3-default

openjdkversion "17" 2021-09-14
OpenJDKRuntime Environment (build 17+35-2724)
OpenJDK64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

Apache FOP v2.6

As suggested on
https://xmlgraphics.apache.org/fop/trunk/graphics.html
I did start the server with...
-Djava.awt.headless=true
...without really knowing what that does, but it made no difference.

I wonder whether the headless remarks are historical in nature
& not relevant for current Batik releases?
(we are using the current Batik v1.14)

I also went to great lengths to reproduce the exact same
Classpath order under Windows,
defining each Library individually & using a comparable JDK with
Eclipse 2021-09:
openjdkversion "17.0.1" 2021-10-19 LTS
OpenJDKRuntime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
OpenJDK64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS,
mixed mode, sharing)

What doesn't make sense to me is how FOP managed to render the
external SVG
but inlining it, the SVG Graphic was not rendered.
(from the trace it looked like it was doing some SVG rendering)

Surely, if it can render an external SVG, it must be able to
render an inline one?!

All the best,
Dave

On 28/01/2022 14:04, Matt Kynaston wrote:

We render inline SVGs on linux (RHEL7 atm) all the time,
without needing to install anything special - although it does
pull in a "headless" version of openjdk.

Which linux? Which java? Which version of FOP?

Matt

On Sun, 23 Jan 2022 at 14:01, 
wrote:

Hi there,

we are using Apache FOP to generate PDF's & have an issue
with SVG's.

To include an SVG we're using something like the following...

| 
 |

The above works fine in all environments.

Now I'm trying to inline an SVG in the Stylesheet, like this...

|  http://www.w3.org/2000/svg;
 width="780" height="120"
viewBox="0 0 780 120"> 
  |

That works OK under Windows, but when deployed on our Linux
Server, seems to do nothing.

I have read some comments on the Apache FOP Website about
it using Apache Batik to render SVG's
and that this requires a 

Re: Inlining SVG's not working on Unix Server but External SVG's ok -> WORKAROUND!!

2022-02-01 Thread Matt Kynaston
Ah, my email client didn't thread this properly so only just saw it. Glad
it's sorted!

On Sat, 29 Jan 2022 at 09:49,  wrote:

> ok, I've found the problem.
>
> The svg Namespace is being corrupted.
>
> Someone, somewhere added xmlns="" to the  Element. The generated FO
> was...
>
> http://www.w3.org/2000/svg; 
> height="775" viewBox="0 0 1184 775" width="1184">
> 
> :   :   :
> 
> 
>
> After explicitly adding the correct Namespace to the  Element...
> ...someone, somewhere added xmlns="" to the  Elements. The
> generated FO was...
>
> http://www.w3.org/2000/svg; 
> height="775" viewBox="0 0 1184 775" width="1184">
> 
> 
> 
> 
>
> So I explicitly added the correct Namespace to all the  Elements.
> The generated FO was...
>
> http://www.w3.org/2000/svg; 
> height="775" viewBox="0 0 1184 775" width="1184">
> 
> 
> 
> 
>
> And that worked.  
>
> My Stylesheet source now looks like this:
>
> http://www.w3.org/2000/svg;
>  width="1184" height="775" viewBox="0 0 1184
> 775">
> http://www.w3.org/2000/svg;
> 
> style="fill-opacity:0;stroke-width:2;stroke:black">
> http://www.w3.org/2000/svg;
>  x="2"y="2"   width="254"  height="99"/>
> 
> 
>
> So I guess that's a Bug in the XSLT Processor??
>
> All the best,
> Dave
>
> On 29/01/2022 08:38, xmlgraphics.d...@apconsult.de wrote:
>
> I have attached Server Logs for both.
>
> For each, the Server was restarted anew beforehand.
>
> To make them better comparable, I've redacted them as follows:
> - Timestamps removed from beginning of lines
> - blank lines inserted where differences occur
> - Pretty-Printed the generated FO as XML
>
> There are Log-entries from our Resource-Resolver for the external-graphic,
> but it simply delegates SVG's to the apache FOP DefaultResourceResolver.
>
> Looks to me as though both are generating an SVG?
>
> All the best,
> Dave
>
> On 29/01/2022 06:16, xmlgraphics.d...@apconsult.de wrote:
>
> Hi Matt,
>
> we have a Stone Age Linux, but the rest is fairly up-to-date:
>
> SUSE Linux Enterprise Server 11.1 (x86_64)2.6.32.46-0.3-default
>
> openjdk version "17" 2021-09-14
> OpenJDK Runtime Environment (build 17+35-2724)
> OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)
>
> Apache FOP v2.6
>
> As suggested on
> https://xmlgraphics.apache.org/fop/trunk/graphics.html
> I did start the server with...
> -Djava.awt.headless=true
> ...without really knowing what that does, but it made no difference.
>
> I wonder whether the headless remarks are historical in nature
> & not relevant for current Batik releases?
> (we are using the current Batik v1.14)
>
> I also went to great lengths to reproduce the exact same Classpath order
> under Windows,
> defining each Library individually & using a comparable JDK with Eclipse
> 2021-09:
> openjdk version "17.0.1" 2021-10-19 LTS
> OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
> OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed
> mode, sharing)
>
> What doesn't make sense to me is how FOP managed to render the external SVG
> but inlining it, the SVG Graphic was not rendered.
> (from the trace it looked like it was doing some SVG rendering)
>
> Surely, if it can render an external SVG, it must be able to render an
> inline one?!
>
> All the best,
> Dave
>
> On 28/01/2022 14:04, Matt Kynaston wrote:
>
> We render inline SVGs on linux (RHEL7 atm) all the time, without needing
> to install anything special - although it does pull in a "headless" version
> of openjdk.
>
> Which linux? Which java? Which version of FOP?
>
> Matt
>
> On Sun, 23 Jan 2022 at 14:01,  wrote:
>
>> Hi there,
>>
>> we are using Apache FOP to generate PDF's & have an issue with SVG's.
>>
>> To include an SVG we're using something like the following...
>>
>> 
>> > content-width="150mm"/>
>>
>> The above works fine in all environments.
>>
>> Now I'm trying to inline an SVG in the Stylesheet, like this...
>>
>> 
>> 
>> http://www.w3.org/2000/svg;  
>> width="780" height="120" viewBox="0 0 780 120">
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> That works OK under Windows, but when deployed on our Linux Server, seems
>> to do nothing.
>>
>> I have read some comments on the Apache FOP Website about it using Apache
>> Batik to render SVG's
>> and that this requires a Graphical Environment, so will not work in many
>> Unix configurations.
>>
>> What I don't understand is, how come the external SVG is working ok on
>> the Unix Server & inline is not?
>>
>> Also, the Apache FOP Website recommends a Tool called PJA toolkit
>>  to workaround this issue,
>> but it looks very dated, so I wonder if its going to work with our JDK 17?
>> (and 

Re: Inlining SVG's not working on Unix Server but External SVG's ok

2022-02-01 Thread Matt Kynaston
Sorry Dave, been snowed under for the last few days.

Looking at the debug output for the embedded SVG, you've got an empty xmlns
declaration on the "g" element:



If I remove that it renders the FO just fine.

HTH

Matt


On Sat, 29 Jan 2022 at 09:00,  wrote:

> Matt,
>
> could you maybe share a Stylesheet (or excerpt) with a working inline SVG?
>
> All the best,
> Dave
>
>
> On 28/01/2022 14:04, Matt Kynaston wrote:
>
> We render inline SVGs on linux (RHEL7 atm) all the time, without needing
> to install anything special - although it does pull in a "headless" version
> of openjdk.
>
> Which linux? Which java? Which version of FOP?
>
> Matt
>
> On Sun, 23 Jan 2022 at 14:01,  wrote:
>
>> Hi there,
>>
>> we are using Apache FOP to generate PDF's & have an issue with SVG's.
>>
>> To include an SVG we're using something like the following...
>>
>> 
>> > content-width="150mm"/>
>>
>> The above works fine in all environments.
>>
>> Now I'm trying to inline an SVG in the Stylesheet, like this...
>>
>> 
>> 
>> http://www.w3.org/2000/svg;  
>> width="780" height="120" viewBox="0 0 780 120">
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> That works OK under Windows, but when deployed on our Linux Server, seems
>> to do nothing.
>>
>> I have read some comments on the Apache FOP Website about it using Apache
>> Batik to render SVG's
>> and that this requires a Graphical Environment, so will not work in many
>> Unix configurations.
>>
>> What I don't understand is, how come the external SVG is working ok on
>> the Unix Server & inline is not?
>>
>> Also, the Apache FOP Website recommends a Tool called PJA toolkit
>>  to workaround this issue,
>> but it looks very dated, so I wonder if its going to work with our JDK 17?
>> (and indeed its developer, Emmanuel Puybaret, is quite surprised anyone
>> would still be recommending use of this tool)
>>
>> I would be grateful if anyone has some Info about this.
>>
>> All the best,
>> Dave
>>
>
>
> --
>
>
> Matt Kynaston
> Lead Developer
> Tel: +441225851666
> www.claritum.com
>
> Claritum Limited. Registered Office: 37 Great Pulteney Street, Bath, BA2
> 4DA  Registered in England and Wales 3878694
>
>
>

-- 


Matt Kynaston
Lead Developer
Tel: +441225851666
www.claritum.com

Claritum Limited. Registered Office: 37 Great Pulteney Street, Bath, BA2
4DA  Registered in England and Wales 3878694


RE: Compliance table is out of date - last version shown is 2.4

2022-02-01 Thread Simon Steiner
Hi,

 

The table should now say that 2.4 to 2.7 is the same.

 

Normally you will add a thick/light variant of a font file to the fop.xconf
if you want a different weight used.

simulate-style is just for bold weight.

 

Thanks

 

From: Kirkilis, John (Nokia - US/Austin)  
Sent: 24 January 2022 21:20
To: fop-users@xmlgraphics.apache.org
Subject: Compliance table is out of date - last version shown is 2.4

 

Hi all,

 

We're not getting numeric font-weight values to work in 2.6, so I checked
the compliance table. It only lists versions up to 2.4 and says the support
is partial. There's a TODO comment about the lighter/bolder value options,
but no mention of numeric value support 100, 200, 300, etc

 

If the font we're using doesn't have specific weights for the numeric values
and simulate-style is false in the fop.xconf, could this be in play?

 

Using 500 looks exactly like 400 and 600 looks exactly like 700.

 

Any guidance would be appreciated,

 

John Kirkilis

Nokia



Re: Inlining SVG's not working on Unix Server but External SVG's ok -> WORKAROUND!!

2022-01-29 Thread xmlgraphics . dave

ok, I've found the problem.

The svg Namespace is being corrupted.

Someone, somewhere added xmlns="" to the  Element. The generated FO 
was...


http://www.w3.org/2000/svg; height="775" viewBox="0 0 1184 
775" width="1184">

    
    :   :   :
    


After explicitly adding the correct Namespace to the  Element...
...someone, somewhere added xmlns="" to the  Elements. The 
generated FO was...


http://www.w3.org/2000/svg; height="775" viewBox="0 0 1184 
775" width="1184">

    
    
    


So I explicitly added the correct Namespace to all the  Elements. 
The generated FO was...


http://www.w3.org/2000/svg; height="775" viewBox="0 0 1184 
775" width="1184">

    
    
    


And that worked.  

My Stylesheet source now looks like this:

http://www.w3.org/2000/svg; width="1184" height="775" 
viewBox="0 0 1184 775">
    http://www.w3.org/2000/svg; 
style="fill-opacity:0;stroke-width:2;stroke:black">
    http://www.w3.org/2000/svg; x="2" y="2"   
width="254"  height="99"/>

    


So I guess that's a Bug in the XSLT Processor??

All the best,
Dave

On 29/01/2022 08:38, xmlgraphics.d...@apconsult.de wrote:

I have attached Server Logs for both.

For each, the Server was restarted anew beforehand.

To make them better comparable, I've redacted them as follows:
- Timestamps removed from beginning of lines
- blank lines inserted where differences occur
- Pretty-Printed the generated FO as XML

There are Log-entries from our Resource-Resolver for the external-graphic,
but it simply delegates SVG's to the apache FOP DefaultResourceResolver.

Looks to me as though both are generating an SVG?

All the best,
Dave

On 29/01/2022 06:16, xmlgraphics.d...@apconsult.de wrote:

Hi Matt,

we have a Stone Age Linux, but the rest is fairly up-to-date:

SUSE Linux Enterprise Server 11.1 (x86_64)2.6.32.46-0.3-default

openjdkversion "17" 2021-09-14
OpenJDKRuntime Environment (build 17+35-2724)
OpenJDK64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

Apache FOP v2.6

As suggested on
https://xmlgraphics.apache.org/fop/trunk/graphics.html
I did start the server with...
-Djava.awt.headless=true
...without really knowing what that does, but it made no difference.

I wonder whether the headless remarks are historical in nature
& not relevant for current Batik releases?
(we are using the current Batik v1.14)

I also went to great lengths to reproduce the exact same Classpath 
order under Windows,
defining each Library individually & using a comparable JDK with 
Eclipse 2021-09:

openjdkversion "17.0.1" 2021-10-19 LTS
OpenJDKRuntime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
OpenJDK64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed 
mode, sharing)


What doesn't make sense to me is how FOP managed to render the 
external SVG

but inlining it, the SVG Graphic was not rendered.
(from the trace it looked like it was doing some SVG rendering)

Surely, if it can render an external SVG, it must be able to render 
an inline one?!


All the best,
Dave

On 28/01/2022 14:04, Matt Kynaston wrote:
We render inline SVGs on linux (RHEL7 atm) all the time, without 
needing to install anything special - although it does pull in a 
"headless" version of openjdk.


Which linux? Which java? Which version of FOP?

Matt

On Sun, 23 Jan 2022 at 14:01,  wrote:

Hi there,

we are using Apache FOP to generate PDF's & have an issue with
SVG's.

To include an SVG we're using something like the following...

| 
 |

The above works fine in all environments.

Now I'm trying to inline an SVG in the Stylesheet, like this...

| 
http://www.w3.org/2000/svg;
 width="780" height="120" viewBox="0
0 780 120">|

That works OK under Windows, but when deployed on our Linux
Server, seems to do nothing.

I have read some comments on the Apache FOP Website about it
using Apache Batik to render SVG's
and that this requires a Graphical Environment, so will not work
in many Unix configurations.

What I don't understand is, how come the external SVG is working
ok on the Unix Server & inline is not?

Also, the Apache FOP Website recommends a Tool called PJA
toolkit  to workaround this issue,
but it looks very dated, so I wonder if its going to work with
our JDK 17?
(and indeed its developer, Emmanuel Puybaret, is quite surprised
anyone would still be recommending use of this tool)

I would be grateful if anyone has some Info about this.

All the best,
Dave



--


Matt Kynaston
Lead Developer
Tel: +441225851666
www.claritum.com 

Claritum Limited. Registered Office: 37 Great Pulteney Street, Bath, 
BA2 4DA  Registered in England and Wales 3878694





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

Re: Inlining SVG's not working on Unix Server but External SVG's ok

2022-01-29 Thread xmlgraphics . dave

Matt,

could you maybe share a Stylesheet (or excerpt) with a working inline SVG?

All the best,
Dave


On 28/01/2022 14:04, Matt Kynaston wrote:
We render inline SVGs on linux (RHEL7 atm) all the time, without 
needing to install anything special - although it does pull in a 
"headless" version of openjdk.


Which linux? Which java? Which version of FOP?

Matt

On Sun, 23 Jan 2022 at 14:01,  wrote:

Hi there,

we are using Apache FOP to generate PDF's & have an issue with SVG's.

To include an SVG we're using something like the following...

|   |

The above works fine in all environments.

Now I'm trying to inline an SVG in the Stylesheet, like this...

| 
http://www.w3.org/2000/svg;
 width="780" height="120" viewBox="0 0
780 120"> 
   
  |

That works OK under Windows, but when deployed on our Linux
Server, seems to do nothing.

I have read some comments on the Apache FOP Website about it using
Apache Batik to render SVG's
and that this requires a Graphical Environment, so will not work
in many Unix configurations.

What I don't understand is, how come the external SVG is working
ok on the Unix Server & inline is not?

Also, the Apache FOP Website recommends a Tool called PJA toolkit
 to workaround this issue,
but it looks very dated, so I wonder if its going to work with our
JDK 17?
(and indeed its developer, Emmanuel Puybaret, is quite surprised
anyone would still be recommending use of this tool)

I would be grateful if anyone has some Info about this.

All the best,
Dave



--


Matt Kynaston
Lead Developer
Tel: +441225851666
www.claritum.com 

Claritum Limited. Registered Office: 37 Great Pulteney Street, Bath, 
BA2 4DA  Registered in England and Wales 3878694


Re: Please make source available in Maven Central

2022-01-28 Thread xmlgraphics . dave

Did any of the Admins have time to reflect on this?

Best regards,
Dave

On 23/01/2022 14:53, xmlgraphics.d...@apconsult.de wrote:

Hi there,

using Maven to configureApache FOP these days is a bit of a pain.

I use the following to configure FOP in my pom.xml:



    org.apache.xmlgraphics
    fop
    2.7


Since v2.5 only the runtime is available.

Last Version with source attached was v2.4.
It would be nice if someone could fix this.

All the best,
Dave

-
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: Inlining SVG's not working on Unix Server but External SVG's ok

2022-01-28 Thread xmlgraphics . dave

I have attached Server Logs for both.

For each, the Server was restarted anew beforehand.

To make them better comparable, I've redacted them as follows:
- Timestamps removed from beginning of lines
- blank lines inserted where differences occur
- Pretty-Printed the generated FO as XML

There are Log-entries from our Resource-Resolver for the external-graphic,
but it simply delegates SVG's to the apache FOP DefaultResourceResolver.

Looks to me as though both are generating an SVG?

All the best,
Dave

On 29/01/2022 06:16, xmlgraphics.d...@apconsult.de wrote:

Hi Matt,

we have a Stone Age Linux, but the rest is fairly up-to-date:

SUSE Linux Enterprise Server 11.1 (x86_64)2.6.32.46-0.3-default

openjdkversion "17" 2021-09-14
OpenJDKRuntime Environment (build 17+35-2724)
OpenJDK64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

Apache FOP v2.6

As suggested on
https://xmlgraphics.apache.org/fop/trunk/graphics.html
I did start the server with...
-Djava.awt.headless=true
...without really knowing what that does, but it made no difference.

I wonder whether the headless remarks are historical in nature
& not relevant for current Batik releases?
(we are using the current Batik v1.14)

I also went to great lengths to reproduce the exact same Classpath 
order under Windows,
defining each Library individually & using a comparable JDK with 
Eclipse 2021-09:

openjdkversion "17.0.1" 2021-10-19 LTS
OpenJDKRuntime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
OpenJDK64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed 
mode, sharing)


What doesn't make sense to me is how FOP managed to render the 
external SVG

but inlining it, the SVG Graphic was not rendered.
(from the trace it looked like it was doing some SVG rendering)

Surely, if it can render an external SVG, it must be able to render an 
inline one?!


All the best,
Dave

On 28/01/2022 14:04, Matt Kynaston wrote:
We render inline SVGs on linux (RHEL7 atm) all the time, without 
needing to install anything special - although it does pull in a 
"headless" version of openjdk.


Which linux? Which java? Which version of FOP?

Matt

On Sun, 23 Jan 2022 at 14:01,  wrote:

Hi there,

we are using Apache FOP to generate PDF's & have an issue with SVG's.

To include an SVG we're using something like the following...

| 
 |

The above works fine in all environments.

Now I'm trying to inline an SVG in the Stylesheet, like this...

| 
http://www.w3.org/2000/svg;
 width="780" height="120" viewBox="0
0 780 120">|

That works OK under Windows, but when deployed on our Linux
Server, seems to do nothing.

I have read some comments on the Apache FOP Website about it
using Apache Batik to render SVG's
and that this requires a Graphical Environment, so will not work
in many Unix configurations.

What I don't understand is, how come the external SVG is working
ok on the Unix Server & inline is not?

Also, the Apache FOP Website recommends a Tool called PJA toolkit
 to workaround this issue,
but it looks very dated, so I wonder if its going to work with
our JDK 17?
(and indeed its developer, Emmanuel Puybaret, is quite surprised
anyone would still be recommending use of this tool)

I would be grateful if anyone has some Info about this.

All the best,
Dave



--


Matt Kynaston
Lead Developer
Tel: +441225851666
www.claritum.com 

Claritum Limited. Registered Office: 37 Great Pulteney Street, Bath, 
BA2 4DA  Registered in England and Wales 3878694




svg_DEBUG_external-graphic.txt
Description: application/unknown-content-type


svg_DEBUG_instream-foreign-object.txt
Description: application/unknown-content-type

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

Re: Inlining SVG's not working on Unix Server but External SVG's ok

2022-01-28 Thread xmlgraphics . dave

Hi Matt,

we have a Stone Age Linux, but the rest is fairly up-to-date:

SUSE Linux Enterprise Server 11.1 (x86_64)2.6.32.46-0.3-default

openjdkversion "17" 2021-09-14
OpenJDKRuntime Environment (build 17+35-2724)
OpenJDK64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

Apache FOP v2.6

As suggested on
https://xmlgraphics.apache.org/fop/trunk/graphics.html
I did start the server with...
-Djava.awt.headless=true
...without really knowing what that does, but it made no difference.

I wonder whether the headless remarks are historical in nature
& not relevant for current Batik releases?
(we are using the current Batik v1.14)

I also went to great lengths to reproduce the exact same Classpath order 
under Windows,
defining each Library individually & using a comparable JDK with Eclipse 
2021-09:

openjdkversion "17.0.1" 2021-10-19 LTS
OpenJDKRuntime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
OpenJDK64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed 
mode, sharing)


What doesn't make sense to me is how FOP managed to render the external SVG
but inlining it, the SVG Graphic was not rendered.
(from the trace it looked like it was doing some SVG rendering)

Surely, if it can render an external SVG, it must be able to render an 
inline one?!


All the best,
Dave

On 28/01/2022 14:04, Matt Kynaston wrote:
We render inline SVGs on linux (RHEL7 atm) all the time, without 
needing to install anything special - although it does pull in a 
"headless" version of openjdk.


Which linux? Which java? Which version of FOP?

Matt

On Sun, 23 Jan 2022 at 14:01,  wrote:

Hi there,

we are using Apache FOP to generate PDF's & have an issue with SVG's.

To include an SVG we're using something like the following...

|   |

The above works fine in all environments.

Now I'm trying to inline an SVG in the Stylesheet, like this...

| 
http://www.w3.org/2000/svg;
 width="780" height="120" viewBox="0 0
780 120"> 
   
  |

That works OK under Windows, but when deployed on our Linux
Server, seems to do nothing.

I have read some comments on the Apache FOP Website about it using
Apache Batik to render SVG's
and that this requires a Graphical Environment, so will not work
in many Unix configurations.

What I don't understand is, how come the external SVG is working
ok on the Unix Server & inline is not?

Also, the Apache FOP Website recommends a Tool called PJA toolkit
 to workaround this issue,
but it looks very dated, so I wonder if its going to work with our
JDK 17?
(and indeed its developer, Emmanuel Puybaret, is quite surprised
anyone would still be recommending use of this tool)

I would be grateful if anyone has some Info about this.

All the best,
Dave



--


Matt Kynaston
Lead Developer
Tel: +441225851666
www.claritum.com 

Claritum Limited. Registered Office: 37 Great Pulteney Street, Bath, 
BA2 4DA  Registered in England and Wales 3878694


Re: Inlining SVG's not working on Unix Server but External SVG's ok

2022-01-28 Thread Matt Kynaston
We render inline SVGs on linux (RHEL7 atm) all the time, without needing to
install anything special - although it does pull in a "headless" version of
openjdk.

Which linux? Which java? Which version of FOP?

Matt

On Sun, 23 Jan 2022 at 14:01,  wrote:

> Hi there,
>
> we are using Apache FOP to generate PDF's & have an issue with SVG's.
>
> To include an SVG we're using something like the following...
>
> 
>  content-width="150mm"/>
>
> The above works fine in all environments.
>
> Now I'm trying to inline an SVG in the Stylesheet, like this...
>
> 
> 
> http://www.w3.org/2000/svg;  
> width="780" height="120" viewBox="0 0 780 120">
> 
> 
> 
> 
> 
> 
>
> That works OK under Windows, but when deployed on our Linux Server, seems
> to do nothing.
>
> I have read some comments on the Apache FOP Website about it using Apache
> Batik to render SVG's
> and that this requires a Graphical Environment, so will not work in many
> Unix configurations.
>
> What I don't understand is, how come the external SVG is working ok on the
> Unix Server & inline is not?
>
> Also, the Apache FOP Website recommends a Tool called PJA toolkit
>  to workaround this issue,
> but it looks very dated, so I wonder if its going to work with our JDK 17?
> (and indeed its developer, Emmanuel Puybaret, is quite surprised anyone
> would still be recommending use of this tool)
>
> I would be grateful if anyone has some Info about this.
>
> All the best,
> Dave
>


-- 


Matt Kynaston
Lead Developer
Tel: +441225851666
www.claritum.com

Claritum Limited. Registered Office: 37 Great Pulteney Street, Bath, BA2
4DA  Registered in England and Wales 3878694


RE: Is FOP impacted by the Log4shell vulnerability?

2021-12-14 Thread Simon Steiner
Hi,

We don’t include log4j.

Thanks

-Original Message-
From: Bryan K. Walton  
Sent: 13 December 2021 14:41
To: fop-users@xmlgraphics.apache.org
Subject: Is FOP impacted by the Log4shell vulnerability?

Hi, is Apache FOP susceptible to the Log4shell vulnerability that is making the 
rounds right now?

Thanks!
Bryan Walton

-
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: Is FOP impacted by the Log4shell vulnerability?

2021-12-13 Thread Jon Schewe
If you're worried about an application, from what I've seen you can use
"-Dlog4j2.formatMsgNoLookups=true" if you're using log4j 2.10 or later
if you need to run an application that can't change it's logging
library.
https://research.nccgroup.com/2021/12/12/log4j-jndi-be-gone-a-simple-mitigation-for-cve-2021-44228/

On Mon, 2021-12-13 at 18:18 +, simonsteiner1...@gmail.com wrote:
> Hi,
> The binary/zip release doesn’t include log4j, for maven you should
> check mvn dependency:tree
> Thanks
> -Original Message-From: Jean-Pierre Lamon 
> Sent: 13 December 2021 16:40To: fop-users@xmlgraphics.apache.org
> Subject: Re: Is FOP impacted by the Log4shell vulnerability?
> Hi all,
> I'm using FOP from my application but in command mode (just launching
> fop.bat or through powsershell). The swiss government IT asks me if
> my application could be vulnerable. What must be my response?
> My future in jail or not depends on your response ;-)
> ThxJP
> Le 13.12.2021 à 17:17, Bryan K. Walton a écrit :
> > On Mon, Dec 13, 2021 at 03:02:22PM +, Matt Kynaston wrote:
> > > > From what I can tell (I just use the library) it doesn't depend
> > > > on log4j
> > > itself. However, given that the library is typically included in
> > > other applications and that may well use a vulnerable version,
> > > your best bet is to check the actual jars / wars with a tool like
> > > at 
> > > https://www.lunasec.io/docs/blog/log4j-zero-day-mitigation-guide/#3-d
> > > etermine-if-you-are-impacted-by-log4shell
> > > If you've got the source code of the application, you should also
> > > be able to view all dependencies with `mvn dependency:tree` and
> > > see if impacted versions of log4j show up there.
> > > Best of luck.
> > 
> > Thanks, Matt!
> > -Bryan
> > -
> > 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: Is FOP impacted by the Log4shell vulnerability?

2021-12-13 Thread simonsteiner1984
Hi,

The binary/zip release doesn’t include log4j, for maven you should check mvn 
dependency:tree

Thanks

-Original Message-
From: Jean-Pierre Lamon  
Sent: 13 December 2021 16:40
To: fop-users@xmlgraphics.apache.org
Subject: Re: Is FOP impacted by the Log4shell vulnerability?

Hi all,

I'm using FOP from my application but in command mode (just launching fop.bat 
or through powsershell). The swiss government IT asks me if my application 
could be vulnerable. What must be my response?

My future in jail or not depends on your response ;-)

Thx
JP

Le 13.12.2021 à 17:17, Bryan K. Walton a écrit :
> On Mon, Dec 13, 2021 at 03:02:22PM +, Matt Kynaston wrote:
>> >From what I can tell (I just use the library) it doesn't depend on 
>> >log4j
>> itself. However, given that the library is typically included in 
>> other applications and that may well use a vulnerable version, your 
>> best bet is to check the actual jars / wars with a tool like at 
>> https://www.lunasec.io/docs/blog/log4j-zero-day-mitigation-guide/#3-d
>> etermine-if-you-are-impacted-by-log4shell
>>
>> If you've got the source code of the application, you should also be 
>> able to view all dependencies with `mvn dependency:tree` and see if 
>> impacted versions of log4j show up there.
>>
>> Best of luck.
>
> Thanks, Matt!
>
> -Bryan
>
> -
> 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



  1   2   3   4   5   6   7   8   9   10   >