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



[ANN] Apache FOP 2.9 Released

2023-08-22 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP Version 2.9 [1].

Apache FOP (Formatting Objects Processor) [2] is an output independent print
formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java
application that reads a formatting object tree and renders the resulting
pages to a specified output format, of which a variety of formats are
supported. Apache FOP is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

Add support for font-selection-strategy=character-by-character
Allow XMP at PDF page level
Allow use of page position only on redo of layout

For release notes see [4]. Source and binary distributions can be downloaded
from an ASF Mirror at [5]. Further download information is available at [6].
Maven artifacts for this release are available at [7].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [5].

[1] http://xmlgraphics.apache.org/fop/2.9/
[2] http://xmlgraphics.apache.org/fop
[3] http://www.w3.org/TR/xsl11/
[4] http://xmlgraphics.apache.org/fop/changes.html
[5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop
[6] http://xmlgraphics.apache.org/fop/download.html
[7]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop~2.9~~

The Apache XML Graphics team.







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



[ANN] Apache FOP-PDF-Images 2.9 Released

2023-08-22 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP-PDF-Images Version 2.9 [1].

This package contains classes which add support using PDF images in
fo:external-graphic elements when you generate PDF files. This means you can
write something like:



Apache FOP-PDF-Images is published under the Apache License v2.0.

This release fixes a number of bugs.

For release notes see [1]. Source and binary distributions can be downloaded
from an ASF Mirror at [2]. Further download information is available at [1].
Maven artifacts for this release are available at [3].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [2].

[1] https://xmlgraphics.apache.org/fop/fop-pdf-images.html
[2] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop-pdf-images
[3]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop-pdf-images~2.9~~

The Apache XML Graphics team.







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



[ANN] Apache XML Graphics Commons 2.9 Released

2023-08-22 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the availability of
Apache XML Graphics Commons 2.9.

XML Graphics Commons is a set of components for dealing with graphics e.g.,
PNG and TIFF codecs, Graphics2D implementations that generate PDF and
PostScript, an XMP metadata framework, etc.

It is primarily used by its sister projects Apache Batik and Apache FOP, but
can also be used independently.

This is a minor update to be compatible with the FOP 2.9 release.

For more information, see here:
http://xmlgraphics.apache.org/commons/

To download, see here:
http://xmlgraphics.apache.org/commons/download.html

The Apache XML Graphics team.





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

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



[ANN] Apache FOP 2.8 Released

2022-11-09 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP Version 2.8 [1].

Apache FOP (Formatting Objects Processor) [2] is an output independent print
formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java
application that reads a formatting object tree and renders the resulting
pages to a specified output format, of which a variety of formats are
supported. Apache FOP is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

Require Java 8 or later
Transparency color support
Light weight line breaking option

For release notes see [4]. Source and binary distributions can be downloaded
from an ASF Mirror at [5]. Further download information is available at [6].
Maven artifacts for this release are available at [7].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [5].

[1] http://xmlgraphics.apache.org/fop/2.8/
[2] http://xmlgraphics.apache.org/fop
[3] http://www.w3.org/TR/xsl11/
[4] http://xmlgraphics.apache.org/fop/changes.html
[5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop
[6] http://xmlgraphics.apache.org/fop/download.html
[7]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop~2.8~~

The Apache XML Graphics team.






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



[ANN] Apache FOP-PDF-Images 2.8 Released

2022-11-09 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP-PDF-Images Version 2.8 [1].

This package contains classes which add support using PDF images in
fo:external-graphic elements when you generate PDF files. This means you can
write something like:



Apache FOP-PDF-Images is published under the Apache License v2.0.

This release fixes a number of bugs.

For release notes see [1]. Source and binary distributions can be downloaded
from an ASF Mirror at [2]. Further download information is available at [1].
Maven artifacts for this release are available at [3].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [2].

[1] https://xmlgraphics.apache.org/fop/fop-pdf-images.html
[2] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop-pdf-images
[3]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop-pdf-images~2.8~~

The Apache XML Graphics team.






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



[ANN] Apache XML Graphics Commons 2.8 Released

2022-11-09 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the availability of
Apache XML Graphics Commons 2.8.

XML Graphics Commons is a set of components for dealing with graphics e.g.,
PNG and TIFF codecs, Graphics2D implementations that generate PDF and
PostScript, an XMP metadata framework, etc.

It is primarily used by its sister projects Apache Batik and Apache FOP, but
can also be used independently.

This is a minor update to be compatible with the FOP 2.8 release.

For more information, see here:
http://xmlgraphics.apache.org/commons/

To download, see here:
http://xmlgraphics.apache.org/commons/download.html

The Apache XML Graphics team.




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



Java 8

2022-02-03 Thread Simon Steiner
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



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



[ANN] Apache FOP 2.7 Released

2022-01-20 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP Version 2.7 [1].

Apache FOP (Formatting Objects Processor) [2] is an output independent print
formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java
application that reads a formatting object tree and renders the resulting
pages to a specified output format, of which a variety of formats are
supported. Apache FOP is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

Allow to embed native PDF in AFP

For release notes see [4]. Source and binary distributions can be downloaded
from an ASF Mirror at [5]. Further download information is available at [6].
Maven artifacts for this release are available at [7].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [5].

[1] http://xmlgraphics.apache.org/fop/2.7/
[2] http://xmlgraphics.apache.org/fop
[3] http://www.w3.org/TR/xsl11/
[4] http://xmlgraphics.apache.org/fop/changes.html
[5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop
[6] http://xmlgraphics.apache.org/fop/download.html
[7]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop~2.7~~

The Apache XML Graphics team.





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



[ANN] Apache FOP-PDF-Images 2.7 Released

2022-01-20 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP-PDF-Images Version 2.7 [1].

This package contains classes which add support using PDF images in
fo:external-graphic elements when you generate PDF files. This means you can
write something like:



Apache FOP-PDF-Images is published under the Apache License v2.0.

This release fixes a number of bugs.

For release notes see [1]. Source and binary distributions can be downloaded
from an ASF Mirror at [2]. Further download information is available at [1].
Maven artifacts for this release are available at [3].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [2].

[1] https://xmlgraphics.apache.org/fop/fop-pdf-images.html
[2] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop-pdf-images
[3]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop-pdf-images~2.7~~

The Apache XML Graphics team.





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



[ANN] Apache XML Graphics Commons 2.7 Released

2022-01-20 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the availability of
Apache XML Graphics Commons 2.7.

XML Graphics Commons is a set of components for dealing with graphics e.g.,
PNG and TIFF codecs, Graphics2D implementations that generate PDF and
PostScript, an XMP metadata framework, etc.

It is primarily used by its sister projects Apache Batik and Apache FOP, but
can also be used independently.

This is a minor update to be compatible with the FOP 2.7 release.

For more information, see here:
http://xmlgraphics.apache.org/commons/

To download, see here:
http://xmlgraphics.apache.org/commons/download.html

The Apache XML Graphics team.



-
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-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: Embed image from database, not from file

2021-03-26 Thread Simon Steiner
Hi,

 

Something like this:



 

Thanks

 

From: Markus Ruggiero  
Sent: 26 March 2021 14:44
To: fop-users@xmlgraphics.apache.org
Subject: Re: Embed image from database, not from file

 

Sounds great. How would that look like? How would I embed the data in the
xml and then reference from xsl?
Thanks a lot





On 26 Mar 2021, at 15:08, Simon Steiner mailto:simonsteiner1...@gmail.com> > wrote:

 

Hi,

The uri can be a data url also

Thanks

-Original Message-
From: Markus Ruggiero mailto:mailingli...@kataputt.com> > 
Sent: 26 March 2021 13:45
To: fop-users@xmlgraphics.apache.org
<mailto:fop-users@xmlgraphics.apache.org> 
Subject: Embed image from database, not from file

Folks,

I have image data stored in a database, not as a file. It is JPEG data in
Base64 encoding. My understanding is that with fo.external-graphic I can
only use a proper file url for the image reference - but there is no file in
my case. Is there any other way to embed image data in the PDF output? Can I
somehow put the image data into the input xml data file and pull it from
there?

Thanks for any help
---markus---
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org> 
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
<mailto:fop-users-h...@xmlgraphics.apache.org> 



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

 



RE: Embed image from database, not from file

2021-03-26 Thread Simon Steiner
Hi,

The uri can be a data url also

Thanks

-Original Message-
From: Markus Ruggiero  
Sent: 26 March 2021 13:45
To: fop-users@xmlgraphics.apache.org
Subject: Embed image from database, not from file

Folks,

I have image data stored in a database, not as a file. It is JPEG data in
Base64 encoding. My understanding is that with fo.external-graphic I can
only use a proper file url for the image reference - but there is no file in
my case. Is there any other way to embed image data in the PDF output? Can I
somehow put the image data into the input xml data file and pull it from
there?

Thanks for any help
---markus---
-
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: TTF->AFP Font | Looking for IBM Type Transformer for Windows

2021-02-26 Thread Simon Steiner
Hi,

 

You can embed ttf into AFP using fop

TrueType font configuration looks like:

 







 

Thanks

 

From: Tino maier  
Sent: 26 February 2021 13:05
To: fop-users@xmlgraphics.apache.org
Subject: TTF->AFP Font | Looking for IBM Type Transformer for Windows

 

Hi everyone,
 
I'm trying to create some afp raster fonts from true type fonts and I found the 
link to the "IBM Type Transformer for Windows 
 " on the 
AFP-Resource Wiki-Page.
Unfortunately the link is broken and the software seems to be gone.
 
Does anyone have a copy of it and could send it to me? This would be great.
Best regards, Tino

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



RE: Supporting Emojis in PDFs

2021-01-27 Thread Simon Steiner
Hi,

Also try NotoColorEmoji_WindowsCompatible.ttf

Thanks

-Original Message-
From: Simon Steiner  
Sent: 27 January 2021 15:07
To: fop-users@xmlgraphics.apache.org
Subject: RE: Supporting Emojis in PDFs

Hi,

What about using OpenMoji-Color? You should raise a bug but NotoColorEmoji 
doesn’t open in fontforge.

Thanks

-Original Message-
From: Martin Furek  
Sent: 27 January 2021 14:22
To: fop-users@xmlgraphics.apache.org
Subject: Supporting Emojis in PDFs

I would like to support new emojis in my PDFs, even the ones divided by a ZWJ 
(zero width joiner) such as are present in the NotoColorEmoji font 
(https://www.google.com/get/noto/) like the health worker emoji.
However, using the mentioned font results in an exception. What are my options, 
since in the ISSUES you suggest using a font containing the desired glyphs?

Exception when loading NotoColorEmoji.ttf:
2021-01-27 15:19:18,104 ERROR [org.apa.fop.fon.LazyFont]
(ForkJoinPool.commonPool-worker-3) Failed to read font file 
file:///C:/Roboto/Noto/NotoColorEmo
ji.ttf 'loca' table not found, happens when the font file doesn't contain 
TrueType outlines (trying to read an OpenType CFF font
maybe?): java.io.IOExce
ption: 'loca' table not found, happens when the font file doesn't contain 
TrueType outlines (trying to read an OpenType CFF font maybe?)
at 
org.apache.fop.fonts.truetype.TTFFile.readIndexToLocation(TTFFile.java:180)
at 
org.apache.fop.fonts.truetype.TTFFile.updateBBoxAndOffset(TTFFile.java:169)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:856)
at 
org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:119)
at 
org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:103)
at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:126)
at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:110)
at org.apache.fop.fonts.LazyFont.load(LazyFont.java:121)
at org.apache.fop.fonts.LazyFont.getRealFont(LazyFont.java:147)
at org.apache.fop.fonts.Font.getRealFontMetrics(Font.java:318)
at org.apache.fop.fonts.Font.hasCodePoint(Font.java:291)
at 
org.apache.fop.fonts.FontSelector.selectFontForCharactersInText(FontSelector.java:124)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:955)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:819)
at 
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:331)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:698)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:627)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:292)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at 
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:191)
at 
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120)
at 
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:63)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:270)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:212)
at 
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:274)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:223)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:148)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:116)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:252)
at 
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:675)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:179)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:159)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:385)
at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:113

RE: Supporting Emojis in PDFs

2021-01-27 Thread Simon Steiner
Hi,

