Re: Is there a property resolver in the FOP API?

2026-05-07 Thread Daniel Norberg
Hi Chris,

Thank you so much for the advise, I didn't know about the intermediate format, 
I will definitely explore that possibility and see if that can solve my 
problem. Even though I could write my own utility methods for solving the task 
the best way to get correct answers is to use the same computations that FOP 
uses when it produces the PDF.

Best regards/Vänliga hälsningar
Daniel Norberg
--
[X]

Excosoft • Daniel Norberg • Developer • Application Consultant

Södervägen 70, SE-183 64 Täby, SWEDEN

Cell +46 (0)76-199 31 85

Email [email protected]<mailto:[email protected]>

www.excosoft.se<http://www.excosoft.se/>


From: Chris Bowditch 
Sent: Thursday, May 7, 2026 19:11
To: [email protected] 
Subject: Re: Is there a property resolver in the FOP API?

Hi Daniel,

No such function exists. Take a look at the intermediate format: Apache(tm) 
FOP: Intermediate 
Format<https://xmlgraphics.apache.org/fop/trunk/intermediate.html>

What you can do is generate the IF XML from the XSL-FO and then you will be 
able to see the dimensions of everything within the pages. You can then use 
that information to either alter the original XSL-FO or amend the IF XML before 
final rendering.

I hope that helps

Chris

From: Daniel Norberg 
Sent: 07 May 2026 18:07
To: [email protected] 
Subject: Is there a property resolver in the FOP API?

Hi,

I am developing support for transformation of FO to PDF with FOP using Java.

I wonder if there is an API method that I can call that resolves a property? 
Here is one example:


   Lorem ipsum


I want to call a method that can resolve the font-size on the  in 
pt, for instance with a similar code to this:

float fontSize = FOP.getDimensionValue(element, "font-size");

Is there such a method available in FOP that I can use, or do I have to write 
my own code to resolve the value?

Best regards/Vänliga hälsningar
Daniel Norberg
--
[X]

Excosoft • Daniel Norberg • Developer • Application Consultant

Södervägen 70, SE-183 64 Täby, SWEDEN

Cell +46 (0)76-199 31 85

Email [email protected]<mailto:[email protected]>

www.excosoft.se<http://www.excosoft.se/>


Re: Is there a property resolver in the FOP API?

2026-05-07 Thread Thomas Sörensen
I haven't head of a java object mapping library specific for xsl-fo. Aleksi 
created one for flex documents. You can find it under the package 
se.excosoft.flexdtd if you are interested.

Here is an example of how it is used:
final FlexDocument document = new FlexDocument(doc);
FlexBody body = document.getBody();
String fontFam = body.getFontFamily();

You would have to create a similar package and create appropriate mappings 
between java object and xsl-fo nodes.

In case you do decide to do that make sure to create a separate project outside 
of skribenta repo. Make the project independent from skribenta and use maven to 
handle dependencies and building.

You might be using the terms incorrectly. We use XML transformers to apply xslt 
stylesheets and transform XML into XSL-FO. Apache FOP then renders the XSL-FO 
into a PDF.  You wouldn't transform fo to a PDF.

BR
Thomas


[146720418_logo-sm.png]


Excosoft • Thomas Sörensen

Cell +46 (0)76-199 3184

Email [email protected]

www.excosoft.se



From: Daniel Norberg 
Sent: 07 May 2026 19:07
To: [email protected] 
Subject: Is there a property resolver in the FOP API?

Hi,

I am developing support for transformation of FO to PDF with FOP using Java.

I wonder if there is an API method that I can call that resolves a property? 
Here is one example:


   Lorem ipsum


I want to call a method that can resolve the font-size on the  in 
pt, for instance with a similar code to this:

float fontSize = FOP.getDimensionValue(element, "font-size");

Is there such a method available in FOP that I can use, or do I have to write 
my own code to resolve the value?

Best regards/Vänliga hälsningar
Daniel Norberg
--
[X]

Excosoft • Daniel Norberg • Developer • Application Consultant

Södervägen 70, SE-183 64 Täby, SWEDEN

Cell +46 (0)76-199 31 85

Email [email protected]

www.excosoft.se


Re: Is there a property resolver in the FOP API?

2026-05-07 Thread Chris Bowditch
Hi Daniel,

No such function exists. Take a look at the intermediate format: Apache(tm) 
FOP: Intermediate 
Format

What you can do is generate the IF XML from the XSL-FO and then you will be 
able to see the dimensions of everything within the pages. You can then use 
that information to either alter the original XSL-FO or amend the IF XML before 
final rendering.

I hope that helps

Chris

From: Daniel Norberg 
Sent: 07 May 2026 18:07
To: [email protected] 
Subject: Is there a property resolver in the FOP API?

Hi,

I am developing support for transformation of FO to PDF with FOP using Java.

I wonder if there is an API method that I can call that resolves a property? 
Here is one example:


   Lorem ipsum


I want to call a method that can resolve the font-size on the  in 
pt, for instance with a similar code to this:

float fontSize = FOP.getDimensionValue(element, "font-size");

Is there such a method available in FOP that I can use, or do I have to write 
my own code to resolve the value?

Best regards/Vänliga hälsningar
Daniel Norberg
--
[X]

Excosoft • Daniel Norberg • Developer • Application Consultant

Södervägen 70, SE-183 64 Täby, SWEDEN

Cell +46 (0)76-199 31 85

Email [email protected]

www.excosoft.se


Re: PDFSignature NullPointerException

2026-03-19 Thread David Law via fop-users

ok, it turned out to be a problem with our custom ResourceResolver...
...returning null in getOutputStream(...) wasn't a good idea. 😎

Best regards,
DaveLaw

On 17/03/2026 12:50, David Law wrote:

Hi there,

I'm trying to create a signed PDF with FOP v2.11 & JDK 17.

I am NOT using a Config file (i.e. fop.xconf).

Instead I'm supplying an instance of PDFSignParams.
-> FOP then internally creates an instance of PDFSignature.
-> I've checked the PDFSignature instance is able to read the Keystore 
& sign content.


When creating the PDF from the FO, a *NullPointerException* is raised.
The only Method invoked on PDFSignature is add(final PDFPage page).

The message is:
Cannot invoke "java.io.OutputStream.write(byte[], int, int)" because 
"this.out" is null


(I did something similar for encryption with an instance of 
PDFEncryptionParams. That worked fine)


Before I take time to create a detailed example,
I thought I'd ask if anyone has had the same problem.

The generatePDFfromFO Method looks like this:

private static byte[] generatePDFfromFO(final byte[] bytesFO, final 
TransformerFactory factory) throws Exception {


    final     var foUserAgent   = FOP_FACTORY.newFOUserAgent();
    ;             foUserAgent.setProducer("ap FOP");
    ;             foUserAgent.setCreationDate(new Date());
    ;             foUserAgent.setTargetResolution(300 /* dpi */);

    final     var foSignParms   = new 
PDFSignParams("path/fopTest.pkcs12", null, null, null, "fopTest");


    @SuppressWarnings("unchecked")
    final     var foRendOpt     = (Map) 
foUserAgent.getRendererOptions();

    ;             foRendOpt.put("sign-params", foSignParms);

    final     var pdfBytesSizeGuess  = bytesFO.length / 2;
    final     var pdfBytesBaos       = new 
ByteArrayOutputStream(pdfBytesSizeGuess);


    try          (pdfBytesBaos)
    {
        final var fop                = 
foUserAgent.newFop(MimeConstants.MIME_PDF, pdfBytesBaos);
        final var saxResult          = new 
SAXResult(fop.getDefaultHandler());


        final var xmlSource          = getSource(bytesFO);

        final var transformer        = factory.newTransformer();
        ;         transformer.transform(xmlSource, saxResult); // -> 
*NullPointerException*

    }
    return        pdfBytesBaos.toByteArray();
}

Any ideas, anyone?

Thanks in advance,
DaveLaw



-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Font names using multi-byte strings

2026-01-30 Thread David Law via fop-users

Hi,

Would it make sense to use:

characters = name.substring((skipFirst ? 1 : 
0)).getBytes(StandardCharsets.UTF_8);


...which does not throw an UnsupportedEncodingException?

All the best,
Dave


On 29/01/2026 20:53, Luca Bellonda wrote:

I was able to get the same name and I suggest this method:
1- Translate the string to UTF-8 bytes representation.
2- Get the bytes and encode them instead of characters.

This way the UTF-8 statement should be respected.
In code (beware: not efficient and without error management):

in escapeName of PDFName:

byte[] characters ;
  // get UTF-8 bytes
try {
 characters = name.substring((skipFirst ? 1 : 0)).getBytes("UTF-8");
   } catch (UnsupportedEncodingException e) {
   throw new RuntimeException("Invalid Name:"+name);
   }

// encode bytes
 for (int i = 0, c = characters.length; i < c; i++) {
 int ch = (0x00FF&characters[i]);

 if (ch < 33 || ch > 126 || ESCAPED_NAME_CHARS.indexOf(ch) >= 0)
{
 sb.append('#');
 toHex(ch, sb);
 } else {
 char cxc = (char)ch ;
 sb.append(cxc);
 }
 }
 return sb.toString();

where toHex() manages an int

Best regards.

Il giorno gio 29 gen 2026 alle ore 01:28 Joao Andre Goncalves <
[email protected]> ha scritto:


I tried that earlier but while the PDF is valid, the font name would not
match the original PDF. I did find the following on the ISO document:

c) Any character that is not a regular character shall be written using
its 2-digit hexadecimal code, preceded by the NUMBER SIGN only.






-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: Font names using multi-byte strings

2026-01-29 Thread Joao Andre Goncalves
Thanks,

your suggestion seems to work. I'll had some unit tests and get in merge in the 
next couple of days.




From: Luca Bellonda 
Sent: 29 January 2026 13:53
To: [email protected]
Subject: Re: Font names using multi-byte strings

You don't often get email from [email protected]<mailto:[email protected]>. 
Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
I was able to get the same name and I suggest this method:
1- Translate the string to UTF-8 bytes representation.
2- Get the bytes and encode them instead of characters.

This way the UTF-8 statement should be respected.
In code (beware: not efficient and without error management):

in escapeName of PDFName:

   byte[] characters ;
 // get UTF-8 bytes
   try {
characters = name.substring((skipFirst ? 1 : 0)).getBytes("UTF-8");
  } catch (UnsupportedEncodingException e) {
  throw new RuntimeException("Invalid Name:"+name);
  }
// encode bytes
for (int i = 0, c = characters.length; i < c; i++) {
int ch = (0x00FF&characters[i]);

if (ch < 33 || ch > 126 || ESCAPED_NAME_CHARS.indexOf(ch) >= 0) {
sb.append('#');
toHex(ch, sb);
} else {
char cxc = (char)ch ;
sb.append(cxc);
}
}
return sb.toString();

where toHex() manages an int

Best regards.

Il giorno gio 29 gen 2026 alle ore 01:28 Joao Andre Goncalves 
mailto:[email protected]>> 
ha scritto:
I tried that earlier but while the PDF is valid, the font name would not match 
the original PDF. I did find the following on the ISO document:
c) Any character that is not a regular character shall be written using its 
2-digit hexadecimal code, preceded by the NUMBER SIGN only.


Joao Andre Goncalves
Customer Developer

t | m 07733161880
[email protected]
smartcommunications.com<https://www.smartcommunications.com/>