What about using OpenMoji-Color? You should raise a bug but NotoColorEmoji 
doesn’t open in fontforge.

Thanks

-Original Message-
From: Martin Furek  
Sent: 27 January 2021 14:22
To: fop-users@xmlgraphics.apache.org
Subject: Supporting Emojis in PDFs

I would like to support new emojis in my PDFs, even the ones divided by a ZWJ 
(zero width joiner) such as are present in the NotoColorEmoji font 
(https://www.google.com/get/noto/) like the health worker emoji.
However, using the mentioned font results in an exception. What are my options, 
since in the ISSUES you suggest using a font containing the desired glyphs?

Exception when loading NotoColorEmoji.ttf:
2021-01-27 15:19:18,104 ERROR [org.apa.fop.fon.LazyFont]
(ForkJoinPool.commonPool-worker-3) Failed to read font file 
file:///C:/Roboto/Noto/NotoColorEmo
ji.ttf 'loca' table not found, happens when the font file doesn't contain 
TrueType outlines (trying to read an OpenType CFF font
maybe?): java.io.IOExce
ption: 'loca' table not found, happens when the font file doesn't contain 
TrueType outlines (trying to read an OpenType CFF font maybe?)
at 
org.apache.fop.fonts.truetype.TTFFile.readIndexToLocation(TTFFile.java:180)
at 
org.apache.fop.fonts.truetype.TTFFile.updateBBoxAndOffset(TTFFile.java:169)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:856)
at 
org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:119)
at 
org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:103)
at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:126)
at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:110)
at org.apache.fop.fonts.LazyFont.load(LazyFont.java:121)
at org.apache.fop.fonts.LazyFont.getRealFont(LazyFont.java:147)
at org.apache.fop.fonts.Font.getRealFontMetrics(Font.java:318)
at org.apache.fop.fonts.Font.hasCodePoint(Font.java:291)
at 
org.apache.fop.fonts.FontSelector.selectFontForCharactersInText(FontSelector.java:124)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:955)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:819)
at 
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:331)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:698)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:627)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:292)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at 
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:191)
at 
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120)
at 
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:63)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:270)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:212)
at 
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:274)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:223)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:148)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:116)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:252)
at 
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:675)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:179)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:159)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:385)
at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:113)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:143)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at 

[ANN] Apache XML Graphics Commons 2.6 Released

2021-01-21 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the availability of
Apache XML Graphics Commons 2.6.

XML Graphics Commons is a set of components for dealing with graphics e.g.,
PNG and TIFF codecs, Graphics2D implementations that generate PDF and
PostScript, an XMP metadata framework, etc.

It is primarily used by its sister projects Apache Batik and Apache FOP, but
can also be used independently.

This is a minor update to be compatible with the FOP 2.6 release.

For more information, see here:
http://xmlgraphics.apache.org/commons/

To download, see here:
http://xmlgraphics.apache.org/commons/download.html

The Apache XML Graphics team.


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



[ANN] Apache FOP-PDF-Images 2.6 Released

2021-01-21 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP-PDF-Images Version 2.6 [1].

This package contains classes which add support using PDF images in
fo:external-graphic elements when you generate PDF files. This means you can
write something like:



Apache FOP-PDF-Images is published under the Apache License v2.0.

This release fixes a number of bugs.

For release notes see [1]. Source and binary distributions can be downloaded
from an ASF Mirror at [2]. Further download information is available at [1].
Maven artifacts for this release are available at [3].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [2].

[1] https://xmlgraphics.apache.org/fop/fop-pdf-images.html
[2] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop-pdf-images
[3]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop-pdf-images~2.6~~

The Apache XML Graphics team.




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



[ANN] Apache FOP 2.6 Released

2021-01-21 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP Version 2.6 [1].

Apache FOP (Formatting Objects Processor) [2] is an output independent print
formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java
application that reads a formatting object tree and renders the resulting
pages to a specified output format, of which a variety of formats are
supported. Apache FOP is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

Support OTF/TTF SVG fonts
Allow overpaint of PDF border

For release notes see [4]. Source and binary distributions can be downloaded
from an ASF Mirror at [5]. Further download information is available at [6].
Maven artifacts for this release are available at [7].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [5].

[1] http://xmlgraphics.apache.org/fop/2.6/
[2] http://xmlgraphics.apache.org/fop
[3] http://www.w3.org/TR/xsl11/
[4] http://xmlgraphics.apache.org/fop/changes.html
[5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop
[6] http://xmlgraphics.apache.org/fop/download.html
[7]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop~2.6~~

The Apache XML Graphics team.




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



RE: Macron alphabets (ā) issue

2020-07-23 Thread Simon Steiner
Hi,

 

What about configuring a custom font for your text.

https://xmlgraphics.apache.org/fop/trunk/fonts.html

 

Thanks

 

From: ., Manjunath (TR Technology)
 
Sent: 23 July 2020 10:02
To: fop-users@xmlgraphics.apache.org
Subject: Macron alphabets (ā) issue

 

Hi Team,

 

We are using Apache FOP for converting files from FO to PDF. Macrons
alphabets (ex :  ā) are displaying as (#) hash in output PDF file. However
for different special characters we are NOT seeing the issue. I have tried
using Unicode and HTML entity as suggested in
https://xmlgraphics.apache.org/fop/fo.html in our FO file, but this does not
solved the problem. Find attached zip file containing input FO and output
PDF file.

 

Is there any open or existing issue from Apache FOP for Macron characters ?
could you please suggest if there is a work around for the same ?

 

Thanks,

Manju

This e-mail is for the sole use of the intended recipient and contains
information that may be privileged and/or confidential. If you are not an
intended recipient, please notify the sender by return e-mail and delete
this e-mail and any attachments. Certain required legal entity disclosures
can be accessed on our website:
https://www.thomsonreuters.com/en/resources/disclosures.html 



[ANN] Apache FOP-PDF-Images 2.5 Released

2020-05-13 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP-PDF-Images Version 2.5 [1].

This package contains classes which add support using PDF images in
fo:external-graphic elements when you generate PDF files. This means you can
write something like:



Apache FOP-PDF-Images is published under the Apache License v2.0.

This release fixes a number of bugs.

For release notes see [1]. Source and binary distributions can be downloaded
from an ASF Mirror at [2]. Further download information is available at [1].
Maven artifacts for this release are available at [3].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [2].

[1] https://xmlgraphics.apache.org/fop/fop-pdf-images.html
[2] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop-pdf-images
[3]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop-pdf-images~2.5~~

The Apache XML Graphics team.



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



[ANN] Apache FOP 2.5 Released

2020-05-13 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP Version 2.5 [1].

Apache FOP (Formatting Objects Processor) [2] is an output independent print
formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java
application that reads a formatting object tree and renders the resulting
pages to a specified output format, of which a variety of formats are
supported. Apache FOP is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

Allow to hide empty blocks from structure tree

For release notes see [4]. Source and binary distributions can be downloaded
from an ASF Mirror at [5]. Further download information is available at [6].
Maven artifacts for this release are available at [7].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [5].

[1] http://xmlgraphics.apache.org/fop/2.5/
[2] http://xmlgraphics.apache.org/fop
[3] http://www.w3.org/TR/xsl11/
[4] http://xmlgraphics.apache.org/fop/changes.html
[5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop
[6] http://xmlgraphics.apache.org/fop/download.html
[7]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop~2.5~~

The Apache XML Graphics team.



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



RE: build error in fop-trunk

2020-04-06 Thread Simon Steiner
Hi,

I fixed the other failure now.

Thanks

-Original Message-
From: Simon Steiner  
Sent: 02 April 2020 12:21
To: fop-users@xmlgraphics.apache.org; jfrm.mau...@gmail.com
Subject: RE: build error in fop-trunk

Hi,

I've fixed one of your failures, the other tests were passing for me on windows.

Thanks

-Original Message-
From: jfrm.mau...@gmail.com  
Sent: 18 March 2020 17:17
To: fop-users@xmlgraphics.apache.org
Subject: Re: build error in fop-trunk


Hi Simon,

Thank you for your suggestion.

Le 18/03/2020 à 16:33, Simon Steiner a écrit :
> mvn clean install -DskipTests
This one works however as I am trying to learn I would prefer a clean build.

Regards

-- 
Jean-François MAUREL
PIMECA
http://www.pimeca.com


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




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



RE: build error in fop-trunk

2020-04-02 Thread Simon Steiner
Hi,

I've fixed one of your failures, the other tests were passing for me on windows.

Thanks

-Original Message-
From: jfrm.mau...@gmail.com  
Sent: 18 March 2020 17:17
To: fop-users@xmlgraphics.apache.org
Subject: Re: build error in fop-trunk


Hi Simon,

Thank you for your suggestion.

Le 18/03/2020 à 16:33, Simon Steiner a écrit :
> mvn clean install -DskipTests
This one works however as I am trying to learn I would prefer a clean build.

Regards

-- 
Jean-François MAUREL
PIMECA
http://www.pimeca.com


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



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



RE: Wrong printed glyph with PCL renderer and TTF font

2020-04-02 Thread Simon Steiner
Hi,

Can you raise a bug in jira

Thanks

-Original Message-
From: De-Rancourt Eric  
Sent: 01 April 2020 14:42
To: fop-users@xmlgraphics.apache.org
Subject: Wrong printed glyph with PCL renderer and TTF font 

Hi everyone,

I am trying to transform a document using the PCL renderer with special 
characters like "euro". For reasons of rendering quality and file size, I want 
to integrate true type fonts using the PCLSoftFont function.

First test: with the first configuration file (cfg_1.xml):
   - The second block of text does not import new characters in the pcl 
soft font
   - There is a wrong selection of characters for the first character

Second test: with a second configuration file (cfg_2.xml) using 
" true "
   - There is a wrong selection of glyphs for the first character

After some tests and code reading, it seems that the Arial font (and probably 
other true type fonts) uses composite glyphs (for example: "É" uses the glyphs 
40 and 141). When adding new characters from 32 to 49, the glyph "40" displays 
a "w" but not an "E" as expected in the PCL document. 
Mapped characters after second try : {= 47, a = 33, c = 43, d = 46, e = 35, É = 
32, i = 49, € = 41, l = 48, n = 45, o = 44, r = 36 , s = 42, t = 37, u = 39, w 
= 40, y = 38, z = 34}

I really don't know how to resolve this situation. 
Can you give some keys to manage this issue and tell me how I can help ?

PDF and postscript renders work well.

Best regards,
Eric de RANCOURT


Attachments:
- test.if: intermediate file containing the test document

- cfg_1.xml: first configuration file
- test_1.pcl: result of the first test
- test_1.pcl_analysis.txt: test_1.pcl Paraphernalia analysis

- cfg_2.xml: second configuration file
- test_2.pcl: result of the second test
- test_2.pcl_analysis.txt: test_2.pcl Paraphernalia analysis 

Environment : 
 - Apache Fop 2.4
 - Openjdk version "11.0.2"
 - Windows 10

  
—
 



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



RE: build error in fop-trunk

2020-03-18 Thread Simon Steiner
Hi,

Try:
mvn clean install -DskipTests

Thanks

-Original Message-
From: jfrm.mau...@gmail.com  
Sent: 18 March 2020 15:00
To: fop-users@xmlgraphics.apache.org
Cc: Chris Bowditch 
Subject: Re: build error in fop-trunk


Hi Chris,

Thank you for your answer.

Le 18/03/2020 à 15:18, Chris Bowditch a écrit :
> Can you share the errors you are seeing?

Sure.

I investigated a little bit more:
1- an event-model.xml was missing because ANT_HOME was not set on my 
computer if I am not mistaken.
A comment in the README file could help future users may be.
2- I suspect a problem of 'end of line' (I build on Windows 10 with java 
8) in test org.apache.fop.accessibility.fo.FO2StructureTreeConverterTestCase
3- I pasted the full report from maven build below (don't if attachment 
are allowed).

> Also don't forget FOP supports older Java versions so might need to 
> build with Java 7
  Thanks for the tip.

Regards


===
MAVEN BUILD REPORT
===
[INFO] Scanning for projects...
[INFO] 

[INFO] Reactor Build Order:
[INFO]
[INFO] Apache FOP 
Parent  [pom]
[INFO] Apache FOP 
Utilities   [jar]
[INFO] Apache FOP 
Events  [jar]
[INFO] Apache FOP 
Core[jar]
[INFO] Apache FOP 
All-In-One  [jar]
[INFO] Apache FOP 
Sandbox [jar]
[INFO] Apache FOP 
Servlet [war]
[INFO] Apache FOP 
Transcoder  [jar]
[INFO] Apache FOP Transcoder 
All-In-One   [jar]
[INFO]
[INFO] -< org.apache.xmlgraphics:fop-parent 
 >--
[INFO] Building Apache FOP Parent 
2.5.0-SNAPSHOT  [1/9]
[INFO] [ pom 
]-
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ 
fop-parent ---
[INFO] Installing D:\git\xmlgraphics-fop\pom.xml to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-parent\2.5.0-SNAPSHOT\fop-parent-2.5.0-SNAPSHOT.pom
[INFO]
[INFO] --< org.apache.xmlgraphics:fop-util 
 >---
[INFO] Building Apache FOP Utilities 
2.5.0-SNAPSHOT   [2/9]
[INFO] [ jar 
]-
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-util ---
[INFO] Deleting D:\git\xmlgraphics-fop\fop-util\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
fop-util ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
D:\git\xmlgraphics-fop\fop-util\src\main\resources
[INFO] Copying 2 resources to META-INF
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
fop-util ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to 
D:\git\xmlgraphics-fop\fop-util\target\classes
[WARNING] 
/D:/git/xmlgraphics-fop/fop-util/src/main/java/org/apache/fop/util/XMLResourceBundle.java:
 
D:\git\xmlgraphics-fop\fop-util\src\main\java\org\apache\fop\util\XMLResourceBundle.java
 
uses unchecked or unsafe operations.
[WARNING] 
/D:/git/xmlgraphics-fop/fop-util/src/main/java/org/apache/fop/util/XMLResourceBundle.java:
 
Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources 
(default-testResources) @ fop-util ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
D:\git\xmlgraphics-fop\fop-util\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
fop-util ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ fop-util ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.1.1:jar (default-jar) @ fop-util ---
[INFO] Building jar: 
D:\git\xmlgraphics-fop\fop-util\target\fop-util-2.5.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ fop-util ---
[INFO] Installing 
D:\git\xmlgraphics-fop\fop-util\target\fop-util-2.5.0-SNAPSHOT.jar to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-util\2.5.0-SNAPSHOT\fop-util-2.5.0-SNAPSHOT.jar
[INFO] Installing D:\git\xmlgraphics-fop\fop-util\pom.xml to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-util\2.5.0-SNAPSHOT\fop-util-2.5.0-SNAPSHOT.pom
[INFO]
[INFO] -< org.apache.xmlgraphics:fop-events 
 >--
[INFO] Building Apache FOP Events 
2.5.0-SNAPSHOT  [3/9]
[INFO] 

RE: Surrogate pair error

2020-02-24 Thread Simon Steiner
HI,

 

Can you set the font-family in the fo file and add a font to the fop.xconf?

 

Thanks

 

From: Jan Driesen  
Sent: 24 February 2020 11:34
To: fop-users@xmlgraphics.apache.org
Subject: Surrogate pair error

 

Hi everybody,

 

 

We have a document containing the following character: Unicode Character
'CYPRIOT SYLLABLE RO' (U+10826)

When running fop (2.4) to render a pdf, it fails with the exception pasted
below. Attached you can find a sample fo file that contains the character
and produces the error.

I understand that fop 2.3 introduced support for surrogate pairs.

 

feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure

INFO: Default page-height set to: 11.00in

feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure

INFO: Default page-width set to: 8.50in

feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener
processEvent

WARNING: Glyph "?" (0xd802) not available in font "Helvetica".

feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener
processEvent

WARNING: Glyph "?" (0xdc26) not available in font "Helvetica".

feb 24, 2020 12:24:02 PM org.apache.fop.area.RenderPagesModel addPage

SEVERE: Error while rendering page 1

java.lang.StringIndexOutOfBoundsException: String index out of range: 1

at java.lang.String.charAt(String.java:658)

at
org.apache.fop.util.CharUtilities.containsSurrogatePairAt(CharUtilities.java
:417)

at
org.apache.fop.render.pdf.PDFPainter.drawTextWithDX(PDFPainter.java:494)

at
org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:436)

at
org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:449)

at
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java
:1237)