[https://www.smartcommunications.com/wp-content/uploads/025_Trends2026-450x160_v1.jpg]<https://scale.smartcommunications.com/2026-Trends-White-Paper.html?utm_source=outlook&utm_medium=email&utm_campaign=wc-global-2026-white-paper-2026-trends>

Explore the new era of AI-powered customer engagement. Get your copy of the 
2026 Trends Report 
now.<https://scale.smartcommunications.com/2026-Trends-White-Paper.html?utm_source=outlook&utm_medium=email&utm_campaign=wc-global-2026-white-paper-2026-trends>
 Smart Communications is a trading name of SmartComms SC Limited which is 
registered in England under No. 4303041 whose registered office is at Suite 23, 
LCLB, 95 Mortimer Street, London, W1W 7GB. Please consider the environment 
before printing. The contents of this e-mail are intended for the named 
addressee only. It contains confidential information. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it. Smart Communications will process your data as described in 
the Smart Communications' External Privacy 
Policy.<https://www.smartcommunications.com/external-privacy-policy/>

Follow us on LinkedIn,<https://www.linkedin.com/company/15166060/admin/> 
YouTube,<https://www.youtube.com/@Smart_Communications/> and 
X.<https://x.com/ccminnovators?lang=en>


Re: Font names using multi-byte strings

2026-01-29 Thread Luca Bellonda
I was able to get the same name and I suggest this method:
1- Translate the string to UTF-8 bytes representation.
2- Get the bytes and encode them instead of characters.

This way the UTF-8 statement should be respected.
In code (beware: not efficient and without error management):

in escapeName of PDFName:

   byte[] characters ;
 // get UTF-8 bytes
   try {
characters = name.substring((skipFirst ? 1 : 0)).getBytes("UTF-8");
  } catch (UnsupportedEncodingException e) {
  throw new RuntimeException("Invalid Name:"+name);
  }

// encode bytes
for (int i = 0, c = characters.length; i < c; i++) {
int ch = (0x00FF&characters[i]);

if (ch < 33 || ch > 126 || ESCAPED_NAME_CHARS.indexOf(ch) >= 0)
{
sb.append('#');
toHex(ch, sb);
} else {
char cxc = (char)ch ;
sb.append(cxc);
}
}
return sb.toString();

where toHex() manages an int

Best regards.

Il giorno gio 29 gen 2026 alle ore 01:28 Joao Andre Goncalves <
[email protected]> ha scritto:

> I tried that earlier but while the PDF is valid, the font name would not
> match the original PDF. I did find the following on the ISO document:
>
> c) Any character that is not a regular character shall be written using
> its 2-digit hexadecimal code, preceded by the NUMBER SIGN only.
>
>
>


RE: Font names using multi-byte strings

2026-01-28 Thread Joao Andre Goncalves
I tried that earlier but while the PDF is valid, the font name would not match 
the original PDF. I did find the following on the ISO document:

c) Any character that is not a regular character shall be written using its 
2-digit hexadecimal code, preceded by the NUMBER SIGN only.

FOP probably has this restriction because we can't display a char with an index 
over 255 with just 2 digits. Still, the original PDF does have that field with 
chars over 255 so it has to be possible. I'll keep looking for an alternative.

Thanks

From: Luca Bellonda 
Sent: 28 January 2026 07:20
To: [email protected]
Subject: Re: Font names using multi-byte strings

You don't often get email from [email protected]<mailto:[email protected]>. 
Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
The ISO 32000-1 standard for PDF 1.7 (available free of charge from Adobe) in 
paragraph 7.3.5, page 18, states that the Name object, in some situations, can 
interpret numeric bytes as part of a UTF-8 string. There is also a note on 
Unicode normalization.

Accepting all non-illegal characters and converting them to a UTF-8 sequence 
would likely be correct, even without generating warnings.

Il Mar 27 Gen 2026, 22:23 Joao Andre Goncalves 
mailto:[email protected]>> 
ha scritto:
I was able to get a valid PDF by removing the 8-bit restriction, but the font 
name becomes gibberish. I spent some time looking for why we have such 
restriction and the only thing I found was the following:

https://api.itextpdf.com/iText5/java/5.5.11/index.html?com/itextpdf/text/pdf/PdfName.html#:~:text=Class%20PdfName&text=PdfName%20is%20an%20object%20that,(page%2056-58)

When I went into the Manual mentioned I did not manage to find a reason for the 
restriction. I also tried to create a font with the same font name as the one 
in your PDF but FontForge had a similar restriction to FOP (ASCII characters 
only and not the escaped characters).

I'm not sure if we should be changing FOP until we determine how the original 
font was created. If we do change FOP, we could change the exception to a 
warning but I'm not sure what else could be impacted by this change.


Thanks

-Original Message-
From: Mark Gibson 
mailto:[email protected]>>
Sent: 23 January 2026 09:03
To: [email protected]<mailto:[email protected]>
Subject: RE: Font names using multi-byte strings

Thanks Chris.

Attached is the only example we have, and have knowingly seen.  And we've been 
working with Japanese clients for years now.


Mark

-Original Message-
From: Chris Bowditch 
mailto:[email protected]>>
Sent: 23 January 2026 14:44
To: [email protected]<mailto:[email protected]>
Subject: Re: Font names using multi-byte strings

[EXTERNAL]

Hi Mark,

Are you able to attach your PDF so we can replicate this?

Thanks,

Chris

On 15/01/2026 17:09, Mark Gibson wrote:
>
> Hi,
>
> I thought I'd just poll the community on this one, as I can't see it
> reported anywhere.
>
> We have a PDF that lists its fonts using Japanese characters (in this
> case, it's MS Gothic and MS PGothic, where "Gothic" actually is in
> Japanese characters).
>
> When trying to import that image using fo:external-graphic
> (fop-pdf-images.jar), we get an exception with the message "Only 8-bit
> characters allowed by this implementation".
>
> In reviewing FOP code, org.apache.fop.pdf.PDFName.toHex() throws this
> exception if the character id is > 256.
>
> Does this mean FOP cannot handle cases where the names of PDF records
> are not in simple ascii range?
>
> Caused by: java.lang.IllegalArgumentException: Only 8-bit characters
> allowed by this implementation
>
> at org.apache.fop.pdf.PDFName.toHex(PDFName.java:78)
>
> at org.apache.fop.pdf.PDFName.escapeName(PDFName.java:64)
>
> at org.apache.fop.pdf.PDFName.(PDFName.java:42)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:106)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> .java:154)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:104)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSObject(PDFCloner.jav
> a:134)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:84)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> .java:154)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:104)
>
> at
> org.a

Re: Font names using multi-byte strings

2026-01-28 Thread Luca Bellonda
The ISO 32000-1 standard for PDF 1.7 (available free of charge from Adobe)
in paragraph 7.3.5, page 18, states that the Name object, in some
situations, can interpret numeric bytes as part of a UTF-8 string. There is
also a note on Unicode normalization.

Accepting all non-illegal characters and converting them to a UTF-8
sequence would likely be correct, even without generating warnings.

Il Mar 27 Gen 2026, 22:23 Joao Andre Goncalves <
[email protected]> ha scritto:

> I was able to get a valid PDF by removing the 8-bit restriction, but the
> font name becomes gibberish. I spent some time looking for why we have such
> restriction and the only thing I found was the following:
>
> https://api.itextpdf.com/iText5/java/5.5.11/index.html?com/itextpdf/text/pdf/PdfName.html#:~:text=Class%20PdfName&text=PdfName%20is%20an%20object%20that,(page%2056-58)
>
> When I went into the Manual mentioned I did not manage to find a reason
> for the restriction. I also tried to create a font with the same font name
> as the one in your PDF but FontForge had a similar restriction to FOP
> (ASCII characters only and not the escaped characters).
>
> I'm not sure if we should be changing FOP until we determine how the
> original font was created. If we do change FOP, we could change the
> exception to a warning but I'm not sure what else could be impacted by this
> change.
>
>
> Thanks
>
> -Original Message-
> From: Mark Gibson 
> Sent: 23 January 2026 09:03
> To: [email protected]
> Subject: RE: Font names using multi-byte strings
>
> Thanks Chris.
>
> Attached is the only example we have, and have knowingly seen.  And we've
> been working with Japanese clients for years now.
>
>
> Mark
>
> -Original Message-
> From: Chris Bowditch 
> Sent: 23 January 2026 14:44
> To: [email protected]
> Subject: Re: Font names using multi-byte strings
>
> [EXTERNAL]
>
> Hi Mark,
>
> Are you able to attach your PDF so we can replicate this?
>
> Thanks,
>
> Chris
>
> On 15/01/2026 17:09, Mark Gibson wrote:
> >
> > Hi,
> >
> > I thought I’d just poll the community on this one, as I can’t see it
> > reported anywhere.
> >
> > We have a PDF that lists its fonts using Japanese characters (in this
> > case, it’s MS Gothic and MS PGothic, where “Gothic” actually is in
> > Japanese characters).
> >
> > When trying to import that image using fo:external-graphic
> > (fop-pdf-images.jar), we get an exception with the message “Only 8-bit
> > characters allowed by this implementation”.
> >
> > In reviewing FOP code, org.apache.fop.pdf.PDFName.toHex() throws this
> > exception if the character id is > 256.
> >
> > Does this mean FOP cannot handle cases where the names of PDF records
> > are not in simple ascii range?
> >
> > Caused by: java.lang.IllegalArgumentException: Only 8-bit characters
> > allowed by this implementation
> >
> > at org.apache.fop.pdf.PDFName.toHex(PDFName.java:78)
> >
> > at org.apache.fop.pdf.PDFName.escapeName(PDFName.java:64)
> >
> > at org.apache.fop.pdf.PDFName.(PDFName.java:42)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> > er.java:106)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> > .java:154)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> > er.java:104)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSObject(PDFCloner.jav
> > a:134)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> > er.java:84)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> > .java:154)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> > er.java:104)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> > .java:154)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> > er.java:104)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDF
> > BoxAdapter.java:141)
> >
> > at
> > org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.createStreamFromPDFBoxP
> > age(PDFBoxAdapter.java:212)
> >
> > at
> >

RE: Font names using multi-byte strings

2026-01-27 Thread Joao Andre Goncalves
I was able to get a valid PDF by removing the 8-bit restriction, but the font 
name becomes gibberish. I spent some time looking for why we have such 
restriction and the only thing I found was the following:

https://api.itextpdf.com/iText5/java/5.5.11/index.html?com/itextpdf/text/pdf/PdfName.html#:~:text=Class%20PdfName&text=PdfName%20is%20an%20object%20that,(page%2056-58)

When I went into the Manual mentioned I did not manage to find a reason for the 
restriction. I also tried to create a font with the same font name as the one 
in your PDF but FontForge had a similar restriction to FOP (ASCII characters 
only and not the escaped characters).

I'm not sure if we should be changing FOP until we determine how the original 
font was created. If we do change FOP, we could change the exception to a 
warning but I'm not sure what else could be impacted by this change.


Thanks

-Original Message-
From: Mark Gibson 
Sent: 23 January 2026 09:03
To: [email protected]
Subject: RE: Font names using multi-byte strings

Thanks Chris.

Attached is the only example we have, and have knowingly seen.  And we've been 
working with Japanese clients for years now.


Mark

-Original Message-
From: Chris Bowditch 
Sent: 23 January 2026 14:44
To: [email protected]
Subject: Re: Font names using multi-byte strings

[EXTERNAL]

Hi Mark,

Are you able to attach your PDF so we can replicate this?

Thanks,

Chris

On 15/01/2026 17:09, Mark Gibson wrote:
>
> Hi,
>
> I thought I’d just poll the community on this one, as I can’t see it
> reported anywhere.
>
> We have a PDF that lists its fonts using Japanese characters (in this
> case, it’s MS Gothic and MS PGothic, where “Gothic” actually is in
> Japanese characters).
>
> When trying to import that image using fo:external-graphic
> (fop-pdf-images.jar), we get an exception with the message “Only 8-bit
> characters allowed by this implementation”.
>
> In reviewing FOP code, org.apache.fop.pdf.PDFName.toHex() throws this
> exception if the character id is > 256.
>
> Does this mean FOP cannot handle cases where the names of PDF records
> are not in simple ascii range?
>
> Caused by: java.lang.IllegalArgumentException: Only 8-bit characters
> allowed by this implementation
>
> at org.apache.fop.pdf.PDFName.toHex(PDFName.java:78)
>
> at org.apache.fop.pdf.PDFName.escapeName(PDFName.java:64)
>
> at org.apache.fop.pdf.PDFName.(PDFName.java:42)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:106)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> .java:154)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:104)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSObject(PDFCloner.jav
> a:134)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:84)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> .java:154)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:104)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> .java:154)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:104)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDF
> BoxAdapter.java:141)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.createStreamFromPDFBoxP
> age(PDFBoxAdapter.java:212)
>
> at
> org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createStreamFor
> PDF(AbstractPDFBoxHandler.java:111)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBox
> ImageHandler.java:77)
>


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Joao Andre Goncalves
Customer Developer

t  | m 07733161880
[email protected]
smartcommunications.com<https://www.smartcommunications.com/>