at
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:106
3)

at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.jav
a:861)

at
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.ja
va:926)

at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:
845)

at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:70
4)

at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758
)

at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:99
8)

at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:68
9)

at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:591)

at
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOr
ientedRenderer.java:789)

at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.
java:568)

at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.jav
a:433)

at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer
.java:380)

at
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRendere
r.java:737)

at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java
:345)

at
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:318)

at
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587
)

at
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)

at
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(Abstra
ctPageSequenceLayoutManager.java:316)

at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLa
youtManager.java:243)

at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequen
ceLayoutManager.java:147)

at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267
)

at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139)

at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:
362)

at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)

at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1102)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)

at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown
Source)

at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

   

RE: Embedding Apache FOP 2.4: auto detect fonts without reading a config-file

2020-02-11 Thread Simon Steiner
Hi,

Something like:

String fopxconf = "xxx";
FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI(),
new ByteArrayInputStream(fopxconf.getBytes()));
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();

Thanks

-Original Message-
From: Roman Steiner  
Sent: 08 February 2020 14:48
To: fop-users@xmlgraphics.apache.org
Subject: Embedding Apache FOP 2.4: auto detect fonts without reading a 
config-file

Hello,

At the moment I try various things with the "ExampleFO2PDF < 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup
>
".

Is it possible to set auto detecting fonts direct in the Java code without 
reading a config-file.
Could someone give me an example of how this would work, if it is possible?

Thanks,
Roman


-
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



[ANN] Apache FOP-PDF-Images 2.4 Released

2019-11-06 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP-PDF-Images Version 2.4 [1].

This package contains classes which add support using PDF images in
fo:external-graphic elements when you generate PDF files. This means you can
write something like:



Apache FOP-PDF-Images is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

Update to PDFBox 2.0.16
Allow PDFFormXObject to improve performance

For release notes see [1]. Source and binary distributions can be downloaded
from an ASF Mirror at [2]. Further download information is available at [1].
Maven artifacts for this release are available at [3].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [2].

[1] https://xmlgraphics.apache.org/fop/fop-pdf-images.html
[2] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop-pdf-images
[3]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop-pdf-images~2.4~~

The Apache XML Graphics team.


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



[ANN] Apache XML Graphics Commons 2.4 Released

2019-11-06 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the availability of
Apache XML Graphics Commons 2.4.

XML Graphics Commons is a set of components for dealing with graphics e.g.,
PNG and TIFF codecs, Graphics2D implementations that generate PDF and
PostScript, an XMP metadata framework, etc.

It is primarily used by its sister projects Apache Batik and Apache FOP,
but can also be used independently.

This is a minor update to be compatible with the FOP 2.4 release.

For more information, see here:
http://xmlgraphics.apache.org/commons/

To download, see here:
http://xmlgraphics.apache.org/commons/download.html

The Apache XML Graphics team.


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



[ANN] Apache FOP 2.4 Released

2019-11-06 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP Version 2.4 [1].

Apache FOP (Formatting Objects Processor) [2] is an output independent print
formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java
application that reads a formatting object tree and renders the resulting
pages to a specified output format, of which a variety of formats are
supported. Apache FOP is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

Require Java 7 or later
Drop dependency on Avalon-Framework
Add change bar generation
Add support for Khmer complex script

For release notes see [4]. Source and binary distributions can be downloaded
from an ASF Mirror at [5]. Further download information is available at [6].
Maven artifacts for this release are available at [7].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [5].

[1] http://xmlgraphics.apache.org/fop/2.4/
[2] http://xmlgraphics.apache.org/fop
[3] http://www.w3.org/TR/xsl11/
[4] http://xmlgraphics.apache.org/fop/changes.html
[5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop
[6] http://xmlgraphics.apache.org/fop/download.html
[7]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop~2.4~~

The Apache XML Graphics team.


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



RE: Help to upgrade code from FOP 1.1 to FOP 2.2

2019-10-15 Thread Simon Steiner
Hi,

 

There maybe some help in:

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

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

 

Thanks

 

From: Luis Panadero Guardeño  
Sent: 15 October 2019 16:29
To: fop-users@xmlgraphics.apache.org
Cc: Luis Panadero Guardeño 
Subject: Re: Help to upgrade code from FOP 1.1 to FOP 2.2

 

And how I assign a URIResolver to it ?

El 15/10/19 a las 15:43, Simon Steiner escribió:

Hi,

 

You can try using on FOP 2.x

FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());

 

Thanks

 

From: Luis Panadero Guardeño  <mailto:luis.panad...@digibis.com> 
 
Sent: 15 October 2019 08:52
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Cc: Luis Panadero Guardeño  <mailto:luis.panad...@digibis.com> 

Subject: Help to upgrade code from FOP 1.1 to FOP 2.2

 

Hi,

I'm trying to upgrade some old code to FOP 2.2. After seeing the upgrade 
examples on the web, I don't have clue how upgrade this code. This os the old 
code that works perfectly on FOP 1.1 : 

public static Result createXmlResult(OutputStream output, URIResolver 
uriResolver)
throws FOPException
{
FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
foUserAgent.setURIResolver(uriResolver);

Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, 
output);
return new SAXResult(fop.getDefaultHandler());
}

¿Any suggestion ?

 

-- 

Luis Panadero Guardeño
Departamento de Informática
luis.panad...@digibis.com <mailto:luis.panad...@digibis.com>  



DIGIBÍS S.L. 

 

C/ Alenza, 4, 5ª planta.
28003 Madrid
Tf. 91 432 08 88 . Fax 91 432 11 13 

http://www.digibis.com <http://www.digibis.com/>  

Certificado ISO 9001.
No imprimir si no es necesario. Protejamos el Medio Ambiente 

En cumplimiento de la LOPD y la LSSI, le informamos de que sus datos personales 
son incorporados a un fichero, titularidad de DIGIBÍS, S.L., con el fin de 
ofrecerle información sobre servicios que pueden ser de su interés. Podrá 
ejercitar sus derechos ARCO (de acceso, rectificación, cancelación y oposición) 
mediante un escrito dirigido a  digi...@digibis.com 
<mailto:digi...@digibis.com>  , con copia del DNI o documento identificativo 
sustitutorio.
En caso de querer darse de baja pinche aquí 
<mailto:digi...@digibis.com?subject=DAR%20DE%20BAJA> . 

 

-- 

Luis Panadero Guardeño
Departamento de Informática
luis.panad...@digibis.com <mailto:luis.panad...@digibis.com>  



DIGIBÍS S.L. 

 

C/ Alenza, 4, 5ª planta.
28003 Madrid
Tf. 91 432 08 88 . Fax 91 432 11 13 

http://www.digibis.com <http://www.digibis.com/>  

Certificado ISO 9001.
No imprimir si no es necesario. Protejamos el Medio Ambiente 

En cumplimiento de la LOPD y la LSSI, le informamos de que sus datos personales 
son incorporados a un fichero, titularidad de DIGIBÍS, S.L., con el fin de 
ofrecerle información sobre servicios que pueden ser de su interés. Podrá 
ejercitar sus derechos ARCO (de acceso, rectificación, cancelación y oposición) 
mediante un escrito dirigido a  digi...@digibis.com , con copia del DNI o 
documento identificativo sustitutorio.
En caso de querer darse de baja pinche aquí 
<mailto:digi...@digibis.com?subject=DAR%20DE%20BAJA> . 

 



RE: Help to upgrade code from FOP 1.1 to FOP 2.2

2019-10-15 Thread Simon Steiner
Hi,

 

You can try using on FOP 2.x

FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());

 

Thanks

 

From: Luis Panadero Guardeño  
Sent: 15 October 2019 08:52
To: fop-users@xmlgraphics.apache.org
Cc: Luis Panadero Guardeño 
Subject: Help to upgrade code from FOP 1.1 to FOP 2.2

 

Hi,