[https://www.smartcommunications.com/wp-content/uploads/025_Trends2026-450x160_v1.jpg]<https://scale.smartcommunications.com/2026-Trends-White-Paper.html?utm_source=outlook&utm_medium=email&utm_campaign=wc-global-2026-white-paper-2026-trends>

Explore the new era of AI-powered customer engagement. Get your copy of the 
2026 Trends Report 
now.<https://scale.smartcommunications.com/2026-Trends-White-Paper.html?utm_source=outlook&

RE: Font names using multi-byte strings

2026-01-23 Thread Mark Gibson
Thanks Chris.  

Attached is the only example we have, and have knowingly seen.  And we've been 
working with Japanese clients for years now.


Mark

-Original Message-
From: Chris Bowditch  
Sent: 23 January 2026 14:44
To: [email protected]
Subject: Re: Font names using multi-byte strings

[EXTERNAL]

Hi Mark,

Are you able to attach your PDF so we can replicate this?

Thanks,

Chris

On 15/01/2026 17:09, Mark Gibson wrote:
>
> Hi,
>
> I thought I’d just poll the community on this one, as I can’t see it 
> reported anywhere.
>
> We have a PDF that lists its fonts using Japanese characters (in this 
> case, it’s MS Gothic and MS PGothic, where “Gothic” actually is in 
> Japanese characters).
>
> When trying to import that image using fo:external-graphic 
> (fop-pdf-images.jar), we get an exception with the message “Only 8-bit 
> characters allowed by this implementation”.
>
> In reviewing FOP code, org.apache.fop.pdf.PDFName.toHex() throws this 
> exception if the character id is > 256.
>
> Does this mean FOP cannot handle cases where the names of PDF records 
> are not in simple ascii range?
>
> Caused by: java.lang.IllegalArgumentException: Only 8-bit characters 
> allowed by this implementation
>
> at org.apache.fop.pdf.PDFName.toHex(PDFName.java:78)
>
> at org.apache.fop.pdf.PDFName.escapeName(PDFName.java:64)
>
> at org.apache.fop.pdf.PDFName.(PDFName.java:42)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:106)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> .java:154)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:104)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSObject(PDFCloner.jav
> a:134)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:84)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> .java:154)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:104)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner
> .java:154)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFClon
> er.java:104)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDF
> BoxAdapter.java:141)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.createStreamFromPDFBoxP
> age(PDFBoxAdapter.java:212)
>
> at
> org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createStreamFor
> PDF(AbstractPDFBoxHandler.java:111)
>
> at
> org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBox
> ImageHandler.java:77)
>


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



707685_876d5f93-a14f-4469-b588-a2b1044860b3.pdf
Description: 707685_876d5f93-a14f-4469-b588-a2b1044860b3.pdf

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Re: Font names using multi-byte strings

2026-01-23 Thread Chris Bowditch

Hi Mark,

Are you able to attach your PDF so we can replicate this?

Thanks,

Chris

On 15/01/2026 17:09, Mark Gibson wrote:


Hi,

I thought I’d just poll the community on this one, as I can’t see it 
reported anywhere.


We have a PDF that lists its fonts using Japanese characters (in this 
case, it’s MS Gothic and MS PGothic, where “Gothic” actually is in 
Japanese characters).


When trying to import that image using fo:external-graphic 
(fop-pdf-images.jar), we get an exception with the message “Only 8-bit 
characters allowed by this implementation”.


In reviewing FOP code, org.apache.fop.pdf.PDFName.toHex() throws this 
exception if the character id is > 256.


Does this mean FOP cannot handle cases where the names of PDF records 
are not in simple ascii range?


Caused by: java.lang.IllegalArgumentException: Only 8-bit characters 
allowed by this implementation


    at org.apache.fop.pdf.PDFName.toHex(PDFName.java:78)

    at org.apache.fop.pdf.PDFName.escapeName(PDFName.java:64)

    at org.apache.fop.pdf.PDFName.(PDFName.java:42)

    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFCloner.java:106)


    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner.java:154)


    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFCloner.java:104)


    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSObject(PDFCloner.java:134)


    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFCloner.java:84)


    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner.java:154)


    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFCloner.java:104)


    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.readCOSDictionary(PDFCloner.java:154)


    at 
org.apache.fop.render.pdf.pdfbox.PDFCloner.cloneForNewDocument(PDFCloner.java:104)


    at 
org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:141)


    at 
org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.createStreamFromPDFBoxPage(PDFBoxAdapter.java:212)


    at 
org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createStreamForPDF(AbstractPDFBoxHandler.java:111)


    at 
org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:77)





-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: FOP website down 19 Dec 2025?

2025-12-19 Thread Simon Steiner
Hi,

It should be working now

Thanks

-Original Message-
From: Juhani Laiho  
Sent: 19 December 2025 12:18
To: [email protected]
Subject: FOP website down 19 Dec 2025?

At least I get:

"Not Found
The requested URL was not found on this server."

when visiting

https://xmlgraphics.apache.org/fop
and
https://xmlgraphics.apache.org/

Tested 19 Dec 2025 14:12 EET from two Finnish IPs, two different computers.

Other project sites under the apache.org domain seem to work ok (Tika,
PDFBox etc.) for me.

A mention of completed 18 Dec project websites backend maintenance here:
https://status.apache.org/

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: Empty table cell fails PDF/UA-1 validation in FOP 2.11 (passes on FOP 2.10)

2025-10-16 Thread Juhani Laiho
This was probably a testing error on my part.

I apparently had keep-empty-tags="false" in the xconf accessibility element 
when testing FOP 2.11 but not when testing FOP 2.10. Once I removed 
keep-empty-tags="false" from the FOP 2.11 xconf file, the FOP 2.11 PDF was a 
valid PDF/UA-1 as well according to both veraPDF and PAC.



On 2025/06/24 07:35:47 Juhani Laiho wrote: 
> Hi, 
> 
> Having an empty table cell seems to cause PDF/UA-1 validation to fail in PDFs 
> generated with FOP version 2.11. This type of table passes in FOP version 
> 2.10 PDFs. See attached tablecols.fo.
> 
> veraPDF 1.28.1 PDF/UA-1 validation fails for PDF generated with FOP 2.11: 
> 
>  status="failed" failedChecks="1" tags="structure,table">
> Table rows shall have the same number of columns (taking into 
> account column spans) 
> SETable 
> numberOfRowWithWrongColumnSpan == null || wrongColumnSpan == 
> null 
>  
> root/document[0]/StructTreeRoot[0](26 0 obj 
> PDStructTreeRoot)/K[0](28 0 obj SEDocument Document)/K[0](31 0 obj SEPart 
> Part)/K[0](32 0 obj SESect Sect)/K[0](33 0 obj SETable Table)
> Table rows 1 and 2 span different number of columns (2 and 1 
> respectively) 
>  
>  
> 
> ...but passes for PDF generated with FOP 2.10 from same FO. 
> 
> PDF Accessibility Checker (PAC) 24.4.2 states that "it's possible that some 
> PDF/UA requirements aren't met" and reports an "irregular table row" in FOP 
> 2.11 PDF pointing to R2C2 cell. When checking the FOP 2.10 PDF, PAC reports 
> that "the PDF/UA requirements checked by PAC are fulfilled".
> 
> If I test again with no empty cells in tablecols.fo (by uncommenting "R2C1"), 
> PDF/UA-1 validation passes for FOP 2.11 PDF with both veraPDF and PAC.
> 
> Changes I have made to the configuration file (attached fopPDFUA.xconf): 
> - Added accessibility element with value true with keep-empty-tags attribute 
> set to false. 
> - Changed default-page-settings to A4 size. 
> - Added pdf-a-mode element with value PDF/A-2a 
> - Added pdf-ua-mode element with value PDF/UA-1 
> - Added version element with value 1.7 
> - Added font elements for Arial to enable embedding required by PDF/A on my 
> Windows installation. 
> - Disabled font auto-detection. 
> 
> PAC: https://pac.pdf-accessibility.org/en 
> veraPDF: https://verapdf.org 
> 
> Could this be a regression? Or should I somehow change my source FO when 
> upgrading to FOP 2.11? 
> 
> Best regards, 
> Juhani Laiho 
> 
> 

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: Does FopFactoryBuilder really have a setURIResolver method?

2025-02-27 Thread Mark Gibson
The setURIResolver in the comments seems to suggest it's talking about an XML 
Transform related class, URIResolver, that would be used in the XSL Transform 
stage.
The constructor argument is a ResourceResolver, and seems to be more FOP 
related, so used after the initial XSL transformation.

Either way, I also can't find setURIResolver as an actual method.

-Original Message-
From: [email protected]  
Sent: 21 February 2025 15:24
To: [email protected]
Subject: Does FopFactoryBuilder really have a setURIResolver method?

[EXTERNAL]

I'm wondering if FopFactoryBuilder is missing a setURIResolver() method.
The javadoc for FopFactoryBuilder shows an example of making a 
FopFactoryBuilder like so:

FopFactoryBuilder fopFactoryBuilder = new FopFactoryBuilder()
  
.setURIResolver()  <-HERE
  .setPageHeight()
  .setPageWidth()
  
.setStrictUserConfigValidation()
... etc ...
 FopFactory fopFactory = fopFactoryBuilder.build();



I am interested in using custom URI resolvers and haven't found the 
.setURIResolved method() on FopFactoryBuilder. Instead, I've been setting it in 
the FopFactoryBuilder's contructor, like:
new FopFactoryBuilder(new File(".").toURI(), resourceResolver)

But I'm wondering if I'm missing something. It would be nice to use the 
.setURIResolver() if it does exist.

Thanks,
-John

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: page-sequence conditional-page-master-reference criteria for last odd page

2025-02-12 Thread Darryl Beallie
Thanks Chris. 
I figured that was the case ... was hoping maybe someone else had overcome this 
same problem.

Cheers
Darryl

-Original Message-
From: Chris Bowditch  
Sent: Wednesday, February 12, 2025 10:54 AM
To: [email protected]
Subject: Re: page-sequence conditional-page-master-reference criteria for last 
odd page

**WARNING: This message originated outside the organization. Do not click on 
links or open attachments you do not trust. / AVERTISSEMENT: Courriel externe. 
Ne cliquez pas sur les liens ou n’ouvrez pas des pièces jointes auxquels vous 
ne faites pas confiance.***


Hi,

When you set force-page-count="end-on-even" the last page will never be odd and 
that's why the page master "last_odd" is never selected. What you are looking 
for is page-position="last-1" but unfortunately FOP doesn't support that

Thanks,

Chris

On 27/01/2025 20:41, Darryl Beallie wrote:
>
> Hi FOP users,
>
> I am having trouble with the page-master layouts used for a page 
> sequence.
>
> The page sequence uses force-page-count="end-on-even". This appears to 
> work as expected, no matter the content, the sequence always ends on 
> an even page, creating a blank if necessary.
>
> My trouble is with the last odd page when is preceding a forced 
> end-on-even page. I want for that preceding last odd page to use a 
> different footer layout.
>
> I have created simple-page-masters for even , odd , blank, and last 
> odd pages.
>
> I have created the page-sequence-master to use 
> repeatable-page-master-alternatives > 
> conditional-page-master-reference as follows
>
>  blank-or-not-blank="blank"/>
>  blank-or-not-blank="not-blank" page-position="last" 
> odd-or-even="odd"/>  master-reference="even"
> blank-or-not-blank="not-blank" odd-or-even="even"/> 
> 
>
> No matter the order of the above conditional-page-master-reference 
> elements, the last_odd never gets selected.
>
> I have verified this by generating  “intermediate-format”  output and 
> see the if:page page-master-name="blank" correctly used for the last 
> page in sequence but the preceding odd page is using if:page 
> page-master-name="odd".
>
> 
>
> ..
>
> ..
>
> ..
>
> ..
>
> 
>
> Am I misunderstanding  how force-page-count="end-on-even" works?  Or 
> do I have my conditional-page-master-ref criteria wrong or ordered 
> incorrectly?  Any help/ideas would be much appreciated.
>
> System details:
>
> Windows 11
>
> Oxygen 26
>
> JRE 17.0.8+7 (From Oxygen installed jre)
>
> Apache FOP 2.9  (From Oxygen installed fop)
>
> Thanks,
>
> Darryl
>


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: page-sequence conditional-page-master-reference criteria for last odd page

2025-02-12 Thread Chris Bowditch

Hi,

When you set force-page-count="end-on-even" the last page will never be 
odd and that's why the page master "last_odd" is never selected. What 
you are looking for is page-position="last-1" but unfortunately FOP 
doesn't support that


Thanks,

Chris

On 27/01/2025 20:41, Darryl Beallie wrote:


Hi FOP users,

I am having trouble with the page-master layouts used for a page 
sequence.


The page sequence uses force-page-count="end-on-even". This appears to 
work as expected, no matter the content, the sequence always ends on 
an even page, creating a blank if necessary.


My trouble is with the last odd page when is preceding a forced 
end-on-even page. I want for that preceding last odd page to use a 
different footer layout.


I have created simple-page-masters for even , odd , blank, and last 
odd pages.