I'm trying to upgrade some old code to FOP 2.2. After seeing the upgrade 
examples on the web, I don't have clue how upgrade this code. This os the old 
code that works perfectly on FOP 1.1 : 

public static Result createXmlResult(OutputStream output, URIResolver 
uriResolver)
throws FOPException
{
FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
foUserAgent.setURIResolver(uriResolver);

Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, 
output);
return new SAXResult(fop.getDefaultHandler());
}

¿Any suggestion ?

 

-- 

Luis Panadero Guardeño
Departamento de Informática
luis.panad...@digibis.com   



DIGIBÍS S.L. 

 

C/ Alenza, 4, 5ª planta.
28003 Madrid
Tf. 91 432 08 88 . Fax 91 432 11 13 

http://www.digibis.com   

Certificado ISO 9001.
No imprimir si no es necesario. Protejamos el Medio Ambiente 

En cumplimiento de la LOPD y la LSSI, le informamos de que sus datos personales 
son incorporados a un fichero, titularidad de DIGIBÍS, S.L., con el fin de 
ofrecerle información sobre servicios que pueden ser de su interés. Podrá 
ejercitar sus derechos ARCO (de acceso, rectificación, cancelación y oposición) 
mediante un escrito dirigido a  digi...@digibis.com , con copia del DNI o 
documento identificativo sustitutorio.
En caso de querer darse de baja pinche aquí 
 . 

 



RE: Relative resource paths for external graphics where uri resolution is affected by every render request context

2019-07-03 Thread Simon Steiner
Hi,

 

The fopfactory isn't thread safe so cant be used across threads.

 

Thanks

 

From: Mark Gibson [mailto:mark.gib...@staff.bluematrix.com] 
Sent: 03 July 2019 11:39
To: fop-users@xmlgraphics.apache.org
Subject: RE: Relative resource paths for external graphics where uri
resolution is affected by every render request context

 

Thank you Simon.  I had considered that, but had wondered if there was a
more inherently thread safe approach.  Thankfully, our system is going to be
single threaded so this isn't a big issue.

 

From: Simon Steiner mailto:simonsteiner1...@gmail.com> > 
Sent: 02 July 2019 20:00
To: fop-users@xmlgraphics.apache.org
<mailto:fop-users@xmlgraphics.apache.org> 
Subject: RE: Relative resource paths for external graphics where uri
resolution is affected by every render request context

 

Hi,

 

The custom resource resolver can be modified at runtime such as
myresourceresolver.useX() to affect its operation.

 

Thanks

 

From: Mark Gibson [mailto:mark.gib...@staff.bluematrix.com] 
Sent: 02 July 2019 19:31
To: fop-users@xmlgraphics.apache.org
<mailto:fop-users@xmlgraphics.apache.org> 
Subject: Relative resource paths for external graphics where uri resolution
is affected by every render request context

 

Hi,

 

We have a Java application with embedded FOP using XSLT transformations to
drive the document rendering.  I'm trying to see if it's possible to specify
external graphics URIs in the XML with a relative path that is only
indirectly related to the baseURI.  I'm finding it hard to put in to words,
so some examples may help .

 

baseURI = /base/path/

 

Relative URI in XML = images/myImage.png

 

Say we have two requests to render a document, the first associated with
account X, and the second associated with account Y.  The full URIs for each
request should resolve to .

 

X: /base/path/X/images/myImage.png

Y: /base/path/Y/images/myImage.png

 

I've looked through the documentation and found that I can override resource
resolving by supplying a custom ResourceResolver when creating a new
FopFactoryBuilder.  However, based on best practices, the FopFactory
instance should be reused for successive renders.  So I cannot apply a
render specific context (in this case, X or Y). 

 

Does anyone know of a way or either supplying extra context to be used by a
custom resolver for each individual render, or apply a different resource
resolver per render?

 

Thanks

Mark



RE: Relative resource paths for external graphics where uri resolution is affected by every render request context

2019-07-02 Thread Simon Steiner
Hi,

 

The custom resource resolver can be modified at runtime such as
myresourceresolver.useX() to affect its operation.

 

Thanks

 

From: Mark Gibson [mailto:mark.gib...@staff.bluematrix.com] 
Sent: 02 July 2019 19:31
To: fop-users@xmlgraphics.apache.org
Subject: Relative resource paths for external graphics where uri resolution
is affected by every render request context

 

Hi,

 

We have a Java application with embedded FOP using XSLT transformations to
drive the document rendering.  I'm trying to see if it's possible to specify
external graphics URIs in the XML with a relative path that is only
indirectly related to the baseURI.  I'm finding it hard to put in to words,
so some examples may help .

 

baseURI = /base/path/

 

Relative URI in XML = images/myImage.png

 

Say we have two requests to render a document, the first associated with
account X, and the second associated with account Y.  The full URIs for each
request should resolve to .

 

X: /base/path/X/images/myImage.png

Y: /base/path/Y/images/myImage.png

 

I've looked through the documentation and found that I can override resource
resolving by supplying a custom ResourceResolver when creating a new
FopFactoryBuilder.  However, based on best practices, the FopFactory
instance should be reused for successive renders.  So I cannot apply a
render specific context (in this case, X or Y). 

 

Does anyone know of a way or either supplying extra context to be used by a
custom resolver for each individual render, or apply a different resource
resolver per render?

 

Thanks

Mark



RE: FOP 2.3 and JEuclid

2019-03-26 Thread Simon Steiner
Hi,

 

The developer of JEuclid will need to be contacted to update their code to work 
with the newer batik.

 

Thanks

 

From: Dean Nelson  
Sent: 26 March 2019 16:38
To: fop-users@xmlgraphics.apache.org
Subject: RE: FOP 2.3 and JEuclid

 

All,

It would be nice to produce a jEuclid version that could be used with 2.3. 
Right now I am stuck with FOP 2.2 because of this change. Right now I don’t see 
any other way to support MathML natively like jEuclid in FOP without a lot of 
rework.

 

Has anyone tested https://github.com/rototor/jeuclid ?

 

Regards,

Dean Nelson

 

 

From: Simon Steiner mailto:simonsteiner1...@gmail.com> > 
Sent: Tuesday, March 26, 2019 3:32 AM
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: RE: FOP 2.3 and JEuclid

 

Hi,

 

In order to make batik compile under java 10, we had to rename the namespace 
since we don’t own org.w3c.

https://issues.apache.org/jira/browse/BATIK-1216

 

Thanks

 

From: Maxime Bégnis mailto:max...@neodoc.fr> > 
Sent: 26 March 2019 08:21
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: FOP 2.3 and JEuclid

 

Hello,

There is an incompatibility between FOP 2.3 and JEuclid 3.1.9. This because FOP 
uses Batik 1.10.

The class "org.w3c.dom.events.CustomEvent" in Batik 1.8 has be moved to 
"org.apache.batik.w3c.dom.events.CustomEvent" in Batik 1.10.

That's the problem I could spot but I don't know if there are others.

I modified and recompile JEuclid core simply changing the import statement in 
net.sourceforge.jeuclid.elements.presentation.token.Mo and that fixed the issue 
but I didn't make any intensive test yet. Attached is the patch.

Is that a known issue? If so, is there a well known way to fix it?

Thanks,

-- 

-- 

NeoDoc

Maxime Bégnis

max...@neodoc.fr <mailto:max...@neodoc.fr> 

Tél: +33 (0)4.42.52.24.20

789 Rue de La Gare

13770 Venelles

France

http://www.neodoc.fr/



RE: FOP 2.3 and JEuclid

2019-03-26 Thread Simon Steiner
Hi,

 

In order to make batik compile under java 10, we had to rename the namespace 
since we don’t own org.w3c.

https://issues.apache.org/jira/browse/BATIK-1216

 

Thanks

 

From: Maxime Bégnis  
Sent: 26 March 2019 08:21
To: fop-users@xmlgraphics.apache.org
Subject: FOP 2.3 and JEuclid

 

Hello,

There is an incompatibility between FOP 2.3 and JEuclid 3.1.9. This because FOP 
uses Batik 1.10.

The class "org.w3c.dom.events.CustomEvent" in Batik 1.8 has be moved to 
"org.apache.batik.w3c.dom.events.CustomEvent" in Batik 1.10.

That's the problem I could spot but I don't know if there are others.

I modified and recompile JEuclid core simply changing the import statement in 
net.sourceforge.jeuclid.elements.presentation.token.Mo and that fixed the issue 
but I didn't make any intensive test yet. Attached is the patch.

Is that a known issue? If so, is there a well known way to fix it?

Thanks,

-- 

-- 

NeoDoc

Maxime Bégnis

max...@neodoc.fr  

Tél: +33 (0)4.42.52.24.20

789 Rue de La Gare

13770 Venelles

France

http://www.neodoc.fr/



RE: Apache Websites down

2019-03-01 Thread Simon Steiner
Hi,

 

They are working for me.

 

Thanks

 

From: Awadhoot Aphale  
Sent: 01 March 2019 11:49
To: fop-users@xmlgraphics.apache.org
Subject: Apache Websites down

 

Hi,

 

I have been trying to access various Apache websites (FOP, Tomahawk, Commons 
FileUpload, Xerces) from yesterday but it it seems they all are down.

 

Any idea what is happening?


 

Thanks



RE: fop + maven + Java-11

2019-02-19 Thread Simon Steiner
Hi,

Can you provide replication steps on fop jira?

Thanks

-Original Message-
From: Rolf Schumacher  
Sent: 18 February 2019 23:12
To: fop-users@xmlgraphics.apache.org
Subject: fop + maven + Java-11

is there an example?

I tried myself and failed, see 
https://stackoverflow.com/questions/54660441/how-to-setup-a-maven-project-using-fop-and-java-11

no solution so far.

any help welcome.


Rolf


-
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: PDF Links using Basic-Link

2019-01-24 Thread Simon Steiner
Hi,

 

My example is the same as yours, I misread the example you sent.

 

Thanks

 

From: Simon Steiner  
Sent: 24 January 2019 08:28
To: fop-users@xmlgraphics.apache.org
Subject: RE: PDF Links using Basic-Link

 

Hi,

 

Example is to use:



  http://www.paulmccartney.com')" 
>Paul McCartney



 

Thanks

 

From: Bjkyavuz mailto:bjkya...@aol.com.INVALID> > 
Sent: 24 January 2019 00:59
To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> 
Subject: PDF Links using Basic-Link

 

Hi guys, 

 

I am using FOP 2.1 to generate a PDF file with external hyperlinks. Even with 
this simple syntax, I end up with just a text in the PDF that cannot be clicked:

 

http://www.lipsum.com/) 
<http://www.lipsum.com/)%22%3eLorem> ">Lorem Ipsum

 

Any clues as to what areas I could be digging deeper into to figure this out?

 

Thanks for the help,

Yavuz



RE: PDF Links using Basic-Link

2019-01-24 Thread Simon Steiner
Hi,

 

Example is to use:



  http://www.paulmccartney.com')" 
>Paul McCartney



 

Thanks

 

From: Bjkyavuz  
Sent: 24 January 2019 00:59
To: fop-users@xmlgraphics.apache.org
Subject: PDF Links using Basic-Link

 

Hi guys, 

 

I am using FOP 2.1 to generate a PDF file with external hyperlinks. Even with 
this simple syntax, I end up with just a text in the PDF that cannot be clicked:

 

http://www.lipsum.com/) 
 ">Lorem Ipsum

 

Any clues as to what areas I could be digging deeper into to figure this out?

 

Thanks for the help,

Yavuz



RE: https external-graphics

2018-12-21 Thread Simon Steiner
Hi,

What java version are you using, try using a recent version. Since the https
cert may not be in your jdk.

Thanks

-Original Message-
From: Neil Smeby  
Sent: 20 December 2018 16:50
To: fop-users@xmlgraphics.apache.org
Subject: https external-graphics

Hello,
I'm having some problems with getting images to resolve when using https
instead of http. An example .fo file follows:

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










https://ichef.bbci.co.uk/images/ic/960x540/p01br4cp.jpg)"
overflow="hidden" content-width="scale-to-fit" content-height="scale-to-fit"
width="100%" scaling="uniform"/>



 

When I run this:
java.exe -Djava.ext.dirs=C:\fop\fop-2.3 org.apache.fop.cli.Main -d -fo
C:\foo\testhttps.fo -pdf C:\foo\testhttps.pdf