I have created the page-sequence-master to use 
repeatable-page-master-alternatives > 
conditional-page-master-reference as follows


blank-or-not-blank="blank"/>
blank-or-not-blank="not-blank" page-position="last" odd-or-even="odd"/>
blank-or-not-blank="not-blank" odd-or-even="even"/>



No matter the order of the above conditional-page-master-reference 
elements, the last_odd never gets selected.


I have verified this by generating  “intermediate-format”  output and 
see the if:page page-master-name="blank" correctly used for the last 
page in sequence but the preceding odd page is using if:page 
page-master-name="odd".




..

..

..

..



Am I misunderstanding  how force-page-count="end-on-even" works?  Or 
do I have my conditional-page-master-ref criteria wrong or ordered 
incorrectly?  Any help/ideas would be much appreciated.


System details:

Windows 11

Oxygen 26

JRE 17.0.8+7 (From Oxygen installed jre)

Apache FOP 2.9  (From Oxygen installed fop)

Thanks,

Darryl




-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: Namespaces are dropped in XMP stream. XML invalid

2024-11-07 Thread Joao Andre Goncalves
It would be easier if you raised a ticket. You would be able to upload your 
project files as well.

From: Jörn Willhöft 
Sent: Thursday, November 7, 2024 9:49 AM
To: [email protected]
Subject: RE: Namespaces are dropped in XMP stream. XML invalid

You don't often get email from 
[email protected]<mailto:[email protected]>. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>
Well the bug is in Apache FOP (or maybe in Saxon?) Here is a reproducible test 
procedure:

I use the FOP binary package from 
https://www.apache.org/dyn/closer.cgi?filename=/xmlgraphics/fop/binaries/fop-2.10-bin.tar.gz&action=download
 and the current Saxon 12.5 HE.

Create PDF without Saxon:
   $ fop-2.10/fop/fop -c PDFA3Xmp.xconf -fo PDFXMP.fo -pdf output-ok.pdf

Create PDF with Saxon:
  $ export 
CLASSPATH=SaxonHE12-5J/saxon-he-12.5.jar:SaxonHE12-5J/lib/xmlresolver-5.2.2.jar:SaxonHE12-5J/lib/xmlresolver-5.2.2-data.jar:SaxonHE12-5J/lib/jline-2.14.6.jar
  $ fop-2.10/fop/fop -c PDFA3Xmp.xconf -fo PDFXMP.fo -pdf output-saxon.pdf

Result without Saxon:
  $ pdfinfo -meta output-ok.pdf
...
   http://www.aiim.org/pdfa/ns/extension/"; rdf:about="">
   
   
   
   http://www.aiim.org/pdfa/ns/schema#";>
   
   
   http://www.aiim.org/pdfa/ns/property#";>split
   
   
   
   
   
   
   
...

The result with Saxon is totally messed up:
$ pdfinfo -meta output-saxon.pdf
...
 http://www.aiim.org/pdfa/ns/extension/"; 
rdf:about="">

   
  
 

   
  split
   

 
  
   

 
...
Not only the namespace attributes xmlns:pdfaSchema and xmlns:pdfaProperty are 
missing, but also the rdf:Description element is now called rdf:RDF (?!)

I think it makes sense to create a Jira ticket for this issue. Since I am not a 
member of the project, shall I sign up and do this?


Cheers

   Jörn Willhöft
Jörn Willhöft mailto:[email protected]>> hat am 
07.11.2024 13:34 CET geschrieben:


OK, I am a big step further now. The bug appears in Camel (only) if Saxon is 
used anywhere in the Camel Route. I use Saxon to create the actual FO and 
additional files. The created FO has the namespaces where they belong, but 
somehow Saxon in the classpath seems to confuse the FOP component internally. 
Skipping Saxon is not really an option as I need XSLT 2.0.

It is still unclear to me if the problem is in the Camel FOP component or FOP 
itself.

Cheers

Jörn Willhöft


Joao Andre Goncalves
Customer Developer

t | m 07733161880
[email protected]
smartcommunications.com<https://www.smartcommunications.com/>