Despite curl being able to fetch this image (using https), I get this error:
SEVERE: Image not found. URI:
https://ichef.bbci.co.uk/images/ic/960x540/p01br4cp.jpg. (See position
13:202)

But when I simply change https to http, things work. Is that expected? If
so, why isn't https supported? Are there any workarounds?
Thanks in advance for any help/advice!

-Neil


-
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: pdf/a permissions

2018-10-15 Thread Simon Steiner
Hi,

 

There is

https://xmlgraphics.apache.org/fop/trunk/pdfencryption.html

 

Thanks

 

From: Stefan Kleinbaum  
Sent: 14 October 2018 21:29
To: fop-users@xmlgraphics.apache.org
Subject: pdf/a permissions

 

Dear all,

 

I am working on an application which creates a pdf/a file and I want to 
restrict the further processing of the document (e.g. withdraw the permission 
to print the document as another pdf document). Is that possible with fop? How 
would that be possible?

 

Best regards,

Stefan



RE: Does FOP makes use of multiple CPUs?

2018-08-31 Thread Simon Steiner
Hi,

 

FOP uses 1 thread, if you have multiple FO files you can render each of
these in separate threads by calling FOP API .

 

Thanks

 

From: Normen Ruhrus  
Sent: 27 July 2018 13:01
To: fop-users@xmlgraphics.apache.org
Subject: Does FOP makes use of multiple CPUs?

 

Hey everyone,

 

just making sure iam right about this. Is it true that FOP, in all versions,
is doing the rendering process in a single thread and there is no inherent
functionality to make use of several CPUs, for instance establishing one
thread for the rendering of one page, so that you´d have multiple threads
running concurrently rendering one page each?

 

Thanks for clarification and best Regards

 

Normen

 



RE: Generate an areatree file from Java

2018-05-28 Thread Simon Steiner
Hi,

 

PDFVTTestCase.java has a example for fo to IF

 

Thanks

 

From: Pieter Masereeuw [mailto:pie...@masereeuw.nl] 
Sent: 28 May 2018 16:08
To: fop-users@xmlgraphics.apache.org
Subject: Generate an areatree file from Java

 

Hi -

I am trying to create some XMLCalabash (XProc) extensions that work with Fop. 
One of them is that I would like to generate an areatree file from a standard 
FO file.

Although not being excellent in Java, I managed to get this running. But as 
soon as the FO file contains an instream-foreign-object, I get a 
NullPointerException.

If I try do do the same with the Fop command line, everyting works fine, so I 
think that the way I invoke Fop from Java is not correct. Maybe I need to pass 
some handler for SVN objects to the FopFactoryBuilder, but I neither know how 
to do that, nor if this is really the right approach.

The problem exists in Fop 2.2 and Fop 2.3. I am using JDK  1.8.

So the question is: how do I use Fop to convert an FO file to an areatree (and 
maybe an intermediate file too) from Java?

Below is my Java code plus the top of the stacktrace.

Any help will be greatly appreciated.

Pieter

--

ERROR: Error while rendering page 1. Reason: java.lang.NullPointerException
java.lang.NullPointerException
at 
org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java:930) 
~[fop.jar:?]
at 
org.apache.fop.render.xml.XMLRenderer.renderForeignObject(XMLRenderer.java:785) 
~[fop.jar:?]
at 
org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:864)
 ~[fop.jar:?]
at 
org.apache.fop.render.xml.XMLRenderer.renderInlineViewport(XMLRenderer.java:741)
 ~[fop.jar:?]
at 
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:717)
 ~[fop.jar:?]
at 
org.apache.fop.render.xml.XMLRenderer.renderInlineArea(XMLRenderer.java:722) 
~[fop.jar:?]
at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:692)
 ~[fop.jar:?]

--

package nl.masereeuw.calabash.steps;

import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.net.URI;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamSource;
import net.sf.saxon.s9api.SaxonApiException;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FopFactory;
import org.apache.fop.apps.FopFactoryBuilder;
import org.apache.fop.apps.MimeConstants;