[https://scale.smartcommunications.com/rs/041-BQO-927/images/024_Esignature-2024-Benchmark.png?version=0]<https://www.smartcommunications.com/resources/benchmark-report/?utm_source=outlook&utm_medium=email&utm_campaign=benchmark_report_2024_webpage>

The largest study of its kind! Unlock unparalleled insights into customer 
preferences and stay ahead in today's market. Download 
now!<https://www.smartcommunications.com/resources/benchmark-report/?utm_source=outlook&utm_medium=email&utm_campaign=benchmark_report_2024_webpage>
   Smart Communications is a trading name of SmartComms SC Limited which is 
registered in England under No. 4303041 whose registered office is at Suite 23, 
LCLB, 95 Mortimer Street, London, W1W 7GB. Please consider the environment 
before printing. The contents of this e-mail are intended for the named 
addressee only. It contains confidential information. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it. Smart Communications will process your data as described in 
the Smart Communications' External Privacy 
Policy.<https://www.smartcommunications.com/external-privacy-policy/>

Follow us on LinkedIn<https://www.linkedin.com/company/15166060/admin/> and 
Twitter<https://twitter.com/ccminnovators?lang=en>


Re: Namespaces are dropped in XMP stream. XML invalid

2024-11-07 Thread David Law

Jörn,

its a while ago, in the dim and distant past, but...
...at a customer site, we had some Namespace issues with FOP.
Somewhere, we'd parsed some XML without Namespace awareness.

Something like:

|DocumentBuilderFactory.newInstance()||.setNamespaceAware(true);|

Maybe the products you're using have different defaults for this setting?

T'was just a thought.
Sorry, I can't be more specific than that.

All the best,
Dave

On 07/11/2024 16:48, Jörn Willhöft wrote:
Well the bug is in Apache FOP (or maybe in Saxon?) Here is a 
reproducible test procedure:
I use the FOP binary package from 
https://www.apache.org/dyn/closer.cgi?filename=/xmlgraphics/fop/binaries/fop-2.10-bin.tar.gz&action=download 
 
and the current Saxon 12.5 HE.

Create PDF without Saxon:
   $ fop-2.10/fop/fop -c PDFA3Xmp.xconf -fo PDFXMP.fo -pdf output-ok.pdf
Create PDF with Saxon:
  $ export 
CLASSPATH=SaxonHE12-5J/saxon-he-12.5.jar:SaxonHE12-5J/lib/xmlresolver-5.2.2.jar:SaxonHE12-5J/lib/xmlresolver-5.2.2-data.jar:SaxonHE12-5J/lib/jline-2.14.6.jar 

  $ fop-2.10/fop/fop -c PDFA3Xmp.xconf -fo PDFXMP.fo -pdf 
output-saxon.pdf

Result without Saxon:
  $ pdfinfo -meta output-ok.pdf
...
   xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"; 
rdf:about="">

   
   
   
   xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#";>

   
   
   xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#";>split 


   
   
   
   
   
   
   
...
The result with Saxon is totally messed up:
$ pdfinfo -meta output-saxon.pdf
...
 xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"; 
rdf:about="">


   
  
 

   
  split
   

 
  
   

 
...
Not only the namespace attributes xmlns:pdfaSchema and 
xmlns:pdfaProperty are missing, but also the rdf:Description element 
is now called rdf:RDF (?!)
I think it makes sense to create a Jira ticket for this issue. Since I 
am not a member of the project, shall I sign up and do this?


Cheers

   Jörn Willhöft

Jörn Willhöft  hat am 07.11.2024 13:34 CET 
geschrieben:
OK, I am a big step further now. The bug appears in Camel (only) if 
Saxon is used anywhere in the Camel Route. I use Saxon to create the 
actual FO and additional files. The created FO has the namespaces 
where they belong, but somehow Saxon in the classpath seems to 
confuse the FOP component internally. Skipping Saxon is not really an 
option as I need XSLT 2.0.
It is still unclear to me if the problem is in the Camel FOP 
component or FOP itself.

Cheers

    Jörn Willhöft



RE: Namespaces are dropped in XMP stream. XML invalid

2024-11-07 Thread Jörn Willhöft
OK, I am a big step further now. The bug appears in Camel (only) if Saxon is 
used anywhere in the Camel Route. I use Saxon to create the actual FO and 
additional files. The created FO has the namespaces where they belong, but 
somehow Saxon in the classpath seems to confuse the FOP component internally. 
Skipping Saxon is not really an option as I need XSLT 2.0.
 
It is still unclear to me if the problem is in the Camel FOP component or FOP 
itself.
 
Cheers

Jörn Willhöft

RE: Namespaces are dropped in XMP stream. XML invalid

2024-11-07 Thread Jörn Willhöft
Well the bug is in Apache FOP (or maybe in Saxon?) Here is a reproducible test 
procedure:
 
I use the FOP binary package from 
https://www.apache.org/dyn/closer.cgi?filename=/xmlgraphics/fop/binaries/fop-2.10-bin.tar.gz&action=download
 and the current Saxon 12.5 HE.
 
Create PDF without Saxon:
   $ fop-2.10/fop/fop -c PDFA3Xmp.xconf -fo PDFXMP.fo -pdf output-ok.pdf
 
Create PDF with Saxon:
  $ export 
CLASSPATH=SaxonHE12-5J/saxon-he-12.5.jar:SaxonHE12-5J/lib/xmlresolver-5.2.2.jar:SaxonHE12-5J/lib/xmlresolver-5.2.2-data.jar:SaxonHE12-5J/lib/jline-2.14.6.jar
  $ fop-2.10/fop/fop -c PDFA3Xmp.xconf -fo PDFXMP.fo -pdf output-saxon.pdf
 
Result without Saxon:
  $ pdfinfo -meta output-ok.pdf
...
   http://www.aiim.org/pdfa/ns/extension/"; rdf:about="">
   
   
   
   http://www.aiim.org/pdfa/ns/schema#";>
   
   
   http://www.aiim.org/pdfa/ns/property#";>split
   
   
   
   
   
   
   
...
 
The result with Saxon is totally messed up:
$ pdfinfo -meta output-saxon.pdf
...
 http://www.aiim.org/pdfa/ns/extension/"; 
rdf:about="">

   
  
 

   
  split
   

 
  
   

 
...
Not only the namespace attributes xmlns:pdfaSchema and xmlns:pdfaProperty are 
missing, but also the rdf:Description element is now called rdf:RDF (?!)
 
I think it makes sense to create a Jira ticket for this issue. Since I am not a 
member of the project, shall I sign up and do this?
 

Cheers

   Jörn Willhöft

> Jörn Willhöft  hat am 07.11.2024 13:34 CET geschrieben:
>  
>  
> OK, I am a big step further now. The bug appears in Camel (only) if Saxon is 
> used anywhere in the Camel Route. I use Saxon to create the actual FO and 
> additional files. The created FO has the namespaces where they belong, but 
> somehow Saxon in the classpath seems to confuse the FOP component internally. 
> Skipping Saxon is not really an option as I need XSLT 2.0.
>  
> It is still unclear to me if the problem is in the Camel FOP component or FOP 
> itself.
>  
> Cheers
> 
> Jörn Willhöft
> 


RE: Namespaces are dropped in XMP stream. XML invalid

2024-11-07 Thread Jörn Willhöft
Hi Joao,
 
thank you for taking the time to look into that issue. Meanwhile, I set up a 
test case with plain Apache FOP and could not reproduce the issue either.
 
It still happens with the same static input via the Apache Camel FOP component 
though. In both scenarios it's FOP 2.10 and the Camel component is actually 
just a thin wrapper. So I am currently trying to set up a better test case and 
analysis on the Camel side.
 
Just for the records, I see that I quoted the wrong FO which added the XMP to a 
page (there is a test case for that already in FOP). Instead, the XMP should be 
added to the document. Since FOP FOP merges some metadata into this stream 
there is a potential for error, but my tests showed that plain FOP works as it 
should. So this is the one I am using:
http://www.w3.org/1999/XSL/Format";
font-family="Arial">







http://www.abc.de/abc/";
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>

http://www.aiim.org/pdfa/ns/extension/";
xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#";
xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"; rdf:about="">






split












SLIDE 1



 
I'll report back after I eliminated all potential stupid mistakes on my side. 
It could also be a different XML stack or the different JVM in the Camel 
environment? I'll try to find out...
 

Cheers
Jörn Willhöft

> Joao Andre Goncalves  hat am 
> 06.11.2024 22:26 CET geschrieben:
>  
>  
> 
> Hi,
> 
> can you share the full FO? I tried to replicate your issue but my file is 
> compatible with PDFA 3b. I used https://avepdf.com/en/pdfa-validation to 
> verify the pdf.
> 
> Regards
> 
>  
> 
> From: Jörn Willhöft 
> Sent: Tuesday, November 5, 2024 5:26 AM
> To: [email protected]
> Subject: Namespaces are dropped in XMP stream. XML invalid
> 
>  
> 
>  
> 
> You don't often get email from [email protected] 
> mailto:[email protected]. Learn why this is important 
> https://aka.ms/LearnAboutSenderIdentification
> 
>  
> 
> Dear list members,
> 
>  
> 
> I need to create PDF/A-3B compliant documents with special references to an 
> embedded document (ZUGFeRD compliant invoices). Currently, this fails in 
> VeraPDF with some very vague and rather misleading validation errors:
> 
> * "Specification: ISO 19005-3:2012, Clause: 6.6.2.1, Test number: 5
> All metadata streams present in the PDF shall conform to the XMP 
> Specification. The XMP package must be encoded as UTF-8"
> 
> * "Specification: ISO 19005-3:2012, Clause: 6.6.4, Test number: 1
> The PDF/A version and conformance level of a file shall be specified using 
> the PDF/A Identification extension schema"
> 
> * "Specification: ISO 19005-3:2012, Clause: 6.6.2.1, Test number: 4
> All metadata streams present in the PDF shall conform to the XMP 
> Specification. All content of all XMP packets shall be well-formed, as 
> defined by Extensible Markup Language (XML) 1.0 (Third Edition), 2.1, and the 
> RDF/XML Syntax Specification (Revised)"
> 
>  
> 
> I finally tracked this down to FOP, which dropped some necessary namespaces 
> in the created XMP stream. This can be reproduced with the corresponding 
> example from the FOP homepage 
> (https://xmlgraphics.apache.org/fop/2.10/metadata.html). E.g. here is the fo:
> 
> 
> 
>   
> 
>   
> 
> 
> 
>   http://www.w3.org/1999/02/22-rdf-syntax-ns# 
> http://www.w3.org/1999/02/22-rdf-syntax-ns"; xmlns:abc="http://www.abc.de/abc/ 
> http://www.abc.de/abc/";>
> 
> 
> 
>  xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/ 
> http://www.aiim.org/pdfa/ns/extension/";
> 
>  
> xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema# 
> http://www.aiim.org/pdfa/ns/schema";
> 
>  
> xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property# 
> http://www.aiim.org/pdfa/ns/property";>
> 
>   
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
>   split
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
> And this is returned when I run pdfinfo -meta example.pdf:
> 
>  xmlns:x="adobe:ns:meta/">
>   http://www.w3.org/1999/02/22-rdf-syntax-ns# 
> http://www.w3.org/1999/02/22-rdf-syntax-ns";>
>  http://www.abc.de/abc/"; abc:def="val" rdf:about=""/>
>  http://purl.org/dc/elements/1.1/"; rdf:about="">
> application/pdf
> 
>
>   x-unknown
>
> 
> 
>
>   2024-11-05T11:46:27+01:00
>
> 
>  
>  http://ns.adobe.com/pdf/1.3/"; rdf:about="">
> Apache FOP Version 2.10
> 1.4
>  
>  http://www.aiim.org/pdfa/ns/extension/"; 
> rdf:about="">
> 
>
>   
>  
> 
>
> 

RE: Namespaces are dropped in XMP stream. XML invalid

2024-11-06 Thread Joao Andre Goncalves
Hi,

can you share the full FO? I tried to replicate your issue but my file is 
compatible with PDFA 3b. I used https://avepdf.com/en/pdfa-validation to verify 
the pdf.

Regards

From: Jörn Willhöft 
Sent: Tuesday, November 5, 2024 5:26 AM
To: [email protected]
Subject: Namespaces are dropped in XMP stream. XML invalid

You don't often get email from 
[email protected]. Learn why this is 
important
Dear list members,

I need to create PDF/A-3B compliant documents with special references to an 
embedded document (ZUGFeRD compliant invoices). Currently, this fails in 
VeraPDF with some very vague and rather misleading validation errors:
* "Specification: ISO 19005-3:2012, Clause: 6.6.2.1, Test number: 5
All metadata streams present in the PDF shall conform to the XMP Specification. 
The XMP package must be encoded as UTF-8"
* "Specification: ISO 19005-3:2012, Clause: 6.6.4, Test number: 1
The PDF/A version and conformance level of a file shall be specified using the 
PDF/A Identification extension schema"
* "Specification: ISO 19005-3:2012, Clause: 6.6.2.1, Test number: 4
All metadata streams present in the PDF shall conform to the XMP Specification. 
All content of all XMP packets shall be well-formed, as defined by Extensible 
Markup Language (XML) 1.0 (Third Edition), 2.1, and the RDF/XML Syntax 
Specification (Revised)"

I finally tracked this down to FOP, which dropped some necessary namespaces in 
the created XMP stream. This can be reproduced with the corresponding example 
from the FOP homepage (https://xmlgraphics.apache.org/fop/2.10/metadata.html). 
E.g. here is the fo:



  

  



  http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
xmlns:abc="http://www.abc.de/abc/";>



http://www.aiim.org/pdfa/ns/extension/";

 xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#";

 
xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#";>

  



  



  



  split



  



  



  



  



  


And this is returned when I run pdfinfo -meta example.pdf:

  http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
 http://www.abc.de/abc/"; abc:def="val" rdf:about=""/>
 http://purl.org/dc/elements/1.1/"; rdf:about="">
application/pdf

   
  x-unknown
   


   
  2024-11-05T11:46:27+01:00
   

 
 http://ns.adobe.com/pdf/1.3/"; rdf:about="">
Apache FOP Version 2.10
1.4
 
 http://www.aiim.org/pdfa/ns/extension/"; 
rdf:about="">

   
  
 

   
  split
   

 
  
   

 
 http://www.aiim.org/pdfa/ns/id/"; rdf:about="">
B
3
 
 http://ns.adobe.com/xap/1.0/"; rdf:about="">
2024-11-05T11:46:27+01:00
2024-11-05T11:46:27+01:00
 
  


As you can see, the two namespaces 
xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#";   and 
xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#";
are dropped from the metadata, while the prefixes are still used. Thus, the XML 
is invalid and so is the PDF/A.
This is pretty unfortunate, as I don't have any workaround for this. I am using 
Apache FOP 2.10 in the context of Apache Camel 4.8.1. Any help would be greatly 
appreciated.


With kind regards,

   Jörn Willhöft


Joao Andre Goncalves
Customer Developer

t | m 07733161880
[email protected]
smartcommunications.com

[https://scale.smartcommunications.com/rs/041-BQO-927/images/024_Esignature-2024-Benchmark.png?version=0]

The largest study of its kind! Unlock unparalleled insights into customer 
preferences and stay ahead in today's market. Download 
now!
   Smart Communications is a trading name of SmartComms SC Limited which is 
registered in England under No. 4303041 whose registered office is at Suite 23, 
LCLB, 95 Mortimer Street, London, W1W 7GB. Please consider the environment 
before printing. The contents of this e-mail are intended for the named 
addressee only. It contains confidential information. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. 

RE: Blank fop pages

2024-09-30 Thread Campbell, Lance
The reason my PDF was blank had to do with the servlet response and how to set 
the content type.

Thanks,

Lance

From: Campbell, Lance 
Sent: Wednesday, September 25, 2024 1:22 PM
To: [email protected]
Subject: Blank fop pages

I am migrating from java 8 to java 17. I get this error:

The package javax.xml.transform is accessible from more than one module: 
, java.xml:
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Templates;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;

I added this to maven to get rid of the java issue:


org.apache.xmlgraphics
fop
2.9


xml-apis
xml-apis




Now my PDF is blank with no errors during run time.  What am I missing?

Thanks,

Lance



Re: Fwd: How to use fop with Java 21

2024-09-05 Thread Andreas Reichel
Good Morning Rolf,

please double check your dependencies: I think it's FOP instead of FOP-
CORE.
For me, the following dependencies work with Java21 and I get nice PDFs
out:

// PDF Output
implementation ('org.apache.xmlgraphics:fop:+') {
exclude group: 'xalan', module: 'xalan'
}
implementation ('org.apache.xmlgraphics:batik-codec:+') {
exclude group: 'xalan', module: 'xalan'
}

Viel Glueck!
Andreas

On Fri, 2024-09-06 at 05:47 +0200, Rolf Schumacher wrote:
>  
> Is there some help about fop?
>  
>  Forwarded Message  Subject: Re: How to use fop with
> Java 21 
> Date: Thu, 5 Sep 2024 12:26:09 +0200 
> From: Csaba Nánai  
> To: Rolf Schumacher  
> 
> 
> 
> Hi, Rolf 
> 
> 
> 
> Sorry, but i'm not at home in JPMS and Java 21 capabilities.
> 
> Please send this mail to the list for community help.
> 
> 
> 
> 
> Best luck
> 
> 
> 
> Rolf Schumacher  ezt írta (időpont: 2024. szept. 5.,
> Cs, 8:11):
> 
> > 
> > 
> > Thank you for responding Csaba.
> > 
> > Years ago i did me a utility module, amoung others hosting
> > operations to help with xslt and fop. fop 2.8 was the latest
> > version that worked. Every year I am trying to upgrade to 2.9,
> > hoping that fop can be used seemlessly with JPMS, now Java 21. I
> > did a new trial these days and failed again.
> > 
> > The pom.xml of the utility module draws the dependencies
> > 
> > 
> > 
> > org.apache.xmlgraphics
> > fop-core
> > 2.9
> > 
> > 
> > org.apache.xmlgraphics
> > xmlgraphics-
> > commons
> > 2.9
> > 
> > 
> > 
> > The application which depends ot the util module copies all
> > dependencies to a "lib" folder:
> > 
> > 
> > 
> > org.apache.maven.plugins<
> > /groupId>
> > maven-dependency-
> > plugin
> > 3.8.0
> > 
> > 
> > copy-
> > dependencies-to-lib
> > package > ase>
> > 
> > copy
> > -dependencies
> > 
> > 
> >  > ectory>target/lib
> >  > Releases>false
> >  > Snapshots>true
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > If I run the application by 
> > 
> > 
> > 
> > 
> > java -p fctr-0.0.1-SNAPSHOT.jar:lib -m
> > eu.ngong.fctr/eu.ngong.fctr.App [1] RoS fctr
> > 
> > 
> > 
> > 
> > I get the error
> > 
> > 
> > 
> > 
> > Error occurred during initialization of boot layer
> > java.lang.module.ResolutionException: Modules fop.core and fop.util
> > export package org.apache.fop.util.text to module qdox
> > 
> > 
> > 
> > 
> > I spend days to manually sort out all the jar files in "lib" folder
> > to warrant that each module can be found only ones. That work
> > finally became successful and the application starts, but fop is
> > missing some classes. If I put the jar files back hosting those
> > classes (lots of work!) I get again the error of doubled packages.
> > 
> > 
> > 
> > 
> > It would be too much to reduce the application to just isolate the
> > problem. Therefore I am looking for an example with this
> > properties:
> > - Java 21
> > 
> > - maven
> > 
> > - fop 2.9
> > 
> > - generating a PDF from an xslfo file.
> > 
> > to try to build up from there and find my problem. Or: I just wait
> > another year, stick to non-JPMS fop 2.8.
> > 
> > 
> > 
> > 
> > BR
> > 
> > Rolf
> > 
> > p.s. ChatGPT does not find such an example.
> > 
> > 
> > 
> > 
> > On 9/4/24 12:34, Csaba Nánai wrote:
> > 
> > > 
> > > Hi Rolf, 
> > > 
> > > 
> > > 
> > > Did you have a compiling issue or runtime error?
> > > 
> > > 
> > > 
> > > 
> > > Please let us know more!
> > > 
> > > Please send error messages and stack trace, and a minimal
> > > reproducible example!
> > > 
> > > 
> > > 
> > > 
> > > Best regards, Csaba
> > > 
> > > 
> > > 
> > > Rolf Schumacher  ezt írta (időpont: 2024. szept.
> > > 3., K, 18:40):
> > > 
> > > > 
> > > > Dear fop specialists, 
> > > > 
> > > > some time ago I used to use fop something like shown below (I
> > > > hope the formatting stays constant).
> > > > 
> > > > Now I was trying to do so with maven, Java-21 and fop 2.9 and
> > > > failed.
> > > > 
> > > > Is there an example program, e.g. on github, how to use fop
> > > > 2.9, including the pom.xml and the module-info.java?
> > > > 
> > > > =
> > > > 
> > > > 
> > > > FopFactoryBuilder builder = new
> > > > FopFactoryBuilder(basePath.toUri())
> > > > .setPageHeight("297mm")
> > > > .setPageWidth("210mm");
> > > > FopFactory fopFactory = builder.build();
> > > > out = new
> > > > BufferedOutputStream(Files.newOutputStream(r));
> > > > Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,
> > > > out);
> > > > Transformer transformer =
> > > > TransformerFactory.newInstance().newTransformer();
> > > > Source src = new StreamSource(fo.toFile());
> > > > Result res = new SAXResult(fop.getDefaultHandler());
> > > > transformer.transform(src, res);
> > > > out.close();
> > > > 
> > > > 
> > > > =
> > > > mit freundlichen Grüße, Best Regards
> > > > 
> > > > Rolf
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > mit freundlichen Grüße, Best Regards
> > 
> > Rolf
> > 
> > 
> > 
> 
>  


[1] eu.ngong.fctr.App http://eu.ngong.fctr.app/


Re: How to use fop with Java 21

2024-09-04 Thread Csaba Nánai
Hi Rolf,

Did you have a compiling issue or runtime error?

Please let us know more!
Please send error messages and stack trace, and a minimal reproducible
example!

Best regards, Csaba

Rolf Schumacher  ezt írta (időpont: 2024. szept. 3., K,
18:40):

> Dear fop specialists,
>
> some time ago I used to use fop something like shown below (I hope the
> formatting stays constant).
>
> Now I was trying to do so with maven, Java-21 and fop 2.9 and failed.
>
> Is there an example program, e.g. on github, how to use fop 2.9, including
> the pom.xml and the module-info.java?
>
> =
>
> FopFactoryBuilder builder = new FopFactoryBuilder(basePath.toUri())
>
> .setPageHeight("297mm")
>
> .setPageWidth("210mm");
>
> FopFactory fopFactory = builder.build();
>
> out = new BufferedOutputStream(Files.newOutputStream(r));
>
> Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);
>
> Transformer transformer = TransformerFactory.newInstance().newTransformer
> ();
>
> Source src = new StreamSource(fo.toFile());
>
> Result res = new SAXResult(fop.getDefaultHandler());
>
> transformer.transform(src, res);
>
> out.close();
>
> =
>
> mit freundlichen Grüße, Best Regards
>
> Rolf
>
>


RE: Table / page breaking

2024-08-15 Thread Darryl Beallie
Thanks Luca,  that seems to have been the issue. Very much appreciated you 
taking the time to look.

Cheers

Darryl

From: Luca Bellonda 
Sent: Tuesday, August 13, 2024 3:07 PM
To: [email protected]
Subject: Re: Table / page breaking

**WARNING: This message originated outside the organization. Do not click on 
links or open attachments you do not trust. / AVERTISSEMENT: Courriel externe. 
Ne cliquez pas sur les liens ou n'ouvrez pas des pièces jointes auxquels vous 
ne faites pas confiance.***

Hello, in the attached .fo, in the last rows there are blocks with the 
attribute keep-with-next="always".
This forces a set of rows to form a single block and I think that's the reason 
the second page ends prematurely and the remaining rows are moved to another 
page.

Best regards.

Il giorno lun 12 ago 2024 alle ore 13:32 Darryl Beallie 
mailto:[email protected]>> ha scritto:
FOP users,

I am having difficultly understanding the page breaking occurring in the 
attached PDFs and how to improve.   The goal is to eliminate / reduce the 
amount of whitespace created by the irregular/odd page break. The table can 
have varying number of rows. When number of rows fits in two or less pages, 
there is no issue. When greater, the irregular/odd page breaking occurs.

I have tried using fo extensions widow-content-limit and orphan-content-limit 
with varying values, each without improvement.
I have tried using (keep-with-next, k-w-n.within-column, k-w-n.within-page) = 
"always" on the rows with bolded text which produces different page breaking 
but also causes the table rows to extend into the page footer area (region 
After) and not create the additional pages.
If I remove the last two rows in the table, the table breaks nicely.
The length of the text in the either cell doesn't seem to impact the irregular 
page breaking.

FOP2.9.pdf is the result from using the Oxygen built-in XSL-FO  FO PDF 
transformation scenario.

Any ideas or suggestions would be greatly appreciated.

System details:
Windows 11
Oxygen 26
JRE 17.0.8+7 (From Oxygen installed jre)
Apache FOP 2.9  (From Oxygen installed fop)

I have gotten similar results using FOP1.1, also from Oxygen but using an ANT 
transformation scenario that uses a java task that points to Apache FOP 1.1 jar.
Thanks in advance,

Darryl






-
To unsubscribe, e-mail: 
[email protected]<mailto:[email protected]>
For additional commands, e-mail: 
[email protected]<mailto:[email protected]>


RE: Validation error with stable version FOP 2.9

2024-08-14 Thread Joao Andre Goncalves
Hi,

I tried replicating the issue with your code but I wasn't able to. I replaced 
the xsl:value-of with blank values. I can't see how the dates would cause an 
issue.
If you could share the complete fo to test would be appreciated.

Regards,
Joao Andre Goncalves

From: Anirban De 
Sent: Wednesday, August 14, 2024 12:31 PM
To: [email protected]
Subject: Validation error with stable version FOP 2.9

You don't often get email from 
[email protected]. Learn why this is 
important
Hi team,

We have a requirement for converting XSL-FO to PDF. Recently we have migrated 
from FOP 0.95 FOP 2.9. We are facing a problem with nested 's with 
the current version. The exception that we are getting is:
org.apache.fop.fo.ValidationException:the column-number or number of cells in 
the row overflows the number of fo:table-columns specified for the table. (See 
position 0:0).

Sample XSL file code like below:
 













Individual Case Report

Date 
Learned:








Protocol #







Initial Date Learned:












Please guide me what changes need to be done to address the bug or exception.

Regards
Anirban


Joao Andre Goncalves
Customer Developer

t | m 07733161880
[email protected]
smartcommunications.com

[https://scale.smartcommunications.com/rs/041-BQO-927/images/INV24-Email-Signature-450x160_v2.png]

INNOVATE is back and bigger than ever! Join us October 8, 2024 at the Royal 
Lancaster, London. Register 
now!
 Smart Communications is a trading name of SmartComms SC Limited which is 
registered in England under No. 4303041 whose registered office is at Suite 23, 
LCLB, 95 Mortimer Street, London, W1W 7GB. Please consider the environment 
before printing. The contents of this e-mail are intended for the named 
addressee only. It contains confidential information. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it. Smart Communications will process your data as described in 
the Smart Communications' External Privacy 
Policy.

Follow us on LinkedIn and 
Twitter


Re: Table / page breaking

2024-08-13 Thread Luca Bellonda
Hello, in the attached .fo, in the last rows there are blocks with the
attribute keep-with-next="always".
This forces a set of rows to form a single block and I think that's the
reason the second page ends prematurely and the remaining rows are moved to
another page.

Best regards.

Il giorno lun 12 ago 2024 alle ore 13:32 Darryl Beallie <
[email protected]> ha scritto:

> FOP users,
>
>
>
> I am having difficultly understanding the page breaking occurring in the
> attached PDFs and how to improve.   The goal is to eliminate / reduce the
> amount of whitespace created by the irregular/odd page break. The table can
> have varying number of rows. When number of rows fits in two or less pages,
> there is no issue. When greater, the irregular/odd page breaking occurs.
>
>
>
> I have tried using fo extensions widow-content-limit and
> orphan-content-limit with varying values, each without improvement.
>
> I have tried using (keep-with-next, k-w-n.within-column,
> k-w-n.within-page) = “always” on the rows with bolded text which produces
> different page breaking but also causes the table rows to extend into the
> page footer area (region After) and not create the additional pages.
>
> If I remove the last two rows in the table, the table breaks nicely.
>
> The length of the text in the either cell doesn’t seem to impact the
> irregular page breaking.
>
>
>
> FOP2.9.pdf is the result from using the Oxygen built-in XSL-FO  FO PDF
> transformation scenario.
>
>
>
> Any ideas or suggestions would be greatly appreciated.
>
>
>
> System details:
>
> Windows 11
>
> Oxygen 26
>
> JRE 17.0.8+7 (From Oxygen installed jre)
>
> Apache FOP 2.9  (From Oxygen installed fop)
>
>
>
> I have gotten similar results using FOP1.1, also from Oxygen but using an
> ANT transformation scenario that uses a java task that points to Apache FOP
> 1.1 jar.
>
> Thanks in advance,
>
>
>
> Darryl
>
>
>
>
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>


Re: Fop multiple thread generate performance

2024-07-18 Thread David Law

Hi,

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

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

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

All the best,
Dave

packagefop.example;

importjava.io.ByteArrayInputStream;

importjava.io.File;

importjava.io.IOException;

importjava.io.InputStream;

importjava.net.URI;

importjava.util.HashMap;

importjavax.xml.transform.Templates;

importjavax.xml.transform.TransformerConfigurationException;

importjavax.xml.transform.TransformerFactory;

importjavax.xml.transform.stream.StreamSource;

importorg.apache.fop.apps.FopFactory;

importorg.apache.fop.apps.FopFactoryBuilder;

publicclassFopPseudoCode {

/*

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


*/

privatestaticfinalHashMap  TEMPLATES_CACHE= 
newHashMap<>();


privatestaticfinalThreadLocal LOCAL_TX_FACTORY= 
newThreadLocal<>() {


@Override

protectedTransformerFactory initialValue() {

finalTransformerFactory factory= TransformerFactory.newInstance();

/*

* TODOCustomize your factory here

*/

returnfactory;

}

};

privatestaticfinalThreadLocal LOCAL_FOP_FACTORY= 
newThreadLocal<>() {


@Override

protectedFopFactory initialValue() {

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

returnnewFopFactoryBuilder(defaultBaseURI)

/*

* TODOCustomize your FopFactoryBuilder here

*/

.build();

}

};

publicstaticvoidmain(finalString[] args) throwsException {

finalTransformerFactory txFactory= LOCAL_TX_FACTORY.get();

finalFopFactory fopFactory= LOCAL_FOP_FACTORY.get();

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


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

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

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

}

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


finalTemplates templatesCached= TEMPLATES_CACHE.get(fileName);

if(null!= templatesCached) {

returntemplatesCached;

}

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


{

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

TEMPLATES_CACHE.put(fileName, templatesNew);

returntemplatesNew;

}

}

privatestaticfinalbyte[] readDocStylesheet(finalString fileName) {

return"...".getBytes();

}

privatestaticfinalbyte[] readDocBytes(finalString fileName) {

return"...".getBytes();

}

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


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


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

}

}



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


Hi,

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

Thanks

*From:*Allen Wang <[email protected]>
*Sent:* 14 July 2024 08:39
*To:* fop-users 
*Cc:* 1289495104 <[email protected]>
*Subject:* Fop multiple thread generate performance

Dear Fop Doctor.

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


Kindly, Could you give us some advise?

Thanks a lot.



Re: Fop multiple thread generate performance

2024-07-17 Thread xmlgraphics . dave

Hi,

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

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

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

All the best,
Dave

packagefop.example;

importjava.io.ByteArrayInputStream;

importjava.io.File;

importjava.io.IOException;

importjava.io.InputStream;

importjava.net.URI;

importjava.util.HashMap;

importjavax.xml.transform.Templates;

importjavax.xml.transform.TransformerConfigurationException;

importjavax.xml.transform.TransformerFactory;

importjavax.xml.transform.stream.StreamSource;

importorg.apache.fop.apps.FopFactory;

importorg.apache.fop.apps.FopFactoryBuilder;

publicclassFopPseudoCode {

/*

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


*/

privatestaticfinalHashMap  TEMPLATES_CACHE= 
newHashMap<>();


privatestaticfinalThreadLocal LOCAL_TX_FACTORY= 
newThreadLocal<>() {


@Override

protectedTransformerFactory initialValue() {

finalTransformerFactory factory= TransformerFactory.newInstance();

/*

* TODOCustomize your factory here

*/

returnfactory;

}

};

privatestaticfinalThreadLocal LOCAL_FOP_FACTORY= 
newThreadLocal<>() {


@Override

protectedFopFactory initialValue() {

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

returnnewFopFactoryBuilder(defaultBaseURI)

/*

* TODOCustomize your FopFactoryBuilder here

*/

.build();

}

};

publicstaticvoidmain(finalString[] args) throwsException {

finalTransformerFactory txFactory= LOCAL_TX_FACTORY.get();

finalFopFactory fopFactory= LOCAL_FOP_FACTORY.get();

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


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

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

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

}

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


finalTemplates templatesCached= TEMPLATES_CACHE.get(fileName);

if(null!= templatesCached) {

returntemplatesCached;

}

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


{

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

TEMPLATES_CACHE.put(fileName, templatesNew);

returntemplatesNew;

}

}

privatestaticfinalbyte[] readDocStylesheet(finalString fileName) {

return"...".getBytes();

}

privatestaticfinalbyte[] readDocBytes(finalString fileName) {

return"...".getBytes();

}

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


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


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

}

}



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


Hi,

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

Thanks

*From:*Allen Wang <[email protected]>
*Sent:* 14 July 2024 08:39
*To:* fop-users 
*Cc:* 1289495104 <[email protected]>
*Subject:* Fop multiple thread generate performance

Dear Fop Doctor.

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


Kindly, Could you give us some advise?

Thanks a lot.



RE: Fop multiple thread generate performance

2024-07-16 Thread Simon Steiner
Hi,

 

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

 

Thanks

 

From: Allen Wang <[email protected]> 
Sent: 14 July 2024 08:39
To: fop-users 
Cc: 1289495104 <[email protected]>
Subject: Fop multiple thread generate performance

 

Dear Fop Doctor.

 

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

Kindly, Could you give us some advise?

Thanks a lot.



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

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

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


RE: RE: Fop batch generate report performance

2024-06-04 Thread Simon Steiner
Hi,

 

What about:
FopFactory fopFactory = createFopFactory();

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

 

Thanks

 

From: 孤王 <[email protected]> 
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:[email protected]> >

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

To: "fop-users"mailto:[email protected]> >;

Cc: "18224494266"<<[email protected] <mailto:[email protected]> >>;

Subject: RE: Fop batch generate report performance

 

Hi,

 

What about reusing the fopfactory, 1 per thread.

 