public class TestAreatree {

File INPUTFILE_WITH_INSTREAM_FOREIGN_OBJECTS = new 
File("testareatree-with-instream-foreign-objects.fo");
File INPUTFILE_WITHOUT_INSTREAM_FOREIGN_OBJECTS = new 
File("testareatree-without-instream-foreign-objects.fo");
File INPUTFILE_TO_BE_USED = INPUTFILE_WITH_INSTREAM_FOREIGN_OBJECTS; // Set 
either to INPUTFILE_WITH_INSTREAM_FOREIGN_OBJECTS or 
INPUTFILE_WITHOUT_INSTREAM_FOREIGN_OBJECTS

File OUTPUTFILE = new File("testareatree.xml");
File FOP_XCONF = new File("fop.xconf");

public void run() throws SaxonApiException {
try {
FopFactory fopFactory;
if (false) {
// Under construction, perhaps we should somehow register some 
kind of handler for SVG inline-foreign-object elements?
URI baseUri = null;  // TODO Replace null with correct 
base-uri, but what should be its value?
FopFactoryBuilder fopFactoryBuilder = new 
FopFactoryBuilder(baseUri);
fopFactoryBuilder.setSourceResolution(72);
Configuration configuration = new 
DefaultConfigurationBuilder(true).buildFromFile(FOP_XCONF);
fopFactoryBuilder.setConfiguration(configuration);
fopFactory = fopFactoryBuilder.build();
} else {
fopFactory = FopFactory.newInstance(FOP_XCONF);
}

Source source = new StreamSource(INPUTFILE_TO_BE_USED);

try (OutputStream outputStream = new BufferedOutputStream(new 
FileOutputStream(OUTPUTFILE))) {
Fop fop = fopFactory.newFop(MimeConstants.MIME_FOP_AREA_TREE, 
outputStream);

TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
Result result = new SAXResult(fop.getDefaultHandler());
transformer.transform(source, result);
}
} catch (Exception ex) {
throw new SaxonApiException(ex);
}
}

public static void main(String args[]) {
try {
new TestAreatree().run();
} catch (SaxonApiException ex) {
 

[ANN] Apache FOP-PDF-Images 2.3 Released

2018-05-25 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP-PDF-Images Version 2.3 [1].

This package contains classes which add support using PDF images in
fo:external-graphic elements when you generate PDF files. This means you can
write something like:



Apache FOP-PDF-Images is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

PDF to PDF deduplicate more types of streams
PDF to PS allow fop fonts as fallback

For release notes see [1]. Source and binary distributions can be downloaded
from an ASF Mirror at [2]. Further download information is available at [1].
Maven artifacts for this release are available at [3].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [2].

[1] https://xmlgraphics.apache.org/fop/fop-pdf-images.html
[2] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop-pdf-images
[3]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop-pdf-images~2.3~~

The Apache XML Graphics team.


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



[ANN] Apache FOP 2.3 Released

2018-05-25 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP Version 2.3 [1].

Apache FOP (Formatting Objects Processor) [2] is an output independent print
formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java
application that reads a formatting object tree and renders the resulting
pages to a specified output format, of which a variety of formats are
supported. Apache FOP is published under the Apache License v2.0.

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

Support for unicode Surrogate pairs
OTF fonts not working on Mac Preview

For release notes see [4]. Source and binary distributions can be downloaded
from an ASF Mirror at [5]. Further download information is available at [6].
Maven artifacts for this release are available at [7].

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [5].

[1] http://xmlgraphics.apache.org/fop/2.3/
[2] http://xmlgraphics.apache.org/fop
[3] http://www.w3.org/TR/xsl11/
[4] http://xmlgraphics.apache.org/fop/changes.html
[5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop
[6] http://xmlgraphics.apache.org/fop/download.html
[7]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop~2.3~~

The Apache XML Graphics team.


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



[ANN] Apache XML Graphics Commons 2.3 Released

2018-05-25 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the availability of
Apache XML Graphics Commons 2.3.

XML Graphics Commons is a set of components for dealing with graphics e.g.,
PNG and TIFF codecs, Graphics2D implementations that generate PDF and
PostScript, an XMP metadata framework, etc.

 It is primarily used by its sister projects Apache Batik and Apache FOP,
but can also be used independently.

 This is a minor update to be compatible with the FOP 2.3 release.

For more information, see here:
http://xmlgraphics.apache.org/commons/

To download, see here:
http://xmlgraphics.apache.org/commons/download.html

The Apache XML Graphics team.


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



RE: Migration issue from 1.1 to 2.x with setSubject

2018-05-09 Thread Simon Steiner
Hi,

What about using
Document subject in your fo
https://xmlgraphics.apache.org/fop/trunk/metadata.html

Thanks

-Original Message-
From: g1franc [mailto:guillaume.francoi...@gmail.com] 
Sent: 27 April 2018 10:58
To: fop-users@xmlgraphics.apache.org
Subject: Migration issue from 1.1 to 2.x with setSubject

Hello,

We are trying to migrate from version 1.1 to 2.X (2.2).

We need to set the subject (a.ka.. description) metadata in the PDF.

In the past, we were using the method setSubject(String subject) on the
FOUserAgent but after migrating to 2.2, even when setting it in the Java
code, it is not part of the resulting PDF.

Other metadata like title (setTitle), producer or creator are working fine.
We have only an issue with the subject/description.

Any clue ?



--
Sent from: http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html

-
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: Broken Link in FOP 2.2 documentation

2018-05-08 Thread Simon Steiner
Hi,

You should raise a bug in jira where you found that link from.

Thanks

-Original Message-
From: Thomas Schraitle [mailto:tom_s...@web.de] 
Sent: 08 May 2018 14:51
To: FOP Users 
Subject: Broken Link in FOP 2.2 documentation

Hi,

The following link is broken for the FOP 2.2 documentation:

  https://xmlgraphics.apache.org/fop/2.2/knownissues_overview.html

Would appreciate if someone could fix that. :-))


Thanks!

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



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



RE: Setting the --accessibility flag from FOP Ant task

2018-05-04 Thread Simon Steiner
Hi,

 

You can set it in the fop.xconf file.

 

Thanks

 

From: Stefan Eike [mailto:stefan.e...@mailbox.org] 
Sent: 04 May 2018 09:02
To: fop-users@xmlgraphics.apache.org
Subject: Setting the --accessibility flag from FOP Ant task

 

Hi,

I'd like to set the -a flag for activating accessibility 
(https://xmlgraphics.apache.org/fop/2.1/accessibility.html) using the Apache 
Ant FOP-Task. How can I do that?

Thank you for your support

Greetings from Germany/Münster
Stefan

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



RE: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

2018-03-16 Thread Simon Steiner
Hi,

 

I could get round this by using in the fopservlet, but I think it’s a
security issue allowing filesystem access from tomcat

 

public Resource getResource(URI uri) throws IOException {

if (uri.toASCIIString().startsWith("file:")) {

return new Resource(new FileInputStream(uri.getPath()));

}

return new
Resource(getServletContext().getResourceAsStream(uri.toASCIIString()));

}

Thanks

 

From: Graeme Wellington
[mailto:graeme.welling...@ptbuildingsolutions.com.au] 
Sent: 16 March 2018 00:12
To: fop-users@xmlgraphics.apache.org
Subject: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

 

More info…

 

I have several servlets and FOs to test the various combinations:

http://localhost:8080/fop/fop?fo=C:/temp/readme.fo   ; works OK

http://localhost:8080/fop/fop?fo=C:/temp/readmeX.fo ; fails

http://localhost:8080/fop/fopX?fo=C:/temp/readmeX.fo ; fails

http://localhost:8080/fop/fopZ?fo=C:/temp/readmeX.fo ; fails

 

FopServlet.java ; as distributed

FopServletX.java  ; attempt to read custom configuration fop.xml

FopServletZ.java  ; attempt to read custom configuration fop.xml
/ custom Resolver

 

Readme.fo ; as distributed – works with:
http://localhost:8080/fop/fop?fo=C:/temp/readme.fo

ReadmeX.fo   ; external-graphic included

 

Fop.xml; as distributed with base = “.”

 

The batch command generates the PDF successfully (attached):-

"C:\fop-2.2\fop\fop.bat" -fo=C:/temp/readmeX.fo -pdf
"C:/temp/FOP-ReadmeX-fo.pdf"  > glw-FO.txt 2>&1

 

 

Regards

 

Graeme Wellington

Pro-Time Building Solutions Pty Ltd

178 Martin Road WALL FLAT SA 5254

Mobile: 0419 808 473

Email:  
graeme.welling...@ptbuildingsolutions.com.au

 



 

From: Robert Meyer  > 
Sent: Thursday, March 15, 2018 5:58 AM
To: fop-users@xmlgraphics.apache.org
 
Subject: Re: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

 

It's been a while, but shouldn't it throw a nicer message than an NPE? Maybe
something like "Oh, hello. We see you've not entered a path standard URI
format. Instead you've entered ''. Please check and try again".

 

Then again, FOP's never been that user friendly! I might look into it
myself.

 

Robert

  _  

From: Szeak (Register Man)  >
Sent: 14 March 2018 13:36
To: fop-users@xmlgraphics.apache.org
 
Subject: Re: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics 

 

Hi,

FOP from version 2 using standard URI format for pathes.
So you need to set the pathes in this format also in your FOP config and in
FO.
Ie.: /C/Temp/tomcat.gif or ///C/Temp/tomcat.gif

Best regards, Szeak

2018-03-14 03:12 keltezéssel, Graeme Wellington írta:

Hi

 

I have just migrated to FOP 2.2 - I am using apache-tomcat-8.5.29 / Java 1.8

 

I am using a FOP servlet to render PDF form XML data source.

 

I have a basic example that works on FOP 1.1 but not FOP 2.2

 

http://localhost:8080/fop/fopZ?fo=C:/temp/readme.fo

 

The readme.fo comes with the FOP distribution.

 

Without change the servlet works ok and I get a PDF.

 

When I try and add 1 line to include an image I get SEVERE error as below.

 

I have tried various permutations if the following lines separately but no
luck :

 



OR

  

OR

  

…

 

I have loaded the tomcat.gif at the various locations to match.

 

However I do not think it is getting that far.

 

I have a customised configuration file and have set the base as follows:

 

./ 

 

 

Can anyone help?

 

 

Mar 14, 2018 12:06:34 PM org.apache.catalina.core.StandardWrapperValve
invoke

SEVERE: Servlet.service() for servlet [FopZ] in context with path [/fop]
threw exception [javax.xml.transform.TransformerException:
java.lang.NullPointerException] with root cause

java.lang.NullPointerException

at
java.io.FilterInputStream.markSupported(FilterInputStream.java:243)

at
org.apache.xmlgraphics.image.loader.util.ImageUtil.decorateMarkSupported(Ima
geUtil.java:213)

at
org.apache.xmlgraphics.image.loader.util.ImageUtil.autoDecorateInputStream(I
mageUtil.java:228)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createI
mageSource(AbstractImageSessionContext.java:373)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.access$
100(AbstractImageSessionContext.java:53)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext$Unrestr
ictedFallbackResolver.createSource(AbstractImageSessionContext.java:364)

at

RE: Ideas needed: insert byte[] into XSLFO

2018-03-06 Thread Simon Steiner
HI,

Maybe:
FopFactoryBuilder confBuilder = new FopConfParser(conf, 
RESOURCE_RESOLVER).getFopFactoryBuilder();
FopFactory fopFactory = confBuilder.build();

Thanks

-Original Message-
From: Ulrich Mayring [mailto:u...@denic.de] 
Sent: 06 March 2018 16:33
To: fop-users@xmlgraphics.apache.org
Subject: Re: Ideas needed: insert byte[] into XSLFO

Hi,

data uri is a good idea.

About the resource resolver, I am instantiating my FopFactory from a config 
file:

FopConfParser confParser = new FopConfParser(fopConfigFile); fopFactory = 
confParser.getFopFactoryBuilder().build();

So there's no way to pass a resolver. Perhaps I can put it right into the 
config file?

Ulrich


Simon Steiner schrieb:
> Hi,
> 
> You can use a data uri or use a custom resource resolver.
> 
> FopFactoryBuilder builder = new FopFactoryBuilder(new 
> File(".").toURI(), resolver); fopFactory = builder.build();
> 
> Thanks
> 
> -Original Message-
> From: Ulrich Mayring [mailto:u...@denic.de]
> Sent: 06 March 2018 16:09
> To: fop-users@xmlgraphics.apache.org
> Subject: Ideas needed: insert byte[] into XSLFO
> 
> 
> 
> Hi all,
> 
> I have a byte[] (basically, a PNG or JPG image) that I generated myself and 
> would like to insert it in an XSLFO page at a certain position and render the 
> page to PDF with fop.
> 
> Think of it like a letter with a logo, only that the logo is dynamically 
> created.
> 
> The best way to insert it seems to be fo:external-graphic, but that requires 
> a url, from where the resource is acquired.
> 
> I don't want to save my image to disk or put it on a webserver, so my idea is 
> to somehow make a custom URIResolver, which would supply my generated 
> image(s).
> 
> My question is how do I wire this up into my existing fop workflow, which 
> looks like this:
> 
> FOUserAgent userAgent = fopFactory.newFOUserAgent(); Fop fop = 
> fopFactory.newFop(mimeType, userAgent, outStream); Result res = new 
> SAXResult(fop.getDefaultHandler());
> xslTransformer.transform(xmlSource, res); return 
> outStream.toByteArray()
> 
> There appears to be no way to set a custom resolver. Or perhaps someone has a 
> better idea than to do it via custom URI schemes?
> 
> Many thanks for any pointers,
> 
> Ulrich
> 
> 
> 
> -
> 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: Ideas needed: insert byte[] into XSLFO

2018-03-06 Thread Simon Steiner
Hi,

You can use a data uri or use a custom resource resolver.

FopFactoryBuilder builder = new FopFactoryBuilder(new File(".").toURI(), 
resolver);
fopFactory = builder.build();

Thanks

-Original Message-
From: Ulrich Mayring [mailto:u...@denic.de] 
Sent: 06 March 2018 16:09
To: fop-users@xmlgraphics.apache.org
Subject: Ideas needed: insert byte[] into XSLFO



Hi all,

I have a byte[] (basically, a PNG or JPG image) that I generated myself and 
would like to insert it in an XSLFO page at a certain position and render the 
page to PDF with fop.

Think of it like a letter with a logo, only that the logo is dynamically 
created.

The best way to insert it seems to be fo:external-graphic, but that requires a 
url, from where the resource is acquired.

I don't want to save my image to disk or put it on a webserver, so my idea is 
to somehow make a custom URIResolver, which would supply my generated image(s).

My question is how do I wire this up into my existing fop workflow, which looks 
like this:

FOUserAgent userAgent = fopFactory.newFOUserAgent(); Fop fop = 
fopFactory.newFop(mimeType, userAgent, outStream); Result res = new 
SAXResult(fop.getDefaultHandler());
xslTransformer.transform(xmlSource, res); return outStream.toByteArray()

There appears to be no way to set a custom resolver. Or perhaps someone has a 
better idea than to do it via custom URI schemes?

Many thanks for any pointers,

Ulrich



-
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-pdf-images and caching

2017-11-16 Thread Simon Steiner
Hi,

 

For the change see https://issues.apache.org/jira/browse/FOP-2693

If you cache PDDocument then close is never called on them and you get OOM 
eventually.

There was a finalize that called close but that wasn’t working on IBM JDK.

I think there were other issues.

 

Thanks

 

From: Matt Kynaston [mailto:m...@claritum.com] 
Sent: 16 November 2017 13:32
To: fop-users@xmlgraphics.apache.org
Subject: Re: fop-pdf-images and caching

 

 

First, I get a hit on the external PDF for each and every page. I've had a look 
at the PreloadPDF and it looks like it's meant to be caching, but apparently 
not. Is there some configuration I'm missing for this?

 

Ah hah. Turns out I was looking at the trunk version of fop-pdf-images when I 
saw the caching stuff. That was removed before version 2.2 was tagged.

 

Going back to ticket FOP-2135 it looks like this "document level" cache was 
added to reduce the document size, not avoid repeated hits on remote resources. 
Caching the remote resource is handled by 
org.apache.xmlgraphics.image.loader.cache.ImageCache, which in turn checks 
isCachable() on the image. ImagePDF returns false for that :(

 

Does anyone have any insights into this? Is there any way to make a PDF image 
cacheable?

 

Second, if I rename the external PDF I get an error as expected. However 
renaming it back doesn't seem to be picked up immediately: it takes one or more 
runs before it's found again. 

 

Again, this is down to ImageCache, which is keeping track of invalid URLs for 
60s.

 

Matt



RE: FOP Default Font

2017-11-15 Thread Simon Steiner
Hi,

You can add font-family to root fo:
mailto:s...@logisticus.de] 
Sent: 14 November 2017 17:21
To: fop-users@xmlgraphics.apache.org
Subject: FOP Default Font

As I understand Helvetica is the standard font used by FOP.
I use FOP to generate pdf-files from FO, the font used is Arial and Arial
bold. When I look at the files with acrobat reader I see that there ist
Arial and Arial bold, which are both embedded. That's ok so far, but acrobat
reader also tells me that there is Helvetica in this document, it seems only
because Helvetica is the default in FOP. 
Now i need pdf-files in which all fonts are embedded, is there a way to get
rid of Helvetica in the pdf's generated by FOP (changing the default font to
Arial or something else), and if yes, how?. I can't embed Helvetica because
I don't have it on my Computer and why should I anyhow for nothing.



--
Sent from: http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html

-
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: Duplex printing via PCL or PS

2017-09-06 Thread Simon Steiner
Hi,

You could try https://xmlgraphics.apache.org/fop/2.2/output.html#pcl-duplex-mode

Thanks

-Original Message-
From: Warren Young [mailto:war...@etr-usa.com] 
Sent: 07 September 2017 03:18
To: fop-users@xmlgraphics.apache.org
Subject: Duplex printing via PCL or PS

I needed to duplex-print the output of fop, so I came up with this heavy-handed 
solution:

$ fop -q -fo x.fo -pdf - |
  gs -sDEVICE=pxlmono -dDuplex -q -o - |
  nc $myprinter 9100

The changes necessary to make that work for PS output should be obvious.

A much more lightweight solution would be for FOP to emit the necessary printer 
code within the PCL or PS output, rather than send it through Ghostscript to be 
completely reprocessed.  It could be tied to a new command line option, e.g. 
-duplex=long.

I tried sending the PCL code to enable long-edge duplexing to the printer 
before sending the fop -pcl output to the printer, but it didn’t have any 
effect, apparently because the fop -pcl output resets the printing mode somehow.

(See: http://www.pclviewer.com/resources/reference/)

I’m posting for two reasons:

1. To get my heavy-handed solution out into the world.

2. To try and get someone interested in implementing my lightweight 
alternative.  Ideally, both PCL and PS outputs would get this feature, but if 
it’s only one, we’d prefer PCL, since it renders faster on most printers.
-
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.2 change log

2017-08-24 Thread Simon Steiner
Hi,

Ive updated:
https://xmlgraphics.apache.org/fop/2.2/releaseNotes_2.2.html

Thanks

-Original Message-
From: Warren Young [mailto:war...@etr-usa.com] 
Sent: 24 August 2017 14:00
To: fop-users@xmlgraphics.apache.org
Subject: FOP 2.2 change log

The “changes” page says 2.2 doesn’t give the release date:

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

The “TBD” implies that it hasn’t been released yet.

Also, maybe the PDFBox 2 related bullet points should be consolidated into one, 
along with a mention of the version FOP 2.1 was using, so a person could easily 
compare the two.
-
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



Java 6

2017-07-26 Thread Simon Steiner
Hi,

Latest versions of Maven, Findbugs, Jenkins and PDFBox trunk no longer
support Java 6, this makes it more difficult to maintain support for it.
Can you reply to this email if you need Java 6 support for FOP so we can
decide when we can drop support for it. 

Thanks


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



RE: Error when building FOP svn 1800269 - cannot find symbol symbol getNameForGID(int)

2017-06-29 Thread Simon Steiner
Hi,

Maybe you have an old fontbox jar on your classpath?

Thanks

-Original Message-
From: John Brown [mailto:johnbrown...@hotmail.com] 
Sent: 29 June 2017 13:38
To: fop-users@xmlgraphics.apache.org
Subject: Error when building FOP svn 1800269 - cannot find symbol symbol
getNameForGID(int)

john@john-pc /c/downloads/fop-svn/fop
$ ant
Buildfile: c:\downloads\fop-svn\fop\build.xml
Trying to override old definition of task javac Trying to override old
definition of task junit

init-avail:
 [echo] --- Apache FOP 2.3.0-SNAPSHOT [1999-2017]

 [echo] See build.properties and build-local.properties for additional
build settings
 [echo] Apache Ant(TM) version 1.9.6 compiled on June 29 2015
 [echo] VM: 25.112-b15, Oracle Corporation
 [echo] JAVA_HOME: c:/progra~1/java/jdk1.8.0_112
 [echo] JAI Support NOT Present
 [echo] JCE Support PRESENT
 [echo] JUnit Support NOT Present - Committers are required to have
JUnit working
 [echo] XMLUnit Support NOT Present - you can get it from
http://xmlunit.sourceforge.net

init:

codegen:
 [echo] Generating the java files from xml resources
 [xslt] Transforming into
c:\downloads\fop-svn\fop\build\gensrc\org\apache\fop\fonts\base14

compile-java:
[javac] Compiling 211 source files to
c:\downloads\fop-svn\fop\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.6
[javac]
c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1Fo
ntFormatter.java:115: error: cannot find symbol
[javac] String name =
font.getCharset().getNameForGID(gid.getKey());
[javac]^
[javac]   symbol:   method getNameForGID(Integer)
[javac]   location: class CFFCharset
[javac]
c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1Fo
ntFormatter.java:160: error: cannot find symbol
[javac] String mapping =
font.getCharset().getNameForGID(gid);
[javac]   ^
[javac]   symbol:   method getNameForGID(int)
[javac]   location: class CFFCharset
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
[javac] 1 warning

BUILD FAILED
c:\downloads\fop-svn\fop\build.xml:351: Compile failed; see the compiler
error output for details.

Total time: 11 seconds

john@john-pc /c/downloads/fop-svn/fop
-
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



[CVE-2017-5661] Apache XML Graphics FOP information disclosure vulnerability

2017-04-18 Thread Simon Steiner
CVE-2017-5661:
Apache XML Graphics FOP information disclosure vulnerability

Severity:
Medium

Vendor:
The Apache Software Foundation

Versions Affected:
FOP 1.0 - 2.1

Description:
Files lying on the filesystem of the server which uses batik can
be revealed to arbitrary users who send maliciously formed SVG
files. The file types that can be shown depend on the user context
in which the exploitable application is running. If the user is root
a full compromise of the server--including confidential or sensitive
files--would be possible.

XXE can also be used to attack the availability of the server
via denial of service as the references within a xml document
can trivially trigger an amplification attack.

Mitigation:
Users should upgrade to FOP 2.2+

Credit:
This issue was independently reported by Pierre Ernst at Salesforce.

References:
http://xmlgraphics.apache.org/security.html

The Apache XML Graphics team.


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



RE: How to create a Java FontDescriptor from font file?

2017-04-13 Thread Simon Steiner
Hi,

See OFFontLoader.java

Thanks

-Original Message-
From: Tobias Fischer | pagina GmbH [mailto:tobias.fisc...@pagina.gmbh] 
Sent: 13 April 2017 17:42
To: fop-users@xmlgraphics.apache.org
Subject: How to create a Java FontDescriptor from font file?

Hi,

I'm trying to use the FOP font subsetting tools for TTF and OTF fonts outside 
of the FOP processor in a side project.
I know this is probably out of scope of this mailing list, but probably someone 
can help me anyways...

My problem at the moment is, that I just don't see how to construct a 
FontDesriptor from a system font file.

I mean, I found out how to read the font with a FontFileReader and also found 
out about the OTFSubSetFile and the TTFSubSetFile classes, but if I want to 
determine automagically whether to use the OTF or TTF class (as in [1]) I 
always get to the point where I need a FontDescriptor object.

And after some wasted hours of time digging through the FOP sources, I still 
haven't found a way to create this object directly from a source File/URI.

Any idea is appreciated!
Thank you very much!

Kind regards,
Tobias


[1]
https://github.com/apache/fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFFactory.java#L1360

--
Tobias Fischer
Senior Software Engineer
(XML/EPUB/PrintCSS)

Telefon: +49 (0)7071 9876-44 · Fax: -22
Mail: tobias.fisc...@pagina.gmbh

pagina GmbH - Publikationstechnologien
Herrenberger Straße 51 | D-72070 Tübingen www.pagina.gmbh | www.parsx.de

Handelsregister Stuttgart - HRB 380249
Geschäftsführer: Tobias Ott


-
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: PDFA/3 validation fails because of CID font set

2017-04-11 Thread Simon Steiner
Hi,

 

You could raise a bug in fop jira about this, workaround could be to try 
another font type: otf or type1 or single-byte mode?

 

Thanks

 

From: St. Kleinbaum [mailto:st.kleinb...@gmail.com] 
Sent: 10 April 2017 20:57
To: fop-users@xmlgraphics.apache.org
Subject: Re: PDFA/3 validation fails because of CID font set

 

Hi Simon,

 

thanks for you answer. When I enable full embedding of the fonts, I can 
generate valid pdf files (validated with 
https://www.pdf-online.com/osa/validate.aspx). However the validation with vera 
pdf (http://verapdf.org/) fails with the error message "If the FontDescriptor 
dictionary of an embedded CID font contains a CIDSet stream, then it shall 
identify all CIDs which are present in the font program, regardless of whether 
a CID in the font is referenced or used by the PDF or not.". 

 

Is there a way to fix this?

 

Best

Stefan

 

 

2017-02-22 21:38 GMT+01:00 Simon Steiner [via Apache FOP] <[hidden email]>:

Hi,

 

Eg in fop.xconf



   

   

 

Thanks

 

From: St. Kleinbaum [mailto:[hidden email] 
<http://user/SendEmail.jtp?type=node=44927=0> ] 
Sent: 22 February 2017 20:21
To: [hidden email] <http://user/SendEmail.jtp?type=node=44927=1> 
Subject: Re: PDFA/3 validation fails because of CID font set

 

Hi,

 

Thanks for your answer. How can I do that?

 

Best

Stefan

 

2017-02-21 22:23 GMT+01:00 Simon Steiner [via Apache FOP] <[hidden email] 
<http://user/SendEmail.jtp?type=node=44926=0> >:

Hi, 

You could try doing full embedding of the fonts as a workaround. 

Thanks 

-Original Message- 
From: St. Kleinbaum [mailto:[hidden email] 
<http://user/SendEmail.jtp?type=node=44901=0> ] 
Sent: 21 February 2017 19:48 
To: [hidden email] <http://user/SendEmail.jtp?type=node=44901=1>  
Subject: PDFA/3 validation fails because of CID font set 

Hi All, 

I am using Apache FOP to generate PDFA/3 Documents. I tried hard to generate 
a valid PDF file, but the validation always fails with many "The value of 
the CIDSet[...] of font EA+LiberationSans is false but must be true." 
error messages (I used this validator: 
https://www.pdf-online.com/osa/validate.aspx). 

I also tried to generate the font metrics file with "-enc ansi" option. Then 
the generated PDF file is valid, but there is WinAnsi font support only :( 

Please find an example app here: Â invalidFonts.zip 
<http://apache-fop.1065347.n5.nabble.com/file/n44900/invalidFonts.zip> Â  

Thanks for your help 
Stefan 



-- 
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/PDFA-3-validation-fails-because-of-C
ID-font-set-tp44900.html 
Sent from the FOP - Users mailing list archive at Nabble.com. 

- 
To unsubscribe, e-mail: [hidden email] 
<http://user/SendEmail.jtp?type=node=44901=2>  
For additional commands, e-mail: [hidden email] 
<http://user/SendEmail.jtp?type=node=44901=3>  



- 
To unsubscribe, e-mail: [hidden email] 
<http://user/SendEmail.jtp?type=node=44901=4>  
For additional commands, e-mail: [hidden email] 
<http://user/SendEmail.jtp?type=node=44901=5>  



  _  

If you reply to this email, your message will be added to the discussion below:

http://apache-fop.1065347.n5.nabble.com/PDFA-3-validation-fails-because-of-CID-font-set-tp44900p44901.html
 

To unsubscribe from PDFA/3 validation fails because of CID font set, click here.
 
<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
 NAML 

 

 

  _  

View this message in context: Re: PDFA/3 validation fails because of CID font 
set 
<http://apache-fop.1065347.n5.nabble.com/PDFA-3-validation-fails-because-of-CID-font-set-tp44900p44926.html>
 
Sent from the FOP - Users mailing list archive 
<http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html>  at Nabble.com.

 

  _  

If you reply to this email, your message will be added to the discussion below:

http://apache-fop.1065347.n5.nabble.com/PDFA-3-validation-fails-because-of-CID-font-set-tp44900p44927.html
 

To unsubscribe from PDFA/3 validation fails because of CID font set, click here.
 
<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
 NAML 

 

 

  _  

[ANN] Apache FOP 2.2 Released

2017-04-10 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the immediate
availability of Apache FOP Version 2.2 [1].

 

Apache FOP (Formatting Objects Processor) [2] is an output independent print
formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java
application that reads a formatting object tree and renders the resulting
pages to a specified output format, of which a variety of formats are
supported. Apache FOP is published under the Apache License v2.0.

 

This release fixes a number of bugs. In addition the following significant
functional enhancements are provided:

PCL Color support

Allow generation of bold/italic versions of fonts for PDF

Allow to convert OTF fonts to Type 1 for Postscript

Deduplicate PDF content streams

Update to PDFBox 2

Transition from Ant to Maven Build Process

 

For release notes see [4]. Source and binary distributions can be downloaded
from an ASF Mirror at [5]. Further download information is available at [6].
Maven artifacts for this release are available at [7].

 

Note, that depending on which download mirror you use, it may take up to 24
hours to see the download images at [5].

 

[1] http://xmlgraphics.apache.org/fop/2.2/

[2] http://xmlgraphics.apache.org/fop

[3] http://www.w3.org/TR/xsl11/

[4] http://xmlgraphics.apache.org/fop/changes.html

[5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop

[6] http://xmlgraphics.apache.org/fop/download.html

[7]
https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap
hics~fop~2.2~~

 

The Apache XML Graphics team.



RE: [ANN] Apache XML Graphics Commons 2.2 Released

2017-03-27 Thread Simon Steiner
Hi,

It should be released next week.

Thanks

-Original Message-
From: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] 
Sent: 27 March 2017 10:46
To: fop-users@xmlgraphics.apache.org
Cc: gene...@xmlgraphics.apache.org
Subject: Re: [ANN] Apache XML Graphics Commons 2.2 Released

Looks like this is done:

https://xmlgraphics.apache.org/fop/2.2/releaseNotes_2.2.html

I did not see the mail though

-M

On Mon, Mar 27, 2017 at 11:42 AM, Mark Gibson 
<mark.gib...@staff.bluematrix.com> wrote:
> Can we infer from this an imminent FOP 2.2 release?  That would be 
> great if so.
>
>
>
> From: Simon Steiner [mailto:simonsteiner1...@gmail.com]
> Sent: 27 March 2017 09:00
> To: gene...@xmlgraphics.apache.org; fop-users@xmlgraphics.apache.org
> Subject: [ANN] Apache XML Graphics Commons 2.2 Released
>
>
>
> The Apache XML Graphics team is pleased to announce the availability 
> of
>
> Apache XML Graphics Commons 2.2.
>
>
>
> XML Graphics Commons is a set of components for dealing with graphics
>
> e.g., PNG and TIFF codecs, Graphics2D implementations that generate 
> PDF
>
> and PostScript, an XMP metadata framework, etc.
>
>
>
> It is primarily used by its sister projects Apache Batik and Apache 
> FOP,
>
> but can also be used independently.
>
>
>
> This is a minor update to be compatible with the FOP 2.2 release.
>
>
>
> For more information, see here:
>
> http://xmlgraphics.apache.org/commons/
>
>
>
> To download, see here:
>
> http://xmlgraphics.apache.org/commons/download.html
>
>
>
> The Apache XML Graphics team.



--
Mathieu

-
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



[ANN] Apache XML Graphics Commons 2.2 Released

2017-03-27 Thread Simon Steiner
The Apache XML Graphics team is pleased to announce the availability of

Apache XML Graphics Commons 2.2.

 

XML Graphics Commons is a set of components for dealing with graphics

e.g., PNG and TIFF codecs, Graphics2D implementations that generate PDF

and PostScript, an XMP metadata framework, etc.

 

It is primarily used by its sister projects Apache Batik and Apache FOP,

but can also be used independently.

 

This is a minor update to be compatible with the FOP 2.2 release.

 

For more information, see here:

http://xmlgraphics.apache.org/commons/

 

To download, see here:

http://xmlgraphics.apache.org/commons/download.html

 

The Apache XML Graphics team.



RE: PDFA/3 validation fails because of CID font set

2017-02-22 Thread Simon Steiner
Hi,

 

Eg in fop.xconf



   

   

 

Thanks

 

From: St. Kleinbaum [mailto:st.kleinb...@gmail.com] 
Sent: 22 February 2017 20:21
To: fop-users@xmlgraphics.apache.org
Subject: Re: PDFA/3 validation fails because of CID font set

 

Hi,

 

Thanks for your answer. How can I do that?

 

Best

Stefan

 

2017-02-21 22:23 GMT+01:00 Simon Steiner [via Apache FOP] <[hidden email]>:

Hi, 

You could try doing full embedding of the fonts as a workaround. 

Thanks 

-Original Message- 
From: St. Kleinbaum [mailto:[hidden email]
<http://user/SendEmail.jtp?type=node=44901=0> ] 
Sent: 21 February 2017 19:48 
To: [hidden email] <http://user/SendEmail.jtp?type=node=44901=1>  
Subject: PDFA/3 validation fails because of CID font set 

Hi All, 

I am using Apache FOP to generate PDFA/3 Documents. I tried hard to generate

a valid PDF file, but the validation always fails with many "The value of 
the CIDSet[...] of font EA+LiberationSans is false but must be true." 
error messages (I used this validator: 
https://www.pdf-online.com/osa/validate.aspx). 

I also tried to generate the font metrics file with "-enc ansi" option. Then

the generated PDF file is valid, but there is WinAnsi font support only :( 

Please find an example app here: Â invalidFonts.zip 
<http://apache-fop.1065347.n5.nabble.com/file/n44900/invalidFonts.zip> Â  

Thanks for your help 
Stefan 



-- 
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/PDFA-3-validation-fails-because-of-C
ID-font-set-tp44900.html 
Sent from the FOP - Users mailing list archive at Nabble.com. 

- 
To unsubscribe, e-mail: [hidden email]
<http://user/SendEmail.jtp?type=node=44901=2>  
For additional commands, e-mail: [hidden email]
<http://user/SendEmail.jtp?type=node=44901=3>  



- 
To unsubscribe, e-mail: [hidden email]
<http://user/SendEmail.jtp?type=node=44901=4>  
For additional commands, e-mail: [hidden email]
<http://user/SendEmail.jtp?type=node=44901=5>  




  _  

If you reply to this email, your message will be added to the discussion
below:

http://apache-fop.1065347.n5.nabble.com/PDFA-3-validation-fails-because-of-C
ID-font-set-tp44900p44901.html 

To unsubscribe from PDFA/3 validation fails because of CID font set, click
here.
 
<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macr
o_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.B
asicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.templ
ate.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-insta
nt_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
NAML 

 

 

  _  

View this message in context: Re: PDFA/3 validation fails because of CID
font set
<http://apache-fop.1065347.n5.nabble.com/PDFA-3-validation-fails-because-of-
CID-font-set-tp44900p44926.html> 
Sent from the FOP - Users mailing list archive
<http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html>  at Nabble.com.



RE: PDFA/3 validation fails because of CID font set

2017-02-21 Thread Simon Steiner
Hi,

You could try doing full embedding of the fonts as a workaround.

Thanks

-Original Message-
From: St. Kleinbaum [mailto:st.kleinb...@gmail.com] 
Sent: 21 February 2017 19:48
To: fop-users@xmlgraphics.apache.org
Subject: PDFA/3 validation fails because of CID font set

Hi All,

I am using Apache FOP to generate PDFA/3 Documents. I tried hard to generate
a valid PDF file, but the validation always fails with many "The value of
the CIDSet[...] of font EA+LiberationSans is false but must be true."
error messages (I used this validator:
https://www.pdf-online.com/osa/validate.aspx).

I also tried to generate the font metrics file with "-enc ansi" option. Then
the generated PDF file is valid, but there is WinAnsi font support only :(

Please find an example app here:  invalidFonts.zip
  

Thanks for your help
Stefan



--
View this message in context:
http://apache-fop.1065347.n5.nabble.com/PDFA-3-validation-fails-because-of-C
ID-font-set-tp44900.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



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



RE: fox:external-document not showing all pages

2017-01-23 Thread Simon Steiner
Hi,

Did you try 




Thanks

-Original Message-
From: MartinRolph [mailto:martin.ro...@oval.uk.com] 
Sent: 23 January 2017 10:06
To: fop-users@xmlgraphics.apache.org
Subject: Re: fox:external-document not showing all pages

Hi - Did you ever get to the bottom of the PDF only including the first
page? 
I'm having the same issue
Thanks



--
View this message in context:
http://apache-fop.1065347.n5.nabble.com/fox-external-document-not-showing-al
l-pages-tp16090p44816.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



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



RE: My PDF is 50x larger than it needs to be!

2017-01-20 Thread Simon Steiner
Hi,

If you get the issue on fop trunk then you can raise a bug about it on jira.

Thanks

-Original Message-
From: Peter Hansson [mailto:peterhansson...@yahoo.com.INVALID] 
Sent: 20 January 2017 11:16
To: fop-users@xmlgraphics.apache.org
Subject: My PDF is 50x larger than it needs to be!

I'm adding an SVG logo to every page of a document in a  
element and notice that the logo gets "inlined" on every page, rather than 
appearing 

only once in the PDF file and then referenced when used on each page. 

Thus the size of the PDF balloons with number of pages. Ouch! 


Here's what I do:


http://stackoverflow.com/questions/41220101/xml-fo-how-to-re-use-graphics



As can be seen there's only a single character on each page (Just to make the 
example simple). If I from this generate a 2 page PDF document it will be 13 
KB, but if 

I generate a similar 50 page document it will be 215 KB !!

I would have expected the two PDF document to be almost the same size.

How can I achieve that the logo (or header as a whole) is re-used and 
referenced instead of inlined for each and every page?


By the way: Not using vector graphics is not an option for me.


Apache FOP 2.1, Java 8, PDF output




Thanks 

Peter

-
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] Cannot add cropped pdf as fo:external-graphic

2016-11-06 Thread Simon Steiner
Hi,

Can you report any bugs on jira https://issues.apache.org/jira/browse/FOP

Thanks

-Original Message-
From: John Brown [mailto:johnbrown...@hotmail.com] 
Sent: 06 November 2016 19:00
To: fop-users@xmlgraphics.apache.org
Subject: [FOP] Cannot add cropped pdf as fo:external-graphic

My original pdf (created by printing to PDF Creator
(http://www.pdfforge.org/pdfcreator) works as an external graphic in
test.fo. This PDF has 1-inch borders which I removed using Briss
(http://briss.sourceforge.net/). The cropped PDF image is not displayed in
test.pdf. I think that it is present but invisible because when I look at
the document's properties (Fonts), I see two fonts but lorem_cropped.pdf has
1 font.

To reproduce:


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

  

  
  

  
Hello, World!
  
  
 
  

  



lorem.pdf is a "Lorem ipsum" paragraph printed to PDF Creator on letter
size paper.
lorem_cropped.pdf is lorem.pdf cropped to contain just the paragraph with
minimal whitespace.
test.pdf is the output of
C:\>fop test.fo test.pdf

I am using fop SVN r1768353 (2016-10-20 17:03:59 -0500) and the fop PDF
Images plugin from
https://dist.apache.org/repos/dist/dev/xmlgraphics/binaries/ on Windows 10.

Regards,
John Brown.




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



RE: Problem embedding fonts in PDF

2016-07-26 Thread Simon Steiner
Hi,

What about:

FopConfParser parser = new FopConfParser(configFile, currentDir);
FopFactoryBuilder fopFactoryBuilder = parser.getFopFactoryBuilder();



Thanks

-Original Message-
From: Stefan Radermacher [mailto:ste...@zaister.de] 
Sent: 26 July 2016 16:07
To: fop-users@xmlgraphics.apache.org
Subject: Problem embedding fonts in PDF

Hello, I am looking for some help on embedding fonts with FOP (version 2.1). I 
am working on program that uses FOP to create PDF files.
Unfortunately the standard fonts included in FOP do not have glyphs for many 
international character that we would like to be able to include in our 
generated PDFs. So I have started on looking to embed custom fonts.
I am trying this with a free font called Gandhi Sans for now.

I think I have set up the stuff as the documentation indicates, but my font 
configuration gets ignored and FOP produces a lot of warnings
listing: "Font "Gandhi Sans,normal,400" not found. Substituting with 
"any,normal,400""

My fop.xconf file looks as follows (relevant parts only):
 snip 

  ./
  fonts/
  

  
flate
  

  

  


  


  


  

  

...

 snip 

I do have the weird feeling that the file gets ignored somehow, since even when 
I modify it to point to a non-existent font file or even to have an invalid xml 
structure, I'm not getting any errors or exceptions about this. Anyway, the 
fonts are located in a folder "fonts" that is on the same level as the 
fop.xconf file. I have tried using full paths or full URIs with file:// prefix 
to indicate the font files, but no change.
I have also tried with and without trailing slash for the base and font-base 
properties.

I'm adding the file in my Java code like this:
 snip 
FopFactoryBuilder builder;
File userConfigFile = new
File(ConfigurationSettings.getOutputSheetsDir()
+ File.separator + "fop.xconf");
try
{
  builder = new FopFactoryBuilder(userConfigFile.toURI());
}
catch (Exception e)
{
  [exception handling]
}

builder.setStrictFOValidation(false);
builder.setStrictUserConfigValidation(true);

FopFactory fopFactory = builder.build(); FOUserAgent userAgent = 
fopFactory.newFOUserAgent(); userAgent.getEventBroadcaster().addEventListener(
new FOPEventListener());

[set some userAgent attributes]

try
{
  Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent, out);

  TransformerFactory transFactory = TransformerFactory.newInstance();
  Transformer transformer = transFactory.newTransformer(xsltSource);
  transformer.setErrorListener(new FOPErrorListener());
  transformer.transform(inputSource,
new SAXResult(fop.getDefaultHandler()));
}
catch (TransformerException | FOPException | IOException e) {
  [exception handling]
}
 snip 

What am I doing wrong?

Kind regards and thanks for any help,
Stefan

-
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: NoSuchMethod - CFFCIDFont.getProperty

2016-07-12 Thread Simon Steiner
Hi,

 

You should use fontbox 1.8 with fop 2.1

 

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

 

Thanks

 

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

 

fop-2.1.jar, fontbox-2.0.2.jar

No other version of fontbox around (I was getting class not found until I added 
fontbox)

 

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

 

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

 

On Tue, Jul 12, 2016 at 2:04 PM, Marc Kaufman  > wrote:

I’m trying to use an Adobe CFF font (KozGoPr6N-Regular.otf). During the font 
loading I get to:

OTFFile.readName() line 34: Object familyName = 
fileFont.getProperty(“FamilyName”);

But fileFont is a org.apache.fontbox.cff.CFFCIDFont, and there is no such 
method “getProperty”.

 

Stack:

OTFFile.readName() line: 134 

OTFFile(OpenFont).readFont(FontFileReader, String, String) line: 740

OFFontLoader.read(String) line: 109

OFFontLoader.read() line: 93 

OFFontLoader(FontLoader).getFont() line: 124  

FontLoader.loadFont(FontUris, String, boolean, EmbeddingMode, EncodingMode, 
boolean, boolean, InternalResourceResolver) line: 108

 

 



  1   2   >