Thanks

 

From: 孤王 <[email protected] <mailto:[email protected]> > 
Sent: 04 June 2024 14:49
To: fop-users mailto:[email protected]> >
Cc: 18224494266 <[email protected] <mailto:[email protected]> >
Subject: Fop batch generate report performance

 

Dear Fop Docters,

 

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



  /tmp/fonts

  CCITT T.6

  LITTLE_ENDIAN



 

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

 

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

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


Re: RE: Fop batch generate report performance

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



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


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

RE: Fop batch generate report performance

2024-06-04 Thread Simon Steiner
Hi,



What about reusing the fopfactory, 1 per thread.



Thanks



From: 孤王 <[email protected]>
Sent: 04 June 2024 14:49
To: fop-users 
Cc: 18224494266 <[email protected]>
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: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]



-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Different footer text on each page

2023-07-27 Thread Chris Bowditch

Hi Jon,

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


Thanks,

Chris

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


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


Thank you,
Jon




-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Increase logging level with fop?

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

Best regards.

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

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


Re: Publishing area tree XML fails

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

Il giorno ven 30 giu 2023 alle ore 22:33 Simon Steiner <
[email protected]> ha scritto:

> Hi,
>
>
>
> We could print a warning message, rather than change the cmd line?
>
>
>
> Thanks
>
>
>
> *From:* Luca Bellonda 
> *Sent:* 30 June 2023 21:31
> *To:* [email protected]
> *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 <
> [email protected]> ha scritto:
>
> Hi,
>
>
>
> I use it from the cmd line all the time to create tests, so I prefer we
> keep it.
>
>
>
> Thanks
>
>
>
> *From:* Luca Bellonda 
> *Sent:* 30 June 2023 21:18
> *To:* [email protected]
> *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 <
> [email protected]> ha scritto:
>
> Hi,
>
>
>
> AT is maintained only for unit tests, its missing many features so
> shouldn’t be used by a end user.
>
>
>
> Thanks
>
>
>
> *From:* Mark Giffin 
> *Sent:* 30 June 2023 20:50
> *To:* [email protected]
> *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:* [email protected] 
> 
> *Subject:* Publishing area tree XML fails
>
>
>
> I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
> command line with this:
>
> fop -s topic.fo -at area_tree.xml
>
> This works fine. I plan to make some changes and read it in, then
> publish to PDF.
>
> I am trying to read it in and I don't know what to expect, or how to
> publish out to PDF. The docs do not go into this, that I can find. I get
> failure when I run the command below intended to produce a PDF called
> aaa.pdf:
>
> fop -atin area_tree.xml aaa.pdf
> [warning] /usr/bin/fop: JVM flavor 'sun' not understood
> [ERROR] FOP - Exception  java.util.EmptyStackException
> java.util.EmptyStackException>org.apache.fop.apps.FOPException:
> java.util.EmptyStackException
> java.util.EmptyStackException
>  at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>  at
>
> org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
>  at org.apache.fop.cli.Main.startFOP(Main.java:183)
>  at org.apache.fop.cli.Main.main(Main.java:214)
> Caused by: java.util.EmptyStackException
>  at java.base/java.util.Stack.peek(Stack.java:102)
>  at
>
> org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
> etc.
>
> Any ideas?
>
> Thanks,
> Mark
>
>
>
> -
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
>


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: [email protected]
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:[email protected]> > 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:[email protected]> > 
Sent: 30 June 2023 21:18
To: [email protected] <mailto:[email protected]> 
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:[email protected]> > 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:[email protected]> > 
Sent: 30 June 2023 20:50
To: [email protected] <mailto:[email protected]> 
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:[email protected]> 
Sent: 26 June 2023 07:57
To: [email protected] <mailto:[email protected]>  
 <mailto:[email protected]> 
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: [email protected] 
<mailto:[email protected]> 
For additional commands, e-mail: [email protected] 
<mailto:[email protected]> 

 



Re: Publishing area tree XML fails

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

Il giorno ven 30 giu 2023 alle ore 22:24 Simon Steiner <
[email protected]> ha scritto:

> Hi,
>
>
>
> I use it from the cmd line all the time to create tests, so I prefer we
> keep it.
>
>
>
> Thanks
>
>
>
> *From:* Luca Bellonda 
> *Sent:* 30 June 2023 21:18
> *To:* [email protected]
> *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 <
> [email protected]> ha scritto:
>
> Hi,
>
>
>
> AT is maintained only for unit tests, its missing many features so
> shouldn’t be used by a end user.
>
>
>
> Thanks
>
>
>
> *From:* Mark Giffin 
> *Sent:* 30 June 2023 20:50
> *To:* [email protected]
> *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:* [email protected] 
> 
> *Subject:* Publishing area tree XML fails
>
>
>
> I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
> command line with this:
>
> fop -s topic.fo -at area_tree.xml
>
> This works fine. I plan to make some changes and read it in, then
> publish to PDF.
>
> I am trying to read it in and I don't know what to expect, or how to
> publish out to PDF. The docs do not go into this, that I can find. I get
> failure when I run the command below intended to produce a PDF called
> aaa.pdf:
>
> fop -atin area_tree.xml aaa.pdf
> [warning] /usr/bin/fop: JVM flavor 'sun' not understood
> [ERROR] FOP - Exception  java.util.EmptyStackException
> java.util.EmptyStackException>org.apache.fop.apps.FOPException:
> java.util.EmptyStackException
> java.util.EmptyStackException
>  at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>  at
>
> org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
>  at org.apache.fop.cli.Main.startFOP(Main.java:183)
>  at org.apache.fop.cli.Main.main(Main.java:214)
> Caused by: java.util.EmptyStackException
>  at java.base/java.util.Stack.peek(Stack.java:102)
>  at
>
> org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
> etc.
>
> Any ideas?
>
> Thanks,
> Mark
>
>
>
> -
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
>


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: [email protected]
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:[email protected]> > 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:[email protected]> > 
Sent: 30 June 2023 20:50
To: [email protected] <mailto:[email protected]> 
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:[email protected]> 
Sent: 26 June 2023 07:57
To: [email protected] <mailto:[email protected]>  
 <mailto:[email protected]> 
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: [email protected] 
<mailto:[email protected]> 
For additional commands, e-mail: [email protected] 
<mailto:[email protected]> 

 



Re: Publishing area tree XML fails

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

Regards

Il giorno ven 30 giu 2023 alle ore 21:54 Simon Steiner <
[email protected]> ha scritto:

> Hi,
>
>
>
> AT is maintained only for unit tests, its missing many features so
> shouldn’t be used by a end user.
>
>
>
> Thanks
>
>
>
> *From:* Mark Giffin 
> *Sent:* 30 June 2023 20:50
> *To:* [email protected]
> *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:* [email protected] 
> 
> *Subject:* Publishing area tree XML fails
>
>
>
> I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
> command line with this:
>
> fop -s topic.fo -at area_tree.xml
>
> This works fine. I plan to make some changes and read it in, then
> publish to PDF.
>
> I am trying to read it in and I don't know what to expect, or how to
> publish out to PDF. The docs do not go into this, that I can find. I get
> failure when I run the command below intended to produce a PDF called
> aaa.pdf:
>
> fop -atin area_tree.xml aaa.pdf
> [warning] /usr/bin/fop: JVM flavor 'sun' not understood
> [ERROR] FOP - Exception  java.util.EmptyStackException
> java.util.EmptyStackException>org.apache.fop.apps.FOPException:
> java.util.EmptyStackException
> java.util.EmptyStackException
>  at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>  at
>
> org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
>  at org.apache.fop.cli.Main.startFOP(Main.java:183)
>  at org.apache.fop.cli.Main.main(Main.java:214)
> Caused by: java.util.EmptyStackException
>  at java.base/java.util.Stack.peek(Stack.java:102)
>  at
>
> org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
> etc.
>
> Any ideas?
>
> Thanks,
> Mark
>
>
>
> -
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>


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: [email protected]
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:[email protected]> 
Sent: 26 June 2023 07:57
To: [email protected] <mailto:[email protected]>  
 <mailto:[email protected]> 
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: [email protected] 
<mailto:[email protected]> 
For additional commands, e-mail: [email protected] 
<mailto:[email protected]> 

 



Re: Publishing area tree XML fails

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


Mark

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

Hi Mark,

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


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

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


Regards,
Dave

*From:* Mark Giffin 
*Sent:* 26 June 2023 07:57
*To:* [email protected] 
*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: [email protected]
For additional commands, e-mail: [email protected]



Re: Publishing area tree XML fails

2023-06-27 Thread Dave Roxburgh
Hi Mark,

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

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

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

Regards,
Dave

From: Mark Giffin 
Sent: 26 June 2023 07:57
To: [email protected] 
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: [email protected]
For additional commands, e-mail: [email protected]



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: [email protected]
Subject: Re: Embed different TTF font styles




-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Embed different TTF font styles

2023-05-23 Thread Alexander Adam
Hello Simon,

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

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

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

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

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

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



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: [email protected]
Subject: Embed different TTF font styles




-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Requesting your GitHub User Identifier - For Jira Migration

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

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

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

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


Re: Requesting your GitHub User Identifier - For Jira Migration

2023-05-10 Thread Glenn Adams
Hi Jocelin,

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

Regards,
Glenn

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

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


RE: Requesting your GitHub User Identifier - For Jira Migration

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

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

Thank you


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

Objet : Requesting your GitHub User Identifier - For Jira Migration


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


Hi All,

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

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

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

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

Also, if you wish to avoid responding publicly, please send your response 
directly to me at mailto:[email protected]>>.

Kind regards,
Glenn

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

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


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

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

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

Thank you for your help.

De : Simon Steiner 
Envoyé : vendredi 28 avril 2023 16:33
À : [email protected] 
Objet : RE: AFP with custom font TTF generates space-letter-space


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



Hi,



Im told:

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



Thanks



From: Jocelin HEINEN (ext) 
Sent: 28 April 2023 12:36
To: [email protected]
Subject: RE: AFP with custom font TTF generates space-letter-space



Hi,

I tried to create an account again

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

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

Hopefully I did not make a mistake on the project name

Thank you,




De : Jocelin HEINEN (ext) 
Envoyé : vendredi 28 avril 2023 09:08
À : [email protected] 
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
À : [email protected] 
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: [email protected]
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:[email protected]>>
Envoyé : jeudi 27 avril 2023 16:22
À : [email protected]<mailto:[email protected]> 
mailto:[email protected]>>
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:[email protected]>> wrote:

Hi,



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



Thanks



From: Jocelin HEINEN (ext) 
mailto:[email protected]>>
Sent: 27 April 2023 11:03
To: [email protected]<mailto:[email protected]>
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:[email protected]>>
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected]<mailto:[email protected]> 
mailto:[email protected]>>
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:[email protected]>>
Sent: 27 April 2023 10:40
To: [email protected]<mailto:[email protected]>
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

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: [email protected]
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
À : [email protected] 
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
À : [email protected] 
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: [email protected]
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:[email protected]> >
Envoyé : jeudi 27 avril 2023 16:22
À : [email protected] <mailto:[email protected]>  
mailto:[email protected]> >
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:[email protected]> > wrote:

Hi,

 

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

 

Thanks

 

From: Jocelin HEINEN (ext) mailto:[email protected]> > 
Sent: 27 April 2023 11:03
To: [email protected] <mailto:[email protected]> 
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:[email protected]> >
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected] <mailto:[email protected]>  
mailto:[email protected]> >
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:[email protected]> > 
Sent: 27 April 2023 10:40
To: [email protected] <mailto:[email protected]> 
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/Transfor

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

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

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

Hopefully I did not make a mistake on the project name

Thank you,



De : Jocelin HEINEN (ext) 
Envoyé : vendredi 28 avril 2023 09:08
À : [email protected] 
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
À : [email protected] 
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: [email protected]
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:[email protected]>>
Envoyé : jeudi 27 avril 2023 16:22
À : [email protected]<mailto:[email protected]> 
mailto:[email protected]>>
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:[email protected]>> wrote:

Hi,



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



Thanks



From: Jocelin HEINEN (ext) 
mailto:[email protected]>>
Sent: 27 April 2023 11:03
To: [email protected]<mailto:[email protected]>
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:[email protected]>>
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected]<mailto:[email protected]> 
mailto:[email protected]>>
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:[email protected]>>
Sent: 27 April 2023 10:40
To: [email protected]<mailto:[email protected]>
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 messag

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

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

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

Thank you,

De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 16:50
À : [email protected] 
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: [email protected]
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:[email protected]>>
Envoyé : jeudi 27 avril 2023 16:22
À : [email protected]<mailto:[email protected]> 
mailto:[email protected]>>
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:[email protected]>> wrote:

Hi,



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



Thanks



From: Jocelin HEINEN (ext) 
mailto:[email protected]>>
Sent: 27 April 2023 11:03
To: [email protected]<mailto:[email protected]>
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:[email protected]>>
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected]<mailto:[email protected]> 
mailto:[email protected]>>
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:[email protected]>>
Sent: 27 April 2023 10:40
To: [email protected]<mailto:[email protected]>
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 malveillan

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: [email protected]
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:[email protected]> >
Envoyé : jeudi 27 avril 2023 16:22
À : [email protected] <mailto:[email protected]>  
mailto:[email protected]> >
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:[email protected]> > wrote:

Hi,

 

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

 

Thanks

 

From: Jocelin HEINEN (ext) mailto:[email protected]> > 
Sent: 27 April 2023 11:03
To: [email protected] <mailto:[email protected]> 
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:[email protected]> >
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected] <mailto:[email protected]>  
mailto:[email protected]> >
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:[email protected]> > 
Sent: 27 April 2023 10:40
To: [email protected] <mailto:[email protected]> 
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 vio

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

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

G.

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

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

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

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

De : Glenn Adams 
Envoyé : jeudi 27 avril 2023 16:22
À : [email protected] 
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:[email protected]>> wrote:

Hi,



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



Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 11:03
To: [email protected]<mailto:[email protected]>
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:[email protected]>>
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected]<mailto:[email protected]> 
mailto:[email protected]>>
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:[email protected]>>
Sent: 27 April 2023 10:40
To: [email protected]<mailto:[email protected]>
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 d

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

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

Thanks.

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

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

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

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

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

Thank you again Simon

De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 12:11
À : [email protected] 
Objet : RE: AFP with custom font TTF generates space-letter-space


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



Hi,



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



Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 11:03
To: [email protected]
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:[email protected]>>
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected]<mailto:[email protected]> 
mailto:[email protected]>>
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:[email protected]>>
Sent: 27 April 2023 10:40
To: [email protected]<mailto:[email protected]>
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 

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: [email protected]
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:[email protected]> >
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected] <mailto:[email protected]>  
mailto:[email protected]> >
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:[email protected]> > 
Sent: 27 April 2023 10:40
To: [email protected] <mailto:[email protected]> 
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

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

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

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

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

De : Simon Steiner 
Envoyé : jeudi 27 avril 2023 11:50
À : [email protected] 
Objet : RE: AFP with custom font TTF generates space-letter-space


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



Hi,



What about using:







Thanks



From: Jocelin HEINEN (ext) 
Sent: 27 April 2023 10:40
To: [email protected]
Subject: AFP with custom font TTF generates space-letter-space



Hi,

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

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

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

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

AFPexplorer

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



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

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

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

Any help is welcome 🙂


Thank you for your time.

Jo

fo.xconf






.

./

true






240

























XSL file



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


solid 0.1mm black


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









Arial
arialN
arialNB











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

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

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

This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privilege

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: [email protected]
Subject: AFP with custom font TTF generates space-letter-space 

 

Hi,

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

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

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

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


AFPexplorer

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

 

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

ESC

AMB   223

AMI   236

SCFL  1

SVI   11

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

Any help is welcome 🙂



Thank you for your time.

Jo


fo.xconf






.

./

true






240

























XSL file



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


solid 0.1mm black


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









Arial
arialN
arialNB







 

 

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

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



Re: Image not included in pdf

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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Image not included in pdf

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



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

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


RE: Image not included in pdf

2023-01-30 Thread simonsteiner1984
Hi,

 

Maybe the tmp directory doesn’t exist.

 

Thanks

 

From: Anil Pinto  
Sent: 30 January 2023 20:22
To: [email protected]
Subject: Re: Image not included in pdf

 

Hello Simon,

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

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

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

Appreciate your prompt response with a solution!

Thank you,

Anil

 

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

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

 

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

 

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

- To 
unsubscribe, e-mail: [email protected] 
<mailto:[email protected]>  For additional commands, 
e-mail: [email protected] 
<mailto:[email protected]>  



Re: Image not included in pdf

2023-01-30 Thread Anil Pinto

Hello Simon,

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


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


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

Appreciate your prompt response with a solution!

Thank you,

Anil


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


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


Get Outlook for Android 
- 
To unsubscribe, e-mail: [email protected] 
For additional commands, e-mail: [email protected] 

Re: Image not included in pdf

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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



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: [email protected]
Subject: Re: Image not included in pdf

 

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

 

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

 

Thanks for responding! 

 

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

- To 
unsubscribe, e-mail: [email protected] 
<mailto:[email protected]>  For additional commands, 
e-mail: [email protected] 
<mailto:[email protected]>  



Re: Image not included in pdf

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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



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: [email protected]
Subject: 'Build FOP' instructions incomplete

 

Hi all,

 

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

 

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

 

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

 

Thanks,

Dave



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

2022-11-30 Thread Mark Gibson
Hi,

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

Thanks
Mark

From: Mark Gibson 
Sent: 17 November 2022 23:33
To: [email protected]
Subject: pdf-images injecting PDF as image with gradient fill component - 
gradient displays incorrectly when scaling image

Hi

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

The pdf image has a gradient fill component.

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

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

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

Thanks
Mark



Re: Work-around for issue FOP-3042

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

Br,

/Per

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

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


RE: Work-around for issue FOP-3042

2022-11-30 Thread Simon Steiner
Hi,

 

Don’t you have jira login with username percederberg

 

Thanks

 

From: Per Cederberg  
Sent: 30 November 2022 09:59
To: [email protected]
Subject: Work-around for issue FOP-3042

 

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

 

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

 



 

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

 

Best regards,

 

/Per

 



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

2022-11-24 Thread 孤王
Dear Doctor,


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


Thanks a lot.


best regards doctor.



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

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

2022-11-23 Thread Simon Steiner
Hi,

 

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

 

Thanks

 

From: 孤王 <[email protected]> 
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: [email protected]
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: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]




-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



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: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]



-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



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: [email protected]
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:[email protected]> 
 
Sent: 28 April 2022 22:56
To: [email protected] <mailto:[email protected]> 
Subject: No FOP source or javadoc files in Maven repo since 2.4

 

Hi

 

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

 

Thanks

Mark

 



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

2022-09-20 Thread David Law

Hi,

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

Rgds,
DaveLaw

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


Hi,

Can you use:

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

Thanks

*From:*Mark Gibson 
*Sent:* 28 April 2022 22:56
*To:* [email protected]
*Subject:* No FOP source or javadoc files in Maven repo since 2.4

Hi

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


Thanks

Mark



Re: Code block syntax highlighting

2022-09-20 Thread David Law

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

All the best,
DaveLaw

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

Klaus and Team,

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

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

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

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

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


Cheers!



Re: Code block syntax highlighting

2022-09-20 Thread Dave The Dane

Cool.

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

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

Can it handle the WITH Clause


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


Cheers
Andreas


Re: Code block syntax highlighting

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

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

Cheers
Andreas


Re: Code block syntax highlighting

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

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

Cheers

Andreas

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



Re: Code block syntax highlighting

2022-09-19 Thread Dave The Dane

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

DaveLaw,
Subquery-Factoring Evangelist 😎

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

Thanks Dave.

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


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

All the best
Andreas

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


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

All the best,
DaveLaw

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

Klaus and Team,

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

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

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

Cheers!



- 
To unsubscribe, e-mail: [email protected] 
For additional commands, e-mail: [email protected] 


Re: Code block syntax highlighting

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

All the best,
DaveLaw

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


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


  


Re: Code block syntax highlighting

2022-09-19 Thread Dave The Dane

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

All the best,
DaveLaw

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

Klaus and Team,

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

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

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

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

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


Cheers!



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

2022-09-19 Thread Andreas Reichel
Hi Markus.

I have done something similar, under the following assumptions:

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




   


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

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

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

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



xhtml2fo.xsl
Description: application/xslt

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Re: Code block syntax highlighting

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

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

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

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

Cheers!

 


Re: Code block syntax highlighting

2022-09-19 Thread Klaus Malorny

On 16.09.22 14:44, Andreas Reichel wrote:

Greetings and compliments of the day.

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


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


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

Thank you in advance and best regards

Andreas



Hi Andreas,

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


Regards,

Klaus



-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



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

2022-09-16 Thread David Law

Mark,

it certainly looks very suspicious.

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

Maybe its worth trying...

    

...and...

    

...to see how large the areas are?

All the best,
DaveLaw


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


Hi

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


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


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


Thanks

Mark


-
To unsubscribe, e-mail:[email protected]
For additional commands, e-mail:[email protected]


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

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

From: Mark Gibson 
Sent: 16 August 2022 23:31
To: [email protected]
Subject: PDF-Images - When scaling embedded PDFs with links, the link position 
is not moved/scaled in relation to image scaling.

Hi

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

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

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

Thanks
Mark


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

2022-09-01 Thread Simon Steiner
Hi,

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

Thanks

-Original Message-
From: Philip Trykacz  
Sent: 01 September 2022 09:33
To: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]



-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: Setting renderer merge-fonts from code

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

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

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

Mark
From: Mark Gibson 
Sent: 22 August 2022 22:57
To: [email protected]
Subject: Setting renderer merge-fonts from code

Hi.

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

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

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

Does anyone know the magic?

Thanks
Mark


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

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


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

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


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

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

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

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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



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

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

Best regards.

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

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


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

2022-08-16 Thread simonsteiner1984
Hi,

 

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

 

Thanks

 

From: Mark Gibson  
Sent: 16 August 2022 16:56
To: [email protected]
Subject: RE: Corrupt font display on iOS when using PDF-Images with 
merge-fonts=true

 

Hi Luca

 

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

 

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

 

Thanks

Mark

 

From: Luca Bellonda mailto:[email protected]> > 
Sent: 16 August 2022 14:47
To: [email protected] <mailto:[email protected]> 
Subject: Re: Corrupt font display on iOS when using PDF-Images with 
merge-fonts=true

 

[EXTERNAL] 

 

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

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

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

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

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

 

 

lb

 

 

Il giorno mar 16 ago 2022 alle ore 13:13 Mark Gibson 
mailto:[email protected]> > 
ha scritto:

  

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

 

Viewing in Windows browsers is fine

Viewing in iOS browsers is corrupt

Viewing in Adobe app on iOS and windows is fine

Apologies, no access to Linux devices to test viewing

 

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

 



  1   2   3   4   5   6   7   8   9   10   >